From fccc7a0447152570ea3e884cecd061e9c8e32b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 7 Sep 2018 01:12:03 +0200 Subject: [PATCH] clamav: use system account w/ underscore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See: #2471 Signed-off-by: Jürgen Buchmüller --- srcpkgs/clamav/INSTALL | 2 +- srcpkgs/clamav/INSTALL.msg | 4 ++-- srcpkgs/clamav/template | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/srcpkgs/clamav/INSTALL b/srcpkgs/clamav/INSTALL index ddecc9f4076..6a725831817 100644 --- a/srcpkgs/clamav/INSTALL +++ b/srcpkgs/clamav/INSTALL @@ -6,7 +6,7 @@ post) # Create the database directory mkdir -p var/lib/clamav # The clamav user owns it - chown -R clamav:clamav var/lib/clamav + chown -R _clamav:_clamav var/lib/clamav # Let group members write to it chmod g+w var/lib/clamav fi diff --git a/srcpkgs/clamav/INSTALL.msg b/srcpkgs/clamav/INSTALL.msg index 54e2c3f5c05..76d92087220 100644 --- a/srcpkgs/clamav/INSTALL.msg +++ b/srcpkgs/clamav/INSTALL.msg @@ -1,2 +1,2 @@ -You may want to add your account to the group 'clamav'. -$ sudo usermod -a -G clamav +You may want to add your account to the group '_clamav'. +$ sudo usermod -a -G _clamav diff --git a/srcpkgs/clamav/template b/srcpkgs/clamav/template index b3a7040882e..98a368c6118 100644 --- a/srcpkgs/clamav/template +++ b/srcpkgs/clamav/template @@ -1,7 +1,7 @@ # Template file for 'clamav' pkgname=clamav version=0.100.1 -revision=1 +revision=2 build_style=gnu-configure # XXX: system llvm is too new (< 3.7 required) # Shipped llvm does not build with gcc6 @@ -10,7 +10,7 @@ configure_args="--sbindir=/usr/bin --libdir=/usr/lib --with-zlib=${XBPS_CROSS_BASE}/usr --with-libbz2-prefix=${XBPS_CROSS_BASE}/usr --with-system-libmspack=${XBPS_CROSS_BASE}/usr" conf_files="/etc/clamd.conf /etc/freshclam.conf" -system_accounts="clamav" +system_accounts="_clamav" clamav_homedir="/var/lib/${pkgname}" clamav_descr="ClamAV user" hostmakedepends="flex pkg-config zip"