diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-04-16 18:20:14 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-04-16 18:20:14 +0000 |
commit | 83dea9ea8f511c9afff8033a8318dee23a6cbbc4 (patch) | |
tree | ce80b7a7b55c7bb3203043f481411ecd02977f39 /ports-mgmt | |
parent | 48c5aaf5d4e9ccdd0f54628321dc58bd7a82304d (diff) | |
download | ports-83dea9ea8f511c9afff8033a8318dee23a6cbbc4.tar.gz ports-83dea9ea8f511c9afff8033a8318dee23a6cbbc4.zip |
Notes
Diffstat (limited to 'ports-mgmt')
-rw-r--r-- | ports-mgmt/pkg_install/Makefile | 2 | ||||
-rw-r--r-- | ports-mgmt/pkg_install/distinfo | 4 | ||||
-rw-r--r-- | ports-mgmt/pkg_install/files/patch-add | 67 |
3 files changed, 70 insertions, 3 deletions
diff --git a/ports-mgmt/pkg_install/Makefile b/ports-mgmt/pkg_install/Makefile index 61e3015b2225..870d06735792 100644 --- a/ports-mgmt/pkg_install/Makefile +++ b/ports-mgmt/pkg_install/Makefile @@ -6,7 +6,7 @@ # PORTNAME= pkg_install -PORTVERSION= 20040229 +PORTVERSION= 20040416 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_LOCAL} \ http://people.FreeBSD.org/~marcus/ diff --git a/ports-mgmt/pkg_install/distinfo b/ports-mgmt/pkg_install/distinfo index bb74fc42eb4c..30aadd760dee 100644 --- a/ports-mgmt/pkg_install/distinfo +++ b/ports-mgmt/pkg_install/distinfo @@ -1,2 +1,2 @@ -MD5 (pkg_install-20040229.tar.gz) = 58c5e0ce5d79bc6c49c436cf21a6c6b6 -SIZE (pkg_install-20040229.tar.gz) = 83092 +MD5 (pkg_install-20040416.tar.gz) = 4c8a5601feb15ee7bac3070bc4a0f992 +SIZE (pkg_install-20040416.tar.gz) = 84608 diff --git a/ports-mgmt/pkg_install/files/patch-add b/ports-mgmt/pkg_install/files/patch-add new file mode 100644 index 000000000000..cf34e018f7cb --- /dev/null +++ b/ports-mgmt/pkg_install/files/patch-add @@ -0,0 +1,67 @@ +diff -ruN add.orig/add.h add/add.h +--- add.orig/add.h Thu Apr 15 15:23:52 2004 ++++ add/add.h Thu Apr 15 15:34:35 2004 +@@ -34,6 +34,7 @@ + extern char *Group; + extern char *Directory; + extern char *PkgName; ++extern char *PkgAddCmd; + extern char FirstPen[]; + extern add_mode_t AddMode; + +diff -ruN add.orig/main.c add/main.c +--- add.orig/main.c Thu Apr 15 15:23:52 2004 ++++ add/main.c Thu Apr 15 15:44:17 2004 +@@ -39,6 +39,7 @@ + char *Owner = NULL; + char *Group = NULL; + char *PkgName = NULL; ++char *PkgAddCmd = NULL; + char *Directory = NULL; + char FirstPen[FILENAME_MAX]; + add_mode_t AddMode = NORMAL; +@@ -84,7 +85,9 @@ + char **start; + char *cp, *packagesite = NULL, *remotepkg = NULL, *ptr; + static char temppackageroot[MAXPATHLEN]; ++ static char pkgaddpath[MAXPATHLEN]; + ++ PkgAddCmd = realpath(argv[0], pkgaddpath); + start = argv; + while ((ch = getopt(argc, argv, Options)) != -1) { + switch(ch) { +diff -ruN add.orig/perform.c add/perform.c +--- add.orig/perform.c Thu Apr 15 15:23:52 2004 ++++ add/perform.c Thu Apr 15 15:32:10 2004 +@@ -92,7 +92,7 @@ + fgets(playpen, FILENAME_MAX, stdin); + playpen[strlen(playpen) - 1] = '\0'; /* pesky newline! */ + if (chdir(playpen) == FAIL) { +- warnx("pkg_add in SLAVE mode can't chdir to %s", playpen); ++ warnx("%s in SLAVE mode can't chdir to %s", PkgAddCmd, playpen); + return 1; + } + read_plist(&Plist, stdin); +@@ -310,7 +310,7 @@ + if (cp) { + if (Verbose) + printf("Loading it from %s.\n", cp); +- if (vsystem("pkg_add %s'%s'", Verbose ? "-v " : "", cp)) { ++ if (vsystem("%s %s'%s'", PkgAddCmd, Verbose ? "-v " : "", cp)) { + warnx("autoload of dependency '%s' failed%s", + cp, Force ? " (proceeding anyway)" : "!"); + if (!Force) +@@ -333,9 +333,10 @@ + if (!Force) + ++code; + } +- else if (vsystem("(pwd; cat +CONTENTS) | pkg_add %s-S", Verbose ? "-v " : "")) { +- warnx("pkg_add of dependency '%s' failed%s", +- p->name, Force ? " (proceeding anyway)" : "!"); ++ else if (vsystem("(pwd; cat +CONTENTS) | %s %s-S", PkgAddCmd, Verbose ? "-v " : "")) { ++ warnx("%s of dependency '%s' failed%s", ++ PkgAddCmd, p->name, ++ Force ? " (proceeding anyway)" : "!"); + if (!Force) + ++code; + } |