void-packages/srcpkgs/clamav/template

44 lines
1.5 KiB
Bash
Raw Normal View History

2015-04-28 09:46:11 +02:00
# Template file for 'clamav'
pkgname=clamav
version=0.98.7
revision=1
build_style=gnu-configure
conf_files="/etc/clamd.conf /etc/freshclam.conf"
CPPFLAGS="-Wno-unused-local-typedefs"
system_accounts="clamav"
clamav_home="/var/lib/${pkgname}"
clamav_descr="ClamAV user"
hostmakedepends="pkg-config zip"
makedepends="libressl-devel libxml2-devel libcurl-devel ncurses-devel pcre-devel tcl-devel bzip2-devel zlib-devel"
short_desc="Clam Anti-Virus scanner"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="http://www.clamav.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
checksum=282417b707740de13cd8f18d4cbca9ddd181cf96b444db2cad98913a5153e272
post_install() {
# Enable and patch clamd configuration
mv -v ${PKGDESTDIR}/etc/clamd.conf.sample ${PKGDESTDIR}/etc/clamd.conf
vsconf etc/clamd.conf.sample
sed -i ${PKGDESTDIR}/etc/clamd.conf \
-e "s;^Example$;# Example;" \
-e "s;#DatabaseDirectory.*;DatabaseDirectory /var/lib/${pkgname};"
# Enable and patch freshclam configuration
mv -v ${PKGDESTDIR}/etc/freshclam.conf.sample ${PKGDESTDIR}/etc/freshclam.conf
vsconf etc/freshclam.conf.sample
sed -i ${PKGDESTDIR}/etc/freshclam.conf \
-e "s;^Example$;# Example;" \
-e "s;#DatabaseDirectory.*;DatabaseDirectory /var/lib/${pkgname};"
}
clamav-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/lib/pkgconfig
vmove usr/include
vmove "usr/lib/*.so"
}
}