mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
extra/clamav to 0.98.1-2
This commit is contained in:
parent
2cbf5bf537
commit
77d2d3462a
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue