aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/portupgrade-devel
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2007-02-02 16:18:49 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2007-02-02 16:18:49 +0000
commit706b49dc87c02bed8754c96c62017ed1f23f3c92 (patch)
tree245fa8d21ba67af7a34cd2d6fed884a40e4edb00 /ports-mgmt/portupgrade-devel
parentf77837c51829cb2d0bfa05f8f89194ed9adf53b4 (diff)
downloadports-706b49dc87c02bed8754c96c62017ed1f23f3c92.tar.gz
ports-706b49dc87c02bed8754c96c62017ed1f23f3c92.zip
Notes
Diffstat (limited to 'ports-mgmt/portupgrade-devel')
-rw-r--r--ports-mgmt/portupgrade-devel/Makefile2
-rw-r--r--ports-mgmt/portupgrade-devel/files/patch-portsdb.rb13
-rw-r--r--ports-mgmt/portupgrade-devel/files/patch-portupgrade11
3 files changed, 26 insertions, 0 deletions
diff --git a/ports-mgmt/portupgrade-devel/Makefile b/ports-mgmt/portupgrade-devel/Makefile
index 1c374b6bf9f3..6e9545f23617 100644
--- a/ports-mgmt/portupgrade-devel/Makefile
+++ b/ports-mgmt/portupgrade-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= portupgrade-devel
PORTVERSION= 2.2.2
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= portupgrade
@@ -24,6 +25,7 @@ USE_BZIP2= yes
USE_RUBY= yes
USE_RUBY_FEATURES= optparse ruby18
USE_PERL5_RUN= yes
+
USE_LDCONFIG= ${PREFIX}/lib/compat/pkg
LDCONFIG_DIRS= %%PREFIX%%/lib/compat/pkg
diff --git a/ports-mgmt/portupgrade-devel/files/patch-portsdb.rb b/ports-mgmt/portupgrade-devel/files/patch-portsdb.rb
new file mode 100644
index 000000000000..be6065d09315
--- /dev/null
+++ b/ports-mgmt/portupgrade-devel/files/patch-portsdb.rb
@@ -0,0 +1,13 @@
+--- lib/portsdb.rb.orig Thu Feb 1 10:15:59 2007
++++ lib/portsdb.rb Thu Feb 1 10:17:25 2007
+@@ -387,8 +387,8 @@
+ end
+
+ def subdirs(dir)
+- %x"fgrep -v bsd.port.subdir.mk #{dir}/Makefile |
+- make -f - -V SUBDIR 2> /dev/null".split.select { |i|
++ %x"fgrep SUBDIR #{dir}/Makefile | sed -e 's/SUBDIR +=//'
++ 2> /dev/null".split.select { |i|
+ File.directory?(File.join(dir, i))
+ }.sort
+ end
diff --git a/ports-mgmt/portupgrade-devel/files/patch-portupgrade b/ports-mgmt/portupgrade-devel/files/patch-portupgrade
new file mode 100644
index 000000000000..53c9037ebbff
--- /dev/null
+++ b/ports-mgmt/portupgrade-devel/files/patch-portupgrade
@@ -0,0 +1,11 @@
+--- bin/portupgrade.orig Thu Feb 1 15:42:15 2007
++++ bin/portupgrade Thu Feb 1 15:42:22 2007
+@@ -1594,7 +1594,7 @@
+ end
+
+ if $sudo && Process.euid != 0
+- dep_cmdargs = cmdargs.dup << 'fetch-depends' << 'build-depends' << 'lib-depends' << 'misc-depends'
++ dep_cmdargs = cmdargs.dup << 'fetch-depends' << 'build-depends' << 'lib-depends'
+
+ if not system(shelljoin(*dep_cmdargs) + ' DEPENDS_TARGET="-n nonexistent_target" >/dev/null 2>&1')
+ script!(logfile, *dep_cmdargs) or