diff options
author | Mark Loeser <halcy0n@gentoo.org> | 2005-06-25 04:06:26 +0000 |
---|---|---|
committer | Mark Loeser <halcy0n@gentoo.org> | 2005-06-25 04:06:26 +0000 |
commit | 323ac3d6606d14200b3516ba8b5851b85c653efe (patch) | |
tree | 55d54e8020bf6f0a902ac139421f62d639fce376 /net-mail/mailgraph | |
parent | Stable ppc-macos (diff) | |
download | historical-323ac3d6606d14200b3516ba8b5851b85c653efe.tar.gz historical-323ac3d6606d14200b3516ba8b5851b85c653efe.tar.bz2 historical-323ac3d6606d14200b3516ba8b5851b85c653efe.zip |
initial commit of mailgraph; bug #74372
Package-Manager: portage-2.0.51.22-r1
Diffstat (limited to 'net-mail/mailgraph')
-rw-r--r-- | net-mail/mailgraph/ChangeLog | 11 | ||||
-rw-r--r-- | net-mail/mailgraph/Manifest | 16 | ||||
-rw-r--r-- | net-mail/mailgraph/files/digest-mailgraph-1.11 | 1 | ||||
-rw-r--r-- | net-mail/mailgraph/files/mailgraph.confd | 10 | ||||
-rw-r--r-- | net-mail/mailgraph/files/mailgraph.initd | 23 | ||||
-rw-r--r-- | net-mail/mailgraph/mailgraph-1.11.ebuild | 57 | ||||
-rw-r--r-- | net-mail/mailgraph/metadata.xml | 9 |
7 files changed, 127 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..fb3fca42d79d --- /dev/null +++ b/net-mail/mailgraph/Manifest @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 12cc0b3f6dae806d246c36bd9ea010e9 metadata.xml 259 +MD5 20481024ccbe7a6ef718248e645d6797 mailgraph-1.11.ebuild 1420 +MD5 2e1acd88408d2e404d136853858282bb ChangeLog 501 +MD5 608f945e78c754fb3f5aee14881ec2da files/mailgraph.initd 685 +MD5 f464fa42aeb389a331b25ce8a4314661 files/mailgraph.confd 406 +MD5 ca32a39fff4fa2c070d832feb539f47d files/digest-mailgraph-1.11 65 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.1 (GNU/Linux) + +iD8DBQFCvNhuCRZPokWLroQRAqbhAJ4iEEqWb+PiJCLblS74HFPQYpYdYgCeMkIl +ojnwF8LqOzc/Vv7YcOJ4G2E= +=Dlfg +-----END PGP SIGNATURE----- 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> |