From 323afedd6e46d273457add43d92f166ffba5acbf Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 27 Oct 2019 02:33:04 +0100 Subject: Fix building of some legacy ebuilds --- .../clamassassin/clamassassin-1.2.4-r1.ebuild | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 mail-filter/clamassassin/clamassassin-1.2.4-r1.ebuild (limited to 'mail-filter/clamassassin/clamassassin-1.2.4-r1.ebuild') diff --git a/mail-filter/clamassassin/clamassassin-1.2.4-r1.ebuild b/mail-filter/clamassassin/clamassassin-1.2.4-r1.ebuild new file mode 100644 index 0000000..9623c32 --- /dev/null +++ b/mail-filter/clamassassin/clamassassin-1.2.4-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="Simple spamassassin-like script for virus scanning and filtering e-mail messages" +HOMEPAGE="http://jameslick.com/clamassassin/" +SRC_URI="http://jameslick.com/clamassassin/${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ~ppc ~sparc x86" +IUSE="subject-rewrite clamd" +DEPEND=">=app-antivirus/clamav-0.90 + sys-apps/debianutils + sys-apps/which + 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}/ + + econf \ + $(use_enable subject-rewrite) \ + $(use_enable clamd clamdscan) \ + || die + # Fix problems with Portage exporting TMP and breaking clamassassin. #61806 + sed -i -e "s:${TMP}:/tmp:" clamassassin +} + +src_install() { + dobin clamassassin + dodoc CHANGELOG README +} -- cgit v1.2.3