diff --git a/MOVED b/MOVED index 9852fbc2aa9b..5af1e17cc0f9 100644 --- a/MOVED +++ b/MOVED @@ -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 diff --git a/net/Makefile b/net/Makefile index 3df552ae8cd4..1109b3428220 100644 --- a/net/Makefile +++ b/net/Makefile @@ -968,6 +968,7 @@ SUBDIR += pecl-smbclient SUBDIR += pecl-yaz SUBDIR += pecl-zmq + SUBDIR += pen SUBDIR += pfinger SUBDIR += phamm SUBDIR += php71-ldap diff --git a/net/pen/Makefile b/net/pen/Makefile new file mode 100644 index 000000000000..37d28b295a59 --- /dev/null +++ b/net/pen/Makefile @@ -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 diff --git a/net/pen/distinfo b/net/pen/distinfo new file mode 100644 index 000000000000..14f7a1e476e7 --- /dev/null +++ b/net/pen/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1487541920 +SHA256 (pen-0.34.1.tar.gz) = 2b640795029df9d1672e17202c109cc5d42538f6754a6070dc27da640881e864 +SIZE (pen-0.34.1.tar.gz) = 184622 diff --git a/net/pen/files/pen.in b/net/pen/files/pen.in new file mode 100644 index 000000000000..6f4986633097 --- /dev/null +++ b/net/pen/files/pen.in @@ -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="" + +. /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" diff --git a/net/pen/pkg-descr b/net/pen/pkg-descr new file mode 100644 index 000000000000..222d98bd4f69 --- /dev/null +++ b/net/pen/pkg-descr @@ -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/