Here's an update that brings in TLS and geoip support. Is anyone interested?
ChangeLog: https://github.com/UlricE/pen/blob/master/ChangeLog ok? Index: Makefile =================================================================== RCS file: /cvs/ports/net/pen/Makefile,v retrieving revision 1.16 diff -u -p -r1.16 Makefile --- Makefile 7 Nov 2014 12:44:28 -0000 1.16 +++ Makefile 19 Jul 2015 02:09:24 -0000 @@ -2,21 +2,24 @@ COMMENT= load balancer for simple TCP-based protocols -DISTNAME= pen-0.18.0 +DISTNAME= pen-0.29.0 + CATEGORIES= net -HOMEPAGE= http://siag.nu/pen/ -MASTER_SITES= http://siag.nu/pub/pen/ +HOMEPAGE= http://siag.nu/pen/ # GPLv2+ PERMIT_PACKAGE_CDROM= Yes -WANTLIB= c +WANTLIB += GeoIP c crypto ssl + +MASTER_SITES= http://siag.nu/pub/pen/ + +LIB_DEPENDS= net/GeoIP CONFIGURE_STYLE= gnu CONFIGURE_ARGS= --with-docdir=${PREFIX}/share/doc/pen - -post-install: - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pen +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/net/pen/distinfo,v retrieving revision 1.10 diff -u -p -r1.10 distinfo --- distinfo 18 Jan 2015 03:14:50 -0000 1.10 +++ distinfo 19 Jul 2015 02:09:24 -0000 @@ -1,2 +1,2 @@ -SHA256 (pen-0.18.0.tar.gz) = SKsqLKP1ZMthChDS1SUuz4cj7YOSusXR+6IIlGw2Zfo= -SIZE (pen-0.18.0.tar.gz) = 130308 +SHA256 (pen-0.29.0.tar.gz) = 8ZD46bu0D9NpsIDJpYvtpdFBG12a18bED62qKgNjGgU= +SIZE (pen-0.29.0.tar.gz) = 182198 Index: patches/patch-ssl_c =================================================================== RCS file: patches/patch-ssl_c diff -N patches/patch-ssl_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-ssl_c 19 Jul 2015 02:09:24 -0000 @@ -0,0 +1,23 @@ +$OpenBSD$ +--- ssl.c.orig Wed May 13 07:38:28 2015 ++++ ssl.c Sat Jul 18 20:09:09 2015 +@@ -272,15 +272,17 @@ static SSL_CTX *ssl_create_context(char *keyfile, char + cacert_file = NULL; + + switch (ssl_protocol) { +-#if 0 ++#ifndef OPENSSL_NO_SSL3 + case SRV_SSL_V2: + ssl_context = SSL_CTX_new(SSLv2_method()); + break; + #endif ++#ifndef OPENSSL_NO_SSL2 + case SRV_SSL_V3: + ssl_context = SSL_CTX_new(SSLv3_method()); + break; +- default: ++#endif ++ default: + case SRV_SSL_V23: + ssl_context = SSL_CTX_new(SSLv23_method()); + break; -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE