extra/clamav to 0.98.1-2

This commit is contained in:
Kevin Mihelich 2014-03-05 17:28:08 +00:00
parent 2cbf5bf537
commit 77d2d3462a
2 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,7 @@
pkgname=clamav
pkgver=0.98.1
pkgrel=1
pkgrel=2
pkgdesc='Anti-virus toolkit for Unix'
url='http://www.clamav.net/'
license=('GPL')
@ -67,7 +67,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
}

View file

@ -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() {