summaryrefslogtreecommitdiff
path: root/extra/clamav
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-09 03:58:56 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-09 03:58:56 +0000
commitebfbe6aa4a09806147654dd9e8d512cd68921e0d (patch)
tree645198602e94164a4130285756f401ae0b0756fd /extra/clamav
parent3092fe0e20f490a5f9b8b9602ffc039a22be60c0 (diff)
Thu Jan 9 03:54:24 UTC 2014
Diffstat (limited to 'extra/clamav')
-rw-r--r--extra/clamav/PKGBUILD36
-rw-r--r--extra/clamav/clamd.conf6
-rw-r--r--extra/clamav/clamd.service (renamed from extra/clamav/service)0
-rw-r--r--extra/clamav/config.patch30
-rw-r--r--extra/clamav/freshclam.conf3
-rw-r--r--extra/clamav/freshclamd.service (renamed from extra/clamav/service.fresh)0
6 files changed, 28 insertions, 47 deletions
diff --git a/extra/clamav/PKGBUILD b/extra/clamav/PKGBUILD
index 4b7a8e00a..affde1857 100644
--- a/extra/clamav/PKGBUILD
+++ b/extra/clamav/PKGBUILD
@@ -1,36 +1,36 @@
-# $Id: PKGBUILD 197893 2013-10-30 11:31:17Z allan $
+# $Id: PKGBUILD 203336 2014-01-08 07:29:58Z bisson $
# Contributor: Dale Blount <dale@archlinux.org>
# Contributor: Gregor Ibic <gregor.ibic@intelicom.si>
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
pkgname=clamav
pkgver=0.98
-pkgrel=1
+pkgrel=2
pkgdesc='Anti-virus toolkit for Unix'
url='http://www.clamav.net/'
license=('GPL')
arch=('i686' 'x86_64')
-depends=('bzip2' 'libltdl')
-backup=('etc/logrotate.d/clamav')
+depends=('bzip2' 'libltdl' 'gcc-libs')
source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz"
- 'service'
- 'service.fresh'
'logrotate'
'tmpfiles.d'
- 'config.patch')
+ 'clamd.conf'
+ 'freshclam.conf'
+ 'clamd.service'
+ 'freshclamd.service')
sha1sums=('1e6a7284721387646c713a8d32fa8b5a897985db'
- 'b6ac0c5de1e5b41232b10d4f84e86201c370eaeb'
- 'cda9a087e5593992150cb456e34c5f6f589aca82'
'bb488a56b0f6a0760446cde89c1e3321e2717b78'
'a224ea9b4d0f4f196827347d54bed51e11c197ea'
- '00dfadd93d11186793cb1161745f9dd7370beb99')
+ '887f624eb305f2446f55d8339e2972ad0cfe2b79'
+ 'b767837d0279ad30b92c314cb762b73e5ad0415e'
+ 'b6ac0c5de1e5b41232b10d4f84e86201c370eaeb'
+ 'cda9a087e5593992150cb456e34c5f6f589aca82')
-install=install
+backup=('etc/clamav/clamd.conf'
+ 'etc/clamav/freshclam.conf'
+ 'etc/logrotate.d/clamav')
-prepare() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- patch -p1 -i ../config.patch
-}
+install=install
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -48,8 +48,10 @@ package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
- install -Dm644 ../service.fresh "${pkgdir}"/usr/lib/systemd/system/freshclamd.service
- install -Dm644 ../service "${pkgdir}"/usr/lib/systemd/system/clamd.service
+ install -Dm644 ../clamd.conf "${pkgdir}"/etc/clamav/clamd.conf
+ install -Dm644 ../freshclam.conf "${pkgdir}"/etc/clamav/freshclam.conf
+ install -Dm644 ../freshclamd.service "${pkgdir}"/usr/lib/systemd/system/freshclamd.service
+ install -Dm644 ../clamd.service "${pkgdir}"/usr/lib/systemd/system/clamd.service
install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/clamav.conf
install -Dm644 ../logrotate "${pkgdir}"/etc/logrotate.d/clamav
diff --git a/extra/clamav/clamd.conf b/extra/clamav/clamd.conf
new file mode 100644
index 000000000..d231ec9f0
--- /dev/null
+++ b/extra/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
diff --git a/extra/clamav/service b/extra/clamav/clamd.service
index 86608c40e..86608c40e 100644
--- a/extra/clamav/service
+++ b/extra/clamav/clamd.service
diff --git a/extra/clamav/config.patch b/extra/clamav/config.patch
deleted file mode 100644
index 0b552b3f9..000000000
--- a/extra/clamav/config.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -arU 0 old/etc/clamd.conf.sample new/etc/clamd.conf.sample
---- old/etc/clamd.conf.sample 2010-12-02 19:31:21.773357389 +0100
-+++ new/etc/clamd.conf.sample 2010-12-02 19:31:45.873357389 +0100
-@@ -14 +14 @@
--#LogFile /tmp/clamd.log
-+LogFile /var/log/clamav/clamd.log
-@@ -34 +34 @@
--#LogTime yes
-+LogTime yes
-@@ -61 +61 @@
--#PidFile /var/run/clamd.pid
-+PidFile /run/clamav/clamd.pid
-@@ -65 +65 @@
--#TemporaryDirectory /var/tmp
-+TemporaryDirectory /tmp
-@@ -80 +80 @@
--#LocalSocket /tmp/clamd.socket
-+LocalSocket /var/lib/clamav/clamd.sock
-@@ -190 +190 @@
--#User clamav
-+User clamav
-diff -arU 0 old/etc/freshclam.conf.sample new/etc/freshclam.conf.sample
---- old/etc/freshclam.conf.sample 2010-12-02 19:31:21.773357389 +0100
-+++ new/etc/freshclam.conf.sample 2010-12-02 19:31:51.190024057 +0100
-@@ -17 +17 @@
--#UpdateLogFile /var/log/freshclam.log
-+UpdateLogFile /var/log/clamav/freshclam.log
-@@ -121 +121 @@
--#NotifyClamd /path/to/clamd.conf
-+NotifyClamd /etc/clamav/clamd.conf
diff --git a/extra/clamav/freshclam.conf b/extra/clamav/freshclam.conf
new file mode 100644
index 000000000..db513fd3e
--- /dev/null
+++ b/extra/clamav/freshclam.conf
@@ -0,0 +1,3 @@
+UpdateLogFile /var/log/clamav/freshclam.log
+DatabaseMirror database.clamav.net
+NotifyClamd /etc/clamav/clamd.conf
diff --git a/extra/clamav/service.fresh b/extra/clamav/freshclamd.service
index a0a72c2e6..a0a72c2e6 100644
--- a/extra/clamav/service.fresh
+++ b/extra/clamav/freshclamd.service