pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/cronolog Fixed the path to the Perl interpreter an...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/07f43f4342e8
branches:  trunk
changeset: 519433:07f43f4342e8
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Oct 02 23:26:43 2006 +0000

description:
Fixed the path to the Perl interpreter and the manual pages. Bumped
PKGREVISION.

Fixed pkglint warnings.

diffstat:

 www/cronolog/Makefile |  18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diffs (37 lines):

diff -r 9baec3815f15 -r 07f43f4342e8 www/cronolog/Makefile
--- a/www/cronolog/Makefile     Mon Oct 02 23:04:42 2006 +0000
+++ b/www/cronolog/Makefile     Mon Oct 02 23:26:43 2006 +0000
@@ -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 @@
 
 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"



Home | Main Index | Thread Index | Old Index