Commit a2f933d8 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/clamav: don't ship and package with old database

We still keep the clamav-db package for compatility reasons.
parent 132fe4e2
......@@ -2,12 +2,12 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=clamav
pkgver=0.97.6
pkgrel=0
pkgrel=1
pkgusers="clamav"
pkggroups="clamav"
pkgdesc="An anti-virus toolkit for UNIX"
url="http://www.clamav.net/"
#arch="all"
arch="all"
license="GPL"
depends="$pkgname-scanner $pkgname-daemon"
install="freshclam.pre-install
......@@ -16,8 +16,6 @@ makedepends="ncurses-dev zlib-dev bzip2-dev"
subpackages="$pkgname-doc $pkgname-dev $pkgname-lib $pkgname-libunrar
$pkgname-daemon $pkgname-scanner $pkgname-db freshclam"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
http://db.local.clamav.net/main.cvd
http://db.local.clamav.net/daily.cvd
clamd.initd
clamd.confd
freshclam.initd
......@@ -120,18 +118,17 @@ freshclam() {
}
db() {
pkgdesc="ClamAV virus database"
pkgdesc="ClamAV dummy package for compatibility"
replaces="clamav"
depends="freshclam"
mkdir -p "$subpkgdir"/var/lib/ \
"$subpkgdir"/usr/bin \
"$subpkgdir"/etc/clamav \
"$subpkgdir"/var/run/clamav \
"$subpkgdir"/var/log/clamav \
"$subpkgdir"/var/lib/clamav \
|| return 1
chown -R clamav:clamav "$subpkgdir"/var/lib/clamav
install -m 0644 "$srcdir"/*.cvd "$subpkgdir"/var/lib/clamav/ || return 1
install -d -m755 -o clamav -g clamav \
"$subpkgdir"/var/run/clamav \
"$subpkgdir"/var/log/clamav \
"$subpkgdir"/var/lib/clamav || return 1
}
scanner() {
......@@ -145,7 +142,6 @@ scanner() {
"$subpkgdir"/usr/bin/ || return 1
mv "$pkgdir"/usr/bin/clambc \
"$subpkgdir"/usr/bin/ || return 1
}
daemon() {
......@@ -179,8 +175,6 @@ daemon() {
}
md5sums="1dbdd803b37c0d9d222e4316049f46a2 clamav-0.97.6.tar.gz
eb12490fda87d602e476d4b163f8a34b main.cvd
c4e675522bad536020a8b5af5772ea7a daily.cvd
b4523253843761d7a7e5fa765b3fb2b9 clamd.initd
e8a03fad6ce603631e8fe71a24d387c6 clamd.confd
401fe30d9af2fea3151f938b26ff01c0 freshclam.initd
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment