LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
+
+# >sys-apps/logwatch-7.4.0 ships our logwatch scripts and will
+# thus obsolete this use flag.
IUSE="logwatch"
-RDEPEND="dev-lang/perl"
+RDEPEND="dev-lang/perl
+ logwatch? ( !>sys-apps/logwatch-7.4.0 )"
src_prepare() {
# Replace the default config file location with ours.
# to have the taint flag when it works.
#
sed 's~^#!/usr/bin/perl -T$~#!/usr/bin/perl~' ${PN} > postfix \
- || die "failed to remove the perl taint switch"
+ || die 'failed to remove the perl taint switch'
insinto /etc/logwatch/scripts/services
doins postfix