test-patch für linebreaks in monit
Hanno Böck

Hanno Böck commited on 2010-06-28 14:39:18
Zeige 9 geänderte Dateien mit 451 Einfügungen und 0 Löschungen.

... ...
@@ -0,0 +1,201 @@
1
+# ChangeLog for app-admin/monit
2
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
3
+# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/ChangeLog,v 1.48 2010/06/21 20:33:23 maekke Exp $
4
+
5
+  21 Jun 2010; Markus Meier <maekke@gentoo.org> monit-5.1.1.ebuild:
6
+  x86 stable, bug #324565
7
+
8
+  18 Jun 2010; Patrick Lauer <patrick@gentoo.org> -monit-4.8.1.ebuild,
9
+  -monit-4.8.2.ebuild, -monit-5.0_beta6.ebuild, -monit-5.0.3.ebuild:
10
+  Remove old
11
+
12
+  09 Jun 2010; Patrick Lauer <patrick@gentoo.org> monit-5.1.1.ebuild:
13
+  Fixing doc installation for #319669
14
+
15
+  02 Jun 2010; Patrick Lauer <patrick@gentoo.org> metadata.xml:
16
+  Taking over as maintainer
17
+
18
+  02 Jun 2010; Torsten Veller <tove@gentoo.org> metadata.xml:
19
+  Remove caleb from metadata.xml (#317071)
20
+
21
+*monit-5.1.1 (30 Apr 2010)
22
+
23
+  30 Apr 2010; Patrick Lauer <patrick@gentoo.org> +monit-5.1.1.ebuild:
24
+  Bump
25
+
26
+  23 Sep 2009; Patrick Lauer <patrick@gentoo.org> monit-4.8.1.ebuild,
27
+  monit-4.8.2.ebuild, monit-4.10.1.ebuild, monit-5.0_beta6.ebuild:
28
+  Remove virtual/libc
29
+
30
+  10 Jul 2009; Gordon Malm <gengor@gentoo.org> monit-4.8.1.ebuild,
31
+  monit-4.8.2.ebuild, monit-4.10.1.ebuild, monit-5.0_beta6.ebuild,
32
+  monit-5.0.3.ebuild:
33
+  Update upstream URLs, minor dodoc QA. Bug #276632
34
+
35
+*monit-5.0.3 (22 Jun 2009)
36
+
37
+  22 Jun 2009; Patrick Lauer <patrick@gentoo.org> +monit-5.0.3.ebuild:
38
+  Bump to 5.0.3
39
+
40
+*monit-5.0_beta6 (27 Dec 2008)
41
+
42
+  27 Dec 2008; Caleb Tennis <caleb@gentoo.org> metadata.xml,
43
+  -monit-5.0_beta4.ebuild, +monit-5.0_beta6.ebuild:
44
+  version bump
45
+
46
+*monit-5.0_beta4 (30 Oct 2008)
47
+
48
+  30 Oct 2008; Caleb Tennis <caleb@gentoo.org> -monit-5.0_beta3.ebuild,
49
+  +monit-5.0_beta4.ebuild:
50
+  version bump
51
+
52
+*monit-5.0_beta3 (29 Aug 2008)
53
+
54
+  29 Aug 2008; Caleb Tennis <caleb@gentoo.org> +files/monit.initd-5.0,
55
+  +monit-5.0_beta3.ebuild:
56
+  Bump monit
57
+
58
+*monit-5.0_beta2 (18 Aug 2008)
59
+
60
+  18 Aug 2008; Caleb Tennis <caleb@gentoo.org> +files/monit.initd-5.0,
61
+  +monit-5.0_beta2.ebuild:
62
+  version bump
63
+
64
+  21 May 2008; nixnut <nixnut@gentoo.org> monit-4.10.1.ebuild:
65
+  ppc stable wrt bug 222401
66
+
67
+  20 May 2008; Raúl Porcel <armin76@gentoo.org> monit-4.10.1.ebuild:
68
+  sparc stable wrt #222401, thanks to Friedrich Oslage for testing
69
+
70
+  19 May 2008; Markus Meier <maekke@gentoo.org> monit-4.10.1.ebuild:
71
+  x86 stable, bug #222401
72
+
73
+  21 Apr 2008; Christian Heim <phreak@gentoo.org> metadata.xml:
74
+  Fix up metadata.xml. If there's no maintainer for the package, the metadata
75
+  also needs to contain m-needed@g.o.
76
+
77
+  10 Mar 2008; Caleb Tennis <caleb@gentoo.org> monit-4.10.1.ebuild:
78
+  This version is now GPL-3
79
+
80
+*monit-4.10.1 (06 Feb 2008)
81
+
82
+  06 Feb 2008; Caleb Tennis <caleb@gentoo.org> +files/monit.initd-4.10.1,
83
+  +monit-4.10.1.ebuild:
84
+  version bump
85
+
86
+  24 Apr 2007; Gustavo Zacarias <gustavoz@gentoo.org> monit-4.8.2.ebuild:
87
+  Stable on sparc
88
+
89
+  09 Apr 2007; Peter Weller <welp@gentoo.org> monit-4.8.2.ebuild:
90
+  Stable on amd64 wrt bug 173819
91
+
92
+  01 Apr 2007; Michael Hanselmann <hansmi@gentoo.org> monit-4.8.2.ebuild:
93
+  Stable on ppc.
94
+
95
+  20 Mar 2007; Raúl Porcel <armin76@gentoo.org> monit-4.8.2.ebuild:
96
+  x86 stable
97
+
98
+*monit-4.8.2 (06 Jan 2007)
99
+
100
+  06 Jan 2007; MATSUU Takuto <matsuu@gentoo.org> -files/monit.initd,
101
+  -monit-4.4.ebuild, -monit-4.5.1.ebuild, -monit-4.6.ebuild,
102
+  +monit-4.8.2.ebuild:
103
+  Version bumped.
104
+  Removed old versions.
105
+
106
+  25 Oct 2006; Joshua Jackson <tsunam@gentoo.org> monit-4.8.1.ebuild:
107
+  Stable x86; bug #152220
108
+
109
+  23 Oct 2006; Jason Wever <weeve@gentoo.org> monit-4.8.1.ebuild:
110
+  Stable on SPARC wrt bug #152220.
111
+
112
+  22 Oct 2006; Chris White <chriswhite@gentoo.org> monit-4.8.1.ebuild:
113
+  Marked 4.8.1 stable for ppc per bug #152220.
114
+
115
+  21 Oct 2006; Konstantin V. Arkhipov <voxus@gentoo.org> monit-4.8.1.ebuild:
116
+  Applied Jakub's patch wrt bug #152220, goes stable on amd64.
117
+
118
+*monit-4.8.1 (10 Jun 2006)
119
+
120
+  10 Jun 2006; MATSUU Takuto <matsuu@gentoo.org> +files/monit.initd-4.8.1,
121
+  +monit-4.8.1.ebuild:
122
+  Version bumped, Bug 132609.
123
+
124
+*monit-4.6 (29 Oct 2005)
125
+
126
+  29 Oct 2005; Marcelo Goes <vanquirius@gentoo.org> -monit-4.5.ebuild,
127
+  +monit-4.6.ebuild:
128
+  Version bump for bug 109788. Thanks to <esi at itk dot ntnu dot no>.
129
+
130
+*monit-4.5.1 (14 Apr 2005)
131
+
132
+  14 Apr 2005; MATSUU Takuto <matsuu@gentoo.org> +monit-4.5.1.ebuild:
133
+  Version bumped.
134
+
135
+*monit-4.5 (30 Mar 2005)
136
+
137
+  30 Mar 2005; MATSUU Takuto <matsuu@gentoo.org> -monit-4.3.ebuild,
138
+  monit-4.4.ebuild, +monit-4.5.ebuild:
139
+  Version bumped, Bug #87233.
140
+  Marked 4.4 stable.
141
+  Removed old version.
142
+
143
+*monit-4.4 (03 Jan 2005)
144
+
145
+  03 Jan 2005; MATSUU Takuto <matsuu@gentoo.org> +monit-4.4.ebuild:
146
+  Version bumped.
147
+
148
+  18 Dec 2004; Michael Hanselmann <hansmi@gentoo.org> monit-4.3.ebuild:
149
+  Stable on ppc.
150
+
151
+  18 Dec 2004; Simon Stelling <blubb@gentoo.org> monit-4.3.ebuild:
152
+  was testing for over 168 days, marking stable on amd64
153
+
154
+  21 Nov 2004; Jason Wever <weeve@gentoo.org> monit-4.3.ebuild:
155
+  Stable on sparc.
156
+
157
+  18 Nov 2004; <pyrania@gentoo.org> monit-4.3.ebuild:
158
+  Marked stable on x86.
159
+
160
+  05 Oct 2004; Pieter Van den Abeele <pvdabeel@gentoo.org> monit-4.2.1.ebuild:
161
+  Masked monit-4.2.1.ebuild stable for ppc
162
+
163
+*monit-4.3 (03 Jul 2004)
164
+
165
+  03 Jul 2004; <pyrania@gentoo.org> +monit-4.3.ebuild:
166
+  Version bump.
167
+
168
+  01 Jun 2004; Josh Grebe <squash@gentoo.org> monit-4.2.1.ebuild:
169
+  Stable on sparc
170
+
171
+  13 Apr 2004; David Holm <dholm@gentoo.org> monit-4.2.1.ebuild:
172
+  Added to ~ppc.
173
+
174
+*monit-4.2.1 (13 Apr 2004)
175
+
176
+  13 Apr 2004; Markus Nigbur <pyrania@gentoo.org> monit-4.1.ebuild,
177
+  monit-4.2.1.ebuild, monit-4.2.ebuild:
178
+  Version bump. Fixing buffer overflow vulnerability. See bug #47631.
179
+
180
+  30 Mar 2004; Markus Nigbur <pyrania@gentoo.org> monit-4.2.ebuild:
181
+  Marked stable due to security vulnerabilites in the HTTP interface of older
182
+  versions.
183
+
184
+  28 Mar 2004; <matsuu@gentoo.org> monit-4.2.ebuild:
185
+  Version bumped.
186
+  Added files/monit.initd.
187
+  Added ~amd64 to KEYWORDS.
188
+
189
+  29 Feb 2004; Markus Nigbur <pyrania@gentoo.org> monit-4.1.ebuild:
190
+  Stable on x86.
191
+
192
+*monit-4.1 (29 Oct 2003)
193
+
194
+  29 Oct 2003; MATSUU Takuto <matsuu@gentoo.org> monit-4.1.ebuild:
195
+  version bump
196
+
197
+*monit-4.0 (01 Oct 2003)
198
+
199
+  01 Oct 2003; Markus Nigbur <pyrania@gentoo.org> monit-4.0.ebuild:
200
+  Initial ebuild. Thanks to rladams@kelsey-seybold.com (bug #16044).
201
+
... ...
@@ -0,0 +1,10 @@
1
+AUX monit-5.1.1-fix-newlines.diff 3409 RMD160 03ab4835667196b79b2d90d03dfe38661bb622aa SHA1 bd1d288514c5de7dad50e47a512aecfbdec530b1 SHA256 13cdc10e544ac932689809c752db18c9865cc169b19c52fb13d97ed8b0934330
2
+AUX monit.initd-4.10.1 621 RMD160 0f70764ab590ced7dc86699a20973db2b291e5c8 SHA1 15545615e23c234561e691709def4722dbe31567 SHA256 7f6564cb738e6430e8d1dca9be7a63db1baf4b421f5445767e235658f0b1c024
3
+AUX monit.initd-4.8.1 621 RMD160 61f37cc1d7cac73e107c4d7c3b98339e83dac0ae SHA1 bb808a6fd853b74985688a9cb383b8e352f5b60f SHA256 a4f0c8d928686a498ab156dfca55567078d60090378c79e7611f10809a885798
4
+AUX monit.initd-5.0 618 RMD160 d8e488aeed8fe34d8aa69456c6f6d3f0ff162230 SHA1 e26532abcd3b3e02403c03c9fe501825e0a472c5 SHA256 9715991dfc26021689e878f74fa9c5c02a7a7504ba527c9ed0ed8f165bedaa04
5
+DIST monit-4.10.1.tar.gz 606273 RMD160 6c517b19bc43f4023dfca4de1df09272b41af02d SHA1 c87aa0c6e0b1d13f46b7e9d84937191e25a907a6 SHA256 f6a29300648381538a403f24506e75b94164e26c69c6861ca112d425edc9d193
6
+DIST monit-5.1.1.tar.gz 615924 RMD160 1b4fed4e039adfd626f3c49436702c0272948327 SHA1 cad2ff02a2f6dbfb5773d13e42506adb2165d15c SHA256 bf789e0660410e8c63f4b3dc2eeab9889347e6494a6dc1c0e764343cae0dc1ba
7
+EBUILD monit-4.10.1.ebuild 1213 RMD160 7738cbf8f8c3efd8a0cbd6c3cd6d3ccdb2452217 SHA1 f26cddbe92ea07defc01e1f434826ac3a1b69ee4 SHA256 a5699d5432dacee66a9843942c3dcdbf4be6ff0b967e418bb13d514e85f1813f
8
+EBUILD monit-5.1.1.ebuild 1246 RMD160 58b50739a28a7162d3aabc370680c1b2ea27ea19 SHA1 dfa1a2f8ac73d8b5e1835d6f12eb922d7eb60904 SHA256 2f877e398e8e5e54da2293334e938975b41cb134b28e31b17a70bfa3a5fa6a20
9
+MISC ChangeLog 6153 RMD160 1817a09de9a367aaa7fac714e7621aa77ac60374 SHA1 6ee00e9429624c74a0ef9bfb3e0b1ece2c8e3192 SHA256 df4855d4cee6c28657d4fc9af233e1a4086854d59423a401909fb8273f91d35f
10
+MISC metadata.xml 283 RMD160 6e720fc6781f6653a0979215b63fafcb8801a223 SHA1 4714773a5fe2324a1b7ddb185fe710de78f3ac29 SHA256 5499d2de743ec9bb5befea5bdc63e0659eec4e44ecef80d6c7c1713708e05b05
... ...
@@ -0,0 +1,56 @@
1
+--- monit-5.1.1/validate.c	2010-02-23 11:32:40.000000000 +0100
2
++++ monit-5.1.1-1/validate.c	2010-06-28 12:38:30.000000000 +0200
3
+@@ -766,7 +766,7 @@
4
+       snprintf(report, STRLEN, "loadavg(1min) of %.1f matches resource limit " "[loadavg(1min)%s%.1f]", systeminfo.loadavg[0], operatorshortnames[r->operator], r->limit/10.0);
5
+       okay = FALSE;
6
+     } else
7
+-      snprintf(report, STRLEN, "'%s' loadavg(1min) check succeeded [current loadavg(1min)=%.1f]\n", s->name, systeminfo.loadavg[0]);
8
++      snprintf(report, STRLEN, "'%s' loadavg(1min) check succeeded [current loadavg(1min)=%.1f]", s->name, systeminfo.loadavg[0]);
9
+     break;
10
+ 
11
+   case RESOURCE_ID_LOAD5:
12
+@@ -774,7 +774,7 @@
13
+       snprintf(report, STRLEN, "loadavg(5min) of %.1f matches resource limit " "[loadavg(5min)%s%.1f]", systeminfo.loadavg[1], operatorshortnames[r->operator], r->limit/10.0);
14
+       okay = FALSE;
15
+     } else
16
+-      snprintf(report, STRLEN, "'%s' loadavg(5min) check succeeded [current loadavg(5min)=%.1f]\n", s->name, systeminfo.loadavg[1]);
17
++      snprintf(report, STRLEN, "'%s' loadavg(5min) check succeeded [current loadavg(5min)=%.1f]", s->name, systeminfo.loadavg[1]);
18
+     break;
19
+ 
20
+   case RESOURCE_ID_LOAD15:
21
+@@ -782,7 +782,7 @@
22
+       snprintf(report, STRLEN, "loadavg(15min) of %.1f matches resource limit " "[loadavg(15min)%s%.1f]", systeminfo.loadavg[2], operatorshortnames[r->operator], r->limit/10.0);
23
+       okay = FALSE;
24
+     } else
25
+-      snprintf(report, STRLEN, "'%s' loadavg(15min) check succeeded [current loadavg(15min)=%.1f]\n", s->name, systeminfo.loadavg[2]);
26
++      snprintf(report, STRLEN, "'%s' loadavg(15min) check succeeded [current loadavg(15min)=%.1f]", s->name, systeminfo.loadavg[2]);
27
+     break;
28
+ 
29
+   case RESOURCE_ID_CHILDREN:
30
+@@ -790,7 +790,7 @@
31
+       snprintf(report, STRLEN, "children of %i matches resource limit [children%s%ld]", s->inf->children, operatorshortnames[r->operator], r->limit);
32
+       okay = FALSE;
33
+     } else
34
+-      snprintf(report, STRLEN, "'%s' children check succeeded [current children=%i]\n", s->name, s->inf->children);
35
++      snprintf(report, STRLEN, "'%s' children check succeeded [current children=%i]", s->name, s->inf->children);
36
+     break;
37
+ 
38
+   case RESOURCE_ID_TOTAL_MEM_KBYTE:
39
+@@ -798,7 +798,7 @@
40
+       snprintf(report, STRLEN, "total mem amount of %ldkB matches resource limit" " [total mem amount%s%ldkB]", s->inf->total_mem_kbyte, operatorshortnames[r->operator], r->limit);
41
+       okay = FALSE;
42
+     } else
43
+-      snprintf(report, STRLEN, "'%s' total mem amount check succeeded " "[current total mem amount=%ldkB]\n", s->name, s->inf->total_mem_kbyte);
44
++      snprintf(report, STRLEN, "'%s' total mem amount check succeeded " "[current total mem amount=%ldkB]", s->name, s->inf->total_mem_kbyte);
45
+     break;
46
+ 
47
+   case RESOURCE_ID_TOTAL_MEM_PERCENT:
48
+@@ -806,7 +806,7 @@
49
+       snprintf(report, STRLEN, "total mem amount of %.1f%% matches resource limit" " [total mem amount%s%.1f%%]", (float)s->inf->total_mem_percent/10.0, operatorshortnames[r->operator], (float)r->limit/10.0);
50
+       okay = FALSE;
51
+     } else
52
+-      snprintf(report, STRLEN, "'%s' total mem amount check succeeded " "[current total mem amount=%.1f%%]\n", s->name, s->inf->total_mem_percent/10.0);
53
++      snprintf(report, STRLEN, "'%s' total mem amount check succeeded " "[current total mem amount=%.1f%%]", s->name, s->inf->total_mem_percent/10.0);
54
+     break;
55
+ 
56
+   default:
... ...
@@ -0,0 +1,28 @@
1
+#!/sbin/runscript
2
+# Copyright 1999-2004 Gentoo Foundation
3
+# Distributed under the terms of the GNU General Public License, v2 or later
4
+# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/files/monit.initd-4.10.1,v 1.1 2008/02/06 19:47:56 caleb Exp $
5
+
6
+opts="${opts} reload"
7
+
8
+depend() {
9
+	use net
10
+}
11
+
12
+start() {
13
+	ebegin "Starting monit"
14
+	start-stop-daemon --start --quiet --exec /usr/bin/monit >/dev/null 2>&1
15
+	eend $?
16
+}
17
+
18
+stop() {
19
+	ebegin "Stopping monit"
20
+	start-stop-daemon --stop --quiet --exec /usr/bin/monit
21
+	eend $?
22
+}
23
+
24
+reload() {
25
+	ebegin "Reloading monit"
26
+	/usr/bin/monit -c /etc/monitrc reload >/dev/null 2>&1
27
+	eend $?
28
+}
... ...
@@ -0,0 +1,28 @@
1
+#!/sbin/runscript
2
+# Copyright 1999-2004 Gentoo Foundation
3
+# Distributed under the terms of the GNU General Public License, v2 or later
4
+# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/files/monit.initd-4.8.1,v 1.1 2006/06/10 13:39:56 matsuu Exp $
5
+
6
+opts="${opts} reload"
7
+
8
+depend() {
9
+	use net
10
+}
11
+
12
+start() {
13
+	ebegin "Starting monit"
14
+	start-stop-daemon --start --quiet --exec /usr/bin/monit >/dev/null 2>&1
15
+	eend $?
16
+}
17
+
18
+stop() {
19
+	ebegin "Stopping monit"
20
+	start-stop-daemon --stop --quiet --exec /usr/bin/monit
21
+	eend $?
22
+}
23
+
24
+reload() {
25
+	ebegin "Reloading monit"
26
+	/usr/bin/monit -c /etc/monitrc reload >/dev/null 2>&1
27
+	eend $?
28
+}
... ...
@@ -0,0 +1,28 @@
1
+#!/sbin/runscript
2
+# Copyright 1999-2004 Gentoo Foundation
3
+# Distributed under the terms of the GNU General Public License, v2 or later
4
+# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/files/monit.initd-5.0,v 1.1 2008/08/29 20:13:37 caleb Exp $
5
+
6
+opts="${opts} reload"
7
+
8
+depend() {
9
+	use net
10
+}
11
+
12
+start() {
13
+	ebegin "Starting monit"
14
+	start-stop-daemon --start --quiet --exec /usr/bin/monit >/dev/null 2>&1
15
+	eend $?
16
+}
17
+
18
+stop() {
19
+	ebegin "Stopping monit"
20
+	start-stop-daemon --stop --quiet --exec /usr/bin/monit
21
+	eend $?
22
+}
23
+
24
+reload() {
25
+	ebegin "Reloading monit"
26
+	/usr/bin/monit -c /etc/monitrc reload >/dev/null 2>&1
27
+	eend $?
28
+}
... ...
@@ -0,0 +1,9 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3
+<pkgmetadata>
4
+	<herd>no-herd</herd>
5
+	<maintainer>
6
+                <email>patrick@gentoo.org</email>
7
+                <name>Patrick Lauer</name>
8
+	</maintainer>
9
+</pkgmetadata>
... ...
@@ -0,0 +1,43 @@
1
+# Copyright 1999-2009 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/monit-4.10.1.ebuild,v 1.7 2009/09/23 15:00:38 patrick Exp $
4
+
5
+DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system."
6
+HOMEPAGE="http://mmonit.com/monit/"
7
+SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz"
8
+
9
+LICENSE="GPL-3"
10
+SLOT="0"
11
+KEYWORDS="amd64 ppc sparc x86"
12
+IUSE="ssl"
13
+
14
+RDEPEND="ssl? ( dev-libs/openssl )"
15
+DEPEND="${RDEPEND}
16
+	sys-devel/flex
17
+	sys-devel/bison"
18
+
19
+src_unpack() {
20
+	unpack ${A}
21
+	cd "${S}"
22
+	sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in"
23
+}
24
+
25
+src_compile() {
26
+	econf $(use_with ssl) || die "econf failed"
27
+	emake || die "emake failed"
28
+}
29
+
30
+src_install() {
31
+	make DESTDIR="${D}" install || die "make install failed"
32
+
33
+	dodoc CHANGES.txt CONTRIBUTORS FAQ.txt README* STATUS UPGRADE.txt
34
+	dohtml -r doc/*
35
+
36
+	insinto /etc; insopts -m700; doins monitrc || die "doins monitrc failed"
37
+	newinitd "${FILESDIR}"/monit.initd-4.10.1 monit || die "newinitd failed"
38
+}
39
+
40
+pkg_postinst() {
41
+	elog "Sample configurations are available at:"
42
+	elog "http://mmonit.com/monit/documentation/"
43
+}
... ...
@@ -0,0 +1,48 @@
1
+# Copyright 1999-2010 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+# $Header: /var/cvsroot/gentoo-x86/app-admin/monit/monit-5.1.1.ebuild,v 1.3 2010/06/21 20:33:23 maekke Exp $
4
+
5
+EAPI="2"
6
+inherit eutils
7
+
8
+DESCRIPTION="a utility for monitoring and managing daemons or similar programs running on a Unix system."
9
+HOMEPAGE="http://mmonit.com/monit/"
10
+SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz"
11
+
12
+LICENSE="GPL-3"
13
+SLOT="0"
14
+KEYWORDS="~amd64 ~ppc ~sparc x86"
15
+IUSE="ssl"
16
+
17
+RDEPEND="ssl? ( dev-libs/openssl )"
18
+DEPEND="${RDEPEND}
19
+	sys-devel/flex
20
+	sys-devel/bison"
21
+
22
+src_prepare() {
23
+	epatch "${FILESDIR}"/monit-5.1.1-fix-newlines.diff
24
+	sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die "sed failed in Makefile.in"
25
+}
26
+
27
+src_configure() {
28
+	econf $(use_with ssl) || die "econf failed"
29
+}
30
+
31
+src_compile() {
32
+	emake || die "emake failed"
33
+}
34
+
35
+src_install() {
36
+	make DESTDIR="${D}" install || die "make install failed"
37
+
38
+	dodoc CHANGES.txt README*
39
+	dohtml -r doc/*
40
+
41
+	insinto /etc; insopts -m700; doins monitrc || die "doins monitrc failed"
42
+	newinitd "${FILESDIR}"/monit.initd-5.0 monit || die "newinitd failed"
43
+}
44
+
45
+pkg_postinst() {
46
+	elog "Sample configurations are available at:"
47
+	elog "http://mmonit.com/monit/documentation/"
48
+}
0 49