diff options
Diffstat (limited to 'security/isakmpd/Makefile')
-rw-r--r-- | security/isakmpd/Makefile | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/security/isakmpd/Makefile b/security/isakmpd/Makefile index 0071fc242ce..06c1b588c4c 100644 --- a/security/isakmpd/Makefile +++ b/security/isakmpd/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.27 2003/07/17 22:52:56 grant Exp $ +# $NetBSD: Makefile,v 1.28 2003/07/31 10:38:32 jmmv Exp $ # DISTNAME= isakmpd-20021118 +PKGREVISION= 1 WRKSRC= ${WRKDIR}/isakmpd CATEGORIES= security net MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/packages/distfiles/LOCAL_PORTS/ @@ -20,25 +21,31 @@ USE_PKGINSTALL= YES MAKE_ENV+= BINDIR=${PREFIX}/sbin MANDIR=${PREFIX}/man -post-patch: +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}.orig; \ ${SED} "s+@BUILDLINK_PREFIX.openssl@+${BUILDLINK_PREFIX.openssl}+g" \ < $${i}.orig > $${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}.orig; \ + ${SED} "s+/etc/isakmpd+${PKG_SYSCONFDIR}+g" \ + < ${WRKSRC}/$${i}.orig > ${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}.orig; \ - ${SED} "s+/usr/share/ipsec+${PREFIX}/share/examples+g" \ + ${SED} -e "s+/usr/share/ipsec+${PREFIX}/share/examples+g" \ + -e "s+/etc/isakmpd+${PKG_SYSCONFDIR}+g" \ < ${WRKSRC}/$${i}.orig > ${WRKSRC}/$${i}; \ done -pre-install: - @${SED} ${FILES_SUBST_SED} ${FILESDIR}/isakmpd.sh > ${WRKDIR}/isakmpd.sh - -post-install: - ${INSTALL_SCRIPT} ${WRKDIR}/isakmpd.sh ${PREFIX}/etc/rc.d/isakmpd - .include "../../security/openssl/buildlink2.mk" .include "../../mk/bsd.pkg.mk" |