[Lunar-commits] <moonbase-other> clamav: version bumped to 0.98.5.
Florin Braescu
florin at lunar-linux.org
Thu Nov 20 09:33:57 CET 2014
commit 51541a8c44c7d55f7afd91b641e7be1ad1fe257d
Author: Florin Braescu <florin at lunar-linux.org>
Date: Thu, 20 Nov 2014 10:33:32 +0200
URL: https://github.com/lunar-linux/moonbase-other/commit/51541a8c44c7d55f7afd91b641e7be1ad1fe257d
clamav: version bumped to 0.98.5.
---
security/clamav/BUILD | +19/-1
security/clamav/CONFIGURE | +7/-0
security/clamav/DEPENDS | +18/-1
security/clamav/DETAILS | +3/-3
security/clamav/clamd.conf | +6/-0
security/clamav/freshclam.conf | +3/-0
security/clamav/logrotate | +10/-0
security/clamav/tmpfiles.d | +1/-0
8 files changed, 67 insertions(+), 5 deletions(-)
--- a/security/clamav/BUILD
+++ b/security/clamav/BUILD
@@ -1,3 +1,21 @@
+add_priv_user clamav:clamav -s /bin/false -c "clamav" &&
+
+OPTS+=" --sysconfdir=/etc/clamav \
+ --with-dbdir=/var/lib/clamav \
+ --with-user-clamav \
+ --with-group=clamav \
+ --disable-rpath" &&
+
default_build &&
-install -o clamav -g clamav -m 0755 -d /var/lib/clamav
+mkdir -p -m 0755 /var/lib/clamav &&
+
+mkdir -p /etc/clamav &&
+install -Dm644 $SCRIPT_DIRECTORY/clamd.conf /etc/clamav/clamd.conf &&
+install -Dm644 $SCRIPT_DIRECTORY/freshclam.conf /etc/clamav/freshclam.conf &&
+
+mkdir -p /usr/lib/tmpfiles.d &&
+install -Dm644 $SCRIPT_DIRECTORY/tmpfiles.d /usr/lib/tmpfiles.d/clamav.conf &&
+
+mkdir -p /etc/logrotate.d &&
+install -Dm644 $SCRIPT_DIRECTORY/logrotate /etc/logrotate.d/clamav
--- /dev/null
+++ b/security/clamav/CONFIGURE
@@ -0,0 +1,7 @@
+mquery USE_MEMPOOL "Enable memory pools" y "--enable-mempool " "--disable-mempool "
+mquery USE_LTDL "Enable libltdl install?" y "--enable-ltdl-install " ""
+mquery USE_BZIP2 "Enable bzip2 compression support?" y "" "--disable-bzip2 "
+mquery USE_UNRAR "Enable unrar decompression support?" y "" "--disable-unrar "
+mquery USE_BIGSTACK "Increase thread stach size?" n "--enable-bigstack" ""
+mquery USE_DNS "Enable dns database verification support?" y "" "--disable-dns "
+mquery USE_IPV6 "Enable ipv6 support?" y "" "--disable-ipv6 "
--- a/security/clamav/DEPENDS
+++ b/security/clamav/DEPENDS
@@ -1,3 +1,20 @@
depends openssl
-optional_depends "gmp" "" "" "for digital signature support"
+optional_depends "libxml2" "--with-xml=/usr" "--disable-xml" "for libxml2 support"
+optional_depends "curl" "--with-libcurl" "" "for curl support"
+optional_depends "check" "--with-libcurl" "" "for curl support"
+
+optional_depends "ncurses" \
+ "--with-libncurses-prefix=/usr" \
+ "--without-libncurses-prefix" \
+ "for ncurses support"
+
+optional_depends "llvm" \
+ "--enable-llvm --with-system-llvm" \
+ "--disable-llvm" \
+ "for lvm signature compile support"
+
+optional_depends "check" \
+ "--enable-check --with-libcheck-prefix=/usr" \
+ "--without-libcheck-prefix" \
+ "for check support"
--- a/security/clamav/DETAILS
+++ b/security/clamav/DETAILS
@@ -1,11 +1,11 @@
MODULE=clamav
- VERSION=0.98.4
+ VERSION=0.98.5
SOURCE=$MODULE-$VERSION.tar.gz
SOURCE_URL=$SFORGE_URL/$MODULE
- SOURCE_VFY=sha1:f1003d04f34efb0aede05395d3c7cc22c944e4ef
+ SOURCE_VFY=sha256:9c2f37d5fa9033936468237f6f4b29289f30791caa84765ef510acb56c8daa4d
WEB_SITE=http://www.clamav.net
ENTERED=20030314
- UPDATED=20140621
+ UPDATED=20141120
SHORT="GPL anti-virus toolkit"
cat << EOF
--- /dev/null
+++ b/security/clamav/clamd.conf
@@ -0,0 +1,6 @@
+LogFile /var/log/clamav/clamd.log
+LogTime yes
+PidFile /run/clamav/clamd.pid
+TemporaryDirectory /tmp
+LocalSocket /var/lib/clamav/clamd.sock
+User clamav
--- /dev/null
+++ b/security/clamav/freshclam.conf
@@ -0,0 +1,3 @@
+UpdateLogFile /var/log/clamav/freshclam.log
+DatabaseMirror database.clamav.net
+NotifyClamd /etc/clamav/clamd.conf
--- /dev/null
+++ b/security/clamav/logrotate
@@ -0,0 +1,10 @@
+/var/log/clamav/clamd.log /var/log/clamav/freshclam.log {
+ create 644 clamav clamav
+ sharedscripts
+ missingok
+ notifempty
+ postrotate
+ /bin/kill -HUP `cat /run/clamav/clamd.pid 2>/dev/null` 2> /dev/null || true
+ /bin/kill -HUP `cat /run/clamav/freshclam.pid 2>/dev/null` 2> /dev/null || true
+ endscript
+}
--- /dev/null
+++ b/security/clamav/tmpfiles.d
@@ -0,0 +1 @@
+d /run/clamav 0755 clamav clamav
More information about the Lunar-commits
mailing list