Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74372 - mailgraph-1.10 ebuild request
Summary: mailgraph-1.10 ebuild request
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2004-12-14 05:57 UTC by Daniel Webert
Modified: 2005-06-24 21:08 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mailgraph-1.10.ebuild (mailgraph-1.10.ebuild,1.29 KB, text/plain)
2005-01-29 02:51 UTC, Aaron Walker (RETIRED)
Details
files/mailgraph.initd (mailgraph.initd,571 bytes, text/plain)
2005-01-29 02:52 UTC, Aaron Walker (RETIRED)
Details
files/mailgraph.confd (mailgraph.confd,303 bytes, text/plain)
2005-01-29 02:52 UTC, Aaron Walker (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Webert 2004-12-14 05:57:25 UTC
mailgraph-1.9 ebuild request

Project description:
Mailgraph is a very simple mail statistics RRDtool  frontend for
Postfix that produces daily, weekly,  monthly, and yearly graphs of
received/sent and  bounced/rejected mail.

http://people.ee.ethz.ch/~dws/software/mailgraph/
Comment 1 Daniel Webert 2004-12-14 06:02:18 UTC
ups latest is: 
http://people.ee.ethz.ch/~dws/software/mailgraph/pub/mailgraph-1.10.tar.gz
Comment 2 Aaron Walker (RETIRED) gentoo-dev 2005-01-29 02:50:25 UTC
I am attaching an ebuild and init/conf scripts because I could not get mailgraph to write the RRD file for some reason.  I've never messed with anything RRD before so that may be the reason.

To install/setup:
 - put in overlay and emerge
 - webapp-config -I -d /var/www/localhost/cgi-bin mailgraph 1.10
 - edit /etc/conf.d/mailgraph and set the variable MG_POSTFIX_LOG to the location of the log postfix uses.
 - /etc/init.d/mailgraph start

At this point it reads the postfix log (running mailgraph by hand w/o the --daemon flag confirms this).  It should be writing the RRD file to /var/lib/mailgraph but it doesn't seem to be doing so.

So, if anyone can play around with it and get it working, that'd be great.
Comment 3 Aaron Walker (RETIRED) gentoo-dev 2005-01-29 02:51:19 UTC
Created attachment 49807 [details]
mailgraph-1.10.ebuild
Comment 4 Aaron Walker (RETIRED) gentoo-dev 2005-01-29 02:52:06 UTC
Created attachment 49809 [details]
files/mailgraph.initd
Comment 5 Aaron Walker (RETIRED) gentoo-dev 2005-01-29 02:52:33 UTC
Created attachment 49810 [details]
files/mailgraph.confd
Comment 6 Patrick Witte 2005-02-02 09:14:13 UTC
I've been waiting for this a long time, thanks Aaron.

For your problem not working when started from initscript:

You should add ${MG_OPTS}:

start-stop-daemon --start --quiet \
        --exec /usr/bin/mailgraph -- --daemon \
        --daemon-rrd=/var/lib/mailgraph ${MG_OPTS}



Comment 7 drew 2005-05-16 13:21:52 UTC
ebuild works beatifully, but no png files show up when accessing the cgi page.
I was going to make the ebuild myself, but this is MUCH faster. :)
thanks!
~drew
Comment 8 drew 2005-05-17 06:38:34 UTC
issue w/ my png files was the fact that mailgraph is not totally compatible w/
RRDTOOL 1.2...yet. You have to remove the 2 COMMENT lines in the cgi and then
all is fine.
Comment 9 Daniel Webert 2005-06-22 05:25:20 UTC
latest is 1.11 - which has now comp. w/ rrd 1.2.x
Comment 10 Mark Loeser (RETIRED) gentoo-dev 2005-06-24 21:08:06 UTC
I'm taking maintainership of this.  mailgraph-1.11 is in the tree.  Please let
me know if there are any problems.