[arch-commits] Commit in clamav/trunk (PKGBUILD install)
Gaetan Bisson
bisson at archlinux.org
Sun Jun 24 02:22:23 UTC 2012
Date: Saturday, June 23, 2012 @ 22:22:22
Author: bisson
Revision: 162230
fix FS#30421
Modified:
clamav/trunk/PKGBUILD
clamav/trunk/install
----------+
PKGBUILD | 6 +++++-
install | 4 ----
2 files changed, 5 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-06-24 01:03:25 UTC (rev 162229)
+++ PKGBUILD 2012-06-24 02:22:22 UTC (rev 162230)
@@ -5,7 +5,7 @@
pkgname=clamav
pkgver=0.97.5
-pkgrel=1
+pkgrel=2
pkgdesc='Anti-virus toolkit for Unix'
url='http://www.clamav.net/'
license=('GPL')
@@ -61,4 +61,8 @@
install -Dm644 ../logrotate "${pkgdir}"/etc/logrotate.d/clamav
install -Dm644 ../conf.d "${pkgdir}"/etc/conf.d/clamav
install -Dm755 ../rc.d "${pkgdir}"/etc/rc.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 2012-06-24 01:03:25 UTC (rev 162229)
+++ install 2012-06-24 02:22:22 UTC (rev 162230)
@@ -1,10 +1,6 @@
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
-
- chown -R clamav:clamav /var/lib/clamav
- install -o clamav -g clamav -d /run/clamav
- install -o clamav -g clamav -d /var/log/clamav
}
post_remove() {
More information about the arch-commits
mailing list