aboutsummaryrefslogtreecommitdiff
path: root/net/vtun/Makefile
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-02-26 11:03:15 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-02-26 11:03:15 +0000
commit114a05da4afdd83ccbe72f3d1a3897deb04e12cb (patch)
tree22e8c17e67259f3498bcca79927649ecc03869fe /net/vtun/Makefile
parentaacd485c82ad9fb4d8b79456333333bfba1a21ba (diff)
downloadports-114a05da4afdd83ccbe72f3d1a3897deb04e12cb.tar.gz
ports-114a05da4afdd83ccbe72f3d1a3897deb04e12cb.zip
Notes
Diffstat (limited to 'net/vtun/Makefile')
-rw-r--r--net/vtun/Makefile29
1 files changed, 11 insertions, 18 deletions
diff --git a/net/vtun/Makefile b/net/vtun/Makefile
index 214407cc1a64..1a1b6fe93ea1 100644
--- a/net/vtun/Makefile
+++ b/net/vtun/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= vtun
-PORTVERSION= 2.6
-PORTREVISION= 2
+PORTVERSION= 3.0.0
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -22,38 +21,32 @@ MAN8= vtund.8
MLINKS= vtund.8 vtun.8
USE_OPENSSL= yes
-USE_AUTOTOOLS= autoconf:213
+USE_AUTOTOOLS= autoconf:259
CONFIGURE_ARGS= --localstatedir=/var \
--with-ssl-headers=${OPENSSLBASE}/include/openssl \
--with-ssl-lib=${OPENSSLBASE}/lib \
--with-lzo-headers=${LOCALBASE}/include \
--with-lzo-lib=${LOCALBASE}/lib
CONFIGURE_ENV= YACC=${YACC}
-USE_RC_SUBR= yes
-
-WRKSRC= ${WRKDIR}/vtun
+USE_RC_SUBR= vtunclient vtund
ALL_TARGET= vtund
-RC_SCRIPT_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
+
+DOCS= ChangeLog Credits FAQ README README.LZO README.Setup \
+ README.Shaper TODO
.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
-
post-install:
@${INSTALL_DATA} ${WRKSRC}/vtund.conf ${PREFIX}/etc/vtund.conf.example
- @${MKDIR} ${PREFIX}/share/doc/vtund
-.for doc in FAQ README README.Setup README.Shaper
- @${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/vtund
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for doc in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
- @${INSTALL_SCRIPT} ${WRKDIR}/vtund.sh ${PREFIX}/etc/rc.d
- @${INSTALL_SCRIPT} ${WRKDIR}/vtunclient.sh ${PREFIX}/etc/rc.d
+.endif
.include <bsd.port.mk>