diff options
author | 2007-04-09 11:41:08 +0000 | |
---|---|---|
committer | 2007-04-09 11:41:08 +0000 | |
commit | bc2177c8184bfddbd1cdaf6ec4308a1334a0136a (patch) | |
tree | 91a78165ec7727d9cf7e3195697f0ffa5660ecdc /mail-filter/clamassassin | |
parent | Use proper helper functions for bug #173884. (diff) | |
download | gentoo-2-bc2177c8184bfddbd1cdaf6ec4308a1334a0136a.tar.gz gentoo-2-bc2177c8184bfddbd1cdaf6ec4308a1334a0136a.tar.bz2 gentoo-2-bc2177c8184bfddbd1cdaf6ec4308a1334a0136a.zip |
Inform sandbox that configure process will try to touch clamd's database lock, so it doesn't error out. Bug #168716, reported by Yoann Pannier <gentoo-bugs at umsar.org>.
(Portage version: 2.1.2.3)
Diffstat (limited to 'mail-filter/clamassassin')
-rw-r--r-- | mail-filter/clamassassin/ChangeLog | 7 | ||||
-rw-r--r-- | mail-filter/clamassassin/clamassassin-1.2.3.ebuild | 14 |
2 files changed, 18 insertions, 3 deletions
diff --git a/mail-filter/clamassassin/ChangeLog b/mail-filter/clamassassin/ChangeLog index ec901fe5670e..81ed20746c85 100644 --- a/mail-filter/clamassassin/ChangeLog +++ b/mail-filter/clamassassin/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for mail-filter/clamassassin # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/clamassassin/ChangeLog,v 1.22 2007/02/22 00:58:28 peper Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/clamassassin/ChangeLog,v 1.23 2007/04/09 11:41:08 ticho Exp $ + + 09 Apr 2007; Andrej Kacian <ticho@gentoo.org> clamassassin-1.2.3.ebuild: + Inform sandbox that configure process will try to touch clamd's database + lock, so it doesn't error out. Bug #168716, reported by Yoann Pannier + <gentoo-bugs at umsar.org>. 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog: Transition to Manifest2. diff --git a/mail-filter/clamassassin/clamassassin-1.2.3.ebuild b/mail-filter/clamassassin/clamassassin-1.2.3.ebuild index e09bb342e95d..26b8c83c3d29 100644 --- a/mail-filter/clamassassin/clamassassin-1.2.3.ebuild +++ b/mail-filter/clamassassin/clamassassin-1.2.3.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/clamassassin/clamassassin-1.2.3.ebuild,v 1.2 2006/03/13 14:22:42 ticho Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/clamassassin/clamassassin-1.2.3.ebuild,v 1.3 2007/04/09 11:41:08 ticho Exp $ DESCRIPTION="clamassassin is a simple script for virus scanning (through clamav) an e-mail message as a filter (like spamassassin)" @@ -16,6 +16,16 @@ DEPEND=">=app-antivirus/clamav-0.75.1 mail-filter/procmail" src_compile() { + # Try to get location of clamd's DatabaseDirectory + local clamav_dbdir=`awk '$1 == "DatabaseDirectory" { print $2 }' \ + /etc/clamd.conf` + # If not defined in clamd.conf, go with default + if [ -z "$clamav_dbdir" ] ; then + clamav_dbdir="/var/lib/clamav" + fi + # Add an entry to sandbox write prediction list, so sandbox doesn't complain + addpredict ${clamav_dbdir}/.dbLock + econf \ $(use_enable subject-rewrite) \ $(use_enable clamd clamdscan) \ |