aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/portupgrade-devel/Makefile
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-09-22 06:46:14 +0800
committerknu <knu@FreeBSD.org>2001-09-22 06:46:14 +0800
commitec9ad4853f94cb6a63a0ce1dbbfb5a7d3959fc6a (patch)
tree045a0852da67a95008a3ca7e94ac7793840bdbfe /sysutils/portupgrade-devel/Makefile
parent156acd3ea546ee0af52c8e8d2b3a08c7008217d0 (diff)
downloadfreebsd-ports-graphics-ec9ad4853f94cb6a63a0ce1dbbfb5a7d3959fc6a.tar.gz
freebsd-ports-graphics-ec9ad4853f94cb6a63a0ce1dbbfb5a7d3959fc6a.tar.zst
freebsd-ports-graphics-ec9ad4853f94cb6a63a0ce1dbbfb5a7d3959fc6a.zip
Update to 20010922, with some brand new functionalities.
overall: - Implement new package glob patterns: {<|<=|>=|>}{date|pkgname_glob}. For example, you can rebuild and reinstall all the dependent packages of png that had been installed prior to png this way: portupgrade -fr png -x '>=png' - Introduce the packages database, which is currently a simple hash that maps file paths to package names. Inspired by: NetBSD pkgdb(1): (new) - A command to create/update the packages database. pkg_which(1): (new) - A command to check which package a file came from quickly. portsclean(1): - Suppress "can't cd" error messages. Submitted by: Jos Backus <josb@cncdsl.com> ports_glob(1): (new) - Give portsdb(1)'s ports glob expanding feature a suitable name.
Diffstat (limited to 'sysutils/portupgrade-devel/Makefile')
-rw-r--r--sysutils/portupgrade-devel/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/sysutils/portupgrade-devel/Makefile b/sysutils/portupgrade-devel/Makefile
index 79630674c19..618e3b1b500 100644
--- a/sysutils/portupgrade-devel/Makefile
+++ b/sysutils/portupgrade-devel/Makefile
@@ -6,12 +6,12 @@
#
PORTNAME= portupgrade
-PORTVERSION= 20010921
+PORTVERSION= 20010922
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.iDaemons.org/distfiles/
MASTER_SITE_SUBDIR= knu
-DISTNAME= pkgtools-${PORTVERSION:S/a$//}
+DISTNAME= pkgtools-${PORTVERSION}
#PATCH_SITES= ${MASTER_SITES}
#PATCHFILES= pkgtools-${PORTVERSION}.patch.gz
@@ -28,6 +28,7 @@ USE_RUBY= yes
RUBY_SHEBANG_FILES= \
${WRKSRC}/pkg_fetch \
${WRKSRC}/pkg_glob \
+ ${WRKSRC}/pkgdb \
${WRKSRC}/pkgdepfix \
${WRKSRC}/portcvsweb \
${WRKSRC}/portsclean \
@@ -40,13 +41,17 @@ NO_BUILD= yes
MAN1= pkg_deinstall.1 \
pkg_fetch.1 \
pkg_glob.1 \
+ pkg_which.1 \
pkgdepfix.1 \
portcvsweb.1 \
+ ports_glob.1 \
portsclean.1 \
portsdb.1 \
portupgrade.1 \
portversion.1
-MLINKS= portupgrade.1 portinstall.1
+MLINKS= pkgdb.1 pkg_which.1 \
+ portupgrade.1 portinstall.1 \
+ portsdb.1 ports_glob.1
MANCOMPRESSED= yes
DOCS= ChangeLog README
@@ -57,7 +62,6 @@ post-patch:
.for f in pkgdb.rb pkgtools.rb
${RUBY} -i~ -pe 'sub %r:/usr/local:, "${LOCALBASE}"' ${WRKSRC}/${f}
.endfor
- ${RUBY} -i~ -pe 'sub!(/(make_cmdline\(portdir, .-V PKGNAME 2>\&1.)\}/, "\\1)}")' ${WRKSRC}/portupgrade
do-install:
cd ${WRKSRC} && ${RUBY} install.rb