summaryrefslogtreecommitdiffstats
path: root/ports-mgmt/portupgrade
diff options
context:
space:
mode:
authordaichi <daichi@FreeBSD.org>2005-06-29 08:03:30 +0000
committerdaichi <daichi@FreeBSD.org>2005-06-29 08:03:30 +0000
commitc017e9aab1841a529087199cd7a352500fba6be1 (patch)
treefb43aec07562fd9c7c412d378e671a81bccd1b12 /ports-mgmt/portupgrade
parentb3f3a8b8ad62cd0d0103b8c0f24a60483f767c93 (diff)
downloadFreeBSD-ports-c017e9aab1841a529087199cd7a352500fba6be1.zip
FreeBSD-ports-c017e9aab1841a529087199cd7a352500fba6be1.tar.gz
- sysutils/portupgrade: add option for BDB4:
(1) Do not change default dependency (depend on ruby-bdb1), since ruby-bdb (BDB >= 2) support is not so tested. (2) Thus, no PORTREVISION bump. - a little Makefile change for portlint clean PR: ports/82000 Submitted by: Alexander Novitsky <alecn@server.v42of.icc-vvd.ru> Reviewed by: KOMATSU Shinichiro <koma2@lovepeers.org> (maintainer)
Diffstat (limited to 'ports-mgmt/portupgrade')
-rw-r--r--ports-mgmt/portupgrade/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/ports-mgmt/portupgrade/Makefile b/ports-mgmt/portupgrade/Makefile
index 1a037f0..7a99dd0 100644
--- a/ports-mgmt/portupgrade/Makefile
+++ b/ports-mgmt/portupgrade/Makefile
@@ -14,6 +14,9 @@ MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \
MASTER_SITE_SUBDIR= knu
DISTNAME= pkgtools-${DISTVERSION}
+MAINTAINER= koma2@lovepeers.org
+COMMENT= FreeBSD ports/packages administration and management tool suite
+
DISTVERSION= 20041224
.if ${DISTVERSION} != ${PORTVERSION}
@@ -23,12 +26,7 @@ PATCHFILES= ${DISTNAME}-${PORTVERSION}.diff.bz2
PATCH_DIST_STRIP= -p1
.endif
-MAINTAINER= koma2@lovepeers.org
-COMMENT= FreeBSD ports/packages administration and management tool suite
-
-RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1
-# For PKG_DBDRIVER={bdb_btree,bdb_hash,bdb}
-# ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb
+OPTIONS= BDB4 "Use Berkeley DB >=2 as backend. (Use BDB 1.85 if off)" off
USE_RC_SUBR= yes
USE_BZIP2= yes
@@ -61,11 +59,18 @@ INSTALL_TARGET+= install-doc
.include <bsd.port.pre.mk>
+.if defined(WITH_BDB4)
+# For PKG_DBDRIVER={bdb_btree,bdb_hash,bdb}
+RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb
+.else
+RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1
+.endif
+
# pkg_create(1) must support -b. (4.5-RELEASE or later)
# XXX: PKG_CMD is not defined yet..
PKG_CREATE_OK!= /usr/sbin/pkg_create 2>&1 | ${GREP} ' -b ' || ${TRUE}
.if empty(PKG_CREATE_OK)
-IGNORE= pkg_create does not support -b. Please update /usr/sbin/pkg_* to those of the latest RELENG_4
+IGNORE= pkg_create does not support -b. Please update /usr/sbin/pkg_* to those of the latest RELENG_4
.endif
post-install:
OpenPOWER on IntegriCloud