diff options
author | Michael Cummings <mcummings@gentoo.org> | 2006-08-12 12:32:30 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2006-08-12 12:32:30 +0000 |
commit | 694b23ea669f19d47325a1a9744bdb3e9b771c76 (patch) | |
tree | 2b8e368e7fe852ba0611b497f3f337dc4f8eaa1f /app-admin | |
parent | Stable on ppc64; bug #138937 (diff) | |
download | gentoo-2-694b23ea669f19d47325a1a9744bdb3e9b771c76.tar.gz gentoo-2-694b23ea669f19d47325a1a9744bdb3e9b771c76.tar.bz2 gentoo-2-694b23ea669f19d47325a1a9744bdb3e9b771c76.zip |
Bug 108254, alertafter patch. Thanks Voltairien
(Portage version: 2.1.1_pre3-r1)
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/mon/ChangeLog | 9 | ||||
-rw-r--r-- | app-admin/mon/files/alertafter.patch | 18 | ||||
-rw-r--r-- | app-admin/mon/files/digest-mon-0.99.2-r4 | 3 | ||||
-rw-r--r-- | app-admin/mon/mon-0.99.2-r4.ebuild | 62 |
4 files changed, 91 insertions, 1 deletions
diff --git a/app-admin/mon/ChangeLog b/app-admin/mon/ChangeLog index 8b51797b1de6..e427e16140e1 100644 --- a/app-admin/mon/ChangeLog +++ b/app-admin/mon/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-admin/mon # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/mon/ChangeLog,v 1.22 2006/06/09 12:50:16 mcummings Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/mon/ChangeLog,v 1.23 2006/08/12 12:32:30 mcummings Exp $ + +*mon-0.99.2-r4 (12 Aug 2006) + + 12 Aug 2006; Michael Cummings <mcummings@gentoo.org> + +files/alertafter.patch, -mon-0.99.2-r1.ebuild, -mon-0.99.2-r3.ebuild, + +mon-0.99.2-r4.ebuild: + Bug 108254, alertafter patch. Thanks Voltairien 09 Jun 2006; Michael Cummings <mcummings@gentoo.org> mon-0.99.2-r3.ebuild: One more pass, this time with valid use flags. diff --git a/app-admin/mon/files/alertafter.patch b/app-admin/mon/files/alertafter.patch new file mode 100644 index 000000000000..a331b04acb52 --- /dev/null +++ b/app-admin/mon/files/alertafter.patch @@ -0,0 +1,18 @@ +diff -Naurp mon-0.99.2.orig/mon mon-0.99.2/mon +--- mon-0.99.2.orig/mon 2006-08-12 08:16:46.000000000 -0400 ++++ mon-0.99.2/mon 2006-08-12 08:18:08.000000000 -0400 +@@ -2879,12 +2879,13 @@ debug (1, "PID $p ($runningpid{$p}) exit + $sref->{"_last_detail"} = $detail; + + # +- # reset the alertevery timer ++ # reset the alertevery timer, and alertafter interval timer + # + foreach my $period (keys %{$sref->{"periods"}}) + { + $sref->{"periods"}->{$period}->{"_last_alert"} = 0; + $sref->{"periods"}->{$period}->{"_alert_sent"} = 0; ++ $sref->{"periods"}->{$period}->{"_1stfailtime"} = 0; + } + + # diff --git a/app-admin/mon/files/digest-mon-0.99.2-r4 b/app-admin/mon/files/digest-mon-0.99.2-r4 new file mode 100644 index 000000000000..90af4ea3e052 --- /dev/null +++ b/app-admin/mon/files/digest-mon-0.99.2-r4 @@ -0,0 +1,3 @@ +MD5 61dbaed4ab89e952650339a55dd9f1dc mon-0.99.2.tar.bz2 135732 +RMD160 c81ffbc16c022d9f3e4a1ed8ea8802dc7f78766e mon-0.99.2.tar.bz2 135732 +SHA256 d0dfa547180c15f21c9c22557025f75c7e14bd77e808c03e2e59f2303dd6656e mon-0.99.2.tar.bz2 135732 diff --git a/app-admin/mon/mon-0.99.2-r4.ebuild b/app-admin/mon/mon-0.99.2-r4.ebuild new file mode 100644 index 000000000000..f600b3a6e458 --- /dev/null +++ b/app-admin/mon/mon-0.99.2-r4.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/mon/mon-0.99.2-r4.ebuild,v 1.1 2006/08/12 12:32:30 mcummings Exp $ + +inherit toolchain-funcs eutils multilib + +DESCRIPTION="highly configurable service monitoring daemon" +HOMEPAGE="http://www.kernel.org/software/mon/" +SRC_URI="mirror://kernel/software/admin/mon/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="ldap mysql" + +DEPEND=">=dev-perl/Mon-0.9 + >=virtual/perl-Time-HiRes-1.20 + dev-perl/Convert-BER + dev-perl/Filesys-DiskSpace + dev-perl/Net-Telnet + ldap? ( dev-perl/perl-ldap ) + dev-perl/Expect + dev-perl/Net-DNS + mysql? ( dev-perl/DBD-mysql ) + >=dev-perl/Period-1.20-r2" + +src_unpack() { + unpack ${A} + cd ${S} && epatch ${FILESDIR}/alertafter.patch +} + +src_compile() { + cd ${S}/mon.d + make CC="$(tc-getCC) $CFLAGS" || die +} + +src_install() { + dosbin mon clients/mon* || die "dosbin" + + insinto /usr/$(get_libdir)/mon/utils + doins utils/* || die "doins" + + exeinto /usr/$(get_libdir)/mon/alert.d ; doexe alert.d/* + exeinto /usr/$(get_libdir)/mon/mon.d ; doexe mon.d/*.monitor + insopts -g uucp -m 02555 ; doins mon.d/*.wrap + + dodir /var/log/mon.d + dodir /var/lib/mon.d + + doman doc/*.1 + doman doc/*.8 + dodoc CHANGES CREDITS KNOWN-PROBLEMS + dodoc mon.lsm README TODO VERSION + docinto txt ; dodoc doc/README* + docinto etc ; dodoc etc/* + newdoc ${FILESDIR}/mon.cf mon.cf.sample + + exeinto /etc/init.d + newexe ${FILESDIR}/mon.rc6 mon + insinto /etc/mon + newins ${FILESDIR}/mon.cf mon.cf.sample +} |