summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorobache <obache>2007-12-28 05:01:47 +0000
committerobache <obache>2007-12-28 05:01:47 +0000
commit936fc32db6a8a54fcf18265c807d15f17637baf1 (patch)
tree11d1c13029e6f6da1feeb45850e27e4f1c03fa58 /security
parent060664bf6246f01115314357e29e2692b4a5720b (diff)
downloadpkgsrc-936fc32db6a8a54fcf18265c807d15f17637baf1.tar.gz
Switch to SUBST framework.
Diffstat (limited to 'security')
-rw-r--r--security/isakmpd/Makefile40
1 files changed, 19 insertions, 21 deletions
diff --git a/security/isakmpd/Makefile b/security/isakmpd/Makefile
index 31db54e960d..80ea894598e 100644
--- a/security/isakmpd/Makefile
+++ b/security/isakmpd/Makefile
@@ -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 @@ PKG_SYSCONFSUBDIR= isakmpd
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"