summaryrefslogtreecommitdiff
path: root/extra/clamav
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-03-06 03:42:24 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-03-06 03:42:24 +0000
commitc183da9d3df5445f5021cd6563012ba2abfc393e (patch)
tree825211c0af8ca26a450f4bdeeb58ccfbb88e13df /extra/clamav
parent4f7963b7ddc283ae57ceb68e7f4d51b3994e0070 (diff)
Thu Mar 6 03:38:39 UTC 2014
Diffstat (limited to 'extra/clamav')
-rw-r--r--extra/clamav/PKGBUILD5
-rw-r--r--extra/clamav/install5
2 files changed, 7 insertions, 3 deletions
diff --git a/extra/clamav/PKGBUILD b/extra/clamav/PKGBUILD
index 8d83fc457..197b5b034 100644
--- a/extra/clamav/PKGBUILD
+++ b/extra/clamav/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 204255 2014-01-15 16:47:46Z bisson $
+# $Id: PKGBUILD 206695 2014-03-05 06:13:07Z 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.1
-pkgrel=1
+pkgrel=2
pkgdesc='Anti-virus toolkit for Unix'
url='http://www.clamav.net/'
license=('GPL')
@@ -55,7 +55,6 @@ package() {
install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/clamav.conf
install -Dm644 ../logrotate "${pkgdir}"/etc/logrotate.d/clamav
- install -d -o 64 -g 64 "${pkgdir}"/run/clamav
install -d -o 64 -g 64 "${pkgdir}"/var/log/clamav
install -d -o 64 -g 64 "${pkgdir}"/var/lib/clamav
}
diff --git a/extra/clamav/install b/extra/clamav/install
index 896e187c7..1a0653e2a 100644
--- a/extra/clamav/install
+++ b/extra/clamav/install
@@ -1,6 +1,11 @@
+post_upgrade() {
+ systemd-tmpfiles --create clamav.conf
+}
+
post_install() {
getent group clamav &>/dev/null || groupadd -r -g 64 clamav >/dev/null
getent passwd clamav &>/dev/null || useradd -r -u 64 -g clamav -d /dev/null -s /bin/false -c "Clam AntiVirus" clamav >/dev/null
+ post_upgrade
}
post_remove() {