diff options
author | 2007-10-22 18:24:58 +0000 | |
---|---|---|
committer | 2007-10-22 18:24:58 +0000 | |
commit | 35493bc12808a571bd0f6e7bcab76a9932f8e326 (patch) | |
tree | 0e1fa17715fc7bff18b15ced3f0e90db3f1ab30a /net-mail | |
parent | Version bump to 2.6.23.1 (diff) | |
download | historical-35493bc12808a571bd0f6e7bcab76a9932f8e326.tar.gz historical-35493bc12808a571bd0f6e7bcab76a9932f8e326.tar.bz2 historical-35493bc12808a571bd0f6e7bcab76a9932f8e326.zip |
Version bump
Package-Manager: portage-2.1.3.15
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/mailgraph/ChangeLog | 8 | ||||
-rw-r--r-- | net-mail/mailgraph/Manifest | 16 | ||||
-rw-r--r-- | net-mail/mailgraph/files/digest-mailgraph-1.14 | 3 | ||||
-rw-r--r-- | net-mail/mailgraph/mailgraph-1.14.ebuild | 149 |
4 files changed, 171 insertions, 5 deletions
diff --git a/net-mail/mailgraph/ChangeLog b/net-mail/mailgraph/ChangeLog index b00142e74266..0072d9bfbafb 100644 --- a/net-mail/mailgraph/ChangeLog +++ b/net-mail/mailgraph/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-mail/mailgraph # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/ChangeLog,v 1.22 2007/10/15 14:44:23 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/ChangeLog,v 1.23 2007/10/22 18:24:57 dertobi123 Exp $ + +*mailgraph-1.14 (22 Oct 2007) + + 22 Oct 2007; Tobias Scherbaum <dertobi123@gentoo.org> + +mailgraph-1.14.ebuild: + Version bump 15 Oct 2007; Markus Rothe <corsair@gentoo.org> mailgraph-1.13.ebuild: Stable on ppc64 diff --git a/net-mail/mailgraph/Manifest b/net-mail/mailgraph/Manifest index 4277decd14a9..ba80240df5ed 100644 --- a/net-mail/mailgraph/Manifest +++ b/net-mail/mailgraph/Manifest @@ -20,6 +20,7 @@ RMD160 62bac0366f91949747b2234b56d9a7bf61e5e47d files/mailgraph.logrotate-new 89 SHA256 3e1241e1d209a4679fe1f2f3d45716858acb1c0f1daac4b6709d9cb9d8564504 files/mailgraph.logrotate-new 895 DIST mailgraph-1.12.tar.gz 20053 RMD160 37111b29e4519010f102c71306ba6b896082cb6f SHA1 08bbe7f6e66f1b14b40ce7da8caa716b6ee122e3 SHA256 7ff3b56654fef85180abcece7d4ae42ac173a0815d728ae1c406c8e48dc56e7c DIST mailgraph-1.13.tar.gz 21322 RMD160 8c4e393e548b99a49da4f35c8b8a104d5bf14339 SHA1 12a7aaca0c7819b2d617485a13832e4dcd706570 SHA256 f08476371b59b1e2313b388e962e6ff968432d4b66520c11e8b05ff7e968c6c8 +DIST mailgraph-1.14.tar.gz 22014 RMD160 928969a4bdc3b9ff39a7fe16b98789f07b02e5f8 SHA1 6a2ead01ffd8fe49e520057daf97072e106b6c69 SHA256 50ea6ea8a33f5015926edd8b70a4d954ac27df4863514bddc5e69c948a7aac81 EBUILD mailgraph-1.12.ebuild 1410 RMD160 1da369b6d6761744f42b5d0962c29c6959e86d0b SHA1 ff1b1a6fc82f900a3764f08da171a5d46853034e SHA256 5c8f2b300b03b936be3e41239859985a70911299993a35cf63115b74084bbc7c MD5 7a86dbac9639c79b3df4bc1d17614f09 mailgraph-1.12.ebuild 1410 RMD160 1da369b6d6761744f42b5d0962c29c6959e86d0b mailgraph-1.12.ebuild 1410 @@ -28,10 +29,14 @@ EBUILD mailgraph-1.13.ebuild 4194 RMD160 6a8273963e30946222707051eb06c87d248bab5 MD5 cb69a21ec58c0ea2b56bf9569ff2a85b mailgraph-1.13.ebuild 4194 RMD160 6a8273963e30946222707051eb06c87d248bab5f mailgraph-1.13.ebuild 4194 SHA256 20cec12fc80221aec42b8c713ef429f665af01d00cf3982af28b14cfc64233e8 mailgraph-1.13.ebuild 4194 -MISC ChangeLog 3330 RMD160 52f952158b0557eb56ece8ed68b404db068ae842 SHA1 3a004ea84d622f199cb577506615f4bdf4de7cdf SHA256 8c0ba9e281406263469809c8df557f1d68870e3ac548f5fa46d34691049cbe75 -MD5 50b18cc9742af30c8503371b8eaf3c7e ChangeLog 3330 -RMD160 52f952158b0557eb56ece8ed68b404db068ae842 ChangeLog 3330 -SHA256 8c0ba9e281406263469809c8df557f1d68870e3ac548f5fa46d34691049cbe75 ChangeLog 3330 +EBUILD mailgraph-1.14.ebuild 4207 RMD160 1c01e8a6df0dca3208f61fa747dbaa1b196a1e8b SHA1 c0247ff46e0fcca3624c3bbf7323cc4db3ba48a6 SHA256 08434c2c04cf7965dc3cb8046ef2a2b7e8f70c5d092bb6bc2be97e323e0c0986 +MD5 460bac9722efdaf8f5cad8d172162393 mailgraph-1.14.ebuild 4207 +RMD160 1c01e8a6df0dca3208f61fa747dbaa1b196a1e8b mailgraph-1.14.ebuild 4207 +SHA256 08434c2c04cf7965dc3cb8046ef2a2b7e8f70c5d092bb6bc2be97e323e0c0986 mailgraph-1.14.ebuild 4207 +MISC ChangeLog 3462 RMD160 013a1390db8eca24435b019a4ca60a0003c61bf3 SHA1 479a70ccda1f1d268dc3cade3f3792d116db0820 SHA256 d97c9c8e98ea4f419dde667f597abdc8bbad10bffb9971178680f16b9ef081b3 +MD5 d3c6c8fe496bd91c08060e48961d7037 ChangeLog 3462 +RMD160 013a1390db8eca24435b019a4ca60a0003c61bf3 ChangeLog 3462 +SHA256 d97c9c8e98ea4f419dde667f597abdc8bbad10bffb9971178680f16b9ef081b3 ChangeLog 3462 MISC metadata.xml 163 RMD160 9d7831690071ef6a890ce066c38c9c4e851a2107 SHA1 6dcd4fa8a9b5cfcc7c0ae80c09e43395fe8e71a7 SHA256 38427b537ef2f561a685876ae3a7799382a1bf7fabef6c2d8765ca9d05056aa2 MD5 5da9e4b96f6f03e46d0e498b183b26de metadata.xml 163 RMD160 9d7831690071ef6a890ce066c38c9c4e851a2107 metadata.xml 163 @@ -42,3 +47,6 @@ SHA256 467847851dcbd9451fce80a4f8e7b20200503c3c51d98afa1d896e960247e00f files/di MD5 31657b3cd95ddb86f2e045fc5437547f files/digest-mailgraph-1.13 241 RMD160 8512864ac0006c8811f63396f4752b3cbd752bc6 files/digest-mailgraph-1.13 241 SHA256 fbbfbe00e02a107e35ed58d2ff51efd799afa13820c1662e602a77e037da2ea4 files/digest-mailgraph-1.13 241 +MD5 88421808d929760fb111a097cc0d43d4 files/digest-mailgraph-1.14 241 +RMD160 8ebe9fb009d4c9e62d06db475d4ec91ffc9ca00c files/digest-mailgraph-1.14 241 +SHA256 45bad62b0fb441e958f9912a4b4f223eb8f40f4f5a53776305aee2105c4de5ca files/digest-mailgraph-1.14 241 diff --git a/net-mail/mailgraph/files/digest-mailgraph-1.14 b/net-mail/mailgraph/files/digest-mailgraph-1.14 new file mode 100644 index 000000000000..556efd67ea50 --- /dev/null +++ b/net-mail/mailgraph/files/digest-mailgraph-1.14 @@ -0,0 +1,3 @@ +MD5 0f0ae91968ea7ae0c1d14985c560530b mailgraph-1.14.tar.gz 22014 +RMD160 928969a4bdc3b9ff39a7fe16b98789f07b02e5f8 mailgraph-1.14.tar.gz 22014 +SHA256 50ea6ea8a33f5015926edd8b70a4d954ac27df4863514bddc5e69c948a7aac81 mailgraph-1.14.tar.gz 22014 diff --git a/net-mail/mailgraph/mailgraph-1.14.ebuild b/net-mail/mailgraph/mailgraph-1.14.ebuild new file mode 100644 index 000000000000..2d952b03801b --- /dev/null +++ b/net-mail/mailgraph/mailgraph-1.14.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/mailgraph-1.14.ebuild,v 1.1 2007/10/22 18:24:57 dertobi123 Exp $ + +inherit eutils webapp + +DESCRIPTION="A mail statistics RRDtool frontend for Postfix" +HOMEPAGE="http://mailgraph.schweikert.ch/" +SRC_URI="http://mailgraph.schweikert.ch//pub/${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="logrotate" + +RDEPEND="dev-lang/perl + dev-perl/File-Tail + >=net-analyzer/rrdtool-1.2.2 + logrotate? ( app-admin/logrotate )" +DEPEND=">=sys-apps/sed-4" + +user_group_setup() { + # add user and group for mailgraph daemon + # also add mgraph to the group adm so it's able to + # read syslog logfile /var/log/messages (should be owned by + # root:adm with permission 0640) + enewgroup mgraph + enewuser mgraph -1 -1 /var/empty mgraph,adm +} + +pkg_setup() { + webapp_pkg_setup + built_with_use net-analyzer/rrdtool perl \ + || die "net-analyzer/rrdtool must be built with USE=perl" + user_group_setup +} + +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" +} + +pkg_preinst() { + user_group_setup +} + +src_install() { + webapp_src_preinst + # be sure to run webapp_src_install *before* doing the directories below + # because it cripples all other permissions :-( + webapp_src_install + + # for the RRDs + dodir /var/lib + diropts -omgraph -gmgraph -m0750 + dodir /var/lib/mailgraph + keepdir /var/lib/mailgraph + + # log and pid file + diropts "" + dodir /var/log + dodir /var/run + diropts -omgraph -gadm -m0750 + dodir /var/log/mailgraph + keepdir /var/log/mailgraph + dodir /var/run/mailgraph + keepdir /var/run/mailgraph + + if use logrotate ; then + # logrotate config for mailgraph log + diropts "" + dodir /etc/logrotate.d + insopts -m0644 + insinto /etc/logrotate.d + newins "${FILESDIR}"/mailgraph.logrotate-new mailgraph + fi + + # mailgraph daemon + newbin mailgraph.pl mailgraph + + # mailgraph CGI script + exeinto ${MY_CGIBINDIR} + doexe mailgraph.cgi + + # init/conf files for mailgraph daemon + newinitd "${FILESDIR}"/mailgraph.initd-new mailgraph + newconfd "${FILESDIR}"/mailgraph.confd-new mailgraph + + # docs + dodoc README CHANGES COPYING +} + +pkg_postinst() { + # Fix ownerships - previous versions installed these with + # root as owner + if [[ has_version <=net-mail/mailgraph-1.12 ]] ; then + if [[ -d /var/lib/mailgraph ]] ; then + chown mgraph:mgraph /var/lib/mailgraph + fi + if [[ -d /var/log/mailgraph ]] ; then + chown mgraph:adm /var/log/mailgraph + fi + if [[ -d /var/run/mailgraph ]] ; then + chown mgraph:adm /var/run/mailgraph + fi + fi + elog + elog "Mailgraph will run as user mgraph with group adm by default." + elog "This can be changed in /etc/conf.d/mailgraph if it doesn't fit." + elog "Remember to adjust MG_DAEMON_LOG, MG_DAEMON_PID and MG_DAEMON_RRD" + elog "as well!" + elog + elog + ewarn + ewarn "Please make sure the MG_LOGFILE (default: /var/log/messages) is readable" + ewarn "by group adm or change MG_DAEMON_GID in /etc/conf.d/mailgraph accordingly!" + ewarn + ewarn "Please make sure *all* mail related logs (MTA, spamfilter, virus scanner)" + ewarn "go to the file /var/log/messages or change MG_LOGFILE in" + ewarn "/etc/conf.d/mailgraph accordingly! Otherwise mailgraph won't get to know" + ewarn "the corresponding events (virus/spam mail found etc.)." + ewarn + ewarn + elog + elog "Checking for user apache" + if egetent passwd apache >&/dev/null; then + elog + elog "Adding user apache to group mgraph so the included" + elog "CGI script is able to read the mailgraph RRD files" + elog + if ! gpasswd -a apache mgraph >&/dev/null; then + eerror "Failed to add user apache to group mgraph!" + eerror "Please check manually." + fi + else + elog + elog "User apache not found, maybe we will be running a" + elog "webserver with a different UID?" + elog "If that's the case, please add that user to the" + elog "group mgraph manually to enable the included" + elog "CGI script to read the mailgraph RRD files:" + elog + elog "\tgpasswd -a <user> mgraph" + elog + fi +} |