svn commit: r396566 - head/security/racoon2
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Sep 10 12:26:03 UTC 2015
Author: amdmi3
Date: Thu Sep 10 12:26:01 2015
New Revision: 396566
URL: https://svnweb.freebsd.org/changeset/ports/396566
Log:
- Add empty directories to plist
- Use options helpers (a bit)
Approved by: portmgr blanket
Modified:
head/security/racoon2/Makefile
head/security/racoon2/pkg-plist
Modified: head/security/racoon2/Makefile
==============================================================================
--- head/security/racoon2/Makefile Thu Sep 10 11:42:14 2015 (r396565)
+++ head/security/racoon2/Makefile Thu Sep 10 12:26:01 2015 (r396566)
@@ -3,7 +3,7 @@
PORTNAME= racoon2
PORTVERSION= 20100526a
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= security net ipv6
MASTER_SITES= ftp://ftp.racoon2.wide.ad.jp/pub/racoon2/
@@ -53,12 +53,10 @@ PORTDOCS+= kinkd-install.ja.txt kinkd-st
.endif
.endif
-post-patch:
-.if ${PORT_OPTIONS:MDOCS}
+post-patch-DOCS-on:
.for FILE in ${PORTDOCS}
@${REINPLACE_CMD} -e 's|/usr/local/racoon2|${PREFIX}|' ${WRKSRC}/doc/${FILE}
.endfor
-.endif
post-configure:
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -e '/INSTALL/s|\$$([a-z].*dir)|${STAGEDIR}&|'
@@ -68,7 +66,12 @@ post-configure:
post-install:
${MKDIR} ${STAGEDIR}/var/run/racoon2
-.if ${PORT_OPTIONS:MDOCS}
+ @if [ -z `/sbin/sysctl -a | ${GREP} -q ipsec && echo ipsec` ]; then \
+ ${ECHO_MSG} "WARNING: IPsec feature is disabled on this host"; \
+ ${ECHO_MSG} " You must build the kernel if you want to run racoon on the host"; \
+ fi ;
+
+post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.jp ${STAGEDIR}${DOCSDIR}
@@ -76,10 +79,5 @@ post-install:
.for FILE in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
- @if [ -z `/sbin/sysctl -a | ${GREP} -q ipsec && echo ipsec` ]; then \
- ${ECHO_MSG} "WARNING: IPsec feature is disabled on this host"; \
- ${ECHO_MSG} " You must build the kernel if you want to run racoon on the host"; \
- fi ;
.include <bsd.port.post.mk>
Modified: head/security/racoon2/pkg-plist
==============================================================================
--- head/security/racoon2/pkg-plist Thu Sep 10 11:42:14 2015 (r396565)
+++ head/security/racoon2/pkg-plist Thu Sep 10 12:26:01 2015 (r396566)
@@ -35,6 +35,15 @@ man/man8/spmdctl.8.gz
man/man8/pskgen.8.gz
man/man8/iked.8.gz
%%KINK%%man/man8/kinkd.8.gz
+ at dir etc/racoon2/psk
+ at dir etc/racoon2/hook/ph1-up.d
+ at dir etc/racoon2/hook/ph1-down.d
+ at dir etc/racoon2/hook/migration.d
+ at dir etc/racoon2/hook/ikesa-rekey.d
+ at dir etc/racoon2/hook/ikesa-down.d
+ at dir etc/racoon2/hook/child-rekey.d
+ at dir etc/racoon2/hook/child-down.d
+ at dir etc/racoon2/cert
@exec test -f %%PFX%%/etc/racoon2/spmd.pwd && mv %%PFX%%/etc/racoon2/spmd.pwd %%PFX%%/etc/racoon2/spmd.pwd.bak && %%PFX%%/pskgen -r -o %%PFX%%/etc/racoon2/spmd.pwd
@unexec rm -f %%PFX/etc/racoon2/spmd.pwd
@dir(root,wheel,700) /var/run/racoon2
More information about the svn-ports-all
mailing list