diff options
author | ponce <matteo.bernardini@gmail.com> | 2012-06-30 12:11:08 -0400 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2012-06-30 12:11:08 -0400 |
commit | d53154c60e4cb0184686ab97b109260f263aafed (patch) | |
tree | 582fa0386b8b711159a5c16d99f41304112bf05e /system/clamav/clamav.SlackBuild | |
parent | 4eaa53d93d417fe67c60ecb26c3a922aa5160ea2 (diff) |
system/clamav: Updated for version 0.97.5.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/clamav/clamav.SlackBuild')
-rw-r--r-- | system/clamav/clamav.SlackBuild | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild index 6787a9033643..edbdd499fe36 100644 --- a/system/clamav/clamav.SlackBuild +++ b/system/clamav/clamav.SlackBuild @@ -27,7 +27,7 @@ # No additional license terms added PRGNAM=clamav -VERSION=${VERSION:-0.97.4} +VERSION=${VERSION:-0.97.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -88,6 +88,9 @@ 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 @@ -130,6 +133,7 @@ CXXFLAGS="$SLKCFLAGS" \ --with-dbdir=/var/lib/clamav \ --enable-milter \ --enable-id-check \ + --enable-clamdtop \ --disable-static \ --disable-experimental \ --build=$ARCH-slackware-linux @@ -146,18 +150,19 @@ done install -D -m 0755 $CWD/rc.clamav $PKG/etc/rc.d/rc.clamav.new install -D -m 0644 $CWD/logrotate.clamav $PKG/etc/logrotate.d/clamav +# Create pid, socket, db and log directories +mkdir -p $PKG/var/{lib,log,run}/clamav +chmod 771 $PKG/var/{lib,log,run}/clamav + # Fixup some ownership and permissions issues chown -R root:root $PKG 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 chmod 0660 $PKG/var/lib/clamav/* -# Create pid, socket and log directories -mkdir -p $PKG/var/{log,run}/clamav -chmod 771 $PKG/var/{log,run}/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 |