aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/pkg_install
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-04-17 02:20:14 +0800
committermarcus <marcus@FreeBSD.org>2004-04-17 02:20:14 +0800
commit0a42cc7aa983fab3b2aebeab4484c14570b2a798 (patch)
tree45cde9fb902f1db9aa5ffa073621642d814434fe /sysutils/pkg_install
parent2b7d940161a15db57c63d3267e20e90f1ed50546 (diff)
downloadfreebsd-ports-graphics-0a42cc7aa983fab3b2aebeab4484c14570b2a798.tar.gz
freebsd-ports-graphics-0a42cc7aa983fab3b2aebeab4484c14570b2a798.tar.zst
freebsd-ports-graphics-0a42cc7aa983fab3b2aebeab4484c14570b2a798.zip
* Update to today's -CURRENT snapshot
* Add local patches to cause pkg_add to spawn itself correctly when installing dependent packages. Previously, it would always spawn /usr/sbin/pkg_add.
Diffstat (limited to 'sysutils/pkg_install')
-rw-r--r--sysutils/pkg_install/Makefile2
-rw-r--r--sysutils/pkg_install/distinfo4
-rw-r--r--sysutils/pkg_install/files/patch-add67
3 files changed, 70 insertions, 3 deletions
diff --git a/sysutils/pkg_install/Makefile b/sysutils/pkg_install/Makefile
index 61e3015b222..870d0673579 100644
--- a/sysutils/pkg_install/Makefile
+++ b/sysutils/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/sysutils/pkg_install/distinfo b/sysutils/pkg_install/distinfo
index bb74fc42eb4..30aadd760de 100644
--- a/sysutils/pkg_install/distinfo
+++ b/sysutils/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/sysutils/pkg_install/files/patch-add b/sysutils/pkg_install/files/patch-add
new file mode 100644
index 00000000000..cf34e018f7c
--- /dev/null
+++ b/sysutils/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;
+ }