--- /dev/null
+# ChangeLog for net-mail/postfix-logwatch
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 17 Mar 2010; Michael Orlitzky <michael@orlitzky.com>
+ +postfix-logwatch-1.39.03.ebuild, +metadata.xml:
+ New ebuild to address bug 309075.
+
--- /dev/null
+DIST postfix-logwatch-1.39.03.tgz 111560 RMD160 d3f53f2513c1921f4522fe1f131464c971bc1d40 SHA1 9c1fefdc1a58b3cdc0d416c19eccbd43bc18001a SHA256 dfa153be55f95118b267ac5d788b2ef8a03069e091421a897612d3335d3cbd92
+EBUILD postfix-logwatch-1.39.03.ebuild 1607 RMD160 9793f6571505701fd4e5402e7cff88cc36f9535b SHA1 5fca3bc0a579a2183a152c842c95f8a9a62b9272 SHA256 eb8b52125b4514e1e73b1e898c5b9ae524258d8421ba880e8969bf23810dc051
+MISC ChangeLog 269 RMD160 f191f7dd1a1440cad2ac6dcf00c18177687e23ef SHA1 ad1c3836e10b4ea69f01b04581552e1fcc5ae8f6 SHA256 9db1c194d60ff10284ba1a28cff687097489f5b0ceebe701b52b408faa789eca
+MISC metadata.xml 273 RMD160 0dac457c6273ae4054c501e2470737f98ed6e2d2 SHA1 e378e7e440ca21f7490e07731a44170259221b8d SHA256 85365f3b9d586f4fb14cd47295e40e9fbb72f70a4dfb0fc4aaabda4088104d8d
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="A log analyzer for postfix"
+HOMEPAGE="http://www.mikecappella.com/logwatch/"
+SRC_URI="${HOMEPAGE}/release/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="logwatch"
+
+DEPEND="dev-lang/perl"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ # The default make target just outputs instructions. We don't want
+ # the user to see these, so we avoid emake.
+ :
+}
+
+src_install() {
+ # There are two different "versions" of the package in the
+ # tarball: a standalone executable and a logwatch filter. The
+ # standalone is always installed. However, the logwatch filter is
+ # only installed with USE="logwatch".
+ dodoc Bugs Changes README ${PN}.conf-topn \
+ || die "failed to install documentation"
+
+ doman ${PN}.1 || die "failed to install man page"
+ dohtml ${PN}.1.html || die "failed to install html documentation"
+ dobin ${PN} || die "failed to install executable"
+ insinto /etc
+ doins ${PN}.conf || die "failed to install config file"
+
+ if use logwatch; then
+ # Remove the taint mode (-T) switch from the header of the
+ # standalone executable, and save the result as our logwatch
+ # filter.
+ sed 's~^#!/usr/bin/perl -T$~#!/usr/bin/perl~' ${PN} > postfix \
+ || die "failed to remove the perl taint switch"
+
+ insinto /etc/logwatch/scripts/services
+ doins postfix || die "failed to install the 'postfix' logwatch filter"
+
+ insinto /etc/logwatch/conf/services
+ newins ${PN}.conf postfix.conf \
+ || die "failed to install the logwatch 'postfix.conf' file"
+ fi
+}