--- 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() {