aboutsummaryrefslogtreecommitdiff
path: root/network/squid/squid.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2017-07-21 23:01:34 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-22 06:56:19 +0700
commitea930a9237d403035e1f8a534dce9482390d2063 (patch)
tree964b5eb55d0fca8e124cd2c6642851e1644d3861 /network/squid/squid.SlackBuild
parenteff09c738da2fe1b8be2b6d755eef625392007e7 (diff)
network/squid: Add new option.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/squid/squid.SlackBuild')
-rw-r--r--network/squid/squid.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/network/squid/squid.SlackBuild b/network/squid/squid.SlackBuild
index 0729192759bbd..900d9081c8ea8 100644
--- a/network/squid/squid.SlackBuild
+++ b/network/squid/squid.SlackBuild
@@ -73,6 +73,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+OPT_ICAP=""
+if [ "${ICAP:-no}" = "yes" ]; then
+ OPT_ICAP="--enable-icap-client"
+fi
+
# last option is needed on current
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -90,6 +95,7 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-auth-basic \
--enable-linux-netfilter \
--enable-async-io \
+ $OPT_ICAP \
--build=$ARCH-slackware-linux \
--disable-strict-error-checking