2000-07-02 10:31:21 +02:00
|
|
|
# New ports collection makefile for: vtun
|
|
|
|
# Date created: 05 Feb 2000
|
|
|
|
# Whom: Kevin Lo <kevlo@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= vtun
|
2003-06-02 00:12:28 +02:00
|
|
|
PORTVERSION= 2.6
|
2000-07-02 10:31:21 +02:00
|
|
|
CATEGORIES= net
|
2003-04-11 10:57:11 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2000-07-02 10:31:21 +02:00
|
|
|
|
2003-04-11 10:57:11 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Virtual Tunnels over TCP/IP networks with traffic shaping
|
2000-07-02 10:31:21 +02:00
|
|
|
|
|
|
|
LIB_DEPENDS= lzo.1:${PORTSDIR}/archivers/lzo
|
|
|
|
|
|
|
|
MAN5= vtund.conf.5
|
|
|
|
MAN8= vtund.8
|
2001-06-08 21:06:09 +02:00
|
|
|
MLINKS= vtund.8 vtun.8
|
2000-07-02 10:31:21 +02:00
|
|
|
|
|
|
|
USE_OPENSSL= yes
|
2004-04-10 19:26:55 +02:00
|
|
|
USE_AUTOCONF_VER= 213
|
2003-06-02 00:12:28 +02:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var \
|
2002-04-17 15:16:03 +02:00
|
|
|
--with-ssl-headers=${OPENSSLBASE}/include/openssl \
|
|
|
|
--with-ssl-lib=${OPENSSLBASE}/lib \
|
2000-07-02 10:31:21 +02:00
|
|
|
--with-lzo-headers=${LOCALBASE}/include \
|
2001-02-19 15:08:39 +01:00
|
|
|
--with-lzo-lib=${LOCALBASE}/lib
|
2003-06-02 00:12:28 +02:00
|
|
|
CONFIGURE_ENV= YACC=${YACC}
|
2004-08-26 11:18:58 +02:00
|
|
|
USE_RC_SUBR= yes
|
2000-07-02 10:31:21 +02:00
|
|
|
|
2002-03-25 16:55:49 +01:00
|
|
|
WRKSRC= ${WRKDIR}/vtun
|
|
|
|
|
|
|
|
ALL_TARGET= vtund
|
2004-08-26 11:18:58 +02:00
|
|
|
RC_SCRIPT_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
|
|
|
|
|
|
|
.if defined(VTUN_EXTENDED_MODE)
|
|
|
|
# Obtained from http://home.jp.FreeBSD.org/~simokawa/vtun-v6.html
|
|
|
|
EXTRA_PATCHES= ${FILESDIR}/extra-tun_dev.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@${SED} ${RC_SCRIPT_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
<${FILESDIR}/vtund.sh >${WRKDIR}/vtund.sh
|
|
|
|
@${SED} ${RC_SCRIPT_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
<${FILESDIR}/vtunclient.sh >${WRKDIR}/vtunclient.sh
|
2000-07-02 10:31:21 +02:00
|
|
|
|
2001-02-19 15:08:39 +01:00
|
|
|
post-install:
|
2001-03-07 04:29:11 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/vtund.conf ${PREFIX}/etc/vtund.conf.example
|
2001-02-19 15:08:39 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/doc/vtund
|
|
|
|
.for doc in FAQ README README.Setup README.Shaper
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/vtund
|
|
|
|
.endfor
|
2004-08-26 11:18:58 +02:00
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/vtund.sh ${PREFIX}/etc/rc.d
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/vtunclient.sh ${PREFIX}/etc/rc.d
|
2001-02-19 15:08:39 +01:00
|
|
|
|
2000-07-02 10:31:21 +02:00
|
|
|
.include <bsd.port.mk>
|