Hello, This is an initial patch for updating clamav to 1.3.0. Note that it doesn't build yet as there is an issue with the libjson dependency.
-- Kind Regards, Wael Karram.
From 7c64ac8c8eaa860d779ee3060de8345830f4fe34 Mon Sep 17 00:00:00 2001 From: Wael Karram <[email protected]> Date: Sun, 18 Feb 2024 23:17:18 +0200 Subject: [PATCH] Updated clamav to version 1.3.0, needs fixing for building. --- libre/clamav/PKGBUILD | 64 ++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 37 deletions(-) diff --git a/libre/clamav/PKGBUILD b/libre/clamav/PKGBUILD index 583862557..675b87b24 100644 --- a/libre/clamav/PKGBUILD +++ b/libre/clamav/PKGBUILD @@ -7,9 +7,10 @@ # Maintainer: Omar Vega Ramos <[email protected]> # Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info> # Contributor: Andreas Grapentin <[email protected]> +# Contributor: Wael Karram <[email protected]> pkgname=clamav -pkgver=0.103.3 +pkgver=1.3.0 pkgrel=1 pkgrel+=.parabola1 pkgdesc='Anti-virus toolkit for Unix' @@ -18,8 +19,9 @@ url='https://www.clamav.net/' license=('GPL') arch=('x86_64') arch+=('i686' 'armv7h') -depends=('bzip2' 'libltdl' 'libxml2' 'curl' 'systemd-libs' 'pcre2' 'json-c' 'libmspack') -makedepends=('libmilter' 'systemd') +depends=('bzip2' 'libltdl' 'libxml2' 'curl' 'systemd-libs' 'pcre2' 'json-c' 'libmspack' + 'ncurses' libsystemd.so libncursesw.so libcurl.so libjson-c.so libbz2.so) +makedepends=('libmilter' 'systemd' 'cmake' 'ninja' 'python' 'cargo') checkdepends=('check') backup=('etc/clamav/clamd.conf' 'etc/clamav/freshclam.conf' @@ -30,18 +32,17 @@ source=(https://www.clamav.net/downloads/production/${pkgname}-${pkgver}.tar.gz{ clamav.logrotate clamav.tmpfiles clamav.sysusers) -sha512sums=('c2ee24a6f63735c064140aa5baa347d51e8240b2f7eced3480d05435202aedd481fa7057fd40ecbc2e93a62fe8b0cefb574d8accdf9acede643ffbe0d396686f' - 'SKIP' - '9cb168c1c16bb43c99900d7ef34456e3f3b593d4d1943c875a0306bc86fd3872cb78e9e1413dcba93579e01b96d466c9eea1975e24190193663b7986c4525d48' - 'c5443634399bd87fe0d0192518538ffdb7296a8437b5b0160a0fbd58696b01285de3237e3feb552c0095c49e576832dec2e2b2107eef2be42424ed7edd13cd19' - 'b984836f6c34d97b90d81fa5d17361a2e3f8c0cc709e3350a4d25cf088dc04f7bf2504359980c8be489c96b1b8798c60e6da533069d3378d49d4f50f929a2c90') -validpgpkeys=('E34DB95B374B31570496CD3F609B024F2B3EDD07') # Talos (Talos, Cisco Systems Inc.) <[email protected]> - +validpgpkeys=('C71C5DF5E1E7D51CCB8B9D5CCCE0DFD21EC1A9BF') # Talos (Talos, Cisco Systems Inc.) <[email protected]> +sha256sums=('0a86a6496320d91576037b33101119af6fd8d5b91060cd316a3a9c229e9604aa' + 'SKIP' + 'c36e3ddf790fa6ea90169038ae08521a31652a372017e6e38858e28fc63b3f74' + '8e216c7e4763a273a120930787dcc444ea221bb719eed180a9d15b4c1d603a84' + '01a896c3a1cd34b323594403fd82a9e353b5aa848b8462137b621959558199e8') prepare() { cd ${pkgname}-${pkgver} msg2 "remove nonfree unRAR utility files from the source" rm -rv libclamunrar - rm -v COPYING.unrar + #rm -v COPYING.unrar sed -E 's|^(Example)$|#\1|' -i etc/{clamd,freshclam,clamav-milter}.conf.sample sed -E 's|#(User) .+|\1 clamav|' -i etc/{clamd,freshclam,clamav-milter}.conf.sample @@ -57,44 +58,33 @@ prepare() { 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 + #autoreconf -fiv } build() { cd ${pkgname}-${pkgver} - # --disable-zlib-vcheck because the configure script thinks that - # zlib 1.2.11 is older than 1.2.2 - # --enable-llvm=no: - # workaround for database update issues - ./configure \ - --prefix=/usr \ - --sbindir=/usr/bin \ - --sysconfdir=/etc/clamav \ - --with-dbdir=/var/lib/clamav \ - --with-user=clamav \ - --with-group=clamav \ - --with-system-libmspack \ - --disable-rpath \ - --disable-clamav \ - --disable-llvm \ - --enable-zlib-vcheck \ - --enable-milter \ - --enable-clamdtop \ - --disable-unrar \ - --enable-llvm=no - - sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool - make + cmake \ + -DCMAKE_BUILD_TYPE='None' \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_SBINDIR=bin \ + -DAPP_CONFIG_DIRECTORY=/etc/clamav \ + -DDATABASE_DIRECTORY=/var/lib/clamav \ + -DENABLE_EXTERNAL_MSPACK=ON \ + -Wno-dev \ + -B build \ + -G Ninja \ + -S . + ninja -C build } check() { cd ${pkgname}-${pkgver} - make check + ninja -C build test } package() { cd ${pkgname}-${pkgver} - make DESTDIR="${pkgdir}" install + DESTDIR="${pkgdir}" ninja -C build install mv "${pkgdir}"/etc/clamav/freshclam.conf{.sample,} mv "${pkgdir}"/etc/clamav/clamd.conf{.sample,} -- 2.43.0
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Dev mailing list [email protected] https://lists.parabola.nu/mailman/listinfo/dev
