From e32be297b3cf4866648cc107268c109e711c3bcb Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sun, 28 Aug 2022 09:55:58 +0200 Subject: system/clamav: Updated for version 0.105.1. Use vendored rust sources to avoid using network Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- system/clamav/clamav.SlackBuild | 12 +++++++++++- system/clamav/clamav.info | 8 +++++--- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'system') diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild index dbc4da05a06f..ad2f16f49d9f 100644 --- a/system/clamav/clamav.SlackBuild +++ b/system/clamav/clamav.SlackBuild @@ -31,7 +31,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=clamav -VERSION=${VERSION:-0.105.0} +VERSION=${VERSION:-0.105.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -109,6 +109,7 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $TARBALL cd $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION-vendor.tar.xz chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -116,6 +117,15 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +mkdir .cargo +cat <>.cargo/config.toml +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" +EOT + # Specify the desired mirror in the update config file # http://www.iana.org/cctld/cctld-whois.htm sed -i "s/^\#DatabaseMirror.*/DatabaseMirror db.${COUNTRY}.clamav.net/" \ diff --git a/system/clamav/clamav.info b/system/clamav/clamav.info index 489cf252e26b..5dea65c6c47e 100644 --- a/system/clamav/clamav.info +++ b/system/clamav/clamav.info @@ -1,8 +1,10 @@ PRGNAM="clamav" -VERSION="0.105.0" +VERSION="0.105.1" HOMEPAGE="https://www.clamav.net/" -DOWNLOAD="https://www.clamav.net/downloads/production/clamav-0.105.0.tar.gz" -MD5SUM="f9994b5036da80f61d18d5941d49545d" +DOWNLOAD="https://www.clamav.net/downloads/production/clamav-0.105.1.tar.gz \ + https://ponce.cc/slackware/sources/repo/clamav-0.105.1-vendor.tar.xz" +MD5SUM="fe4581fa6a0af8c1e8e782d88e80fa4d \ + 272603f1b171d6c205a14d99f58a7265" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" -- cgit v1.2.3