]> gitweb.michael.orlitzky.com - mjo-overlay.git/blobdiff - net-mail/postfix-logwatch/postfix-logwatch-1.40.00.ebuild
Block >sys-apps/logwatch-7.4.0 when USE=logwatch in postfix/amavis-logwatch.
[mjo-overlay.git] / net-mail / postfix-logwatch / postfix-logwatch-1.40.00.ebuild
index dfb853366556728c436035f602d8ad864ab57229..c800b65410c053d7674a8e2d99fa8014a6d5ae80 100644 (file)
@@ -11,9 +11,13 @@ SRC_URI="mirror://sourceforge/logreporters/${P}.tgz"
 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.
@@ -49,7 +53,7 @@ src_install() {
                # 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