diff options
author | pav <pav@FreeBSD.org> | 2004-05-10 05:41:15 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-05-10 05:41:15 +0800 |
commit | e27849d27f9bfaf64e309339ef20bec9ec70364a (patch) | |
tree | 8a9954c2cdfd35a258f2f8e97f867bee276da2eb /www/dansguardian-devel/Makefile | |
parent | b4c2203dfa2f5b6c6d1fd734c032f12bbd66e3a5 (diff) | |
download | freebsd-ports-gnome-e27849d27f9bfaf64e309339ef20bec9ec70364a.tar.gz freebsd-ports-gnome-e27849d27f9bfaf64e309339ef20bec9ec70364a.tar.zst freebsd-ports-gnome-e27849d27f9bfaf64e309339ef20bec9ec70364a.zip |
- Update to 2.7.7-8
- Convert to RCng
- Define latest link
PR: ports/66336
Submitted by: Freddie Cash <fcash@sd73.bc.ca> (maintainer)
Diffstat (limited to 'www/dansguardian-devel/Makefile')
-rw-r--r-- | www/dansguardian-devel/Makefile | 47 |
1 files changed, 40 insertions, 7 deletions
diff --git a/www/dansguardian-devel/Makefile b/www/dansguardian-devel/Makefile index cab903ae61d8..8fcbbbe8178a 100644 --- a/www/dansguardian-devel/Makefile +++ b/www/dansguardian-devel/Makefile @@ -6,21 +6,24 @@ # PORTNAME= dansguardian -PORTVERSION= 2.7.6.7 +PORTVERSION= 2.7.7.8 CATEGORIES= www MASTER_SITES= # empty, see below DISTNAME= DansGuardian-${PORTVERSION:R}-${PORTVERSION:E}.source -MAINTAINER= fcash@bigfoot.com +MAINTAINER= fcash@sd73.bc.ca 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} + ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13 -WRKSRC= ${WRKDIR}/DansGuardian-${PORTVERSION:R}-${PORTVERSION:E} +USE_RC_SUBR= yes +RC_SCRIPTS_SUB=PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} CONFLICTS= dansguardian-2.6* +LATEST_LINK= dansguardian-devel +WRKSRC= ${WRKDIR}/DansGuardian-${PORTVERSION:R}-${PORTVERSION:E} GNU_CONFIGURE= yes CONFIGURE_ARGS= --bindir=/sbin/ \ --sysconfdir=/etc/dansguardian/ \ @@ -29,10 +32,13 @@ CONFIGURE_ARGS= --bindir=/sbin/ \ --logdir=/var/log/ \ --cgidir=/www/cgi-bin/ \ --piddir=/var/run/ +MAN8= dansguardian.8 -DG_URL= http://dansguardian.org/index.php?page=copyright2 +OPTIONS= DG_GCC3 "Compile using GCC 3.x on FreeBSD 4.x." off \ + DG_PHRASELISTS "Install new phraselists." off -MAN8= dansguardian.8 +DG_URL= http://dansguardian.org/index.php?page=copyright2 +CONFDIR= ${PREFIX}/etc/dansguardian NO_CDROM= "Commercial download is restricted. Check ${DG_URL} for more info" NO_PACKAGE= "Redistribution is restricted. Check ${DG_URL} for more info" @@ -40,17 +46,44 @@ RESTRICTED= ${NO_PACKAGE} .include <bsd.port.pre.mk> -.if ${OSVERSION} > 500000 || defined(WITH_GCC3) +# On FreeBSD 4.x, user can choose which GCC version to use +.if ${OSVERSION} > 500000 || defined(WITH_DG_GCC3) CONFIGURE_ARGS+= --gccver=3 .else CONFIGURE_ARGS+= --gccver=2 .endif +# User needs to manually download the distfile .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-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 +.if defined(WITH_DG_PHRASELISTS) +PLIST_SUB= PHRASELISTS="" +.else +PLIST_SUB= PHRASELISTS="@comment " +.endif + post-install: +# Check whether to install default phraselists +.if defined(WITH_DG_PHRASELISTS) + @${ECHO_MSG} "===> Installing default phraselists into ${CONFDIR}/phraselists" + @${CP} -R ${WRKSRC}/phraselists ${CONFDIR} +.else + @${ECHO_MSG} "===> Skipping installation of phraselists." +.endif + +# 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 @${CAT} pkg-message .include <bsd.port.post.mk> |