7bbf670f11
Pointed out by: eik
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
# New ports collection makefile for: dansguardian
|
|
# Date created: April 02, 2002
|
|
# Whom: Freddie Cash <fcash@bigfoot.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dansguardian
|
|
PORTVERSION= 2.7.6.7
|
|
CATEGORIES= www
|
|
MASTER_SITES= # empty, see below
|
|
DISTNAME= DansGuardian-${PORTVERSION:R}-${PORTVERSION:E}.source
|
|
|
|
MAINTAINER= fcash@bigfoot.com
|
|
COMMENT= A fast, feature-rich web content filter for Squid proxy servers
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid \
|
|
${LOCALBASE}/sbin/httpd:${PORTSDIR}/${APACHE_PORT}
|
|
|
|
WRKSRC= ${WRKDIR}/DansGuardian-${PORTVERSION:R}-${PORTVERSION:E}
|
|
|
|
CONFLICTS= dansguardian-2.6*
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --bindir=/sbin/ \
|
|
--sysconfdir=/etc/dansguardian/ \
|
|
--sysvdir=/etc/rc.d/ \
|
|
--mandir=/man/ \
|
|
--logdir=/var/log/ \
|
|
--cgidir=/www/cgi-bin/ \
|
|
--piddir=/var/run/
|
|
|
|
DG_URL= http://dansguardian.org/index.php?page=copyright2
|
|
|
|
MAN8= dansguardian.8
|
|
|
|
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}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} > 500000 || defined(WITH_GCC3)
|
|
CONFIGURE_ARGS+= --gccver=3
|
|
.else
|
|
CONFIGURE_ARGS+= --gccver=2
|
|
.endif
|
|
|
|
.if !(exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})) && !defined(PACKAGE_BUILDING)
|
|
IGNORE="Commercial source download is restricted. Please visit and read ${DG_URL} and download ${DISTNAME}${EXTRACT_SUFX} into ${DISTDIR} before running make"
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} pkg-message
|
|
|
|
.include <bsd.port.post.mk>
|