mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
clamav: make configure detect pcre-devel
This commit is contained in:
parent
d012f876e0
commit
2d71ce4114
1 changed files with 6 additions and 1 deletions
|
@ -1,10 +1,11 @@
|
||||||
# Template file for 'clamav'
|
# Template file for 'clamav'
|
||||||
pkgname=clamav
|
pkgname=clamav
|
||||||
version=0.98.7
|
version=0.98.7
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
conf_files="/etc/clamd.conf /etc/freshclam.conf"
|
conf_files="/etc/clamd.conf /etc/freshclam.conf"
|
||||||
CPPFLAGS="-Wno-unused-local-typedefs"
|
CPPFLAGS="-Wno-unused-local-typedefs"
|
||||||
|
configure_args="--with-pcre=/usr"
|
||||||
system_accounts="clamav"
|
system_accounts="clamav"
|
||||||
clamav_homedir="/var/lib/${pkgname}"
|
clamav_homedir="/var/lib/${pkgname}"
|
||||||
clamav_descr="ClamAV user"
|
clamav_descr="ClamAV user"
|
||||||
|
@ -17,6 +18,10 @@ homepage="http://www.clamav.net/"
|
||||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=282417b707740de13cd8f18d4cbca9ddd181cf96b444db2cad98913a5153e272
|
checksum=282417b707740de13cd8f18d4cbca9ddd181cf96b444db2cad98913a5153e272
|
||||||
|
|
||||||
|
do_configure() {
|
||||||
|
# Need to set PCRE_HOME to make --with-pcre=/usr work
|
||||||
|
PCRE_HOME=/usr ./configure ${configure_args}
|
||||||
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
# Enable and patch clamd configuration
|
# Enable and patch clamd configuration
|
||||||
mv -v ${PKGDESTDIR}/etc/clamd.conf.sample ${PKGDESTDIR}/etc/clamd.conf
|
mv -v ${PKGDESTDIR}/etc/clamd.conf.sample ${PKGDESTDIR}/etc/clamd.conf
|
||||||
|
|
Loading…
Add table
Reference in a new issue