diff options
-rw-r--r-- | ports-mgmt/portupgrade/Makefile | 29 | ||||
-rw-r--r-- | ports-mgmt/portupgrade/distinfo | 6 | ||||
-rw-r--r-- | ports-mgmt/portupgrade/files/patch-lib-pkgtools.rb | 20 | ||||
-rw-r--r-- | sysutils/portupgrade/Makefile | 29 | ||||
-rw-r--r-- | sysutils/portupgrade/distinfo | 6 | ||||
-rw-r--r-- | sysutils/portupgrade/files/patch-lib-pkgtools.rb | 20 |
6 files changed, 56 insertions, 54 deletions
diff --git a/ports-mgmt/portupgrade/Makefile b/ports-mgmt/portupgrade/Makefile index f8985a3f7cec..6bbea1a152e9 100644 --- a/ports-mgmt/portupgrade/Makefile +++ b/ports-mgmt/portupgrade/Makefile @@ -6,7 +6,7 @@ # PORTNAME= portupgrade -PORTVERSION= 2.1.1 +PORTVERSION= 2.1.3.1 PORTEPOCH= 2 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_LOCAL} \ @@ -17,7 +17,8 @@ DISTNAME= pkgtools-${DISTVERSION} MAINTAINER= sem@FreeBSD.org COMMENT= FreeBSD ports/packages administration and management tool suite -OPTIONS= BDB4 "Use Berkeley DB >=2 as backend. (Use BDB 1.85 if off)" off +OPTIONS= BDB4 "Use Berkeley DB >=2 as backend" on \ + BDB1 "Use Berkeley DB 1.85 as backend" off USE_BZIP2= yes USE_RUBY= yes @@ -55,12 +56,32 @@ INSTALL_TARGET+= install-doc .include "${PORTSDIR}/misc/ldconfig_compat/bsd.ldconfig.mk" .if defined(WITH_BDB4) -# For PKG_DBDRIVER={bdb_btree,bdb_hash,bdb} +# For PKG_DBDRIVER={bdb_btree,bdb_hash} RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb -.else +.endif +.if defined(WITH_BDB1) && !defined(WITH_BDB4) +# For PKG_DBDRIVER={bdb1_btree,bdb1_hash} RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1 .endif +pre-extract: +.if !defined(WITH_BDB4) && !defined(WITH_BDB1) + @${ECHO_MSG} "=================================================================" + @${ECHO_MSG} "Neither WITH_DBD4 nor WITH_BDB1 are defined. Will use DBD driver." + @${ECHO_MSG} "=================================================================" +.endif +.if defined(WITH_BDB4) && defined(WITH_BDB1) + @${ECHO_MSG} "=================================================================" + @${ECHO_MSG} "Both WITH_DBD4 and WITH_BDB1 are defined. Will use BDB4 driver." + @${ECHO_MSG} "=================================================================" +.elif defined(WITH_BDB1) && exists(${RUBY_SITEARCHLIBDIR}/bdb.so) + @${ECHO_MSG} "=================================================================" + @${ECHO_MSG} "WITH_BDB1 is defined but ruby-bdb port installed." + @${ECHO_MSG} "Remove ruby-bdb or redefine options." + @${ECHO_MSG} "=================================================================" + @exit 1 +.endif + post-install: install-ldconfig-file if [ ! -f ${PREFIX}/etc/pkgtools.conf ]; then \ ${CP} -p ${PREFIX}/etc/pkgtools.conf.sample ${PREFIX}/etc/pkgtools.conf; \ diff --git a/ports-mgmt/portupgrade/distinfo b/ports-mgmt/portupgrade/distinfo index 96b8f1d92784..4c312891148b 100644 --- a/ports-mgmt/portupgrade/distinfo +++ b/ports-mgmt/portupgrade/distinfo @@ -1,3 +1,3 @@ -MD5 (pkgtools-2.1.1.tar.bz2) = a3848cf5cffedf196a28b4c3b20746cb -SHA256 (pkgtools-2.1.1.tar.bz2) = 6b6369fe18a9a2fdb1062361d4211a2e31e49999a0c037f963c7e781af7c1d4c -SIZE (pkgtools-2.1.1.tar.bz2) = 108685 +MD5 (pkgtools-2.1.3.1.tar.bz2) = 5fedaebd06089beb4da2b102c57a9a39 +SHA256 (pkgtools-2.1.3.1.tar.bz2) = e11d5e523f5d6f7372698e00814b080a94ea0f61fd2e42c4c945fe2cea706474 +SIZE (pkgtools-2.1.3.1.tar.bz2) = 109704 diff --git a/ports-mgmt/portupgrade/files/patch-lib-pkgtools.rb b/ports-mgmt/portupgrade/files/patch-lib-pkgtools.rb deleted file mode 100644 index 87dcfe5ff3a8..000000000000 --- a/ports-mgmt/portupgrade/files/patch-lib-pkgtools.rb +++ /dev/null @@ -1,20 +0,0 @@ ---- lib/pkgtools.rb.orig Sat Jun 3 10:05:09 2006 -+++ lib/pkgtools.rb Mon Jun 19 16:36:55 2006 -@@ -1048,7 +1048,7 @@ - - pkg = PkgInfo.new(pkgname) - -- re = %r"^((?:#{Regexp.quote(localbase())}|#{Regexp.quote(x11base())})/etc/rc\.d/[^/]+(\.sh))(\.\w+)?$" -+ re = %r"^((?:#{Regexp.quote(localbase())}|#{Regexp.quote(x11base())})/etc/rc\.d/[^/]+(\.sh)?)(\.\w+)?$" - - ret = [] - pkg.files.each { |file| -@@ -1066,7 +1066,7 @@ - - pkg = PkgInfo.new(pkgname) - -- re = %r"^((?:#{Regexp.quote(localbase())}|#{Regexp.quote(x11base())})/etc/rc\.d/[^/]+\.sh)(\.\w+)$" -+ re = %r"^((?:#{Regexp.quote(localbase())}|#{Regexp.quote(x11base())})/etc/rc\.d/[^/]+(\.sh)?)(\.\w+)$" - - pkg.files.select { |file| - re =~ file && File.executable?(file) diff --git a/sysutils/portupgrade/Makefile b/sysutils/portupgrade/Makefile index f8985a3f7cec..6bbea1a152e9 100644 --- a/sysutils/portupgrade/Makefile +++ b/sysutils/portupgrade/Makefile @@ -6,7 +6,7 @@ # PORTNAME= portupgrade -PORTVERSION= 2.1.1 +PORTVERSION= 2.1.3.1 PORTEPOCH= 2 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_LOCAL} \ @@ -17,7 +17,8 @@ DISTNAME= pkgtools-${DISTVERSION} MAINTAINER= sem@FreeBSD.org COMMENT= FreeBSD ports/packages administration and management tool suite -OPTIONS= BDB4 "Use Berkeley DB >=2 as backend. (Use BDB 1.85 if off)" off +OPTIONS= BDB4 "Use Berkeley DB >=2 as backend" on \ + BDB1 "Use Berkeley DB 1.85 as backend" off USE_BZIP2= yes USE_RUBY= yes @@ -55,12 +56,32 @@ INSTALL_TARGET+= install-doc .include "${PORTSDIR}/misc/ldconfig_compat/bsd.ldconfig.mk" .if defined(WITH_BDB4) -# For PKG_DBDRIVER={bdb_btree,bdb_hash,bdb} +# For PKG_DBDRIVER={bdb_btree,bdb_hash} RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb -.else +.endif +.if defined(WITH_BDB1) && !defined(WITH_BDB4) +# For PKG_DBDRIVER={bdb1_btree,bdb1_hash} RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1 .endif +pre-extract: +.if !defined(WITH_BDB4) && !defined(WITH_BDB1) + @${ECHO_MSG} "=================================================================" + @${ECHO_MSG} "Neither WITH_DBD4 nor WITH_BDB1 are defined. Will use DBD driver." + @${ECHO_MSG} "=================================================================" +.endif +.if defined(WITH_BDB4) && defined(WITH_BDB1) + @${ECHO_MSG} "=================================================================" + @${ECHO_MSG} "Both WITH_DBD4 and WITH_BDB1 are defined. Will use BDB4 driver." + @${ECHO_MSG} "=================================================================" +.elif defined(WITH_BDB1) && exists(${RUBY_SITEARCHLIBDIR}/bdb.so) + @${ECHO_MSG} "=================================================================" + @${ECHO_MSG} "WITH_BDB1 is defined but ruby-bdb port installed." + @${ECHO_MSG} "Remove ruby-bdb or redefine options." + @${ECHO_MSG} "=================================================================" + @exit 1 +.endif + post-install: install-ldconfig-file if [ ! -f ${PREFIX}/etc/pkgtools.conf ]; then \ ${CP} -p ${PREFIX}/etc/pkgtools.conf.sample ${PREFIX}/etc/pkgtools.conf; \ diff --git a/sysutils/portupgrade/distinfo b/sysutils/portupgrade/distinfo index 96b8f1d92784..4c312891148b 100644 --- a/sysutils/portupgrade/distinfo +++ b/sysutils/portupgrade/distinfo @@ -1,3 +1,3 @@ -MD5 (pkgtools-2.1.1.tar.bz2) = a3848cf5cffedf196a28b4c3b20746cb -SHA256 (pkgtools-2.1.1.tar.bz2) = 6b6369fe18a9a2fdb1062361d4211a2e31e49999a0c037f963c7e781af7c1d4c -SIZE (pkgtools-2.1.1.tar.bz2) = 108685 +MD5 (pkgtools-2.1.3.1.tar.bz2) = 5fedaebd06089beb4da2b102c57a9a39 +SHA256 (pkgtools-2.1.3.1.tar.bz2) = e11d5e523f5d6f7372698e00814b080a94ea0f61fd2e42c4c945fe2cea706474 +SIZE (pkgtools-2.1.3.1.tar.bz2) = 109704 diff --git a/sysutils/portupgrade/files/patch-lib-pkgtools.rb b/sysutils/portupgrade/files/patch-lib-pkgtools.rb deleted file mode 100644 index 87dcfe5ff3a8..000000000000 --- a/sysutils/portupgrade/files/patch-lib-pkgtools.rb +++ /dev/null @@ -1,20 +0,0 @@ ---- lib/pkgtools.rb.orig Sat Jun 3 10:05:09 2006 -+++ lib/pkgtools.rb Mon Jun 19 16:36:55 2006 -@@ -1048,7 +1048,7 @@ - - pkg = PkgInfo.new(pkgname) - -- re = %r"^((?:#{Regexp.quote(localbase())}|#{Regexp.quote(x11base())})/etc/rc\.d/[^/]+(\.sh))(\.\w+)?$" -+ re = %r"^((?:#{Regexp.quote(localbase())}|#{Regexp.quote(x11base())})/etc/rc\.d/[^/]+(\.sh)?)(\.\w+)?$" - - ret = [] - pkg.files.each { |file| -@@ -1066,7 +1066,7 @@ - - pkg = PkgInfo.new(pkgname) - -- re = %r"^((?:#{Regexp.quote(localbase())}|#{Regexp.quote(x11base())})/etc/rc\.d/[^/]+\.sh)(\.\w+)$" -+ re = %r"^((?:#{Regexp.quote(localbase())}|#{Regexp.quote(x11base())})/etc/rc\.d/[^/]+(\.sh)?)(\.\w+)$" - - pkg.files.select { |file| - re =~ file && File.executable?(file) |