1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/security/vpnc/Makefile
Tilman Keskinoz 3b0e0ce047 Update to vpnc-0.2-rm+zomb-pre8
Add fulltunnel wrapper script by Daniel Roethlisberger

PR:		65945
Submitted by:	Christian Lackas

Mark broken on AMD64
2004-04-29 13:41:56 +00:00

66 lines
1.8 KiB
Makefile

# New ports collection makefile for: vpnc
# Date created: 15 December 2003
# Whom: Christian Lackas
#
# $FreeBSD$
#
PORTNAME= vpnc
PORTVERSION= 0.2
PORTREVISION= 4
CATEGORIES= security
MASTER_SITES= http://www.unix-ag.uni-kl.de/~massar/vpnc/ \
http://dragon.roe.ch/mirrors/distfiles/vpnc/
DISTNAME= ${PORTNAME}-${PORTVERSION}-rm+zomb-pre8
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${STARTSCRIPT}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= delta@lackas.net
COMMENT= Client for Cisco 3000 VPN Concentrator
LIB_DEPENDS= gcrypt.10:${PORTSDIR}/security/libgcrypt-devel
STARTSCRIPT= vpnc-wrapper-1.9
USE_GMAKE= yes
USE_REINPLACE= yes
ALL_TARGET= vpnc
MAN8= vpnc.8
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
BROKEN= "Crashes on startup"
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/vpnc.c
@${REINPLACE_CMD} -e \
's|%%CC%%|${CC}|;s|%%CFLAGS%%|${CFLAGS}|' \
${WRKSRC}/Makefile
do-install:
@${INSTALL_PROGRAM} -m 751 ${WRKSRC}/vpnc ${PREFIX}/sbin/vpnc
@${CP} ${DISTDIR}/${STARTSCRIPT} ${WRKDIR}/vpnc.sh-fulltunnel
@${REINPLACE_CMD} -e 's|PREFIX=/usr/local|PREFIX=${PREFIX}|' ${WRKDIR}/vpnc.sh-fulltunnel
@${CP} ${FILESDIR}/vpnc.sh ${WRKDIR}
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKDIR}/vpnc.sh
@${INSTALL_SCRIPT} -m 755 ${WRKDIR}/vpnc.sh ${PREFIX}/etc/rc.d/vpnc.sh.sample
@${INSTALL_SCRIPT} -m 755 ${WRKDIR}/vpnc.sh-fulltunnel ${PREFIX}/etc/rc.d/vpnc.sh.sample-fulltunnel
@${INSTALL_DATA} -m 600 ${WRKSRC}/vpnc.conf ${PREFIX}/etc/vpnc.conf.sample
.if !defined(NO_INSTALL_MANPAGES)
@${INSTALL_MAN} ${FILESDIR}/vpnc.8 ${PREFIX}/man/man8
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>