aboutsummaryrefslogtreecommitdiff
path: root/system/clamav/clamav.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-18 15:10:54 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-18 19:33:39 -0500
commit9818e85ad11a0de09681bb76a2b0fb17f49e57a8 (patch)
tree50b1a3bf8a3105a378776f5a3d27f5a16c131397 /system/clamav/clamav.SlackBuild
parente31e91a3f35c29192d74524529216f237890f0ac (diff)
system/clamav: Updated for version 0.97.6 and removed bashisms.
Double su in the logrotate script Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/clamav/clamav.SlackBuild')
-rw-r--r--system/clamav/clamav.SlackBuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild
index c58f67b906de..3ad71234c151 100644
--- a/system/clamav/clamav.SlackBuild
+++ b/system/clamav/clamav.SlackBuild
@@ -27,8 +27,8 @@
# No additional license terms added
PRGNAM=clamav
-VERSION=${VERSION:-0.97.5}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-0.97.6}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -88,12 +88,10 @@ cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-# Make gcc-4.7.x happy, should be safe for older ones
-patch -p1 < $CWD/gcc47.patch
-
# Specify the desired mirror in the update config file
# http://www.iana.org/cctld/cctld-whois.htm
-sed -i "s/^\#DatabaseMirror.*/DatabaseMirror db.${COUNTRY}.clamav.net/" etc/freshclam.conf
+sed -i "s/^\#DatabaseMirror.*/DatabaseMirror db.${COUNTRY}.clamav.net/" \
+ etc/freshclam.conf
sed \
-e "s/^Example/#Example/" \
@@ -153,8 +151,8 @@ install -D -m 0644 $CWD/logrotate.clamav $PKG/etc/logrotate.d/clamav
# Create pid, socket, db, and log directories
# init script must still ensure that /var/run/clamav exists
# and has proper ownership and permissions though
-mkdir -p $PKG/var/{lib,log,run}/clamav
-chmod 771 $PKG/var/{lib,log,run}/clamav
+mkdir -p $PKG/var/lib/clamav $PKG/var/log/clamav $PKG/var/run/clamav
+chmod 771 $PKG/var/lib/clamav $PKG/var/log/clamav $PKG/var/run/clamav
# Fixup some ownership and permissions issues
chown -R root:root $PKG
@@ -162,14 +160,17 @@ chmod -R o-w $PKG
chown clamav $PKG/usr/sbin/clamav-milter
chmod 4700 $PKG/usr/sbin/clamav-milter
chmod 0770 $PKG/var/lib/clamav
-touch $PKG/var/lib/clamav/{main,daily}.cvd
+touch $PKG/var/lib/clamav/main.cvd $PKG/var/lib/clamav/daily.cvd
chmod 0660 $PKG/var/lib/clamav/*
# Create log files in such a way that they won't clobber existing ones
-touch $PKG/var/log/clamav/{clamd,freshclam}.log.new
-chmod 660 $PKG/var/log/clamav/{clamd,freshclam}.log.new
+touch $PKG/var/log/clamav/clamd.log.new \
+ $PKG/var/log/clamav/freshclam.log.new
+chmod 660 $PKG/var/log/clamav/clamd.log.new \
+ $PKG/var/log/clamav/freshclam.log.new
-chown -R clamav:clamav $PKG/var/{lib,log,run}/clamav
+chown -R clamav:clamav $PKG/var/lib/clamav $PKG/var/log/clamav \
+ $PKG/var/run/clamav
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true