svn commit: r306271 - head/www/squidguard
Guido Falsi
madpilot at FreeBSD.org
Mon Oct 22 12:05:14 UTC 2012
Author: madpilot
Date: Mon Oct 22 12:05:13 2012
New Revision: 306271
URL: http://svn.freebsd.org/changeset/ports/306271
Log:
- Add OPTION to choose which version of squid to depend on
- Trim Makefile headers [1]
PORTREVISION not bumped since there is no functional change or
dependency change with default options.
Requested by: Rainer Duffner <rainer at ultra-secure.de> and many others in the past
Approved by: Dan Larsson <dl at tyfon.net> (creator) [1]
Feature safe: yes
Modified:
head/www/squidguard/Makefile (contents, props changed)
Modified: head/www/squidguard/Makefile
==============================================================================
--- head/www/squidguard/Makefile Mon Oct 22 12:04:02 2012 (r306270)
+++ head/www/squidguard/Makefile Mon Oct 22 12:05:13 2012 (r306271)
@@ -1,9 +1,4 @@
-# New ports collection makefile for: squidGuard
-# Date created: 5 June 2000
-# Whom: dl at tyfon.net
-#
# $FreeBSD$
-#
PORTNAME= squidGuard
PORTVERSION= 1.4
@@ -22,8 +17,6 @@ COMMENT= A fast redirector for squid
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
-RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid
-
USE_BDB= 40+
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-db-inc=${BDB_INCLUDE_DIR} \
@@ -51,14 +44,26 @@ SUB_LIST= PORTNAME=${PORTNAME} \
PKGMESSAGE= ${WRKDIR}/pkg-message
OPTIONS_DEFINE= DNS_BL DOCS LDAP QUOTE_STRING SAMPLE_BL
-OPTIONS_DEFAULT= SAMPLE_BL
+OPTIONS_SINGLE= SV
+OPTIONS_SINGLE_SV= SQUID27 SQUID31
+OPTIONS_DEFAULT= SAMPLE_BL SQUID27
SAMPLE_BL_DESC= Install sample blacklists
DNS_BL_DESC= Enable DNS based blacklists
QUOTE_STRING_DESC= Add quoted string patch
+SQUID27_DESC= Depend on Squid 2.7.x
+SQUID31_DESC= Depend on Squid 3.1.x
.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MSQUID27}
+RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid
+.endif
+
+.if ${PORT_OPTIONS:MSQUID31}
+RUN_DEPENDS= ${LOCALBASE}/sbin/squid:${PORTSDIR}/www/squid31
+.endif
+
.if ${PORT_OPTIONS:MLDAP}
CONFIGURE_ARGS+= --with-ldap
USE_OPENLDAP= yes
More information about the svn-ports-head
mailing list