2002-04-08 03:51:57 +02:00
# New ports collection makefile for: dansguardian
# Date created: April 02, 2002
# Whom: Freddie Cash <fcash@bigfoot.com>
#
# $FreeBSD$
#
PORTNAME = dansguardian
2004-07-01 13:10:44 +02:00
PORTVERSION = 2.7.7.9
2002-04-08 03:51:57 +02:00
CATEGORIES = www
MASTER_SITES = # empty, see below
2002-06-03 00:14:37 +02:00
DISTNAME = DansGuardian-${ PORTVERSION : R } -${ PORTVERSION : E } .source
2002-04-08 03:51:57 +02:00
2004-05-09 23:41:15 +02:00
MAINTAINER = fcash@sd73.bc.ca
2004-01-19 05:59:48 +01:00
COMMENT = A fast, feature-rich web content filter for Squid proxy servers
2002-04-08 03:51:57 +02:00
2004-03-09 23:48:23 +01:00
RUN_DEPENDS = ${ LOCALBASE } /sbin/squid:${ PORTSDIR } /www/squid \
2004-05-09 23:41:15 +02:00
${ LOCALBASE } /sbin/httpd:${ PORTSDIR } /www/apache13
2002-04-08 03:51:57 +02:00
2004-10-12 11:07:06 +02:00
IGNORE = "currently at lower revision than www/dansguardian"
2004-05-09 23:41:15 +02:00
USE_RC_SUBR = yes
RC_SCRIPTS_SUB = PREFIX = ${ PREFIX } RC_SUBR = ${ RC_SUBR }
2004-01-19 05:59:48 +01:00
2004-03-09 23:48:23 +01:00
CONFLICTS = dansguardian-2.6*
2004-05-09 23:41:15 +02:00
LATEST_LINK = dansguardian-devel
2002-06-03 00:14:37 +02:00
2004-05-09 23:41:15 +02:00
WRKSRC = ${ WRKDIR } /DansGuardian-${ PORTVERSION : R } -${ PORTVERSION : E }
2002-04-08 03:51:57 +02:00
GNU_CONFIGURE = yes
2004-03-09 23:48:23 +01:00
CONFIGURE_ARGS = --bindir= /sbin/ \
2002-04-08 03:51:57 +02:00
--sysconfdir= /etc/dansguardian/ \
--sysvdir= /etc/rc.d/ \
--mandir= /man/ \
--logdir= /var/log/ \
--cgidir= /www/cgi-bin/ \
--piddir= /var/run/
2004-05-09 23:41:15 +02:00
MAN8 = dansguardian.8
2002-04-08 03:51:57 +02:00
2004-07-01 13:10:44 +02:00
OPTIONS = DG_GCC3 "Compile using GCC 3.3 on FreeBSD 4.x." off \
DG_PHRASELISTS "Install new phraselists. (Overwrites existing.)" off
2002-04-08 03:51:57 +02:00
2004-05-09 23:41:15 +02:00
DG_URL = http://dansguardian.org/index.php?page= copyright2
CONFDIR = ${ PREFIX } /etc/dansguardian
2002-04-08 03:51:57 +02:00
NO_CDROM = " Commercial download is restricted. Check ${ DG_URL } for more info "
2004-07-01 23:26:12 +02:00
NO_PACKAGE = " Redistribution is restricted. Check ${ DG_URL } for more info "
2004-01-19 05:59:48 +01:00
RESTRICTED = ${ NO_PACKAGE }
2002-04-08 03:51:57 +02:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2004-05-09 23:41:15 +02:00
# On FreeBSD 4.x, user can choose which GCC version to use
. i f $ { O S V E R S I O N } > 5 0 0 0 0 0 | | d e f i n e d ( W I T H _ D G _ G C C 3 )
2004-01-19 05:59:48 +01:00
CONFIGURE_ARGS += --gccver= 3
2004-09-30 07:32:00 +02:00
USE_GCC = 3.4
2004-01-19 05:59:48 +01:00
. e l s e
CONFIGURE_ARGS += --gccver= 2
. e n d i f
2004-05-09 23:41:15 +02:00
# User needs to manually download the distfile
2003-03-28 02:25:19 +01: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-04-08 03:51:57 +02:00
. e n d i f
2004-05-09 23:41:15 +02:00
post-extract :
@${ SED } ${ RC_SCRIPTS_SUB : S / $/!g/ : S /^/ -e s!%%/ : S /=/%%!/ } \
${ FILESDIR } /dansguardian.sh > ${ WRKSRC } /dansguardian.sh
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:51:57 +02:00
post-install :
2004-05-09 23:41:15 +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
@${ ECHO_MSG } " ===> Installing startup script into ${ PREFIX } /etc/rc.d "
@${ INSTALL_SCRIPT } ${ WRKSRC } /dansguardian.sh ${ PREFIX } /etc/rc.d/start-dg.sh
# Display post-install message
2002-04-08 03:51:57 +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 >