aboutsummaryrefslogtreecommitdiffstats
path: root/net/frickin/Makefile
blob: f33abb0b6acebb32a6ad019ab140c5fa713ab656 (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
# New ports collection makefile for:    frickin
# Date created:             2 December 2006
# Whom:                 Alex Miller <asm@asm.kiev.ua>
#
# $FreeBSD$
#

PORTNAME=   frickin
DISTVERSION=    2.0BETA2
CATEGORIES= net
MASTER_SITES=   SF
EXTRACT_SUFX=   .tgz

MAINTAINER= asm@asm.kiev.ua
COMMENT=    Frickin PPTP Proxy

WRKSRC=     ${WRKDIR}/${PORTNAME}
USE_RC_SUBR=    frickin.sh
SUB_FILES=  pkg-message
PORTDOCS=   INSTALL LICENSE
PLIST_FILES=    sbin/frickin2 etc/frickin.conf.sample

post-patch:
    @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g;' \
    ${WRKSRC}/src/Makefile.FreeBSD

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME}2 ${PREFIX}/sbin/${PORTNAME}2
    ${INSTALL_DATA} ${WRKSRC}/frickin.conf.default ${PREFIX}/etc/frickin.conf.sample

.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}

.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600000
IGNORE=     does not compile with old version of pf
.endif

.if ${OSVERSION} >= 700042
BROKEN=     does not compile with gcc 4.2
.endif

.include <bsd.port.post.mk>