pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/isakmpd Switch to SUBST framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cec3f6189589
branches:  trunk
changeset: 536902:cec3f6189589
user:      obache <obache%pkgsrc.org@localhost>
date:      Fri Dec 28 05:01:47 2007 +0000

description:
Switch to SUBST framework.

diffstat:

 security/isakmpd/Makefile |  40 +++++++++++++++++++---------------------
 1 files changed, 19 insertions(+), 21 deletions(-)

diffs (54 lines):

diff -r 4acf63e3b898 -r cec3f6189589 security/isakmpd/Makefile
--- a/security/isakmpd/Makefile Fri Dec 28 04:48:31 2007 +0000
+++ b/security/isakmpd/Makefile Fri Dec 28 05:01:47 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2007/12/28 04:22:43 obache Exp $
+# $NetBSD: Makefile,v 1.41 2007/12/28 05:01:47 obache Exp $
 #
 
 DISTNAME=              isakmpd-20030903
@@ -25,26 +25,24 @@
 RCD_SCRIPTS=           isakmpd
 RCD_SCRIPT_WRK.isakmpd=        ${WRKDIR}/isakmpd.sh
 
-pre-configure:
-       @${ECHO_MSG} "Fixing references to buildlink directories"
-       @for i in ${WRKSRC}/sysdep/netbsd/Makefile.sysdep; do           \
-               ${MV} $${i} $${i}.unfixed;                              \
-               ${SED} "s+@BUILDLINK_PREFIX.openssl@+${BUILDLINK_PREFIX.openssl}+g" \
-                       < $${i}.unfixed > $${i};                        \
-       done
-       @${ECHO_MSG} "Fixing references to configuration directory"
-       @for i in conf.h policy.h ike_auth.h; do                        \
-               ${MV} ${WRKSRC}/$${i} ${WRKSRC}/$${i}.unfixed;          \
-               ${SED} "s+/etc/isakmpd+${PKG_SYSCONFDIR}+g"             \
-                       < ${WRKSRC}/$${i}.unfixed > ${WRKSRC}/$${i};    \
-       done
-       @${ECHO_MSG} "Fixing manual page references"
-       @for i in isakmpd.8 isakmpd.conf.5 isakmpd.policy.5; do         \
-               ${MV} ${WRKSRC}/$${i} ${WRKSRC}/$${i}.unfixed;          \
-               ${SED} -e "s+/usr/share/ipsec+${PREFIX}/share/examples+g" \
-                       -e "s+/etc/isakmpd+${PKG_SYSCONFDIR}+g"         \
-                       < ${WRKSRC}/$${i}.unfixed > ${WRKSRC}/$${i};    \
-       done
+SUBST_CLASSES+=                ssl
+SUBST_STAGE.ssl=       pre-configure
+SUBST_MESSAGE.ssl=     Fixing references to buildlink directories
+SUBST_FILES.ssl=       sysdep/netbsd/Makefile.sysdep
+SUBST_VARS.ssl=                BUILDLINK_PREFIX.openssl
+
+SUBST_CLASSES+=                cfg
+SUBST_STAGE.cfg=       pre-configure
+SUBST_MESSAGE.cfg=     Fixing references to configuration directory
+SUBST_FILES.cfg=       conf.h policy.h ike_auth.h
+SUBST_SED.cfg=         -e "s+/etc/isakmpd+${PKG_SYSCONFDIR}+g"
+
+SUBST_CLASSES+=                man
+SUBST_STAGE.man=       pre-configure
+SUBST_MESSAGE.man=     Fixing manual page references
+SUBST_FILES.man=       isakmpd.8 isakmpd.conf.5 isakmpd.policy.5
+SUBST_SED.man=         -e "s+/usr/share/ipsec+${PREFIX}/share/examples+g"
+SUBST_SED.man+=                -e "s+/etc/isakmpd+${PKG_SYSCONFDIR}+g"
 
 .include "../../security/openssl/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index