Lines Matching defs:pkg

85 	"pkg.pkg",
86 "pkg.txz",
127 if (strcmp(end, "/pkg-static") == 0) {
140 warnx("failed to extract pkg-static: %s",
160 execl(path, "pkg-static", "add", "-f", pkgpath,
163 execl(path, "pkg-static", "add", pkgpath,
255 warn("An error occurred while fetching pkg(8)");
478 /* Verify signature of the SHA256(pkg) is valid. */
788 printf("Bootstrapping pkg from %s, please wait...\n", packagesite);
790 /* Support pkg+http:// for PACKAGESITE which is the new format
791 in 1.2 to avoid confusion on why http://pkg.FreeBSD.org has
821 fprintf(stderr, "Signature for pkg not "
838 fprintf(stderr, "Signature for pkg not "
863 fprintf(stderr, "A pre-built version of pkg could not be found for "
866 "ports: 'ports-mgmt/pkg'.\n");
894 "Usage: pkg [-4|-6] bootstrap [-f] [-y]\n";
898 "Usage: pkg add [-f] [-y] {pkg.txz}\n";
945 fprintf(stderr, "Signature for pkg not "
958 fprintf(stderr, "Signature for pkg not "
984 #define PKG_NAME "pkg"
989 pkg_is_pkg_pkg(const char *pkg)
995 if ((basename = strrchr(pkg, '/')) != NULL)
996 pkg = basename + 1;
1001 * pkg.$archive short form but we'll check it anyways. pkg-devel short
1002 * form will look like a pkg archive with 'devel' version, but that's
1003 * OK. We otherwise assumed that non-pkg packages will always have a
1006 vstart = strrchr(pkg, '-');
1008 return (strlen(pkg) > sizeof(PKG_PKG) - 1 &&
1009 strncmp(pkg, PKG_PKG, sizeof(PKG_PKG) - 1) == 0);
1012 namelen = vstart - pkg;
1014 strncmp(pkg, PKG_NAME, sizeof(PKG_NAME) - 1) == 0)
1017 strncmp(pkg, PKG_DEVEL_NAME, sizeof(PKG_DEVEL_NAME) - 1) == 0)
1051 snprintf(pkgpath, MAXPATHLEN, "%s/sbin/pkg", getlocalbase());
1138 * If it's not a request for pkg or pkg-devel,
1159 * To allow 'pkg -N' to be used as a reliable test for whether
1160 * a system is configured to use pkg, don't bootstrap pkg
1164 errx(EXIT_FAILURE, "pkg is not installed");
1170 fprintf(stderr, "Path to pkg.txz required\n");
1205 printf("pkg already bootstrapped at %s\n", pkgpath);