1 |
commit: 0a93829cc053f8c2b13f23e17ffdb1f77b8cddc7 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 30 09:31:10 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 30 09:32:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a93829c |
7 |
|
8 |
app-admin/monit: Removed old |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
app-admin/monit/files/monit-fix-unmonitor.patch | 27 ----------- |
13 |
app-admin/monit/monit-5.27.1-r1.ebuild | 59 ------------------------- |
14 |
2 files changed, 86 deletions(-) |
15 |
|
16 |
diff --git a/app-admin/monit/files/monit-fix-unmonitor.patch b/app-admin/monit/files/monit-fix-unmonitor.patch |
17 |
deleted file mode 100644 |
18 |
index 9e134a08d37..00000000000 |
19 |
--- a/app-admin/monit/files/monit-fix-unmonitor.patch |
20 |
+++ /dev/null |
21 |
@@ -1,27 +0,0 @@ |
22 |
-From a737d3e3bac5bd0378f645eb675a7e4c248e2216 Mon Sep 17 00:00:00 2001 |
23 |
-From: tildeslash <info@××××××××××.com> |
24 |
-Date: Tue, 27 Oct 2020 19:53:56 +0100 |
25 |
-Subject: [PATCH] Fixed: Issue #931: The "if oes exist" file test with |
26 |
- unmonitor or stop action didn't work properly. |
27 |
- |
28 |
---- |
29 |
- CHANGES | 9 +++++++-- |
30 |
- configure.ac | 2 +- |
31 |
- src/validate.c | 3 +++ |
32 |
- system/packages/redhat/monit.spec | 5 ++++- |
33 |
- 4 files changed, 15 insertions(+), 4 deletions(-) |
34 |
- |
35 |
-diff --git a/src/validate.c b/src/validate.c |
36 |
-index 2bf818a..36aa7ef 100644 |
37 |
---- a/src/validate.c |
38 |
-+++ b/src/validate.c |
39 |
-@@ -1686,6 +1686,9 @@ State_Type check_file(Service_T s) { |
40 |
- Event_post(s, Event_Exist, State_Failed, l->action, "file exists"); |
41 |
- } |
42 |
- } |
43 |
-+ // Double-check the monitoring state: the "if does exist" may call unmonitor/stop, which resets the service object |
44 |
-+ if (s->monitor == Monitor_Not) |
45 |
-+ return rv; |
46 |
- if (! S_ISREG(s->inf.file->mode) && ! S_ISSOCK(s->inf.file->mode)) { |
47 |
- Event_post(s, Event_Invalid, State_Failed, s->action_INVALID, "is neither a regular file nor a socket"); |
48 |
- return State_Failed; |
49 |
|
50 |
diff --git a/app-admin/monit/monit-5.27.1-r1.ebuild b/app-admin/monit/monit-5.27.1-r1.ebuild |
51 |
deleted file mode 100644 |
52 |
index ae564169cc2..00000000000 |
53 |
--- a/app-admin/monit/monit-5.27.1-r1.ebuild |
54 |
+++ /dev/null |
55 |
@@ -1,59 +0,0 @@ |
56 |
-# Copyright 1999-2021 Gentoo Authors |
57 |
-# Distributed under the terms of the GNU General Public License v2 |
58 |
- |
59 |
-EAPI=7 |
60 |
-inherit bash-completion-r1 pam systemd eutils |
61 |
- |
62 |
-DESCRIPTION="Monitoring and managing daemons or similar programs running on a Unix system" |
63 |
-HOMEPAGE="http://mmonit.com/monit/" |
64 |
-SRC_URI="http://mmonit.com/monit/dist/${P}.tar.gz" |
65 |
- |
66 |
-LICENSE="AGPL-3" |
67 |
-SLOT="0" |
68 |
-KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux" |
69 |
-IUSE="ipv6 libressl pam ssl" |
70 |
- |
71 |
-RDEPEND=" |
72 |
- ssl? ( |
73 |
- !libressl? ( dev-libs/openssl:0= ) |
74 |
- libressl? ( dev-libs/libressl:0= ) |
75 |
- )" |
76 |
-DEPEND="${RDEPEND} |
77 |
- pam? ( sys-libs/pam )" |
78 |
-BDEPEND=" |
79 |
- sys-devel/flex |
80 |
- sys-devel/bison |
81 |
-" |
82 |
- |
83 |
-PATCHES=( "${FILESDIR}/monit-fix-unmonitor.patch" ) |
84 |
- |
85 |
-src_prepare() { |
86 |
- default |
87 |
- sed -i -e '/^INSTALL_PROG/s/-s//' Makefile.in || die |
88 |
-} |
89 |
- |
90 |
-src_configure() { |
91 |
- local myeconfargs=( |
92 |
- $(use_with ipv6) |
93 |
- $(use_with pam) |
94 |
- $(use_with ssl) |
95 |
- ) |
96 |
- econf "${myeconfargs[@]}" |
97 |
-} |
98 |
- |
99 |
-src_install() { |
100 |
- default |
101 |
- |
102 |
- insinto /etc; insopts -m600; doins monitrc |
103 |
- newinitd "${FILESDIR}"/monit.initd-5.0-r1 monit |
104 |
- systemd_dounit "${FILESDIR}"/${PN}.service |
105 |
- |
106 |
- use pam && newpamd "${FILESDIR}"/${PN}.pamd ${PN} |
107 |
- |
108 |
- dobashcomp system/bash/monit |
109 |
-} |
110 |
- |
111 |
-pkg_postinst() { |
112 |
- elog "Sample configurations are available at:" |
113 |
- elog "http://mmonit.com/monit/documentation/" |
114 |
-} |