blob: 7972c549d259fc57b1daad9acdbc201bb694c3e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=clamav
pkgver=0.95.1
pkgrel=0
pkgdesc="An anti-virus toolkit for UNIX"
url="http://www.clamav.net/"
license="GPL"
depends="zlib gmp"
install="$pkgname.pre-install $pkgname.post-install"
makedepends="gmp-dev zlib-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
clamd.initd
clamd.confd
freshclam.initd
freshclam.confd
clamav-0.95.1-nls.patch
$install"
build() {
cd "$srcdir/$pkgname-$pkgver"
patch -p0 -i "$srcdir/clamav-0.95.1-nls.patch" || return 1
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-clamav
make || return 1
make DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/clamd.initd "$pkgdir"/etc/init.d/clamd
install -m644 -D "$srcdir"/clamd.confd "$pkgdir"/etc/conf.d/clamd
install -m755 -D "$srcdir"/freshclam.initd "$pkgdir"/etc/init.d/freshclam
install -m644 -D "$srcdir"/freshclam.confd "$pkgdir"/etc/conf.d/freshclam
mkdir -p "$pkgdir"/var/run/clamav "$pkgdir"/var/log/clamav
}
md5sums="c802d4b372e455849cfcb0d776fc72d8 clamav-0.95.1.tar.gz
04f32738c037c96c3fd2c4fa7781fc7a clamd.initd
e84205681f64c07af9ec5b6a3dd8bc38 clamd.confd
fe3cfca9e1355183117936bea6fc6783 freshclam.initd
e84205681f64c07af9ec5b6a3dd8bc38 freshclam.confd
0d08fd29656bd4b018ecf8ce9706ac55 clamav-0.95.1-nls.patch
275e05587e2da782781829a1862d57b1 clamav.pre-install
ec4d600097a15e64dfb714e7739a1804 clamav.post-install"
|