From 2d71ce4114ba09b81fe94b19299e5806efb16999 Mon Sep 17 00:00:00 2001 From: jbu Date: Wed, 29 Apr 2015 18:15:14 +0200 Subject: [PATCH] clamav: make configure detect pcre-devel --- srcpkgs/clamav/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/clamav/template b/srcpkgs/clamav/template index e33c561af1f..84aade4dec0 100644 --- a/srcpkgs/clamav/template +++ b/srcpkgs/clamav/template @@ -1,10 +1,11 @@ # Template file for 'clamav' pkgname=clamav version=0.98.7 -revision=1 +revision=2 build_style=gnu-configure conf_files="/etc/clamd.conf /etc/freshclam.conf" CPPFLAGS="-Wno-unused-local-typedefs" +configure_args="--with-pcre=/usr" system_accounts="clamav" clamav_homedir="/var/lib/${pkgname}" clamav_descr="ClamAV user" @@ -17,6 +18,10 @@ homepage="http://www.clamav.net/" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}.tar.gz" checksum=282417b707740de13cd8f18d4cbca9ddd181cf96b444db2cad98913a5153e272 +do_configure() { + # Need to set PCRE_HOME to make --with-pcre=/usr work + PCRE_HOME=/usr ./configure ${configure_args} +} post_install() { # Enable and patch clamd configuration mv -v ${PKGDESTDIR}/etc/clamd.conf.sample ${PKGDESTDIR}/etc/clamd.conf