Lines 2-9
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/mailgraph-1.14-r2.ebuild,v 1.5 2011/12/29 21:37:27 halcy0n Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/mailgraph-1.14-r2.ebuild,v 1.5 2011/12/29 21:37:27 halcy0n Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=5 |
6 |
inherit eutils |
6 |
inherit eutils user base |
7 |
|
7 |
|
8 |
DESCRIPTION="A mail statistics RRDtool frontend for Postfix" |
8 |
DESCRIPTION="A mail statistics RRDtool frontend for Postfix" |
9 |
HOMEPAGE="http://mailgraph.schweikert.ch/" |
9 |
HOMEPAGE="http://mailgraph.schweikert.ch/" |
Lines 20-25
RDEPEND="dev-lang/perl
Link Here
|
20 |
>=net-analyzer/rrdtool-1.2.2[perl]" |
20 |
>=net-analyzer/rrdtool-1.2.2[perl]" |
21 |
DEPEND=">=sys-apps/sed-4" |
21 |
DEPEND=">=sys-apps/sed-4" |
22 |
|
22 |
|
|
|
23 |
PATCHES=( "${FILESDIR}"/*_postscreen.patch ) |
23 |
pkg_setup() { |
24 |
pkg_setup() { |
24 |
# add user and group for mailgraph daemon |
25 |
# add user and group for mailgraph daemon |
25 |
# also add mgraph to the group adm so it's able to |
26 |
# also add mgraph to the group adm so it's able to |
Lines 34-39
src_prepare() {
Link Here
|
34 |
-e "s|\(my \$rrd = '\).*'|\1/var/lib/mailgraph/mailgraph.rrd'|" \ |
35 |
-e "s|\(my \$rrd = '\).*'|\1/var/lib/mailgraph/mailgraph.rrd'|" \ |
35 |
-e "s|\(my \$rrd_virus = '\).*'|\1/var/lib/mailgraph/mailgraph_virus.rrd'|" \ |
36 |
-e "s|\(my \$rrd_virus = '\).*'|\1/var/lib/mailgraph/mailgraph_virus.rrd'|" \ |
36 |
mailgraph.cgi || die "sed mailgraph.cgi failed" |
37 |
mailgraph.cgi || die "sed mailgraph.cgi failed" |
|
|
38 |
|
39 |
base_src_prepare |
37 |
} |
40 |
} |
38 |
|
41 |
|
39 |
src_install() { |
42 |
src_install() { |