pkgsrc/net/vtun/Makefile

65 lines
2.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.42 2010/01/17 12:02:36 wiz Exp $
DISTNAME= vtun-2.6
PKGREVISION= 8
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/
PATCHFILES= vtun-26to30.patch
PATCH_SITES+= ${MASTER_SITE_LOCAL}
PATCH_DIST_STRIP= -p1
2005-02-22 03:13:29 +01:00
MAINTAINER= cjs@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
2008-06-20 03:09:05 +02:00
PKG_DESTDIR_SUPPORT= user-destdir
WRKSRC= ${WRKDIR}/vtun
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
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
BUILD_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}
2008-06-20 03:09:05 +02:00
INSTALLATION_DIRS= ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin ${EGDIR} ${DOCDIR}
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:
2008-06-20 03:09:05 +02:00
${INSTALL_PROGRAM} ${WRKSRC}/vtund ${DESTDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.Crypto ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.Setup ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.Shaper ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKDIR}/vtund.conf ${DESTDIR}${EGDIR}/vtund.conf
${INSTALL_MAN} ${WRKSRC}/vtund.conf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
${INSTALL_MAN} ${WRKSRC}/vtund.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
${LN} -s vtund.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/vtun.8
2004-04-11 09:23:57 +02:00
.include "../../archivers/liblzo/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"