1
0
forked from ports/contrib

31 lines
856 B
Plaintext
Raw Normal View History

2006-10-24 15:36:15 -05:00
# Description: A GPL virus scanner
# URL: http://www.clamav.net/
# Maintainer: Matt Housh, jaeger at crux dot ninja
2015-12-02 17:29:50 -06:00
# Depends on: zlib bzip2 libgmp curl
2006-10-24 15:36:15 -05:00
name=clamav
version=0.99.1
2006-10-24 15:36:15 -05:00
release=1
source=(http://www.clamav.net/downloads/production/$name-$version.tar.gz \
2006-10-24 15:36:15 -05:00
clamd.conf freshclam.conf clamd freshclam)
build() {
cd $name-$version
2006-10-24 15:36:15 -05:00
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-id-check \
--with-libcurl \
--with-tcpwrappers
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 10:57:32 -05:00
install -o clamav -g clamav -m 0775 -d $PKG/usr/share/clamav
2013-11-26 10:45:05 -06:00
rm $PKG/etc/*.sample
2006-10-24 15:36:15 -05:00
}