summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeath Caldwell <hncaldwell@gentoo.org>2008-12-02 20:46:54 +0000
committerHeath Caldwell <hncaldwell@gentoo.org>2008-12-02 20:46:54 +0000
commit1eb2023fed1cb146ad59abf5071147853f6e45a6 (patch)
treeb26488e24921a7e2f54d5918d7788b15400bfd6e /app-admin/tenshi
parentstable ppc64, bug 245096 (diff)
downloadhistorical-1eb2023fed1cb146ad59abf5071147853f6e45a6.tar.gz
historical-1eb2023fed1cb146ad59abf5071147853f6e45a6.tar.bz2
historical-1eb2023fed1cb146ad59abf5071147853f6e45a6.zip
Add tenshi-0.10-r3 with solo-queue-escalation and warn-logfile patches (fixes bug #243082)
Package-Manager: portage-2.1.6_rc2/cvs/Linux 2.6.25-gentoo-r6-grey01 x86_64
Diffstat (limited to 'app-admin/tenshi')
-rw-r--r--app-admin/tenshi/ChangeLog11
-rw-r--r--app-admin/tenshi/Manifest17
-rw-r--r--app-admin/tenshi/files/tenshi-0.10-solo-queue-escalation.patch48
-rw-r--r--app-admin/tenshi/files/tenshi-0.10-warn-logfile.patch34
-rw-r--r--app-admin/tenshi/metadata.xml4
-rw-r--r--app-admin/tenshi/tenshi-0.10-r3.ebuild48
6 files changed, 147 insertions, 15 deletions
diff --git a/app-admin/tenshi/ChangeLog b/app-admin/tenshi/ChangeLog
index 72c3b7b4275b..e9c2d12280fe 100644
--- a/app-admin/tenshi/ChangeLog
+++ b/app-admin/tenshi/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for app-admin/tenshi
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/tenshi/ChangeLog,v 1.53 2008/06/11 12:48:26 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/tenshi/ChangeLog,v 1.54 2008/12/02 20:46:54 hncaldwell Exp $
+
+*tenshi-0.10-r3 (02 Dec 2008)
+
+ 02 Dec 2008; Heath Caldwell <hncaldwell@gentoo.org>
+ +files/tenshi-0.10-solo-queue-escalation.patch,
+ +files/tenshi-0.10-warn-logfile.patch, metadata.xml,
+ +tenshi-0.10-r3.ebuild:
+ Add tenshi-0.10-r3 with solo-queue-escalation and warn-logfile patches
+ (fixes bug #243082)
*tenshi-0.10-r2 (11 Jun 2008)
diff --git a/app-admin/tenshi/Manifest b/app-admin/tenshi/Manifest
index 13888a058495..acca64904b43 100644
--- a/app-admin/tenshi/Manifest
+++ b/app-admin/tenshi/Manifest
@@ -1,6 +1,5 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+AUX tenshi-0.10-solo-queue-escalation.patch 2718 RMD160 09596060e363b7768e697189de48ac8709978b3f SHA1 8bced32ab5b0b8721db86e337fda5729e7a8f437 SHA256 2300e136a72592d7f5cf808100fa6330b1de72731820cb88de3dac563d734d2d
+AUX tenshi-0.10-warn-logfile.patch 1130 RMD160 8399954ec96bc5c6f094cf5c22f0f1a9de07d468 SHA1 d57607195de93defc93604117efb3c5e9c9a60de SHA256 48d111974badd120fd49a5007200fd20c190ad5c18b894bdb46903ff8917e626
AUX tenshi-0.9.1-fix-tail_pids-array-length.patch 347 RMD160 93f1fa02d9ba83fc3f8b1731f75c31e97f47cc25 SHA1 1c25737f2e90d1de6a5e610186cae6239f3efb99 SHA256 305af10bb0ae54501e6ee993b83b8deda8ce5833cd7ff07eb7187872a688ad77
AUX tenshi-create-mandir.patch 473 RMD160 69e20a5eb6765b550bd8a5a0b713ee616796c71a SHA1 82a3e8f765e1a30271cd77425f13a81e807745e8 SHA256 03116f30486a2e03bab10897d87a0bc60e868b12c3a5d0f861bbdfe6bff73318
AUX tenshi-openrc-init.patch 473 RMD160 538c340dfbf7280166fe99c5dfa3995d7fa38ea6 SHA1 979f1557301e38499932b7147853a9a8a58915b3 SHA256 f657ba4dfcfd80f5acce1d77caf88006ba5e60e9fa5762085caf91326185a47a
@@ -9,14 +8,8 @@ DIST tenshi-0.10.tar.gz 26131 RMD160 27a3dc2e0fc7e6790497ddfa0dc6bd85cafd7316 SH
DIST tenshi-0.9.1.tar.gz 25845 RMD160 c4ab3df0b74c02f5beaef821771f9aeb385b9d7e SHA1 a3acc4bbbd813fadbcb59698c95710fe87cb7b6a SHA256 64e1f51e6dacc0a2d6a8e34bcdc18ef271f69110a1da8921e98c557f4c071dba
EBUILD tenshi-0.10-r1.ebuild 1005 RMD160 4e1bf81e698fcfe6494be41ad99f07cdcf9537a6 SHA1 e142b4b22246176fe30811f1934df7f49bae3b6b SHA256 318b4b0ada7814f9f040d737263fe4ba662453b34f942128a46200b94faeceaf
EBUILD tenshi-0.10-r2.ebuild 1084 RMD160 1486ea4063cb517c9d97e3eee19e557b098c30cf SHA1 02b685750fcdc978bd05e17cda4ae27516412b3d SHA256 b3e9e2b67471b440892c87369127d81a926b54655db23d8298a2faa96c0e1fb1
+EBUILD tenshi-0.10-r3.ebuild 1228 RMD160 ab265a7f47e283f0625cc75863a738bf3fe5b2dc SHA1 1b2f1805077d1e97b7c56b90cff17f7d15b5c33d SHA256 94b8ac652b1218338a63a394577568d477f83208dc88a28b9cfd83f4ec08832b
EBUILD tenshi-0.10.ebuild 938 RMD160 f343b7ce811caaf9bec0ada2b988b41771d64f2a SHA1 3402d8c5d6fcd471ac494f501969298c55bd1571 SHA256 2bc881328a35809281380d74b8bcf938239b4c93f3597098540469a05f76db39
EBUILD tenshi-0.9.1-r1.ebuild 1017 RMD160 3bd35d37874269dd12f1f80bf66125a88c9f0eef SHA1 b806c8d8a1a0312305fcbea56be04163ef5f64b6 SHA256 b7e16e066f61c1d957efaca7858be9b43242ca90452a07a8b7e691dd3812588e
-MISC ChangeLog 6637 RMD160 2ae3c8b9a7cb1f8d8aaefd243ddfce68fc2d26b6 SHA1 d02c6ca4e5e90fbe734049776ab2e37ae321cb7b SHA256 44721891575114720708d6daaa3d38bf4237d4fb069ef0c3373bc599e04ac7dd
-MISC metadata.xml 343 RMD160 b6f0a9d029ef88d82cc47d7fb9e37585cd970e60 SHA1 5336d4e01ef4349964cc2b606a4270f1daf68a32 SHA256 50b52a6bf534b94c78ff15e5d233dae0e6a716a9823aaf5c045bd3d27ace5867
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
-
-iEYEARECAAYFAkhPyaAACgkQz974XjDVpbkIxQCgoaov/QDSSKF/CFzJ0hrwcL2r
-z7YAn008ihQQar1j5iYZ1M+3NWOvnSZo
-=vHR1
------END PGP SIGNATURE-----
+MISC ChangeLog 6954 RMD160 5d451d030a6bb4d23532a221536b4e7ccc9577dc SHA1 0e048e68afde1e465b5242e4d32b424b9fbcb2c8 SHA256 7c4f085ae4e93fecdd5d2d55f9def71f4d8c41d98058e97212300387fc1dafdb
+MISC metadata.xml 348 RMD160 a7be1467b846066d2bd9afa7e9d33262fbc896eb SHA1 67009101e7f845d3cd7f90c9076ab49150e5d7b5 SHA256 5bdb394c612149d896a296eeac060b10e8da5d971fb9f08dff7e7956c6b03b8b
diff --git a/app-admin/tenshi/files/tenshi-0.10-solo-queue-escalation.patch b/app-admin/tenshi/files/tenshi-0.10-solo-queue-escalation.patch
new file mode 100644
index 000000000000..a588ec18f131
--- /dev/null
+++ b/app-admin/tenshi/files/tenshi-0.10-solo-queue-escalation.patch
@@ -0,0 +1,48 @@
+Submitted by: Heath Caldwell <hncaldwell@gentoo.org>
+Date: 2008-10-21
+Initial Package Version: 0.10
+Upstream Status: Accepted to be included in next release
+Description: Allows the leftmost queue to have an escalation number if it is the only queue mentioned.
+
+diff -ur tenshi-0.10/tenshi tenshi-0.10.new/tenshi
+--- tenshi-0.10/tenshi 2008-10-06 16:55:37.000000000 -0700
++++ tenshi-0.10.new/tenshi 2008-10-06 17:18:07.000000000 -0700
+@@ -522,7 +522,7 @@
+ }
+ }
+
+- if ($queue[0] =~ /:/) {
++ if (@queue > 1 and $queue[0] =~ /:/) {
+ die RED "[ERROR] Left most queue in a multiple queue declaration can not have an escalation number\n";
+ }
+
+diff -ur tenshi-0.10/tenshi.8 tenshi-0.10.new/tenshi.8
+--- tenshi-0.10/tenshi.8 2008-03-13 04:31:12.000000000 -0700
++++ tenshi-0.10.new/tenshi.8 2008-10-06 17:09:36.000000000 -0700
+@@ -337,16 +337,16 @@
+ regexp. The queue will receive the message that matched the regexp at the time
+ of escalation, with a count equal to the escalation number. The count of
+ messages matching the regexp will be reset when the left most queue mentioned
+-in the queue list is mailed.The left most queue cannot have an escalation
+-number. When the number of messages that match the regexp reaches the greatest
+-escalation number mentioned, escalation will begin again into the escalation
+-queues, modulus the greatest escalation number. For example, using the queues
+-`a,b:10,c:50', when 10 messages match the regexp, a message will go into b,
+-when 50 match, one will go into c. At 60, another will go into b, and at 100,
+-another into c, 110 to b, 150 to c, and so on. Escalation numbers must be
+-positive integers greater than zero and must be listed in increasing order from
+-left to right. All queues without escalation numbers must be listed more left
+-than the queues with escalation numbers.
++in the queue list is mailed. The left most queue cannot have an escalation
++number unless it is the only queue listed. When the number of messages that
++match the regexp reaches the greatest escalation number mentioned, escalation
++will begin again into the escalation queues, modulus the greatest escalation
++number. For example, using the queues `a,b:10,c:50', when 10 messages match the
++regexp, a message will go into b, when 50 match, one will go into c. At 60,
++another will go into b, and at 100, another into c, 110 to b, 150 to c, and so
++on. Escalation numbers must be positive integers greater than zero and must be
++listed in increasing order from left to right. All queues without escalation
++numbers must be listed more left than the queues with escalation numbers.
+
+ .br
+ The standard grouping operators
diff --git a/app-admin/tenshi/files/tenshi-0.10-warn-logfile.patch b/app-admin/tenshi/files/tenshi-0.10-warn-logfile.patch
new file mode 100644
index 000000000000..4a0f33be7aed
--- /dev/null
+++ b/app-admin/tenshi/files/tenshi-0.10-warn-logfile.patch
@@ -0,0 +1,34 @@
+Submitted by: Heath Caldwell <hncaldwell@gentoo.org>
+Date: 2008-10-21
+Initial Package Version: 0.10
+Upstream Status: No response
+Description: Warns on log files that tenshi can't open and continues monitoring the ones that it can, instead of just exiting.
+
+diff -ur tenshi-0.10/tenshi tenshi-0.10.new/tenshi
+--- tenshi-0.10/tenshi 2008-10-06 16:55:37.000000000 -0700
++++ tenshi-0.10.new/tenshi 2008-10-07 11:46:06.000000000 -0700
+@@ -141,10 +141,22 @@
+ die RED "[ERROR] $main{'csv'}{'path'}: not executable";
+ }
+
++ my @good_log_files;
+ foreach my $log (@log_files) {
+- die RED "[ERROR] $log: no such file" if (! -f $log);
+- die RED "[ERROR] $log: file not readable" if (! -r $log);
++ unless (-f $log) {
++ print STDERR RED "[WARNING] $log: no such file\n";
++ next;
++ }
++
++ unless (-r $log) {
++ print STDERR RED "[WARNING] $log: file not readable\n";
++ next;
++ }
++
++ push @good_log_files, $log;
+ }
++ @good_log_files > 0 or die RED "[ERROR] no readable log files";
++ @log_files = @good_log_files;
+ }
+
+ #
diff --git a/app-admin/tenshi/metadata.xml b/app-admin/tenshi/metadata.xml
index 596551b34591..08ffbf8def3b 100644
--- a/app-admin/tenshi/metadata.xml
+++ b/app-admin/tenshi/metadata.xml
@@ -3,8 +3,8 @@
<pkgmetadata>
<herd>no-herd</herd>
<maintainer>
- <email>jokey@gentoo.org</email>
- <name>Markus Ullmann</name>
+ <email>hncaldwell@gentoo.org</email>
+ <name>Heath Caldwell</name>
</maintainer>
<maintainer>
<email>atj@pulsewidth.org.uk</email>
diff --git a/app-admin/tenshi/tenshi-0.10-r3.ebuild b/app-admin/tenshi/tenshi-0.10-r3.ebuild
new file mode 100644
index 000000000000..a73588d72ec4
--- /dev/null
+++ b/app-admin/tenshi/tenshi-0.10-r3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/tenshi/tenshi-0.10-r3.ebuild,v 1.1 2008/12/02 20:46:54 hncaldwell Exp $
+
+inherit eutils
+
+DESCRIPTION="Log parsing and notification program"
+HOMEPAGE="http://dev.inversepath.com/trac/tenshi"
+SRC_URI="http://dev.inversepath.com/tenshi/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ dev-perl/IO-BufferedSelect
+ sys-apps/coreutils"
+
+pkg_setup() {
+ enewgroup tenshi
+ enewuser tenshi -1 -1 /var/lib/tenshi tenshi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PN}-create-mandir.patch"
+ # Fix for bug #218042
+ epatch "${FILESDIR}/${PN}-openrc-init.patch"
+ # Fix for bug #217000
+ epatch "${FILESDIR}/${PN}-remove-timezone-cache.patch"
+
+ # Fixes for bug #243082
+ epatch "${FILESDIR}/${PN}-0.10-solo-queue-escalation.patch"
+ epatch "${FILESDIR}/${PN}-0.10-warn-logfile.patch"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ fowners tenshi:root /etc/tenshi/tenshi.conf
+ dodir /var/lib/tenshi
+ fowners tenshi:root /var/lib/tenshi
+ doman tenshi.8
+ newinitd tenshi.gentoo-init tenshi
+ keepdir /var/lib/tenshi
+}