blob: a9f544e6690f647383d1b988defc9af5a90b7658 (
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 cmake libxml2 libpcre2 json-c rust
5
6 name=clamav
7 version=1.0.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 mkdir build
14 cd build
15 cmake -DCMAKE_BUILD_TYPE=Release \
16 -DCMAKE_INSTALL_PREFIX=/usr \
17 -DCMAKE_INSTALL_LIBDIR=/usr/lib \
18 -DAPP_CONFIG_DIRECTORY=/etc \
19 -DENABLE_MILTER=OFF \
20 -DENABLE_TESTS=OFF \
21 ../$name-$version
22 cmake .
23 make DESTDIR=$PKG install
24 mkdir -p $PKG/var/run/$name $PKG/var/log/$name
25 chown -R $name:$name $PKG/var/run/$name $PKG/var/log/$name
26 install -o root -g root -m 0644 $SRC/{clamd,freshclam}.conf \
27 $PKG/etc/
28 install -d $PKG/etc/rc.d
29 install -o root -g root -m 0755 $SRC/{clamd,freshclam} \
30 $PKG/etc/rc.d/
31 install -o clamav -g clamav -m 0775 -d $PKG/usr/share/clamav
32 rm -r $PKG/usr/share/doc $PKG/etc/*.sample
33 }
|