diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2022-12-08 20:18:52 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-12-10 07:43:15 +0700 |
commit | 661523e29e1f0357b2d77c0792e6d27a17517d48 (patch) | |
tree | 96f766d01bc0c312ea5219d8f026c78bd93a5bda /system | |
parent | 955fd36c35e56fce8cc5c255f17b43ad1f54fba6 (diff) |
system/clamav: Updated for version 1.0.0.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/clamav/README | 4 | ||||
-rw-r--r-- | system/clamav/clamav.SlackBuild | 22 | ||||
-rw-r--r-- | system/clamav/clamav.info | 16 |
3 files changed, 24 insertions, 18 deletions
diff --git a/system/clamav/README b/system/clamav/README index 8019f79bc4234..0c769baad8c6e 100644 --- a/system/clamav/README +++ b/system/clamav/README @@ -25,3 +25,7 @@ for example: Configuration See README.SLACKWARE for configuration help. + + +NOTE: as this needs a version of rust not yet shipped in Slackware +15.0 a prebuilt one is downloaded and used for compilation. diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild index ad2f16f49d9ff..d04ed3dec5cd8 100644 --- a/system/clamav/clamav.SlackBuild +++ b/system/clamav/clamav.SlackBuild @@ -31,14 +31,15 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=clamav -VERSION=${VERSION:-0.105.1} +VERSION=${VERSION:-1.0.0} +NEWRUST=${NEWRUST:-1.64.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i586 ;; + i?86) ARCH=i686 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -109,7 +110,6 @@ 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 \ @@ -117,14 +117,14 @@ 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 +# Unfortunately clamav requires a recent rust compiler, so check if we +# don't have one available and in that case use a prebuilt one +if [ $(rustc --version | cut -d\ -f2 | cut -d. -f2) -le 61 ]; then + tar xf $CWD/newrust-$NEWRUST-$ARCH.tar.xz + export HOME=$(pwd)/newrust + export PATH=$(pwd)/newrust/bin:$PATH + export LD_LIBRARY_PATH=$(pwd)/newrust/lib$LIBDIRSUFFIX:$LD_LIBRARY_PATH +fi # Specify the desired mirror in the update config file # http://www.iana.org/cctld/cctld-whois.htm diff --git a/system/clamav/clamav.info b/system/clamav/clamav.info index 5dea65c6c47e1..e6cf759187d8b 100644 --- a/system/clamav/clamav.info +++ b/system/clamav/clamav.info @@ -1,12 +1,14 @@ PRGNAM="clamav" -VERSION="0.105.1" +VERSION="1.0.0" HOMEPAGE="https://www.clamav.net/" -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="" +DOWNLOAD="https://www.clamav.net/downloads/production/clamav-1.0.0.tar.gz \ + https://ponce.cc/slackware/sources/repo/newrust/newrust-1.64.0-i686.tar.xz" +MD5SUM="f2a875c252bbfc2b29cafe4a23d2d5a3 \ + ae263ded5f7e8a142ae5ec0cca4e34ac" +DOWNLOAD_x86_64="https://www.clamav.net/downloads/production/clamav-1.0.0.tar.gz \ + https://ponce.cc/slackware/sources/repo/newrust/newrust-1.64.0-x86_64.tar.xz" +MD5SUM_x86_64="f2a875c252bbfc2b29cafe4a23d2d5a3 \ + 0b3c9fa23bbdd27225fbee38d9943058" REQUIRES="" MAINTAINER="Matteo Bernardini" EMAIL="ponce@slackbuilds.org" |