1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/security/vpnc/Makefile
Kurt Jaeger b95d127471 security/libgcrypt: 1.5.3_3 -> 1.6.1
- Update to 1.6.1
- Remove some unneeded patches
- Fix pkg-plist
- report configure bug upstream
  https://bugs.g10code.com/gnupg/issue1668
- report API breakage downstream and find that MacPorts had the same issue
  https://rt.cpan.org/Ticket/Display.html?id=97201
- bump PORTREVISION for dependent ports (approx. 100 ports)
- Thanks to exp-run by antoine@ to find ports that break
- patch ports that would otherwise break
  security/shishi with PR 192164 is already committed
  [1] devel/ccrtp
  [2] editors/abiword
  [3] security/p5-Crypt-GCrypt

PR:		191256, 192162 [1], 192163 [2], 192166 [3]
Submitted by:	Carlos Jacobo Puga Medina <cjpugmed@gmail.com>
Approved by:	maintainer timeout, antoine (exp-run), portmgr (implicit)
2014-07-30 03:57:23 +00:00

81 lines
2.1 KiB
Makefile

# Created by: Christian Lackas
# $FreeBSD$
PORTNAME= vpnc
PORTVERSION= 0.5.3
PORTREVISION= 9
CATEGORIES= security
MASTER_SITES= http://www.unix-ag.uni-kl.de/~massar/vpnc/ \
CRITICAL
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Client for Cisco 3000 VPN Concentrator
LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt
RUN_DEPENDS= vpnc-script:${PORTSDIR}/sysutils/vpnc-scripts
USES= shebangfix gmake perl5
USE_PERL5= build
USE_RC_SUBR= vpnc
LEGAL_TEXT= Redistribution is not allowed if linked against OpenSSL
ALL_TARGET= all
SHEBANG_FILES= makeman.pl
PORTDOCS= README TODO
MANPAGE8= vpnc.8
MAKE_ENV+= BINS="${EXTRABUILDS}"
OPTIONS_DEFINE= DECRYPT SSL CISCOVERSION DOCS
DECRYPT_DESC= cisco-decypt password decrypt utility
CISCOVERSION_DESC= Mask linux presentation string
OPTIONS_DEFAULT=DECRYPT
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDECRYPT}
MANPAGE1= cisco-decrypt.1
EXTRABUILDS+= cisco-decrypt
PLIST_SUB+= DECRYPT=""
.else
PLIST_SUB+= DECRYPT="@comment "
.endif
.if ${PORT_OPTIONS:MSSL}
NO_PACKAGE= binary linked against OpenSSL must not be redistributed
CFLAGS+= -DOPENSSL_GPL_VIOLATION
LDFLAGS+= -lcrypto
.endif
.if ${PORT_OPTIONS:MCISCOVERSION}
CFLAGS+= -DCISCO_PATCH_VERSION
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/config.c
@${REINPLACE_CMD} -e 's|\(/etc/vpnc\)|${PREFIX}\1|' \
${WRKSRC}/${MANPAGE8}.template
do-install:
${INSTALL_PROGRAM} -m 751 ${WRKSRC}/vpnc ${STAGEDIR}${PREFIX}/sbin/vpnc
.if ${PORT_OPTIONS:MDECRYPT}
${INSTALL_PROGRAM} ${WRKSRC}/cisco-decrypt ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${MANPAGE1} ${STAGEDIR}${MANPREFIX}/man/man1
.endif
${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}/${MANPAGE8} ${STAGEDIR}${MANPREFIX}/man/man8
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>