sthen cba269f89d import ports/net/tinc, from Rafael Sadowski with tweaks from jca and myself
OK jca

tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and
encryption to create a secure private network between hosts on the Internet.

Because the tunnel appears to the IP level network code as a normal network
device, there is no need to adapt any existing software.  This tunnelling
allows VPN sites to share information with each other over the Internet
without exposing any information to others.

A single tinc daemon can accept more than one connection at a time, thus
making it possible to create larger virtual networks, because some
limitations are circumvented.

Instead of most other VPN implementations, tinc encapsulates each network
packet in its own UDP packet, instead of encapsulating all into one TCP or
even PPP over TCP stream. This results in lower latencies, less overhead,
and in general better responsiveness and throughput.
2015-11-03 20:07:47 +00:00

35 lines
856 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2015/11/03 20:07:47 sthen Exp $
COMMENT = Virtual Private Network (VPN) daemon
DISTNAME = tinc-1.0.26
CATEGORIES = net security
HOMEPAGE = http://www.tinc-vpn.org/
MAINTAINER = Rafael Sadowski <rafael@sizeofvoid.org>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB += c crypto lzo2 z
MASTER_SITES = http://www.tinc-vpn.org/packages/
LIB_DEPENDS += archivers/lzo2
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-extract:
cd ${WRKSRC}/doc && tar xzf sample-config.tar.gz
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tinc
cp -r ${WRKSRC}/doc/sample-config/* ${PREFIX}/share/examples/tinc/
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/tinc/
chmod -R u=rwX,go=rX ${PREFIX}/share/examples/tinc/*
.include <bsd.port.mk>