diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2013-10-26 07:52:07 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2013-10-26 07:52:07 +0000 |
commit | 96e924e3e0620616ba44248c18b855e651f6241e (patch) | |
tree | fe5a4168071e52b53ffe1ac53c3e9f3d60b6584c /security | |
parent | e12db4011c1e8691d75b86b102698bc4b94eeed6 (diff) | |
download | ports-96e924e3e0620616ba44248c18b855e651f6241e.tar.gz ports-96e924e3e0620616ba44248c18b855e651f6241e.zip |
Notes
Diffstat (limited to 'security')
-rw-r--r-- | security/vpnc/Makefile | 23 | ||||
-rw-r--r-- | security/vpnc/pkg-plist | 2 |
2 files changed, 14 insertions, 11 deletions
diff --git a/security/vpnc/Makefile b/security/vpnc/Makefile index 1613d33b95b7..75ce786e9eb5 100644 --- a/security/vpnc/Makefile +++ b/security/vpnc/Makefile @@ -33,7 +33,6 @@ CISCOVERSION_DESC= Mask linux presentation string OPTIONS_DEFAULT=DECRYPT -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MDECRYPT} @@ -60,21 +59,23 @@ post-patch: ${WRKSRC}/${MAN8}.template do-install: - ${INSTALL_PROGRAM} -m 751 ${WRKSRC}/vpnc ${PREFIX}/sbin/vpnc + ${INSTALL_PROGRAM} -m 751 ${WRKSRC}/vpnc ${STAGEDIR}${PREFIX}/sbin/vpnc .if ${PORT_OPTIONS:MDECRYPT} - ${INSTALL_PROGRAM} ${WRKSRC}/cisco-decrypt ${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/cisco-decrypt ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${STAGEDIR}${MANPREFIX}/man/man1 .endif - ${INSTALL_SCRIPT} -m 751 ${WRKSRC}/vpnc-disconnect ${PREFIX}/sbin/vpnc-disconnect - ${INSTALL_DATA} -m 600 ${WRKSRC}/vpnc.conf ${PREFIX}/etc/vpnc.conf.sample -.if !exists(${PREFIX}/etc/vpnc.conf) - ${INSTALL_DATA} -m 600 ${WRKSRC}/vpnc.conf ${PREFIX}/etc + ${INSTALL_SCRIPT} -m 751 ${WRKSRC}/vpnc-disconnect \ + ${STAGEDIR}${PREFIX}/sbin/vpnc-disconnect + ${INSTALL_DATA} -m 600 ${WRKSRC}/vpnc.conf \ + ${STAGEDIR}${PREFIX}/etc/vpnc.conf.sample +.if !exists(${STAGEDIR}${PREFIX}/etc/vpnc.conf) + ${INSTALL_DATA} -m 600 ${WRKSRC}/vpnc.conf ${STAGEDIR}${PREFIX}/etc .endif - ${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8 + ${INSTALL_MAN} ${WRKSRC}/${MAN8} ${STAGEDIR}${MANPREFIX}/man/man8 .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> diff --git a/security/vpnc/pkg-plist b/security/vpnc/pkg-plist index 3f6056e4746e..93b9cde1d948 100644 --- a/security/vpnc/pkg-plist +++ b/security/vpnc/pkg-plist @@ -1,6 +1,8 @@ sbin/vpnc sbin/vpnc-disconnect +man/man8/vpnc.8.gz %%DECRYPT%%bin/cisco-decrypt +%%DECRYPT%%man/man1/cisco-decrypt.1.gz @unexec if cmp -s %D/etc/vpnc.conf %D/etc/vpnc.conf.sample; then rm -f %D/etc/vpnc.conf; fi etc/vpnc.conf.sample @exec [ -f %B/vpnc.conf ] || cp %B/%f %B/vpnc.conf |