summaryrefslogtreecommitdiff
path: root/libre/clamav
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2019-03-04 14:58:21 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2019-03-04 14:58:21 -0500
commit8a1728ca632992c8c1d772ecd90b933320515a15 (patch)
tree8da246001b63fb7289e66b2fb8ba98672f353f0f /libre/clamav
parenta3da8c9b9643166aabf9f709d7031ad8bbb4f585 (diff)
clamav-0.101.1-1.par1: updating version
Diffstat (limited to 'libre/clamav')
-rw-r--r--libre/clamav/PKGBUILD25
-rw-r--r--libre/clamav/clamav.install11
2 files changed, 17 insertions, 19 deletions
diff --git a/libre/clamav/PKGBUILD b/libre/clamav/PKGBUILD
index a3c7b8110..e4f66fafe 100644
--- a/libre/clamav/PKGBUILD
+++ b/libre/clamav/PKGBUILD
@@ -8,29 +8,31 @@
_pkgname=clamav-libre
pkgname=clamav
-pkgver=0.100.2
+pkgver=0.101.1
pkgrel=1
pkgrel+=.par1
-pkgdesc='Anti-virus toolkit for Unix, without nonfree decompression engine for RAR archives'
+pkgdesc='Anti-virus toolkit for Unix'
+pkgdesc+=', without nonfree decompression engine for RAR archives'
url='https://www.clamav.net/'
license=('GPL')
-arch=('i686' 'x86_64' 'armv7h')
-depends=('bzip2' 'libltdl' 'libxml2' 'curl' 'libsystemd' 'pcre2' 'json-c')
+arch=('x86_64')
+arch+=('i686' 'armv7h')
+depends=('bzip2' 'libltdl' 'libxml2' 'curl' 'systemd-libs' 'pcre2' 'json-c' 'libmspack')
makedepends=('libmilter' 'systemd')
+checkdepends=('check')
backup=('etc/clamav/clamd.conf'
'etc/clamav/freshclam.conf'
'etc/clamav/clamav-milter.conf'
'etc/logrotate.d/clamav')
-
-install=clamav.install
+provides=(libclamav.so libclamunrar.so libclamunrar_iface.so)
mksource=(https://www.clamav.net/downloads/production/${pkgname}-${pkgver}.tar.gz{,.sig})
source=(https://repo.parabola.nu/other/${_pkgname}/${_pkgname}-${pkgver}.tar.gz
clamav.logrotate
clamav.tmpfiles
clamav.sysusers)
-mksha512sums=('70b51eafb11dc727188e7d4554b8095a9e0406e76b78778fede94f8a4c78146034478197217039384eb1fd15532e822cfa6b51707e431e9397ec21d5e393a60c'
+mksha512sums=('eb72fe21a9485d2906aec7f9a3dc955bbe4bb0fa812d622bc9c6c5c019eb2238a7370cb5dc1ba3886764269a925f7dcbe93255c77920bb489af4f3f81680d4c8'
'SKIP')
-sha512sums=('193c09417d69b29e86829613aee9a7f6ccaa11c0669402b524707b66d52d8a287bea7e4def58a573fc8b30d4a56ac71aea76fe56e22ec7e3fee389e167bc2415'
+sha512sums=('aba1376e53dfb82f93f173da2a4549036be25b0e3cf5638eb5c3145ef10de637d84e87a5f62386c58eb0bc010605c537200ed97576554487f689f2b7b250eb5a'
'9cb168c1c16bb43c99900d7ef34456e3f3b593d4d1943c875a0306bc86fd3872cb78e9e1413dcba93579e01b96d466c9eea1975e24190193663b7986c4525d48'
'c5443634399bd87fe0d0192518538ffdb7296a8437b5b0160a0fbd58696b01285de3237e3feb552c0095c49e576832dec2e2b2107eef2be42424ed7edd13cd19'
'b984836f6c34d97b90d81fa5d17361a2e3f8c0cc709e3350a4d25cf088dc04f7bf2504359980c8be489c96b1b8798c60e6da533069d3378d49d4f50f929a2c90')
@@ -59,6 +61,7 @@ prepare() {
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
}
@@ -75,6 +78,7 @@ build() {
--with-dbdir=/var/lib/clamav \
--with-user=clamav \
--with-group=clamav \
+ --with-system-libmspack \
--disable-rpath \
--disable-clamav \
--disable-llvm \
@@ -88,6 +92,11 @@ build() {
make
}
+check() {
+ cd ${pkgname}-${pkgver}
+ make quick-check
+}
+
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
diff --git a/libre/clamav/clamav.install b/libre/clamav/clamav.install
deleted file mode 100644
index 2d1c91310..000000000
--- a/libre/clamav/clamav.install
+++ /dev/null
@@ -1,11 +0,0 @@
-post_upgrade() {
- if (( $(vercmp $2 0.99.3) <= 0 )); then
- cat << EOF
-
-===> WARNING: ClamAV service files have been renamed:
- -> clamav-daemon.service
- -> clamav-freshclam.service
-
-EOF
- fi
-}