From dc7bc144a3d7aa19a88e3408d9f2db372d9081fe Mon Sep 17 00:00:00 2001 From: rillig Date: Mon, 2 Oct 2006 23:26:43 +0000 Subject: Fixed the path to the Perl interpreter and the manual pages. Bumped PKGREVISION. Fixed pkglint warnings. --- www/cronolog/Makefile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/www/cronolog/Makefile b/www/cronolog/Makefile index 42773b879f1..17636566a85 100644 --- a/www/cronolog/Makefile +++ b/www/cronolog/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.11 2006/06/25 08:59:22 rillig Exp $ +# $NetBSD: Makefile,v 1.12 2006/10/02 23:26:43 rillig Exp $ # DISTNAME= cronolog-1.6.2 +PKGREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.cronolog.org/download/ @@ -11,15 +12,16 @@ COMMENT= Web log rotation utility that provides datestamp filenames GNU_CONFIGURE= YES INFO_FILES= yes +USE_TOOLS+= perl:run +INSTALLATION_DIRS= ${PKGMANDIR}/man1 ${PKGMANDIR}/man8 -post-patch: - ${SED} "s,/www/sbin/cronolog,${PREFIX}/sbin/cronolog,g" \ - ${WRKSRC}/doc/cronolog.1m > ${WRKSRC}/doc/cronolog.1m.done - ${MV} ${WRKSRC}/doc/cronolog.1m.done ${WRKSRC}/doc/cronolog.1m +SUBST_CLASSES+= cl +SUBST_STAGE.cl= pre-configure +SUBST_FILES.cl= doc/cronolog.1m +SUBST_SED.cl= -e "s,/www/sbin/cronolog,${PREFIX}/sbin/cronolog,g" post-install: - ${INSTALL_MAN_DIR} ${PREFIX}/man/man8 - ${MV} ${PREFIX}/man/man1/cronolog.1m ${PREFIX}/man/man8/cronolog.8 - ${MV} ${PREFIX}/man/man1/cronosplit.1m ${PREFIX}/man/man8/cronosplit.8 + cd ${PREFIX}/${PKGMANDIR} && mv man1/cronolog.1m man8/cronolog.8 + cd ${PREFIX}/${PKGMANDIR} && mv man1/cronosplit.1m man8/cronosplit.8 .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3