[arch-commits] Commit in clamav/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Mon Oct 22 19:56:28 UTC 2018
Date: Monday, October 22, 2018 @ 19:56:27
Author: anthraxx
Revision: 337033
upgpkg: clamav 0.100.2-2
Modified:
clamav/trunk/PKGBUILD
----------+
PKGBUILD | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-10-22 19:56:25 UTC (rev 337032)
+++ PKGBUILD 2018-10-22 19:56:27 UTC (rev 337033)
@@ -5,13 +5,14 @@
pkgname=clamav
pkgver=0.100.2
-pkgrel=1
+pkgrel=2
pkgdesc='Anti-virus toolkit for Unix'
url='https://www.clamav.net/'
license=('GPL')
arch=('x86_64')
-depends=('bzip2' 'libltdl' 'libxml2' 'curl' 'libsystemd' 'pcre2' 'json-c')
+depends=('bzip2' 'libltdl' 'libxml2' 'curl' 'libsystemd' 'pcre2' 'json-c' 'libmspack')
makedepends=('libmilter' 'systemd')
+checkdepends=('check')
backup=('etc/clamav/clamd.conf'
'etc/clamav/freshclam.conf'
'etc/clamav/clamav-milter.conf'
@@ -43,6 +44,7 @@
sed -E 's|#(PidFile) .+|\1 /run/clamav/freshclam.pid|' -i etc/freshclam.conf.sample
sed -E 's|#(LogFile) .+|\1 /var/log/clamav/clamav-milter.log|' -i etc/clamav-milter.conf.sample
sed -E 's|#(PidFile) .+|\1 /run/clamav/clamav-milter.pid|' -i etc/clamav-milter.conf.sample
+ sed -E "s|(\\[Unit\\])|\\1\\nWants=network-online.target\\nAfter=network-online.target|" -i freshclam/clamav-freshclam.service.in
autoreconf -fiv
}
@@ -57,6 +59,7 @@
--with-dbdir=/var/lib/clamav \
--with-user=clamav \
--with-group=clamav \
+ --with-system-libmspack \
--disable-rpath \
--disable-clamav \
--disable-llvm \
@@ -68,6 +71,11 @@
make
}
+check() {
+ cd ${pkgname}-${pkgver}
+ make quick-check
+}
+
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
More information about the arch-commits
mailing list