diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2013-10-26 15:52:07 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2013-10-26 15:52:07 +0800 |
commit | 1fed3a8d0e2983bf3fa925369ad3516e9e9bfe89 (patch) | |
tree | fe5a4168071e52b53ffe1ac53c3e9f3d60b6584c /security | |
parent | a8f4152d6256315b59a7a501209d41778bfe3312 (diff) | |
download | freebsd-ports-gnome-1fed3a8d0e2983bf3fa925369ad3516e9e9bfe89.tar.gz freebsd-ports-gnome-1fed3a8d0e2983bf3fa925369ad3516e9e9bfe89.tar.zst freebsd-ports-gnome-1fed3a8d0e2983bf3fa925369ad3516e9e9bfe89.zip |
Support staging.
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 |