# Description: An antivirus toolkit with RAR3 support # URL: http://www.clamav.net/ # Maintainer: McMCC # Packager: Malster Clover # Depends on: libunrar3 libstdc++-compat curl libgmp name=clamav_rar3 version=0.88.3 release=1 source=(http://switch.dl.sourceforge.net/sourceforge/clamav/clamav-$version.tar.gz \ clamav-0.88.3-libunrar3.patch clamd clamd.conf freshclam.conf) build () { ln -s clamav-$version clamav-devel.orig patch -p0 < clamav-$version-libunrar3.patch cd clamav-$version aclocal autoconf automake ./configure --prefix=/usr \ --sysconfdir=/etc \ --disable-clamav \ --disable-clamuko \ --with-zlib=/usr \ --with-{user,group}=clamav \ --with-dbdir=/var/lib/clamav make make DESTDIR=$PKG install mkdir -p $PKG/{etc/rc.d,var/{lib/clamav,log,run/clamav,clamav/{quarantine,tmp}}} install -m 644 -o root -g root $SRC/freshclam.conf $PKG/etc/freshclam.conf install -m 644 -o root -g root $SRC/clamd.conf $PKG/etc/clamd.conf install -m 700 -o root -g root $SRC/clamd $PKG/etc/rc.d/clamd touch $PKG/var/{log/{clamd,freshclam}.log} chown clamav.clamav -R $PKG/var/{lib/clamav,log/{clamd,freshclam}.log,run/clamav,clamav} }