2001-03-31 04:17:37 +02:00
|
|
|
# New ports collection makefile for: vpnd
|
|
|
|
# Date created: 25 March 2001
|
|
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= vpnd
|
2005-11-25 20:25:57 +01:00
|
|
|
PORTVERSION= 1.1.2
|
2001-03-31 04:17:37 +02:00
|
|
|
CATEGORIES= security
|
2005-11-25 20:25:57 +01:00
|
|
|
MASTER_SITES= http://vpnd.dotsrc.org/archive/ \
|
2002-03-15 01:31:54 +01:00
|
|
|
http://atreides.freenix.no/~anders/
|
2001-03-31 04:17:37 +02:00
|
|
|
|
2007-03-01 22:31:41 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= VPN daemon offering transparent blowfish encryption between networks
|
2001-03-31 04:17:37 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
HAS_CONFIGURE= yes
|
2005-04-24 20:05:01 +02:00
|
|
|
USE_RC_SUBR= yes
|
2001-03-31 04:17:37 +02:00
|
|
|
|
2005-04-24 20:05:01 +02:00
|
|
|
PLIST_FILES= sbin/vpnd etc/rc.d/vpnd.sh etc/vpnd.conf.sample etc/vpnd.chat.sample
|
|
|
|
PORTDOCS= README FAQ.TXT SPEED.TXT VERSIONS
|
2001-03-31 04:17:37 +02:00
|
|
|
|
|
|
|
post-patch:
|
2005-04-24 20:05:01 +02:00
|
|
|
.for f in README globals.c vpnd.c vpnd.conf
|
|
|
|
@${REINPLACE_CMD} -e 's,/etc,${PREFIX}/etc,g' ${WRKSRC}/${f}
|
|
|
|
.endfor
|
|
|
|
@${REINPLACE_CMD} -e "s,machine/param.h,sys/param.h,g" ${WRKSRC}/vpnd.h
|
|
|
|
@${REINPLACE_CMD} -e "s@-O3@${CFLAGS}@g; s@gcc@${CC}@g" ${WRKSRC}/${CONFIGURE_SCRIPT}
|
2001-03-31 04:17:37 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/vpnd ${PREFIX}/sbin/vpnd
|
2005-04-24 20:05:01 +02:00
|
|
|
@${INSTALL_SCRIPT} ${FILESDIR}/vpnd.sh ${PREFIX}/etc/rc.d/vpnd.sh
|
2001-03-31 04:17:37 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/vpnd.conf ${PREFIX}/etc/vpnd.conf.sample
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/vpnd.chat ${PREFIX}/etc/vpnd.chat.sample
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-04-22 03:38:22 +02:00
|
|
|
@${INSTALL} -d -m 0755 ${DOCSDIR}
|
2005-04-24 20:05:01 +02:00
|
|
|
.for i in ${PORTDOCS}
|
2001-12-24 03:17:17 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
2001-03-31 04:17:37 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2007-04-20 17:12:29 +02:00
|
|
|
.include <bsd.port.mk>
|