1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
9 DESCRIPTION="A log analyzer for amavisd-new"
10 HOMEPAGE="http://logreporters.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/logreporters/${P}.tgz"
18 RDEPEND="dev-lang/perl"
21 epatch "${FILESDIR}/default_config_location.patch"
25 # The default make target just outputs instructions. We don't want
26 # the user to see these, so we avoid the default emake.
31 # There are two different "versions" of the package in the
32 # tarball: a standalone executable and a logwatch filter. The
33 # standalone is always installed. However, the logwatch filter is
34 # only installed with USE="logwatch".
35 dodoc Bugs Changes README
42 # Remove the taint mode (-T) switch from the header of the
43 # standalone executable, and save the result as our logwatch
45 sed 's~^#!/usr/bin/perl -T$~#!/usr/bin/perl~' ${PN} > amavis \
46 || die "failed to remove the perl taint switch"
48 insinto /etc/logwatch/scripts/services
51 insinto /etc/logwatch/conf/services
52 newins ${PN}.conf amavis.conf