Lines Matching full:pkg

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