summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Loeser <halcy0n@gentoo.org>2005-06-25 04:06:26 +0000
committerMark Loeser <halcy0n@gentoo.org>2005-06-25 04:06:26 +0000
commit05722e53a0ba2e613a47fd1c527227abc98af364 (patch)
tree53fbeee547ac3ad1b8d91ff04fe84a98acecdfc0 /net-mail
parentStable ppc-macos (diff)
downloadgentoo-2-05722e53a0ba2e613a47fd1c527227abc98af364.tar.gz
gentoo-2-05722e53a0ba2e613a47fd1c527227abc98af364.tar.bz2
gentoo-2-05722e53a0ba2e613a47fd1c527227abc98af364.zip
initial commit of mailgraph; bug #74372
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-mail')
-rw-r--r--net-mail/mailgraph/ChangeLog11
-rw-r--r--net-mail/mailgraph/Manifest6
-rw-r--r--net-mail/mailgraph/files/digest-mailgraph-1.111
-rw-r--r--net-mail/mailgraph/files/mailgraph.confd10
-rw-r--r--net-mail/mailgraph/files/mailgraph.initd23
-rw-r--r--net-mail/mailgraph/mailgraph-1.11.ebuild57
-rw-r--r--net-mail/mailgraph/metadata.xml9
7 files changed, 117 insertions, 0 deletions
diff --git a/net-mail/mailgraph/ChangeLog b/net-mail/mailgraph/ChangeLog
new file mode 100644
index 000000000000..c49474be63e8
--- /dev/null
+++ b/net-mail/mailgraph/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-mail/mailgraph
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/ChangeLog,v 1.1 2005/06/25 04:06:26 halcy0n Exp $
+
+*mailgraph-1.11 (25 Jun 2005)
+
+ 25 Jun 2005; <halcyon@gentoo.org> +files/mailgraph.confd,
+ +files/mailgraph.initd, +metadata.xml, +mailgraph-1.11.ebuild:
+ Initial commit of mailgraph. Thanks to Aaron Walker <ka0ttic@gentoo.org> for
+ the init scripts and ebuild. More info on bug #74372
+
diff --git a/net-mail/mailgraph/Manifest b/net-mail/mailgraph/Manifest
new file mode 100644
index 000000000000..777186ee214d
--- /dev/null
+++ b/net-mail/mailgraph/Manifest
@@ -0,0 +1,6 @@
+MD5 12cc0b3f6dae806d246c36bd9ea010e9 metadata.xml 259
+MD5 18f5dbc9e4a304d8125421aa3a27c007 mailgraph-1.11.ebuild 1317
+MD5 4be02fe753c0f2634a256269b397b003 ChangeLog 410
+MD5 eeffafebefcc1f509bb3d0fc17c6415d files/mailgraph.initd 582
+MD5 15ca9b482df1941f14c3004c7c836bb5 files/mailgraph.confd 303
+MD5 ca32a39fff4fa2c070d832feb539f47d files/digest-mailgraph-1.11 65
diff --git a/net-mail/mailgraph/files/digest-mailgraph-1.11 b/net-mail/mailgraph/files/digest-mailgraph-1.11
new file mode 100644
index 000000000000..359f48fbdaec
--- /dev/null
+++ b/net-mail/mailgraph/files/digest-mailgraph-1.11
@@ -0,0 +1 @@
+MD5 6ddb4804e51c81dcdd5c3f7242031b11 mailgraph-1.11.tar.gz 19719
diff --git a/net-mail/mailgraph/files/mailgraph.confd b/net-mail/mailgraph/files/mailgraph.confd
new file mode 100644
index 000000000000..db6793bfe641
--- /dev/null
+++ b/net-mail/mailgraph/files/mailgraph.confd
@@ -0,0 +1,10 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/files/mailgraph.confd,v 1.1 2005/06/25 04:06:26 halcy0n Exp $
+
+# Location of logfile that postfix logs to.
+# mailgraph defaults to /var/log/syslog if unspecified
+#MG_POSTFIX_LOG="/var/log/mail.log"
+
+# Specify any extra options here.
+#MG_OPTS=""
diff --git a/net-mail/mailgraph/files/mailgraph.initd b/net-mail/mailgraph/files/mailgraph.initd
new file mode 100644
index 000000000000..a2edb4eb6e77
--- /dev/null
+++ b/net-mail/mailgraph/files/mailgraph.initd
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/files/mailgraph.initd,v 1.1 2005/06/25 04:06:26 halcy0n Exp $
+
+start() {
+ ebegin "Starting mailgraph"
+
+ # read postfix log messages somewhere other than /var/log/syslog?
+ [[ -n "${MG_POSTFIX_LOG}" ]] && MG_OPTS="${MG_OPTS} -l ${MG_POSTFIX_LOG}"
+
+ start-stop-daemon --start --quiet \
+ --exec /usr/bin/mailgraph -- --daemon \
+ --daemon-rrd=/var/lib/mailgraph ${MG_OPTS}
+
+ eend $?
+}
+
+stop() {
+ ebegin "Shutting down mailgraph"
+ start-stop-daemon --stop --quiet --pidfile /var/run/mailgraph.pid
+ eend $?
+}
diff --git a/net-mail/mailgraph/mailgraph-1.11.ebuild b/net-mail/mailgraph/mailgraph-1.11.ebuild
new file mode 100644
index 000000000000..225ec457c5e0
--- /dev/null
+++ b/net-mail/mailgraph/mailgraph-1.11.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/mailgraph-1.11.ebuild,v 1.1 2005/06/25 04:06:26 halcy0n Exp $
+
+inherit eutils webapp
+
+DESCRIPTION="A mail statistics RRDtool frontend for Postfix"
+HOMEPAGE="http://people.ee.ethz.ch/~dws/software/mailgraph/"
+SRC_URI="http://people.ee.ethz.ch/~dws/software/${PN}/pub/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ dev-perl/File-Tail
+ net-analyzer/rrdtool"
+DEPEND=">=sys-apps/sed-4"
+
+pkg_setup() {
+ webapp_pkg_setup
+ built_with_use net-analyzer/rrdtool perl \
+ || die "net-analyzer/rrdtool must be built with USE=perl"
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ sed -i \
+ -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"
+}
+
+src_install() {
+ webapp_src_preinst
+
+ # for the RRDs
+ keepdir /var/lib/mailgraph
+
+ # mailgraph daemon
+ newbin mailgraph.pl mailgraph
+
+ # mailgraph CGI script
+ exeinto ${MY_CGIBINDIR}
+ doexe mailgraph.cgi
+ webapp_runbycgibin perl ${MY_CGIBINDIR}/mailgraph.cgi
+
+ # init/conf files for mailgraph daemon
+ newinitd ${FILESDIR}/mailgraph.initd mailgraph
+ newconfd ${FILESDIR}/mailgraph.confd mailgraph
+
+ # docs
+ dodoc README CHANGES COPYING
+
+ webapp_src_install
+}
diff --git a/net-mail/mailgraph/metadata.xml b/net-mail/mailgraph/metadata.xml
new file mode 100644
index 000000000000..6f46c066f670
--- /dev/null
+++ b/net-mail/mailgraph/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-mail</herd>
+ <maintainer>
+ <email>halcy0n@gentoo.org</email>
+ <name>Mark Loeser</name>
+ </maintainer>
+</pkgmetadata>