Lines Matching defs:pkg

52 #include "pkg.h"
94 static const char *bootstrap_name = "pkg.pkg";
199 if (strcmp(end, "/pkg-static") == 0) {
212 warnx("failed to extract pkg-static: %s",
232 execl(path, "pkg-static", "add", "-f", pkgpath,
235 execl(path, "pkg-static", "add", pkgpath,
320 warn("An error occurred while fetching pkg(8)");
854 printf("Bootstrapping pkg from %s, please wait...\n", repo->url);
856 /* Support pkg+http:// for PACKAGESITE which is the new format
857 in 1.2 to avoid confusion on why http://pkg.FreeBSD.org has
879 fprintf(stderr, "Signature for pkg not "
895 fprintf(stderr, "Signature for pkg not "
914 fprintf(stderr, "A pre-built version of pkg could not be found for "
943 "Usage: pkg [-4|-6] bootstrap [-f] [-y]\n";
947 "Usage: pkg add [-f] [-y] {pkg.pkg}\n";
994 fprintf(stderr, "Signature for pkg not "
1007 fprintf(stderr, "Signature for pkg not "
1033 #define PKG_NAME "pkg"
1038 pkg_is_pkg_pkg(const char *pkg)
1044 if ((basename = strrchr(pkg, '/')) != NULL)
1045 pkg = basename + 1;
1050 * pkg.$archive short form but we'll check it anyways. pkg-devel short
1051 * form will look like a pkg archive with 'devel' version, but that's
1052 * OK. We otherwise assumed that non-pkg packages will always have a
1055 vstart = strrchr(pkg, '-');
1057 return (strlen(pkg) > sizeof(PKG_PKG) - 1 &&
1058 strncmp(pkg, PKG_PKG, sizeof(PKG_PKG) - 1) == 0);
1061 namelen = vstart - pkg;
1063 strncmp(pkg, PKG_NAME, sizeof(PKG_NAME) - 1) == 0)
1066 strncmp(pkg, PKG_DEVEL_NAME, sizeof(PKG_DEVEL_NAME) - 1) == 0)
1101 snprintf(pkgpath, MAXPATHLEN, "%s/sbin/pkg", getlocalbase());
1188 * If it's not a request for pkg or pkg-devel,
1211 * To allow 'pkg -N' to be used as a reliable test for whether
1212 * a system is configured to use pkg, don't bootstrap pkg
1216 errx(EXIT_FAILURE, "pkg is not installed");
1222 fprintf(stderr, "Path to pkg.pkg required\n");
1262 printf("pkg already bootstrapped at %s\n", pkgpath);