summaryrefslogtreecommitdiff
path: root/www/squid
diff options
context:
space:
mode:
authorsborrill <sborrill@pkgsrc.org>2010-06-23 10:39:28 +0000
committersborrill <sborrill@pkgsrc.org>2010-06-23 10:39:28 +0000
commitbad76d59653205205b43b8e051f7147cc0efcd1e (patch)
treed49353fcadb3a960ad019079856330670346c9c5 /www/squid
parent136d80e65c6728d6b249f967aba57cb306e89b88 (diff)
downloadpkgsrc-bad76d59653205205b43b8e051f7147cc0efcd1e.tar.gz
Add support for inet6 option on squid 3.1 and above.
Diffstat (limited to 'www/squid')
-rw-r--r--www/squid/options.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/www/squid/options.mk b/www/squid/options.mk
index 03f4587b5cd..e4fb2e75a33 100644
--- a/www/squid/options.mk
+++ b/www/squid/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.17 2010/05/24 16:25:29 tron Exp $
+# $NetBSD: options.mk,v 1.18 2010/06/23 10:39:28 sborrill Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.squid
PKG_SUPPORTED_OPTIONS= snmp ssl \
@@ -27,6 +27,13 @@ PKG_SUGGESTED_OPTIONS= squid-carp snmp ssl squid-pam-helper squid-unlinkd
.include "../../mk/bsd.prefs.mk"
#
+# Squid 3.1 and above include IPv6 support
+.if empty(PKGNAME:Msquid=3.[1-9]*.[0-9]*)
+PKG_SUPPORTED_OPTIONS+= inet6
+PKG_SUGGESTED_OPTIONS+= inet6
+.endif
+
+#
# Squid 3.0's COSS support is not stable now.
#
.if !empty(PKGNAME:Msquid-2.[0-9]*.[0-9]*)
@@ -98,6 +105,11 @@ CONFIGURE_ARGS+= --enable-arp-acl
CONFIGURE_ARGS+= --enable-carp
.endif
+.if !empty(PKG_SUPPORTED_OPTIONS:Minet6) && \
+ empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
.if !empty(PKG_OPTIONS:Msquid-ldap-helper)
.include "../../databases/openldap-client/buildlink3.mk"
SQUID_BASIC_AUTH_HELPERS+= LDAP