diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-08-28 09:55:58 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-09-03 17:58:55 +0700 |
commit | e32be297b3cf4866648cc107268c109e711c3bcb (patch) | |
tree | 6abfdd1ee42262f970d7c568accf7c801c82af9a /system/clamav/clamav.SlackBuild | |
parent | 99bb1789851ec23cd50ebcc68ac80bf194fdd1a8 (diff) |
system/clamav: Updated for version 0.105.1.
Use vendored rust sources to avoid using network
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/clamav/clamav.SlackBuild')
-rw-r--r-- | system/clamav/clamav.SlackBuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild index dbc4da05a06f6..ad2f16f49d9ff 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 <<EOT >>.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/" \ |