The default hash algorithm as of Varnish 2.1 is "critbit". The FreeBSD varnish ports/packages have run the varnish daemon with the "classic" algorithm due to an oversight. This update corrects the default to adhere to the recommendation of upstream. Submitted by: Mark Staudinger <mark staudinger AT nyi net>
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= varnish
|
|
PORTVERSION= 5.0.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://repo.varnish-cache.org/source/
|
|
PKGNAMESUFFIX= 5
|
|
|
|
MAINTAINER= feld@FreeBSD.org
|
|
COMMENT= High-performance HTTP accelerator
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
LIB_DEPENDS= libpcre.so:devel/pcre
|
|
|
|
CONFLICTS= varnish-2.* varnish-3.* varnish4-4.*
|
|
BROKEN_arm= does not configure
|
|
|
|
USES= autoreconf cpe gmake libedit libtool ncurses pathfix \
|
|
pkgconfig python:2,build readline shebangfix
|
|
SHEBANG_FILES= lib/libvcc/vmodtool.py
|
|
CPE_VENDOR= varnish-cache
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --localstatedir=${PREFIX} --enable-tests
|
|
CONFIGURE_ENV= RST2MAN=true
|
|
USE_LDCONFIG= yes
|
|
INSTALL_TARGET= install-strip
|
|
|
|
USERS= varnish varnishlog
|
|
GROUPS= varnish
|
|
|
|
USE_RC_SUBR= varnishd varnishlog varnishncsa
|
|
.if defined(NO_INET6) || defined(WITHOUT_INET6)
|
|
BAD_TESTS+= r00832
|
|
EXTRA_PATCHES+= ${FILESDIR}/no-inet6.patch
|
|
.endif
|
|
|
|
post-patch:
|
|
.if defined(BAD_TESTS)
|
|
${RM} ${BAD_TESTS:C|.+|${WRKSRC}/bin/varnishtest/tests/\0.vtc|}
|
|
.endif
|
|
|
|
regression-test check test: build
|
|
${MAKE_CMD} TESTS_PARALLELISM=1 -C ${WRKSRC} check
|
|
|
|
.include <bsd.port.mk>
|