# $OpenBSD$

COMMENT=	Mesh-routing multi-platform VPN daemon

DISTNAME=	tinc-1.0.24
CATEGORIES=	net

HOMEPAGE=	http://www.tinc-vpn.org
MASTER_SITES=	${HOMEPAGE}/packages/

MAINTAINER=	Gregor Best <gbe@unobtanium.de>

# GPLv2+
PERMIT_PACKAGE_CDROM=	Yes
PERMIT_PACKAGE_FTP=	Yes
PERMIT_DISTFILES_FTP=	Yes

WANTLIB=	c crypto lzo2 z
LIB_DEPENDS=	archivers/lzo2
CONFIGURE_ARGS=	--with-lzo=${LOCALBASE}

NO_TEST=	Yes
CONFIGURE_STYLE=	gnu
USE_GROFF=	Yes

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tinc
	tar -C ${PREFIX}/share/examples/tinc \
	    -xzf ${WRKSRC}/doc/sample-config.tar.gz
	chmod -R a+r ${PREFIX}/share/examples/tinc

.include	<bsd.port.mk>