1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="A log analyzer for postfix"
8 HOMEPAGE="http://logreporters.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/logreporters/${P}.tgz"
13 KEYWORDS="~amd64 ~x86"
16 RDEPEND="dev-lang/perl"
19 # The default make target just outputs instructions. We don't want
20 # the user to see these, so we avoid emake.
25 # There are two different "versions" of the package in the
26 # tarball: a standalone executable and a logwatch filter. The
27 # standalone is always installed. However, the logwatch filter is
28 # only installed with USE="logwatch".
29 dodoc Bugs Changes README ${PN}.conf-topn
36 # Remove the taint mode (-T) switch from the header of the
37 # standalone executable, and save the result as our logwatch
39 sed 's~^#!/usr/bin/perl -T$~#!/usr/bin/perl~' ${PN} > postfix \
40 || die "failed to remove the perl taint switch"
42 insinto /etc/logwatch/scripts/services
45 insinto /etc/logwatch/conf/services
46 newins ${PN}.conf postfix.conf