summaryrefslogtreecommitdiff
path: root/sysutils/portupgrade-devel/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-09-20 18:01:57 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-09-20 18:01:57 +0000
commitd611ff979aa2308c81b8b59e6906903bfc365c6f (patch)
treee223983c8a33788396d1488dcd31cbaef0a2dde1 /sysutils/portupgrade-devel/Makefile
parentForgot (diff)
Update to 20020921.
- Respect PKG_SUFX, which could be defined in /etc/make.conf or as an environment variable. - Drop the pkg_tarup(1) dependency in favor of pkg_create(1) -b, and mark IGNORE for systems which pkg_create(1) does not support -b. On those systems such as 4.4-STABLE and prior, users can either a) update pkg_* tools or b) stick with portupgrade-20020920 + pkg_tarup-1.2_3. - Remove the workaround against somewhat old 5-CURRENT's buggy bsd.*.mk. - Improve zsh/bash/tcsh completion definitions. (not much for tcsh, though..)
Diffstat (limited to 'sysutils/portupgrade-devel/Makefile')
-rw-r--r--sysutils/portupgrade-devel/Makefile26
1 files changed, 11 insertions, 15 deletions
diff --git a/sysutils/portupgrade-devel/Makefile b/sysutils/portupgrade-devel/Makefile
index 6e871df7c945..16aed7712e66 100644
--- a/sysutils/portupgrade-devel/Makefile
+++ b/sysutils/portupgrade-devel/Makefile
@@ -6,28 +6,25 @@
#
PORTNAME= portupgrade
-PORTVERSION= 20020920
+PORTVERSION= 20020921
CATEGORIES= sysutils
MASTER_SITES= http://www.iDaemons.org/distfiles/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= knu
DISTNAME= pkgtools-${DISTVERSION}
-DISTVERSION= 20020805
+DISTVERSION= 20020921
.if ${DISTVERSION} != ${PORTVERSION}
PATCH_SITES= ${MASTER_SITES}
PATCH_SITE_SUBDIR= ${MASTER_SITE_SUBDIR}
-PATCHFILES= ${DISTNAME}-20020830.diff.bz2 \
- pkgtools-20020830-20020902.diff.bz2 \
- pkgtools-20020902-${PORTVERSION}.diff.bz2
+PATCHFILES= ${DISTNAME}-${PORTVERSION}.diff.bz2
PATCH_DIST_STRIP= -p1
.endif
MAINTAINER= knu@FreeBSD.org
-RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1 \
- ${LOCALBASE}/sbin/pkg_tarup:${PORTSDIR}/sysutils/pkg_tarup
+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
@@ -59,16 +56,15 @@ INSTALL_TARGET+= install-doc
.include <bsd.port.pre.mk>
-.if ${RUBY_VER} < 1.7
-RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/features/ruby18/file_ruby18.so:${PORTSDIR}/lang/ruby16-shim-ruby18
+# 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 pkg_* tools or stick with portupgrade-20020920 + pkg_tarup-1.2_3, which work just fine
.endif
-pre-install:
-.if !defined(NOPORTDOCS)
-# Cope with a bug in CURRENT's bsd.*.mk infrastructure
- ${MKDIR} ${PREFIX}/share/examples/pkgtools/bash
- ${MKDIR} ${PREFIX}/share/examples/pkgtools/tcsh
- ${MKDIR} ${PREFIX}/share/zsh/site-functions
+.if ${RUBY_VER} < 1.7
+RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/features/ruby18/file_ruby18.so:${PORTSDIR}/lang/ruby16-shim-ruby18
.endif
post-install: