Please give the attached patch a whirl. It updates Varnish Cache to version 3.0.4. Tested myself on i386 -current.
OK to commit? jim@
? pkg/varnishd.rc Index: Makefile =================================================================== RCS file: /cvs/ports/www/varnish/Makefile,v retrieving revision 1.14 diff -u -p -r1.14 Makefile --- Makefile 21 Mar 2013 08:48:55 -0000 1.14 +++ Makefile 11 Jul 2013 21:34:19 -0000 @@ -4,7 +4,7 @@ SHARED_ONLY = Yes COMMENT = high-performance HTTP accelerator -DISTNAME = varnish-3.0.2 +DISTNAME = varnish-3.0.4 CATEGORIES = www SHARED_LIBS = varnishapi 1.0 @@ -16,7 +16,7 @@ HOMEPAGE = http://www.varnish-cache.org # BSD PERMIT_PACKAGE_CDROM = Yes -WANTLIB = c curses edit m pcre pthread +WANTLIB = c curses m pcre pthread readline termcap BUILD_DEPENDS = textproc/py-docutils LIB_DEPENDS = devel/pcre @@ -25,7 +25,7 @@ MASTER_SITES = http://repo.varnish-cach USE_GROFF = Yes CONFIGURE_STYLE = autoconf -AUTOCONF_VERSION = 2.68 +AUTOCONF_VERSION = 2.69 TEST_TARGET = check Index: distinfo =================================================================== RCS file: /cvs/ports/www/varnish/distinfo,v retrieving revision 1.4 diff -u -p -r1.4 distinfo --- distinfo 23 Dec 2011 13:06:30 -0000 1.4 +++ distinfo 11 Jul 2013 21:34:19 -0000 @@ -1,5 +1,2 @@ -MD5 (varnish-3.0.2.tar.gz) = yOrgqrvma22qvfOh9YzUeg== -RMD160 (varnish-3.0.2.tar.gz) = YJODmBW6chB/orUvChmBZ6Omt5s= -SHA1 (varnish-3.0.2.tar.gz) = kG8VNst+co0Y2UJWd5B65yOUPfc= -SHA256 (varnish-3.0.2.tar.gz) = lz9gYl6WkOCYnhu8c8N+pT/GKRuPewPWF7dvgISkokM= -SIZE (varnish-3.0.2.tar.gz) = 1977852 +SHA256 (varnish-3.0.4.tar.gz) = TgRMy1x2Iivd+JyAjxPqj2aXeXJnWuy0ipIPaACtD3k= +SIZE (varnish-3.0.4.tar.gz) = 2081361 Index: patches/patch-bin_varnishadm_varnishadm_c =================================================================== RCS file: patches/patch-bin_varnishadm_varnishadm_c diff -N patches/patch-bin_varnishadm_varnishadm_c --- patches/patch-bin_varnishadm_varnishadm_c 23 Dec 2011 13:06:30 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,15 +0,0 @@ -$OpenBSD: patch-bin_varnishadm_varnishadm_c,v 1.1 2011/12/23 13:06:30 jasper Exp $ ---- bin/varnishadm/varnishadm.c.orig Mon Oct 24 03:25:09 2011 -+++ bin/varnishadm/varnishadm.c Tue Nov 29 21:32:59 2011 -@@ -38,7 +38,11 @@ - #include <sys/socket.h> - - #ifdef HAVE_LIBEDIT -+#ifdef HAVE_READLINE_READLINE_H -+#include <readline/readline.h> -+#else - #include <editline/readline.h> -+#endif - #endif - - #include "vcli.h" Index: patches/patch-bin_varnishd_mgt_pool_c =================================================================== RCS file: patches/patch-bin_varnishd_mgt_pool_c diff -N patches/patch-bin_varnishd_mgt_pool_c --- patches/patch-bin_varnishd_mgt_pool_c 23 Dec 2011 13:06:30 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,15 +0,0 @@ -$OpenBSD: patch-bin_varnishd_mgt_pool_c,v 1.3 2011/12/23 13:06:30 jasper Exp $ ---- bin/varnishd/mgt_pool.c.orig Mon Oct 24 03:25:13 2011 -+++ bin/varnishd/mgt_pool.c Tue Nov 29 20:39:42 2011 -@@ -78,7 +78,11 @@ tweak_stack_size(struct cli *cli, const struct parspec - unsigned low, u; - char buf[12]; - -+#if defined (__OpenBSD__) -+ low = PTHREAD_STACK_MIN; -+#else - low = sysconf(_SC_THREAD_STACK_MIN); -+#endif - - if (arg != NULL && !strcmp(arg, "32bit")) { - u = 65536; Index: patches/patch-configure_ac =================================================================== RCS file: patches/patch-configure_ac diff -N patches/patch-configure_ac --- patches/patch-configure_ac 23 Dec 2011 13:06:30 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,39 +0,0 @@ -$OpenBSD: patch-configure_ac,v 1.1 2011/12/23 13:06:30 jasper Exp $ ---- configure.ac.orig Mon Oct 24 03:25:13 2011 -+++ configure.ac Tue Nov 29 21:30:07 2011 -@@ -147,9 +147,23 @@ fi - AC_SUBST(PCRE_CFLAGS) - AC_SUBST(PCRE_LIBS) - --PKG_CHECK_MODULES([LIBEDIT], [libedit], -- [AC_DEFINE([HAVE_LIBEDIT], [1], [Define we have libedit])], -- [AC_MSG_WARN([libedit not found, disabling libedit support])]) -+case $target in -+*-*-*bsd*) -+ AC_CHECK_HEADERS([readline/readline.h]) -+ AC_CHECK_LIB(edit, el_init, -+ [ AC_DEFINE([HAVE_LIBEDIT], [1], [Define we have libedit]) -+ LIBEDIT_CFLAGS="" -+ LIBEDIT_LIBS="-ledit ${CURSES_LIBS}" -+ ], -+ [AC_MSG_WARN([libedit not found, disabling libedit support])], -+ [${CURSES_LIBS}]) -+ ;; -+*) -+ PKG_CHECK_MODULES([LIBEDIT], [libedit], -+ [AC_DEFINE([HAVE_LIBEDIT], [1], [Define we have libedit])], -+ [AC_MSG_WARN([libedit not found, disabling libedit support])]) -+ ;; -+esac - - # Checks for header files. - AC_HEADER_STDC -@@ -341,7 +355,7 @@ AC_ARG_ENABLE(kqueue, - - if test "$enable_kqueue" = yes; then - case $target in -- *-*-freebsd* | *-*-darwin9* | *-*-netbsd* ) -+ *-*-freebsd* | *-*-darwin9* | *-*-netbsd* | *-*-openbsd*) - AC_CHECK_FUNCS([kqueue]) - ;; - *-*-bsd*) Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/www/varnish/pkg/PLIST,v retrieving revision 1.4 diff -u -p -r1.4 PLIST --- pkg/PLIST 23 Dec 2011 13:06:30 -0000 1.4 +++ pkg/PLIST 11 Jul 2013 21:34:19 -0000 @@ -52,3 +52,4 @@ share/examples/varnish/default.vcl @sample ${SYSCONFDIR}/varnish/default.vcl @exec-add mkdir -p /var/varnish @extraunexec rm -fr /var/varnish +@rcscript ${RCDIR}/varnishd