2003-12-17 16:19:51 +01:00
|
|
|
# New ports collection makefile for: vpnc
|
2003-12-22 20:23:15 +01:00
|
|
|
# Date created: 15 December 2003
|
|
|
|
# Whom: Christian Lackas
|
2003-12-17 16:19:51 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= vpnc
|
2008-11-24 01:25:16 +01:00
|
|
|
PORTVERSION= 0.5.3
|
2011-02-25 20:42:32 +01:00
|
|
|
PORTREVISION= 4
|
2003-12-17 16:19:51 +01:00
|
|
|
CATEGORIES= security
|
2008-02-27 19:26:36 +01:00
|
|
|
MASTER_SITES= http://www.unix-ag.uni-kl.de/~massar/vpnc/ \
|
2008-03-27 20:27:34 +01:00
|
|
|
CRITICAL
|
2003-12-17 16:19:51 +01:00
|
|
|
|
2008-02-27 19:26:36 +01:00
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
2003-12-22 20:23:15 +01:00
|
|
|
COMMENT= Client for Cisco 3000 VPN Concentrator
|
2003-12-17 16:19:51 +01:00
|
|
|
|
2010-07-27 03:25:20 +02:00
|
|
|
LIB_DEPENDS= gcrypt.17:${PORTSDIR}/security/libgcrypt
|
2003-12-17 16:19:51 +01:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2008-02-27 19:26:36 +01:00
|
|
|
USE_PERL5_BUILD=yes
|
2007-02-26 19:57:31 +01:00
|
|
|
USE_RC_SUBR= vpnc
|
2009-03-27 10:53:36 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2007-02-26 19:57:31 +01:00
|
|
|
|
2008-02-27 19:26:36 +01:00
|
|
|
ALL_TARGET= all
|
2005-09-04 16:20:45 +02:00
|
|
|
|
2007-03-16 12:24:04 +01:00
|
|
|
PORTDOCS= README TODO
|
2003-12-22 20:23:15 +01:00
|
|
|
MAN8= vpnc.8
|
|
|
|
|
2008-03-06 20:11:59 +01:00
|
|
|
OPTIONS+= DECRYPT "cisco-decypt password decrypt utility" on
|
|
|
|
OPTIONS+= SSL "OpenSSL certificate support (hybrid only)" off
|
|
|
|
OPTIONS+= CISCOVERSION "Mask linux presentation string" off
|
2008-02-27 19:26:36 +01:00
|
|
|
|
2008-07-25 14:48:47 +02:00
|
|
|
MAKE_ENV+= LDFLAGS="${LDFLAGS}" BINS="${EXTRABUILDS}"
|
2008-02-27 19:26:36 +01:00
|
|
|
|
2004-04-29 15:41:56 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2008-02-27 19:26:36 +01:00
|
|
|
.if defined(WITH_DECRYPT)
|
|
|
|
MAN1= cisco-decrypt.1
|
|
|
|
EXTRABUILDS+= cisco-decrypt
|
|
|
|
PLIST_SUB+= DECRYPT=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= DECRYPT="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SSL)
|
|
|
|
NO_PACKAGE= binary linked against OpenSSL must not be redistributed
|
|
|
|
CFLAGS+= -DOPENSSL_GPL_VIOLATION
|
|
|
|
LDFLAGS+= -lcrypto
|
|
|
|
.endif
|
|
|
|
|
2008-03-06 20:11:59 +01:00
|
|
|
.if defined(WITH_CISCOVERSION)
|
|
|
|
CFLAGS+= -DCISCO_PATCH_VERSION
|
|
|
|
.endif
|
|
|
|
|
2003-12-22 20:23:15 +01:00
|
|
|
post-patch:
|
2008-02-27 19:26:36 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/config.c
|
|
|
|
@${REINPLACE_CMD} -e 's|\(/etc/vpnc\)|${PREFIX}\1|' \
|
|
|
|
${WRKSRC}/${MAN8}.template
|
2003-12-22 20:23:15 +01:00
|
|
|
|
|
|
|
do-install:
|
2008-02-27 19:26:36 +01:00
|
|
|
${INSTALL_PROGRAM} -m 751 ${WRKSRC}/vpnc ${PREFIX}/sbin/vpnc
|
|
|
|
.if defined(WITH_DECRYPT)
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/cisco-decrypt ${PREFIX}/bin
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
|
2004-01-30 14:34:26 +01:00
|
|
|
.endif
|
2008-02-27 19:26:36 +01:00
|
|
|
${INSTALL_SCRIPT} -m 751 ${WRKSRC}/vpnc-script ${PREFIX}/sbin/vpnc-script
|
|
|
|
${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
|
|
|
|
.endif
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8
|
|
|
|
|
2003-12-17 16:19:51 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2005-09-04 16:20:45 +02:00
|
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
2003-12-17 16:19:51 +01:00
|
|
|
.endif
|
|
|
|
|
2004-04-29 15:41:56 +02:00
|
|
|
.include <bsd.port.post.mk>
|