diff options
author | wiz <wiz@pkgsrc.org> | 2007-03-01 19:33:39 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2007-03-01 19:33:39 +0000 |
commit | c17a24d8e37a3dfc2f899da7b25859fd345b9140 (patch) | |
tree | 5c6f7f0f5fe98954daadd4c04b8532e015a70724 | |
parent | 77a74002ac7b577286d33d3fc986a51541fc98bd (diff) | |
download | pkgsrc-c17a24d8e37a3dfc2f899da7b25859fd345b9140.tar.gz |
Some pkglint cleanup: use SUBST framework, remove .gz from man pages in PLIST.
-rw-r--r-- | net/mirror/Makefile | 13 | ||||
-rw-r--r-- | net/mirror/PLIST | 6 |
2 files changed, 9 insertions, 10 deletions
diff --git a/net/mirror/Makefile b/net/mirror/Makefile index 02b905dad0c..40cfb51eaa7 100644 --- a/net/mirror/Makefile +++ b/net/mirror/Makefile @@ -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 @@ REPLACE_PERL= do_unlinks.pl mirror.pl mm.pl pkgs_to_mmin.pl 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 --git a/net/mirror/PLIST b/net/mirror/PLIST index 8a918c9682f..3ebbf9404b9 100644 --- a/net/mirror/PLIST +++ b/net/mirror/PLIST @@ -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/ftp.pl 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} |