summaryrefslogtreecommitdiffstats
path: root/system/squidclamav
diff options
context:
space:
mode:
Diffstat (limited to 'system/squidclamav')
-rw-r--r--system/squidclamav/README15
-rw-r--r--system/squidclamav/README.SBo14
-rw-r--r--system/squidclamav/squidclamav.SlackBuild16
3 files changed, 28 insertions, 17 deletions
diff --git a/system/squidclamav/README b/system/squidclamav/README
index fd77f63ee4..61cf5e54b7 100644
--- a/system/squidclamav/README
+++ b/system/squidclamav/README
@@ -12,17 +12,4 @@ Building and configuring squid
You must have built squid with the option "ICAP=yes", for example:
ICAP=yes ./squid.SlackBuild
-Add this into your squid.conf:
-
-# icap squidclamav
-icap_enable on
-icap_send_client_ip on
-icap_send_client_username on
-icap_client_username_encode off
-icap_client_username_header X-Authenticated-User
-icap_preview_enable on
-icap_preview_size 1024
-icap_service service_avi_req reqmod_precache icap://localhost:1344/squidclamav bypass=off
-adaptation_access service_avi_req allow all
-icap_service service_avi_resp respmod_precache icap://localhost:1344/squidclamav bypass=on
-adaptation_access service_avi_resp allow all
+See README.SBo for squid.conf configuration.
diff --git a/system/squidclamav/README.SBo b/system/squidclamav/README.SBo
new file mode 100644
index 0000000000..4a5f6e8f25
--- /dev/null
+++ b/system/squidclamav/README.SBo
@@ -0,0 +1,14 @@
+Add this into your squid.conf:
+
+# icap squidclamav
+icap_enable on
+icap_send_client_ip on
+icap_send_client_username on
+icap_client_username_encode off
+icap_client_username_header X-Authenticated-User
+icap_preview_enable on
+icap_preview_size 1024
+icap_service service_avi_req reqmod_precache icap://localhost:1344/squidclamav bypass=off
+adaptation_access service_avi_req allow all
+icap_service service_avi_resp respmod_precache icap://localhost:1344/squidclamav bypass=on
+adaptation_access service_avi_resp allow all
diff --git a/system/squidclamav/squidclamav.SlackBuild b/system/squidclamav/squidclamav.SlackBuild
index d6f636e70d..abcf32ca9b 100644
--- a/system/squidclamav/squidclamav.SlackBuild
+++ b/system/squidclamav/squidclamav.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for squidclamav
@@ -22,10 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=squidclamav
VERSION=${VERSION:-6.16}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -103,4 +113,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE