mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
3294db02f6
- Update manpage PR: ports/66624 Submitted by: maintainer
67 lines
1.9 KiB
Makefile
67 lines
1.9 KiB
Makefile
# New ports collection makefile for: vpnc
|
|
# Date created: 15 December 2003
|
|
# Whom: Christian Lackas
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= vpnc
|
|
PORTVERSION= 0.2
|
|
PORTREVISION= 8
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://www.unix-ag.uni-kl.de/~massar/vpnc/:source \
|
|
http://dragon.roe.ch/mirrors/distfiles/vpnc/:script
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-rm+zomb.1
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source ${STARTSCRIPT}:script
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= delta@lackas.net
|
|
COMMENT= Client for Cisco 3000 VPN Concentrator
|
|
|
|
LIB_DEPENDS= gcrypt.12:${PORTSDIR}/security/libgcrypt
|
|
|
|
STARTSCRIPT= vpnc-wrapper-1.10
|
|
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)
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/vpnc.8
|
|
@${INSTALL_MAN} ${WRKSRC}/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>
|