1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

- 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
This commit is contained in:
Danilo Egea Gondolfo 2019-03-02 15:43:27 +00:00
parent d3af1e8930
commit a6b090988e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=494409
6 changed files with 82 additions and 1 deletions

1
MOVED
View File

@ -11597,7 +11597,6 @@ ftp/proftpd-mod_geoip||2019-02-16|Has expired: Uses legacy GeoIP 1 format which
net/go-geoip||2019-02-16|Has expired: Uses legacy GeoIP 1 format which no longer works; switch to GeoIP 2 where possible
net/py-GeoIP|net/py-GeoIP2|2019-02-16|Has expired: Uses legacy GeoIP 1 format which no longer works; switch to GeoIP 2 where possible
net/pecl-geoip||2019-02-16|Has expired: Uses legacy GeoIP 1 format which no longer works; switch to GeoIP 2 where possible
net/pen||2019-02-16|Has expired: Uses legacy GeoIP 1 format which no longer works; switch to GeoIP 2 where possible
net/subnetcalc||2019-02-16|Has expired: Uses legacy GeoIP 1 format which no longer works; switch to GeoIP 2 where possible
net/p5-Geo-IP||2019-02-16|Has expired: Uses legacy GeoIP 1 format which no longer works; switch to GeoIP 2 where possible
net/rubygem-geoip||2019-02-16|Has expired: Uses legacy GeoIP 1 format which no longer works; switch to GeoIP 2 where possible

View File

@ -968,6 +968,7 @@
SUBDIR += pecl-smbclient
SUBDIR += pecl-yaz
SUBDIR += pecl-zmq
SUBDIR += pen
SUBDIR += pfinger
SUBDIR += phamm
SUBDIR += php71-ldap

44
net/pen/Makefile Normal file
View File

@ -0,0 +1,44 @@
# 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>

3
net/pen/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1487541920
SHA256 (pen-0.34.1.tar.gz) = 2b640795029df9d1672e17202c109cc5d42538f6754a6070dc27da640881e864
SIZE (pen-0.34.1.tar.gz) = 184622

27
net/pen/files/pen.in Normal file
View File

@ -0,0 +1,27 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: pen
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable pen:
#
# pen_enable="YES"
# pen_flags="<set as needed>"
. /etc/rc.subr
name=pen
rcvar=pen_enable
command=%%PREFIX%%/bin/pen
pen_enable=${pen_enable:-"NO"}
load_rc_config $name
run_rc_command "$1"

7
net/pen/pkg-descr Normal file
View File

@ -0,0 +1,7 @@
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.
WWW: http://siag.nu/pen/