summaryrefslogtreecommitdiff
path: root/ports-mgmt/portupgrade
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2005-06-29 08:03:30 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2005-06-29 08:03:30 +0000
commit22571d20fe20a91e080535e4a0be8380630ba01a (patch)
treef27d98ba0e253f82fe217d9a30b21ed1a190c53a /ports-mgmt/portupgrade
parent- Update to 1.0 (diff)
- 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)
Notes
Notes: svn path=/head/; revision=138159
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 1a037f0ad26d..7a99dd0ae24f 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: