diff options
author | knu <knu@FreeBSD.org> | 2002-11-08 18:51:07 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-11-08 18:51:07 +0800 |
commit | df074c08efae5c2b82b70459f2e779918a605df8 (patch) | |
tree | cad3abf731661b76b094e8d2c3c10204e62a51a4 /sysutils/portupgrade | |
parent | c8f8188f38f359084dd8e1a6613b411cabc29587 (diff) | |
download | freebsd-ports-gnome-df074c08efae5c2b82b70459f2e779918a605df8.tar.gz freebsd-ports-gnome-df074c08efae5c2b82b70459f2e779918a605df8.tar.zst freebsd-ports-gnome-df074c08efae5c2b82b70459f2e779918a605df8.zip |
Apply a hot-fix against a bug where portupgrade(1)/pkgdb(1) leave
temporary files ($TMPDIR/+CONTENTS*). Bump PORTREVISION for that.
Modify the IGNORE message that is shown when pkg_create(1) is found to
be too old.
Diffstat (limited to 'sysutils/portupgrade')
-rw-r--r-- | sysutils/portupgrade/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sysutils/portupgrade/Makefile b/sysutils/portupgrade/Makefile index 500008d293b7..aececc5e6132 100644 --- a/sysutils/portupgrade/Makefile +++ b/sysutils/portupgrade/Makefile @@ -7,6 +7,7 @@ PORTNAME= portupgrade PORTVERSION= 20021106 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \ ${MASTER_SITE_LOCAL} @@ -62,9 +63,12 @@ INSTALL_TARGET+= install-doc # 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 +IGNORE= pkg_create does not support -b. Please update /usr/sbin/pkg_* to those of the latest RELENG_4 .endif +post-patch: + ${RUBY} -i -pe "gsub(/('\/bin\/)cp(', '-f', tmpfile, file)/, '\1mv\2')" ${WRKSRC}/lib/pkgtools.rb + post-install: if [ ! -f ${PREFIX}/etc/pkgtools.conf ]; then \ ${CP} -p ${PREFIX}/etc/pkgtools.conf.sample ${PREFIX}/etc/pkgtools.conf; \ |