Patch available in freebsd and possibly other distros.
See also: http://www.freebsd.org/cgi/query-pr.cgi?pr=162679 http://listi.jpberlin.de/pipermail/postfixbuch-users/2011-September/057126.html ( German ) http://www.networkmonkey.de/mailgraph-und-postscreen/ ( German )
Created attachment 342108 [details] mailgraph.cgi_postscreen.patch
Created attachment 342110 [details] mailgraph.pl_postscreen.patch
slep@adm ~/slep/portage/net-mail/mailgraph $ diff -up mailgraph-1.14-r2.ebuild mailgraph-1.14-r3.ebuild --- mailgraph-1.14-r2.ebuild 2013-03-15 10:42:14.000000000 +0200 +++ mailgraph-1.14-r3.ebuild 2013-03-15 10:45:25.000000000 +0200 @@ -2,8 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/mailgraph-1.14-r2.ebuild,v 1.5 2011/12/29 21:37:27 halcy0n Exp $ -EAPI=4 -inherit eutils +EAPI=5 +inherit eutils user base DESCRIPTION="A mail statistics RRDtool frontend for Postfix" HOMEPAGE="http://mailgraph.schweikert.ch/" @@ -20,6 +20,7 @@ RDEPEND="dev-lang/perl >=net-analyzer/rrdtool-1.2.2[perl]" DEPEND=">=sys-apps/sed-4" +PATCHES=( "${FILESDIR}"/*_postscreen.patch ) pkg_setup() { # add user and group for mailgraph daemon # also add mgraph to the group adm so it's able to @@ -34,6 +35,8 @@ src_prepare() { -e "s|\(my \$rrd = '\).*'|\1/var/lib/mailgraph/mailgraph.rrd'|" \ -e "s|\(my \$rrd_virus = '\).*'|\1/var/lib/mailgraph/mailgraph_virus.rrd'|" \ mailgraph.cgi || die "sed mailgraph.cgi failed" + + base_src_prepare } src_install() {
Created attachment 342112 [details, diff] mailgraph-1.14-r2.ebuild patch
https://github.com/schweikert/mailgraph have it already +1 from me to have a bump version