pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/logcheck Converted to the SUBST framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/112c27a1c32a
branches:  trunk
changeset: 514666:112c27a1c32a
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Jun 16 09:20:32 2006 +0000

description:
Converted to the SUBST framework.

diffstat:

 security/logcheck/Makefile |  18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diffs (32 lines):

diff -r c69b5b16c5fa -r 112c27a1c32a security/logcheck/Makefile
--- a/security/logcheck/Makefile        Fri Jun 16 09:17:21 2006 +0000
+++ b/security/logcheck/Makefile        Fri Jun 16 09:20:32 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2006/06/16 09:17:21 rillig Exp $
+# $NetBSD: Makefile,v 1.16 2006/06/16 09:20:32 rillig Exp $
 
 DISTNAME=      logcheck-1.1.1
 PKGREVISION=   1
@@ -19,16 +19,12 @@
 CONF_FILES+=   ${EGDIR}/logcheck.${f} ${PKG_SYSCONFDIR}/logcheck.${f}
 .endfor
 
-pre-configure:
-       ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.old
-       ${SED} -e "s+/usr/local+${PREFIX}+g" \
-               < ${WRKSRC}/Makefile.old > ${WRKSRC}/Makefile
-       ${MV} ${WRKSRC}/systems/freebsd/logcheck.sh \
-               ${WRKSRC}/systems/freebsd/logcheck.sh.old
-       ${SED} -e "s+/usr/local+${PREFIX}+g" \
-               -e "s+@PKG_SYSCONFDIR@+${PKG_SYSCONFDIR}+g" \
-               ${WRKSRC}/systems/freebsd/logcheck.sh.old > \
-               ${WRKSRC}/systems/freebsd/logcheck.sh
+SUBST_CLASSES+=                prefix
+SUBST_STAGE.prefix=    pre-configure
+SUBST_MESSAGE.prefix=  Fixing hard-coded paths.
+SUBST_FILES.prefix=    Makefile systems/freebsd/logcheck.sh
+SUBST_SED.prefix=      -e "s+/usr/local+${PREFIX}+g"
+SUBST_SED.prefix+=     -e "s+@PKG_SYSCONFDIR@+${PKG_SYSCONFDIR}+g"
 
 pre-install:
        ${INSTALL_DATA_DIR} ${EGDIR}



Home | Main Index | Thread Index | Old Index