openbsd-ports/www/dansguardian/Makefile
sthen 380b37f4a7 - update to DansGuardian 2.12.0.3, modified from a diff from abieber
- add an rc script
- fix incompatibility with pcre 8.3+, patch from Debian
- distfiles are now on sourceforge
- drop maintainer; no response to emails

ok abieber@
2013-01-18 15:04:09 +00:00

40 lines
935 B
Makefile

# $OpenBSD: Makefile,v 1.14 2013/01/18 15:04:09 sthen Exp $
COMMENT = content scanning web filter
DISTNAME = dansguardian-2.12.0.3
EXTRACT_SUFX = .tar.bz2
CATEGORIES = www net
HOMEPAGE = http://www.dansguardian.org/
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = c m pcre pcreposix stdc++ z
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=dansguardian/}
LIB_DEPENDS = devel/pcre
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS = --with-proxygroup=_dansguardian \
--with-proxyuser=_dansguardian \
--enable-segv-backtrace=no \
--enable-clamd
FLAVORS = debug
FLAVOR ?=
.if ${FLAVOR:Mdebug}
CONFIGURE_ARGS += --with-dgdebug
.endif
FAKE_FLAGS += DGCONFDIR=${PREFIX}/share/examples/dansguardian \
rel_group=_dansguardian rel_user=_dansguardian
.include <bsd.port.mk>