[arch-commits] Commit in clamav/trunk (PKGBUILD install)
Gaetan Bisson
bisson at nymeria.archlinux.org
Wed Mar 5 06:11:45 UTC 2014
Date: Wednesday, March 5, 2014 @ 07:11:45
Author: bisson
Revision: 206694
implement FS#39148
Modified:
clamav/trunk/PKGBUILD
clamav/trunk/install
----------+
PKGBUILD | 3 +--
install | 5 +++++
2 files changed, 6 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-03-05 06:09:51 UTC (rev 206693)
+++ PKGBUILD 2014-03-05 06:11:45 UTC (rev 206694)
@@ -5,7 +5,7 @@
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 @@
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
}
Modified: install
===================================================================
--- install 2014-03-05 06:09:51 UTC (rev 206693)
+++ install 2014-03-05 06:11:45 UTC (rev 206694)
@@ -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() {
More information about the arch-commits
mailing list