Update data files with help of Cisco-Talos/cvdupdate
This commit is contained in:
parent
6c241b5d22
commit
cc96bf6726
@ -25,7 +25,7 @@
|
||||
Summary: End-user tools for the Clam Antivirus scanner
|
||||
Name: clamav
|
||||
Version: 1.0.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: %{?with_unrar:proprietary}%{!?with_unrar:GPLv2}
|
||||
URL: https://www.clamav.net/
|
||||
%if %{with unrar}
|
||||
@ -49,9 +49,9 @@ Source5: clamd-README
|
||||
#http://database.clamav.net/main.cvd
|
||||
Source10: main-62.cvd
|
||||
#http://database.clamav.net/daily.cvd
|
||||
Source11: daily-26816.cvd
|
||||
Source11: daily-26825.cvd
|
||||
#http://database.clamav.net/bytecode.cvd
|
||||
Source12: bytecode-333.cvd
|
||||
Source12: bytecode-334.cvd
|
||||
#for update
|
||||
Source200: freshclam-sleep
|
||||
Source201: freshclam.sysconfig
|
||||
@ -554,6 +554,9 @@ exit 0
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Feb 24 2023 Sérgio Basto <sergio@serjux.com> - 1.0.1-3
|
||||
- Update data files with help of Cisco-Talos/cvdupdate
|
||||
|
||||
* Mon Feb 20 2023 Orion Poplawski <orion@nwra.com> - 1.0.1-2
|
||||
- Fix daily.cvd file (bz#2171869)
|
||||
|
||||
|
4
sources
4
sources
@ -1,4 +1,4 @@
|
||||
SHA512 (clamav-1.0.1-norar.tar.xz) = 676ca18c79449a93169653c52793a0beac81238110750f89506542eecb99db6e1a07274f74651a001f169204d2972bbdc721a5a14af08e2601d9ee937282c7ce
|
||||
SHA512 (main-62.cvd) = b52e5d9ecacbd9b11c3b0cc460388746fccb353a7520522ed15ee25f645a432bed5be7e6b38512f134f085eb9be76a1e26c19de8b09491d4ec46da8c5afc318e
|
||||
SHA512 (bytecode-333.cvd) = 895c41266b9bc332f3a00c9267907251ad32abe3a5bff7584285e087430fe0dd7343e4ac0245308f3734d971d6ecb5656fd9ce6caf0fa24f9da7a41a96bc4d07
|
||||
SHA512 (daily-26816.cvd) = fc5973c80c3cd5b09981d7c21363f67d25290e7704044c321725153eef03e6e4ef210cadda1c15099553b20783ca8f97f6f56936fd42a36f3b35588ed1672efb
|
||||
SHA512 (daily-26825.cvd) = eccca2dfc2d92daa3b75080ad593b0d60ae3b2dff3e7446f349e733eb6969d0f90c19db7fbbc6029d51c52262bf90b19ca81e97b710497da608269db28d2992a
|
||||
SHA512 (bytecode-334.cvd) = 83478af4e097b4b3fe136c943d3dd018f3e678c6859873dc1aef527db40a018b77439be2113ac251dfb797074ef8c201336570c3fe03c7ac507d5b94ab6d61c9
|
||||
|
@ -32,13 +32,16 @@ zcat ${TARBALL} | tar --delete -f - '*/libclamunrar/*' | xz -c > ${TARBALL_CLEAN
|
||||
fi
|
||||
fi
|
||||
|
||||
# WIP clouflare don't allow wget we need download with browser
|
||||
#wget https://database.clamav.net/main.cvd
|
||||
#wget https://database.clamav.net/daily.cvd
|
||||
#wget https://database.clamav.net/bytecode.cvd
|
||||
#python3 -m pip install --user cvdupdate
|
||||
#python -m cvdupdate.cvdupdate --help
|
||||
cvd config set --dbdir my_dbs
|
||||
cvdupdate list
|
||||
cvdupdate update
|
||||
pushd my_dbs
|
||||
main_ver=$(file main.cvd | sed -e 's/.*version /main-/;s/,.*/.cvd/')
|
||||
daily_ver=$(file daily.cvd | sed -e 's/.*version /daily-/;s/,.*/.cvd/')
|
||||
bytecode_ver=$(file bytecode.cvd | sed -e 's/.*version /bytecode-/;s/,.*/.cvd/')
|
||||
popd
|
||||
|
||||
if test $stage -le 1
|
||||
then
|
||||
@ -46,9 +49,11 @@ echo STAGE 1
|
||||
echo Press enter convert cvd into spec or n to skip ; read dummy;
|
||||
if [[ "$dummy" != "n" ]]; then
|
||||
|
||||
cp -f main.cvd $main_ver
|
||||
cp -f daily.cvd $daily_ver
|
||||
cp -f bytecode.cvd $bytecode_ver
|
||||
pushd my_dbs
|
||||
cp -f main.cvd ../$main_ver
|
||||
cp -f daily.cvd ../$daily_ver
|
||||
cp -f bytecode.cvd ../$bytecode_ver
|
||||
popd
|
||||
|
||||
sed -i "s|^Source10: .*|Source10: $main_ver|" clamav.spec
|
||||
sed -i "s|^Source11: .*|Source11: $daily_ver|" clamav.spec
|
||||
|
Loading…
x
Reference in New Issue
Block a user