blob: 0b2eba206c9b1cb6d73f6440656d005d495226cc (
plain)
1 # Description: A GPL virus scanner
2 # URL: http://www.clamav.net/
3 # Maintainer: Matt Housh, jaeger at crux dot ninja
4 # Depends on: bzip2 libgmp curl
5
6 name=clamav
7 version=0.103.0
8 release=1
9 source=(http://www.clamav.net/downloads/production/$name-$version.tar.gz \
10 clamd.conf freshclam.conf clamd freshclam)
11
12 build() {
13 CXXFLAGS="${CXXFLAGS} -std=gnu++98"
14 cd $name-$version
15 ./configure --prefix=/usr \
16 --sysconfdir=/etc \
17 --enable-id-check \
18 --with-libcurl
19 make
20 make DESTDIR=$PKG install
21 mkdir -p $PKG/var/run/$name $PKG/var/log/$name
22 chown -R $name:$name $PKG/var/run/$name $PKG/var/log/$name
23 install -o root -g root -m 0644 $SRC/{clamd,freshclam}.conf \
24 $PKG/etc/
25 install -d $PKG/etc/rc.d
26 install -o root -g root -m 0755 $SRC/{clamd,freshclam} \
27 $PKG/etc/rc.d/
28 install -o clamav -g clamav -m 0775 -d $PKG/usr/share/clamav
29 rm $PKG/etc/*.sample
30 }
|