summaryrefslogtreecommitdiff
path: root/system/clamav/clamav.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/clamav/clamav.SlackBuild')
-rw-r--r--system/clamav/clamav.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild
index c72373f432..48f52d0363 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.6}
-BUILD=${BUILD:-3}
+VERSION=${VERSION:-0.98}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -91,7 +91,7 @@ chmod -R u+w,go+r-w,a-s .
# 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
+ etc/freshclam.conf.sample
sed \
-e "s/^Example/#Example/" \
@@ -102,7 +102,7 @@ sed \
-e "s/^\#AllowSupplementaryGroups.*/AllowSupplementaryGroups yes/" \
-e "s/^\#DatabaseOwner.*/DatabaseOwner clamav/" \
-e "s/^\#NotifyClamd.*/NotifyClamd \/etc\/clamd.conf/" \
- -i etc/freshclam.conf
+ -i etc/freshclam.conf.sample
sed \
-e "s/^Example/#Example/" \
-e "s/^\#LogSyslog/LogSyslog/" \
@@ -116,7 +116,7 @@ sed \
-e "s/^\#User.*/User clamav/" \
-e "s/^\#AllowSupplementaryGroups.*/AllowSupplementaryGroups yes/" \
-e "s/^\#ExitOnOOM/ExitOnOOM/" \
- -i etc/clamd.conf
+ -i etc/clamd.conf.sample
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -141,12 +141,12 @@ make install DESTDIR=$PKG
# Prepare the config files:
for cf in clamd freshclam clamav-milter; do
- mv $PKG/etc/$cf.conf $PKG/etc/$cf.conf.new
+ mv $PKG/etc/$cf.conf.sample $PKG/etc/$cf.conf.new
done
# Our rc script and logrotate entry:
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
+install -D -m 0644 $CWD/logrotate.clamav $PKG/etc/logrotate.d/clamav.new
# Create pid, socket, db, and log directories
# init script must still ensure that /var/run/clamav exists