aboutsummaryrefslogtreecommitdiffstats
path: root/main/clamav/freshclam.pre-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-04-30 13:58:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-30 15:13:30 +0000
commit4cd38832fbf55711e7912b9ea74b3264572c04ea (patch)
tree8e55a4dc90106213ac7a8eab95ea980d83b5fe5f /main/clamav/freshclam.pre-install
parent871195d63ce0f2681006c25a3a669906fce92302 (diff)
downloadaports-4cd38832fbf55711e7912b9ea74b3264572c04ea.tar.bz2
aports-4cd38832fbf55711e7912b9ea74b3264572c04ea.tar.xz
main/clamav: separate clamav-db and freshclam
Having a big static db in a package is not a good idea for /var on disk installs. We ship the db and freshclam in separate packages. also clean up the install and init.d scripts while here. fixes #1047
Diffstat (limited to 'main/clamav/freshclam.pre-install')
-rw-r--r--main/clamav/freshclam.pre-install5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/clamav/freshclam.pre-install b/main/clamav/freshclam.pre-install
new file mode 100644
index 0000000000..201184a29f
--- /dev/null
+++ b/main/clamav/freshclam.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+addgroup -S clamav 2>/dev/null
+adduser -S -h /var/lib/clamav -H -s /bin/false -D -G clamav clamav 2>/dev/null
+exit 0