aboutsummaryrefslogtreecommitdiffstats
path: root/net/poptop/Makefile
blob: aedce37f323cea48b959547cb085c1ea2d823fc4 (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
49
50
51
52
53
54
55
56
57
58
# New ports collection makefile for:    poptop
# Date created:     04 October 1999
# Whom:         Nick Sayer <nsayer@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=   poptop
PORTVERSION=    1.2.1
PORTREVISION=   0
CATEGORIES= net
MASTER_SITES=   http://jaist.dl.sourceforge.net/sourceforge/poptop/ \
        http://easynews.dl.sourceforge.net/sourceforge/poptop/ \
        http://nchc.dl.sourceforge.net/sourceforge/poptop/ \
        http://optusnet.dl.sourceforge.net/sourceforge/poptop/ \
        http://mesh.dl.sourceforge.net/sourceforge/poptop/ \
        http://switch.dl.sourceforge.net/sourceforge/poptop/ \
        http://kent.dl.sourceforge.net/sourceforge/poptop/ \
        http://puzzle.dl.sourceforge.net/sourceforge/poptop/ \
        http://cogent.dl.sourceforge.net/sourceforge/poptop/ \
        http://citkit.dl.sourceforge.net/sourceforge/poptop/ \
        http://belnet.dl.sourceforge.net/sourceforge/poptop/ \
        ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   pptpd-${PORTVERSION:S/.b/-b/}

MAINTAINER= olmi@rentech.ru
COMMENT=    Windows 9x compatible PPTP (VPN) server

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

USE_GETOPT_LONG=    yes
USE_REINPLACE=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
MAKE_ARGS=  ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \
        AUTOHEADER="${TRUE}" \

MAN5=       pptpd.conf.5
MAN8=       pptpd.8 pptpctrl.8

.if !defined(WITH_KERNPPP)
CONFIGURE_ARGS+=    --with-bsdppp
.endif

post-patch:
.for file in bcrelay.c pptpd.c
    @${REINPLACE_CMD} -e 's|"out_getopt\.h"|<getopt.h>|g' ${WRKSRC}/${file}
.endfor
    @${REINPLACE_CMD} -e "s#%%PREFIX%%#${PREFIX}#" ${WRKSRC}/pptpd.8 ${WRKSRC}/pptpd.conf.5

post-install:
    ${INSTALL_DATA} ${WRKSRC}/samples/pptpd.conf \
        ${PREFIX}/etc/pptpd.conf.sample
    ${INSTALL_SCRIPT} ${FILESDIR}/pptpd.sh \
        ${PREFIX}/etc/rc.d/pptpd.sh.sample

.include <bsd.port.mk>