# ex:ts=8
# Ports collection makefile for:	tinc
# Date created:			Jul 11, 2002
# Whom:				ijliao
#
# $FreeBSD: ports/security/tinc/Makefile,v 1.7 2003/02/21 16:38:34 nectar Exp $
#

PORTNAME=	tinc
PORTVERSION=	1.0p8
PORTREVISION=	1
CATEGORIES=	security
MASTER_SITES=	http://tinc.nl.linux.org/packages/ \
		ftp://ftp.wiretapped.net/pub/security/network-security/tinc/ \
		http://the.wiretapped.net/security/network-security/tinc/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/p/pre/}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A Virtual Private Network (VPN) daemon

LIB_DEPENDS=	intl:${PORTSDIR}/devel/gettext

USE_OPENSSL=	yes
USE_REINPLACE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib" \
		MAKEINFO="makeinfo --no-split"

MAN5=	tinc.conf.5
MAN8=	tincd.8

pre-configure:
	${REINPLACE_CMD} \
	    's/OpenSSL_add_all_algorithms/OpenSSL_add_all_ciphers/' \
	    ${WRKSRC}/configure

post-extract:
	@${RM} -f ${WRKSRC}/doc/tinc.info*

.include <bsd.port.mk>
