# New ports collection makefile for:	pptpclient
# Date created:				19 June 1999
# Whom:					John Polstra <jdp@freebsd.org>
#
# $FreeBSD: ports/net/pptpclient/Makefile,v 1.17 2008/05/18 19:55:03 chinsan Exp $
#

PORTNAME=	pptpclient
PORTVERSION=	1.7.2
CATEGORIES=	net
MASTER_SITES=	SF
DISTNAME=	pptp-${PORTVERSION}

MAINTAINER=	chinsan@FreeBSD.org
COMMENT=	PPTP client for establishing a VPN link with an NT server

USE_PERL5=	yes

MAN8=		pptp.8

.include <bsd.port.pre.mk>

MAKE_ARGS=	DEBUG=""
.if ${OSVERSION} < 500041
MAKE_ARGS+=	INCLUDE="${CPPFLAGS}" \
		LDFLAGS="${LDFLAGS}"
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/pptp ${PREFIX}/sbin
	${MKDIR} ${PREFIX}/share/examples/pptpclient
	${INSTALL_DATA} ${FILESDIR}/README ${PREFIX}/share/examples/pptpclient
	${INSTALL_DATA} ${FILESDIR}/ppp.conf ${PREFIX}/share/examples/pptpclient
	${INSTALL_MAN} ${WRKSRC}/pptp.8 ${PREFIX}/man/man8

.include <bsd.port.post.mk>
