pkgsrc/net/vtun/Makefile

60 lines
1.9 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.21 2003/08/30 22:51:29 jlam Exp $
DISTNAME= vtun-2.6
WRKSRC= ${WRKDIR}/vtun
CATEGORIES= net
Update to VTun 2.2. Changes since last pkg'ized release include: ver 2.2: Added support for new OpenBSD tun driver. Fixes for generic tun driver support. Configure extensions and fixes. Small cleanups. Documentation update. ver 2.1: Final stable 2.1 release. Small cleanups. ver 2.1b5: Fixed local address substitution for TCP connection. Fast, optimized udp_read function. Scripts update. ver 2.1b4: Bind UDP socket to the same address:port used for TCP connection. Fixed NOBUFS error handling for UDP sockets. Updated FreeBSD tun device support. Removed host name size limitation. Parser and Makefile fixes. CVS source tree access. ver 2.1b3: Locking code rewrite, should fix race conditions. Support for inetd and tcp wrapper. Several cleanups. Updated RPM spec. Initialization fixes. ver 2.1b2: Improved parser. New substitutions for command parameters (%a - local address, %A - remote address,...) allow to handle dynamic IPs more easily. Correct handling of single quotes and escaping '\'. Added 'reroute' script for Linux. Configure fixes. Documentation update. ver 2.1b1: Correct closing of unsuccessfully connected sockets. UDP session initialization fixes. New option 'multi', allows to gracefully handle multiple connections with the same host. New option 'srcaddr', allows to specify source address in form of interface, host_name and port. Unified interface for network device drivers and protocols. Solaris TUN/TAP driver support. SOCKS support. Several cleanups and optimizations. Improved Makefile and Configure. Configure automatically searches for headers and libraries. Documentation update. Binary package now linked with latest OpenSSL and LZO libraries. Updated packages for RedHat, OpenBSD, NetBSD, FreeBSD, Solaris.
2000-05-25 15:08:03 +02:00
MASTER_SITES= http://vtun.sourceforge.net/
2003-07-18 00:50:55 +02:00
MAINTAINER= hubertf@NetBSD.org
Update to VTun 2.2. Changes since last pkg'ized release include: ver 2.2: Added support for new OpenBSD tun driver. Fixes for generic tun driver support. Configure extensions and fixes. Small cleanups. Documentation update. ver 2.1: Final stable 2.1 release. Small cleanups. ver 2.1b5: Fixed local address substitution for TCP connection. Fast, optimized udp_read function. Scripts update. ver 2.1b4: Bind UDP socket to the same address:port used for TCP connection. Fixed NOBUFS error handling for UDP sockets. Updated FreeBSD tun device support. Removed host name size limitation. Parser and Makefile fixes. CVS source tree access. ver 2.1b3: Locking code rewrite, should fix race conditions. Support for inetd and tcp wrapper. Several cleanups. Updated RPM spec. Initialization fixes. ver 2.1b2: Improved parser. New substitutions for command parameters (%a - local address, %A - remote address,...) allow to handle dynamic IPs more easily. Correct handling of single quotes and escaping '\'. Added 'reroute' script for Linux. Configure fixes. Documentation update. ver 2.1b1: Correct closing of unsuccessfully connected sockets. UDP session initialization fixes. New option 'multi', allows to gracefully handle multiple connections with the same host. New option 'srcaddr', allows to specify source address in form of interface, host_name and port. Unified interface for network device drivers and protocols. Solaris TUN/TAP driver support. SOCKS support. Several cleanups and optimizations. Improved Makefile and Configure. Configure automatically searches for headers and libraries. Documentation update. Binary package now linked with latest OpenSSL and LZO libraries. Updated packages for RedHat, OpenBSD, NetBSD, FreeBSD, Solaris.
2000-05-25 15:08:03 +02:00
HOMEPAGE= http://vtun.sourceforge.net/
2001-03-08 11:24:20 +01:00
COMMENT= Virtual Tunnels over TCP/IP networks with traffic shaping
USE_BUILDLINK2= YES
USE_PKGINSTALL= YES
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --localstatedir=/var
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= --with-ssl-headers=${SSLBASE}/include/openssl
CONFIGURE_ARGS+= --with-ssl-lib=${SSLBASE}/lib
CONFIGURE_ARGS+= --with-lzo-headers=${BUILDLINK_PREFIX.liblzo}/include
CONFIGURE_ARGS+= --with-lzo-lib=${BUILDLINK_PREFIX.liblzo}/lib
ALL_TARGET= vtund
DOCDIR= ${PREFIX}/share/doc/vtun
EGDIR= ${PREFIX}/share/examples/vtun
LOCKDIR= /var/run/vtund
LOGDIR= /var/log/vtund
CONF_FILES_PERMS= ${EGDIR}/vtund.conf ${PKG_SYSCONFDIR}/vtund.conf \
${ROOT_USER} ${ROOT_GROUP} 0600
OWN_DIRS= ${LOCKDIR} ${LOGDIR}
post-build:
@cd ${WRKSRC}; for file in vtund.8; do \
${SED} -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g" \
$${file} > $${file}.fixed; \
${MV} -f $${file}.fixed $${file}; \
done
${SED} -e "/^[^#]/s|^|#|" -e "s|^$$|#|" ${WRKSRC}/vtund.conf \
> ${WRKDIR}/vtund.conf
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vtund ${PREFIX}/sbin
${INSTALL_DATA_DIR} ${DOCDIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/README.Setup ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.Shaper ${DOCDIR}
${INSTALL_DATA} ${WRKDIR}/vtund.conf ${EGDIR}/vtund.conf
${INSTALL_MAN} ${WRKSRC}/vtund.conf.5 ${PREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/vtund.8 ${PREFIX}/man/man8
${RM} -f ${PREFIX}/man/man8/vtun.8
${LN} -s vtund.8 ${PREFIX}/man/man8/vtun.8
.include "../../archivers/liblzo/buildlink2.mk"
.include "../../devel/zlib/buildlink2.mk"
.include "../../security/openssl/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"