2002-04-08 01:51:57 +00:00
# New ports collection makefile for: dansguardian
# Date created: April 02, 2002
# Whom: Freddie Cash <fcash@bigfoot.com>
#
# $FreeBSD$
#
PORTNAME = dansguardian
2006-06-06 14:50:05 +00:00
PORTVERSION = 2.9.7.0
#PORTREVISION= 1
2002-04-08 01:51:57 +00:00
CATEGORIES = www
MASTER_SITES = # empty, see below
2005-10-25 17:07:51 +00:00
DISTNAME = ${ PORTNAME } -${ PORTVERSION }
2002-04-08 01:51:57 +00:00
2004-05-09 21:41:15 +00:00
MAINTAINER = fcash@sd73.bc.ca
2004-01-19 04:59:48 +00:00
COMMENT = A fast, feature-rich web content filter for Squid proxy servers
2002-04-08 01:51:57 +00:00
2006-02-10 15:28:46 +00:00
LIB_DEPENDS = pcre.0:${ PORTSDIR } /devel/pcre
2005-12-27 23:02:10 +00:00
RUN_DEPENDS = ${ LOCALBASE } /sbin/squid:${ PORTSDIR } /www/squid
2005-10-25 17:07:51 +00:00
USE_GCC = 3.4+
2006-02-10 15:28:46 +00:00
USE_ICONV = yes
2004-10-12 09:07:06 +00:00
2005-12-27 23:02:10 +00:00
USE_RC_SUBR = dansguardian.sh
2004-01-19 04:59:48 +00:00
2005-10-25 17:07:51 +00:00
CONFLICTS = dansguardian-2.[ 678] *
2004-05-09 21:41:15 +00:00
LATEST_LINK = dansguardian-devel
2002-06-02 22:14:37 +00:00
2002-04-08 01:51:57 +00:00
GNU_CONFIGURE = yes
2005-10-25 17:07:51 +00:00
CONFIGURE_ARGS = --localstatedir= /var \
--with-logdir= /var/log \
--with-piddir= /var/run
2004-05-09 21:41:15 +00:00
MAN8 = dansguardian.8
2002-04-08 01:51:57 +00:00
2006-03-20 22:28:24 +00:00
OPTIONS = DG_APACHE "Enable Apache support for access denied page" on \
DG_DMGR "Enable the fancy download manager" on \
2005-12-27 23:02:10 +00:00
DG_CLAMD "Enable ClamAV daemon support (clamd)" off \
2006-04-08 13:02:08 +00:00
DG_CLAMAV "Enable ClamAV library support (libclamav)" off \
2006-06-06 14:50:05 +00:00
DG_ICAP "Enable ICAP AV content scanner support (testing)" off \
DG_KASP "Enable Kaspersky AV support (testing)" off \
DG_NTLM "Enable NTLM authentication plugin" off \
DG_EMAIL "Enable e-mail reporting support" off
2002-04-08 01:51:57 +00:00
2004-05-09 21:41:15 +00:00
DG_URL = http://dansguardian.org/index.php?page= copyright2
CONFDIR = ${ PREFIX } /etc/dansguardian
2002-04-08 01:51:57 +00:00
2006-06-06 14:50:05 +00:00
RESTRICTED = Redistribution and commercial download is restricted. Check ${ DG_URL } for more info ${ NO_PACKAGE }
2002-04-08 01:51:57 +00:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2006-06-06 14:50:05 +00:00
. i f ! d e f i n e d ( W I T H O U T _ D G _ A P A C H E )
2005-12-27 23:02:10 +00:00
USE_APACHE = 1.3+
2005-10-25 17:07:51 +00:00
. e n d i f
. i f d e f i n e d ( W I T H _ D G _ C L A M A V )
2006-04-08 13:02:08 +00:00
#IGNORE= please use the clamd plugin support. It's much more flexible, usable, tested, and just generally better
CONFIGURE_ARGS += --enable-clamav= yes
LIB_DEPENDS += clamav.1:${ PORTSDIR } /security/clamav
PLIST_SUB += CLAMAVCONF = ""
. e l s e
PLIST_SUB += CLAMAVCONF = "@comment "
2005-10-25 17:07:51 +00:00
. e n d i f
. i f d e f i n e d ( W I T H _ D G _ C L A M D )
CONFIGURE_ARGS += --enable-clamd= yes
2006-03-20 22:28:24 +00:00
RUN_DEPENDS += ${ LOCALBASE } /sbin/clamd:${ PORTSDIR } /security/clamav
PLIST_SUB += CLAMDCONF = ""
. e l s e
PLIST_SUB += CLAMDCONF = "@comment "
2005-10-25 17:07:51 +00:00
. e n d i f
. i f d e f i n e d ( W I T H _ D G _ I C A P )
2006-04-08 13:02:08 +00:00
#IGNORE= I don't have access to ICAP AV, so I can't test this. If you have access to it, drop me an e-mail. Thanks
CONFIGURE_ARGS += --enable-icap
PLIST_SUB += ICAPCONF = ""
. e l s e
PLIST_SUB += ICAPCONF = "@comment "
2005-10-25 17:07:51 +00:00
. e n d i f
. i f d e f i n e d ( W I T H _ D G _ K A S P )
2006-04-08 13:02:08 +00:00
#IGNORE= I don't have access to Kaspersky AV, so I can't test this. If you have access to it, drop me an e-mail. Thanks
CONFIGURE_ARGS += --enable-kavd
PLIST_SUB += KAVDCONF = ""
. e l s e
PLIST_SUB += KAVDCONF = "@comment "
2005-10-25 17:07:51 +00:00
. e n d i f
2006-06-06 14:50:05 +00:00
. i f d e f i n e d ( W I T H _ D G _ C L A M D ) | | d e f i n e d ( W I T H _ D G _ C L A M A V ) | | d e f i n e d ( W I T H _ D G _ I C A P ) | | d e f i n e d ( W I T H _ D G _ K A S P )
PLIST_SUB += SCANNERS = ""
. e l s e
PLIST_SUB += SCANNERS = "@comment "
. e n d i f
. i f ! d e f i n e d ( W I T H O U T _ D G _ D M G R )
2005-10-25 17:07:51 +00:00
CONFIGURE_ARGS += --enable-fancydm
2006-03-20 22:28:24 +00:00
#PLIST_SUB+= DMGR=""
#.else
#PLIST_SUB+= DMGR="@comment "
2004-01-19 04:59:48 +00:00
. e n d i f
2006-06-06 14:50:05 +00:00
. i f d e f i n e d ( W I T H _ D G _ N T L M )
CONFIGURE_ARGS += --enable-ntlm
PLIST_SUB += NTLMCONF = ""
. e l s e
PLIST_SUB += NTLMCONF = "@comment "
. e n d i f
. i f d e f i n e d ( W I T H _ D G _ E M A I L )
CONFIGURE_ARGS += --enable-email
PLIST_SUB += EMAILCONF = ""
. e l s e
PLIST_SUB += EMAILCONF = "@comment "
. e n d i f
2004-05-09 21:41:15 +00:00
# User needs to manually download the distfile
2003-03-28 01:25:19 +00:00
. i f ! ( e x i s t s ( $ { D I S T D I R } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } ) ) & & ! d e f i n e d ( P A C K A G E _ B U I L D I N G )
2006-04-08 13:02:08 +00:00
IGNORE = commercial source download is restricted. Please visit and read ${ DG_URL } and download ${ DISTNAME } ${ EXTRACT_SUFX } into ${ DISTDIR } before running make
2002-04-08 01:51:57 +00:00
. e n d i f
post-install :
2004-05-09 21:41:15 +00:00
# Display post-install message
2002-04-08 01:51:57 +00:00
@${ CAT } pkg-message
. i n c l u d e < b s d . p o r t . p o s t . m k >