summaryrefslogtreecommitdiffstats
path: root/clamav
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2008-11-11 14:36:20 +0000
committer Eric Hameleers <alien@slackware.com>2008-11-11 14:36:20 +0000
commit423b5511ffb943e254dedcafab487787d5612f6d (patch)
tree69d379b1f10bf87d70f41ac07e807b786cd462b9 /clamav
parent75e8b4d56cd140a10005fea9da16387e78f793ff (diff)
downloadasb-423b5511ffb943e254dedcafab487787d5612f6d.tar.gz
asb-423b5511ffb943e254dedcafab487787d5612f6d.tar.xz
Update to 0.94.1. Also, parametrize the ISO country code for mirroring
Diffstat (limited to 'clamav')
-rwxr-xr-xclamav/build/clamav.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/clamav/build/clamav.SlackBuild b/clamav/build/clamav.SlackBuild
index 51e3af0f..2507e4bd 100755
--- a/clamav/build/clamav.SlackBuild
+++ b/clamav/build/clamav.SlackBuild
@@ -109,6 +109,8 @@
# 0.94-1: 04/sep/2008 by Eric Hameleers
# * New release. Add "--disable-check" to 'configure', to avoid
# a (harmless) warning about missing 'check'.
+# 0.94.1-1: 10/sep/2008 by Eric Hameleers
+# * New release.
#
# Run 'sh clamav.SlackBuild --cleanup' to build a Slackware package.
# The package (.tgz) plus descriptive .txt file are created in /tmp .
@@ -119,11 +121,14 @@
# Set initial variables:
PRGNAM=clamav
-VERSION=${VERSION:-"0.94"}
+VERSION=${VERSION:-"0.94.1"}
ARCH=${ARCH:-"i486"}
BUILD=${BUILD:-1}
TAG=${TAG:-alien}
+# The 2-letter ISO code of the country that hosts your clamav mirror:
+ISOCC=${ISOCC:-"nl"}
+
# Read "README.slackware" for compatibility with amavisd-new
CLAMUSR=clamav
CLAMGRP=clamav
@@ -252,7 +257,8 @@ make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
cd etc
patch < $SRCDIR/clamd.conf.patch 2>&1 | tee $OUTPUT/patch-${PRGNAM}.log
-patch < $SRCDIR/freshclam.conf.patch 2>&1 | tee -a $OUTPUT/patch-${PRGNAM}.log
+patch < $SRCDIR/freshclam.conf.patch | sed -e "s/db.nl./db.${ISOCC}./" \
+ 2>&1 | tee -a $OUTPUT/patch-${PRGNAM}.log
cd -
# Install all the needed stuff to the package dir;
@@ -348,10 +354,8 @@ find $PKG/usr/doc -type f -exec chmod 644 {} \;
find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
# Strip binaries:
-cd $PKG
-find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-cd -
+find $PKG | xargs file | grep -e "executable" -e "shared object" \
+ | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
# Add a package description:
mkdir -p $PKG/install