Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 461788

Summary: net-mail/mailgraph please add patch to support postscreen service postfix mta
Product: Gentoo Linux Reporter: Andreis Vinogradovs ( slepnoga ) <andreis.vinogradovs>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: UNCONFIRMED ---    
Severity: enhancement CC: barzog, jstein, net-mail+disabled
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://svnweb.freebsd.org/ports/head/mail/mailgraph/files/patch-mailgraph.pl?revision=286499&view=markup
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mailgraph.cgi_postscreen.patch
mailgraph.pl_postscreen.patch
mailgraph-1.14-r2.ebuild patch

Description Andreis Vinogradovs ( slepnoga ) 2013-03-15 07:21:10 UTC
Patch available in freebsd and possibly other distros.
Comment 2 Andreis Vinogradovs ( slepnoga ) 2013-03-15 08:44:13 UTC
Created attachment 342108 [details]
mailgraph.cgi_postscreen.patch
Comment 3 Andreis Vinogradovs ( slepnoga ) 2013-03-15 08:44:28 UTC
Created attachment 342110 [details]
mailgraph.pl_postscreen.patch
Comment 4 Andreis Vinogradovs ( slepnoga ) 2013-03-15 08:45:53 UTC
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() {
Comment 5 Andreis Vinogradovs ( slepnoga ) 2013-03-15 08:47:29 UTC
Created attachment 342112 [details, diff]
mailgraph-1.14-r2.ebuild patch
Comment 6 Benny Pedersen 2015-03-14 08:37:22 UTC
https://github.com/schweikert/mailgraph have it already

+1 from me to have a bump version