summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig>2006-10-02 23:26:43 +0000
committerrillig <rillig>2006-10-02 23:26:43 +0000
commit279db03568c90942cb3864f0e33bc085943bbf29 (patch)
treefd482290b2cec524f431e09c46621c3e886237f1
parente54a438ced460fb5cf78b4a79893599d377e2cb9 (diff)
downloadpkgsrc-279db03568c90942cb3864f0e33bc085943bbf29.tar.gz
Fixed the path to the Perl interpreter and the manual pages. Bumped
PKGREVISION. Fixed pkglint warnings.
-rw-r--r--www/cronolog/Makefile18
1 files 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"