2002-03-28 03:25:13 +01:00
# New ports collection makefile for: dansguardian
# Date created: March 26, 2002
2003-09-04 03:09:23 +02:00
# Whom: Freddie Cash <fcash@sd73.bc.ca>
2002-03-28 03:25:13 +01:00
#
# $FreeBSD$
#
PORTNAME = dansguardian
2005-10-06 20:28:23 +02:00
PORTVERSION = 2.8.0.6
2006-04-08 14:57:43 +02:00
PORTREVISION = 2
2002-03-28 03:25:13 +01:00
CATEGORIES = www
MASTER_SITES = # empty, see below
2004-08-10 13:48:14 +02:00
DISTNAME = ${ PORTNAME } -${ PORTVERSION } .source
2002-03-28 03:25:13 +01:00
2003-09-04 03:09:23 +02:00
MAINTAINER = fcash@sd73.bc.ca
2004-01-07 09:33:41 +01:00
COMMENT = A fast, feature-rich web content filter for Squid proxy servers
2002-03-28 03:25:13 +01:00
2005-12-17 20:54:49 +01:00
RUN_DEPENDS = ${ LOCALBASE } /sbin/squid:${ PORTSDIR } /www/squid
2004-05-06 22:09:41 +02:00
2006-04-08 14:57:43 +02:00
USE_RC_SUBR = dansguardian.sh
2002-03-28 03:25:13 +01:00
2004-07-28 12:28:59 +02:00
CONFLICTS = dansguardian-2.[ 67] *
2004-03-09 21:36:58 +01:00
LATEST_LINK = dansguardian
2004-01-07 09:33:41 +01:00
2004-08-10 13:48:14 +02:00
WRKSRC = ${ WRKDIR } /${ PORTNAME } -${ PORTVERSION }
2002-03-28 03:25:13 +01:00
GNU_CONFIGURE = yes
2004-03-09 23:48:23 +01:00
CONFIGURE_ARGS = --bindir= /sbin/ \
2002-03-28 03:25:13 +01:00
--sysconfdir= /etc/dansguardian/ \
--sysvdir= /etc/rc.d/ \
--mandir= /man/ \
2002-04-08 03:48:41 +02:00
--logdir= /var/log/ \
2002-03-28 03:25:13 +01:00
--cgidir= /www/cgi-bin/ \
--piddir= /var/run/
2005-03-05 08:26:11 +01:00
2004-05-06 22:09:41 +02:00
MAN8 = dansguardian.8
2005-03-05 08:26:11 +01:00
NOMANCOMPRESSED = yes
2002-03-28 03:25:13 +01:00
2006-04-08 14:57:43 +02:00
OPTIONS = DG_APACHE "Enable Apache support for access denied page" on \
2005-12-17 20:54:49 +01:00
DG_PHRASELISTS "Install new phraselists over the old ones." off
2004-03-09 21:36:58 +01:00
2002-03-28 03:25:13 +01:00
DG_URL = http://dansguardian.org/index.php?page= copyright2
2004-05-06 22:09:41 +02:00
CONFDIR = ${ PREFIX } /etc/dansguardian
2002-03-28 03:25:13 +01:00
2006-04-08 14:57:43 +02:00
NO_CDROM = Commercial download is restricted. Check ${ DG_URL } for more info
NO_PACKAGE = Redistribution is restricted. Check ${ DG_URL } for more info
RESTRICTED = ${ NO_PACKAGE }
2002-03-28 03:25:13 +01:00
2002-04-08 03:48:41 +02:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2004-08-10 13:48:14 +02:00
# Set which version of GCC to compile the port with
. i f $ { O S V E R S I O N } > 5 0 0 0 0 0
2003-09-04 03:09:23 +02:00
CONFIGURE_ARGS += --gccver= 3
. e l s e
CONFIGURE_ARGS += --gccver= 2
. e n d i f
2005-12-17 20:54:49 +01: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 )
USE_APACHE = 1.3+
. e n d i f
2004-05-06 22:09:41 +02:00
# User needs to manually download the distfile
2004-07-28 12:28:59 +02: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 )
IGNORE = " Commercial source download is restricted. Please visit and read ${ DG_URL } and download ${ DISTNAME } ${ EXTRACT_SUFX } into ${ DISTDIR } before running make "
2002-03-31 06:28:18 +02:00
. e n d i f
2002-03-28 03:25:13 +01:00
2004-05-06 22:09:41 +02:00
pre-install :
# Configure pkg-plist based on whether phraselists are to be installed or not
. i f d e f i n e d ( W I T H _ D G _ P H R A S E L I S T S )
PLIST_SUB = PHRASELISTS = ""
. e l s e
PLIST_SUB = PHRASELISTS = "@comment "
. e n d i f
2002-04-08 03:48:41 +02:00
post-install :
2004-05-06 22:09:41 +02:00
# Check whether to install default phraselists
. i f d e f i n e d ( W I T H _ D G _ P H R A S E L I S T S )
@${ ECHO_MSG } " ===> Installing default phraselists into ${ CONFDIR } /phraselists "
@${ CP } -R ${ WRKSRC } /phraselists ${ CONFDIR }
. e l s e
@${ ECHO_MSG } "===> Skipping installation of phraselists."
. e n d i f
# Install startup script
2006-04-08 14:57:43 +02:00
# @${ECHO_MSG} "===> Installing startup script into ${PREFIX}/etc/rc.d"
# @${INSTALL_SCRIPT} ${WRKSRC}/dansguardian.sh ${PREFIX}/etc/rc.d/start-dg.sh
2004-05-06 22:09:41 +02:00
# Display post-install message
2002-04-08 03:48:41 +02:00
@${ CAT } pkg-message
. i n c l u d e < b s d . p o r t . p o s t . m k >