freebsd-ports/net/pen/Makefile
Danilo Egea Gondolfo a6b090988e - Re-add net/pen
This is pen, a load balancer for UDP and TCP based protocols such as
DNS, HTTP or SMTP. It allows several servers to appear as one to the
outside and automatically detects servers that are down and distributes
clients among the available servers. This gives high availability and
scalable performance.

PR:		236048
Submitted by:	Ronald Klop
2019-03-02 15:43:27 +00:00

44 lines
1 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= pen
PORTVERSION= 0.34.1
CATEGORIES= net
MASTER_SITES= http://siag.nu/pub/pen/
MAINTAINER= danilo@FreeBSD.org
COMMENT= Load balancer for UDP and TCP based protocols
LICENSE= GPLv2
USES= ssl
GNU_CONFIGURE= yes
USE_RC_SUBR= pen
CONFIGURE_ARGS= --with-daemon --with-docdir=${DOCSDIR} --without-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
post-patch:
@${REINPLACE_CMD} 's/-pg//' ${WRKSRC}/configure
.include <bsd.port.mk>