pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/mirror Some pkglint cleanup: use SUBST framework, ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/ad79109d2008
branches: trunk
changeset: 526126:ad79109d2008
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Mar 01 19:33:39 2007 +0000
description:
Some pkglint cleanup: use SUBST framework, remove .gz from man pages in PLIST.
diffstat:
net/mirror/Makefile | 13 ++++++-------
net/mirror/PLIST | 6 +++---
2 files changed, 9 insertions(+), 10 deletions(-)
diffs (45 lines):
diff -r 227d73fddadf -r ad79109d2008 net/mirror/Makefile
--- a/net/mirror/Makefile Thu Mar 01 18:33:54 2007 +0000
+++ b/net/mirror/Makefile Thu Mar 01 19:33:39 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2007/03/01 18:35:21 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2007/03/01 19:33:39 wiz Exp $
DISTNAME= mirror-2.9
PKGREVISION= 2
@@ -20,12 +20,11 @@
CONF_FILES+= ${PREFIX}/lib/mirror/mirror.defaults.dist \
${PREFIX}/lib/mirror/mirror.defaults
-pre-configure:
- cd ${WRKSRC}; \
- for i in mirror.pl mm.pl; do \
- ${SED} -e 's:!!PREFIX!!:${PREFIX}:g' $$i >$$i.BAK;\
- ${MV} -f $$i.BAK $$i; \
- done
+SUBST_CLASSES+= prefix
+SUBST_SED.prefix= -e 's:!!PREFIX!!:${PREFIX}:g'
+SUBST_FILES.prefix= mirror.pl mm.pl
+SUBST_MESSAGE.prefix= Fixing hardcoded installation prefix.
+SUBST_STAGE.prefix= pre-configure
pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/mirror
diff -r 227d73fddadf -r ad79109d2008 net/mirror/PLIST
--- a/net/mirror/PLIST Thu Mar 01 18:33:54 2007 +0000
+++ b/net/mirror/PLIST Thu Mar 01 19:33:39 2007 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2006/02/19 15:55:33 wiz Exp $
+@comment $NetBSD: PLIST,v 1.5 2007/03/01 19:33:39 wiz Exp $
bin/do_unlinks
bin/mirror
bin/mirrormaster
@@ -8,6 +8,6 @@
lib/mirror/lchat.pl
lib/mirror/lsparse.pl
lib/mirror/mirror.defaults.dist
-man/man1/mirror.1.gz
-man/man1/mirrormaster.1.gz
+man/man1/mirror.1
+man/man1/mirrormaster.1
@unexec ${RMDIR} %D/lib/mirror 2>/dev/null || ${TRUE}
Home |
Main Index |
Thread Index |
Old Index