2006-10-24 22:36:15 +02:00
|
|
|
# Description: A GPL virus scanner
|
|
|
|
# URL: http://www.clamav.net/
|
2015-11-25 23:34:06 +01:00
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
2017-11-02 22:44:02 +01:00
|
|
|
# Depends on: bzip2 libgmp curl
|
2006-10-24 22:36:15 +02:00
|
|
|
|
|
|
|
name=clamav
|
2019-10-03 04:29:07 +02:00
|
|
|
version=0.102.0
|
2018-01-26 21:42:02 +01:00
|
|
|
release=1
|
2016-03-03 19:28:40 +01:00
|
|
|
source=(http://www.clamav.net/downloads/production/$name-$version.tar.gz \
|
2018-01-26 21:42:02 +01:00
|
|
|
clamd.conf freshclam.conf clamd freshclam)
|
2006-10-24 22:36:15 +02:00
|
|
|
|
|
|
|
build() {
|
2017-11-02 22:44:02 +01:00
|
|
|
CXXFLAGS="${CXXFLAGS} -std=gnu++98"
|
2016-03-03 19:28:40 +01:00
|
|
|
cd $name-$version
|
2006-10-24 22:36:15 +02:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-id-check \
|
2017-11-02 22:44:02 +01:00
|
|
|
--with-libcurl
|
2006-10-24 22:36:15 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
mkdir -p $PKG/var/run/$name $PKG/var/log/$name
|
|
|
|
chown -R $name:$name $PKG/var/run/$name $PKG/var/log/$name
|
|
|
|
install -o root -g root -m 0644 $SRC/{clamd,freshclam}.conf \
|
|
|
|
$PKG/etc/
|
|
|
|
install -d $PKG/etc/rc.d
|
|
|
|
install -o root -g root -m 0755 $SRC/{clamd,freshclam} \
|
|
|
|
$PKG/etc/rc.d/
|
2012-09-18 17:57:32 +02:00
|
|
|
install -o clamav -g clamav -m 0775 -d $PKG/usr/share/clamav
|
2013-11-26 17:45:05 +01:00
|
|
|
rm $PKG/etc/*.sample
|
2006-10-24 22:36:15 +02:00
|
|
|
}
|