aboutsummaryrefslogtreecommitdiffstats
path: root/net/pen/Makefile
blob: 6de0adb80dc596b4b7b7c1517953a84d233e86b1 (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   pen
PORTVERSION=    0.29.0
CATEGORIES= net
MASTER_SITES=   http://siag.nu/pub/pen/

MAINTAINER= danilo@FreeBSD.org
COMMENT=    Load balancer for UDP and TCP based protocols

LIB_DEPENDS=    libGeoIP.so:${PORTSDIR}/net/GeoIP

GNU_CONFIGURE=  yes
USE_OPENSSL=    yes
USE_RC_SUBR=    pen
CONFIGURE_ARGS= --with-daemon --with-docdir=${DOCSDIR} --with-geoip \
        --with-ssl=${OPENSSLBASE}
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib

PORTDOCS=   penstats HOWTO AUTHORS README ChangeLog COPYING
PLIST_FILES=    bin/mergelogs bin/pen bin/penctl bin/penlog \
        bin/penlogd man/man1/mergelogs.1.gz \
        man/man1/pen.1.gz man/man1/penctl.1.gz \
        man/man1/penlog.1.gz man/man1/penlogd.1.gz

OPTIONS_DEFINE= DEBUG DOCS KQUEUE
OPTIONS_DEFAULT=KQUEUE
KQUEUE_DESC=    Use kqueue backend

.if defined(WITH_FDSETSIZE)
CONFIGURE_ARGS+=    --with-fd_setsize=${WITH_FDSETSIZE}
.endif

KQUEUE_CONFIGURE_ON=    --with-kqueue
KQUEUE_CONFIGURE_OFF=   --with-poll
DEBUG_CONFIGURE_ENABLE= debugging

.include <bsd.port.pre.mk>

# DSR needs a newer version of the netmap's API
.if ${OSVERSION} < 903000 || (${OSVERSION} >= 1000000 && ${OSVERSION} < 1001000)
CONFIGURE_ARGS+=    --without-dsr
.endif

post-patch:
    @${REINPLACE_CMD} 's/-pg//' ${WRKSRC}/configure

.include <bsd.port.post.mk>