aboutsummaryrefslogtreecommitdiff
path: root/net/poptop/Makefile
blob: 226be5a1dc2f03dce05d110763869884dc24893d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Created by: Nick Sayer <nsayer@FreeBSD.org>
# $FreeBSD$

PORTNAME=	poptop
PORTVERSION=	1.4.0
PORTREVISION=	1
CATEGORIES=	net
MASTER_SITES=	SF/${PORTNAME}/pptpd/pptpd-${PORTVERSION} \
		SAMBA/ppp:pppd
DISTFILES=	pptpd-${PORTVERSION}${EXTRACT_SUFX} \
		${PPPD_DISTNAME}${EXTRACT_SUFX}:pppd

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Windows 9x compatible PPTP (VPN) server

LICENSE=	GPLv2
LICENSE_DISTFILES=	pptpd-${PORTVERSION}${EXTRACT_SUFX}

OPTIONS_DEFINE=	KERNPPP
KERNPPP_DESC=	Use kernel-space PPP

WRKSRC=		${WRKDIR}/pptpd-${PORTVERSION}

USES=		gmake
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-libwrap

USE_RC_SUBR=	pptpd

CFLAGS+=	-I${WRKDIR}/${PPPD_DISTNAME}

KERNPPP_CONFIGURE_OFF=	--with-bsdppp

PPPD_DISTNAME=	ppp-2.4.5

.include <bsd.port.options.mk>

post-patch:
.for i in pptpctrl.c pptpd.8 pptpd.conf.5
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/${i}
.endfor

post-install:
	(cd ${WRKSRC}/samples && ${INSTALL_DATA} pptpd.conf \
		${STAGEDIR}${PREFIX}/etc/pptpd.conf.sample)
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pptpd/pptpd-logwtmp.so

.include <bsd.port.mk>