pkgsrc/net/vtun/Makefile
adam 0731afcd8b Changes 3.0.3:
- Delayed UDP connection
- makefile ignores LDFLAGS
- mem leak in config parser
- vtun3 server should offer vtun2-compatible encryption
- Parallel make Makefile.in race condition
- link timeout in UDP mode
  Minor fixes in lfd_lzo.c to ensure correct type casting
  Add description of "keepalive timeout:count;" syntax
   to man page and vtund.conf sample.
  Remove doubled if(send_a_file){...} block in linkfd.c.
- reduce connection chatter
- improve linking on rebuilds
2014-04-20 21:03:24 +00:00

56 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.50 2014/04/20 21:03:24 adam Exp $
DISTNAME= vtun-3.0.3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=vtun/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://vtun.sourceforge.net/
COMMENT= Virtual Tunnels over TCP/IP networks with traffic shaping
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
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.lzo}/include/lzo
CONFIGURE_ARGS+= --with-lzo-lib=${BUILDLINK_PREFIX.lzo}/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 \
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 0600
OWN_DIRS= ${LOCKDIR} ${LOGDIR}
INSTALLATION_DIRS= ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 sbin
INSTALLATION_DIRS+= ${EGDIR} ${DOCDIR}
SUBST_CLASSES+= fix-man
SUBST_STAGE.fix-man= pre-configure
SUBST_MESSAGE.fix-man= Fixing man pages.
SUBST_FILES.fix-man= vtund.8
SUBST_VARS.fix-man= PKG_SYSCONFDIR
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vtund ${DESTDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.Setup ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/README.Shaper ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/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
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
.include "../../net/solaris-tap/buildlink3.mk"
.endif
.include "../../archivers/lzo/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"