1 |
commit: aa2fad5c52639d1463b3b1233c7a7bd845837d3b |
2 |
Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 26 19:20:05 2017 +0000 |
4 |
Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 21:34:26 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa2fad5c |
7 |
|
8 |
net-analyzer/mk-livestatus: patch version bump |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
net-analyzer/mk-livestatus/Manifest | 1 + |
13 |
.../mk-livestatus/mk-livestatus-1.2.8_p16.ebuild | 157 +++++++++++++++++++++ |
14 |
2 files changed, 158 insertions(+) |
15 |
|
16 |
diff --git a/net-analyzer/mk-livestatus/Manifest b/net-analyzer/mk-livestatus/Manifest |
17 |
index 7a1c8c7..bacc6eb 100644 |
18 |
--- a/net-analyzer/mk-livestatus/Manifest |
19 |
+++ b/net-analyzer/mk-livestatus/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST mk-livestatus-1.2.8p10.tar.gz 453496 SHA256 af21c393a17b783f8ca83ffe6e5eea884c74557c4f2bd8899720ced0b443b35e SHA512 ff25c2a8d0105fdd156bc922b56df10e3497361620671dc73242db0a7b57fbd34955b5f4fbd9954602c8011b1f6a5ebd4e278df7c3e66639d74110fd0035682d WHIRLPOOL c3354b04eac1eb8907eb781cdc785136ea4aac0c9d9a2e66d89291d4eeb89f3cd6efcfb2e554295140157b0d7099f1621cd4258e3cd7fa9c0459cd8c7c373d7e |
22 |
+DIST mk-livestatus-1.2.8p16.tar.gz 453565 SHA256 db6ca46f9616d218103c441de8b72a7ae0a74836e65a85511bf60167625f8e95 SHA512 32d4bc014c008ac7afbdca53e6b3e0d71f8eee5f41f4a0299a8e14cee2a1ea93216fe04c4ff9aa7d7b927dde8e63d186f09a2847665851f1063e699cf73a8df4 WHIRLPOOL 1bb9fd21c78d8b9b1efa48204dbb9ed6676f7a43765e6e8c78cf62df182527b1d9ae589968b7d7c9075d30d6628e2c4eb95cfcaebbb0b6926821fc08510bfaec |
23 |
|
24 |
diff --git a/net-analyzer/mk-livestatus/mk-livestatus-1.2.8_p16.ebuild b/net-analyzer/mk-livestatus/mk-livestatus-1.2.8_p16.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..2be3f2d |
27 |
--- /dev/null |
28 |
+++ b/net-analyzer/mk-livestatus/mk-livestatus-1.2.8_p16.ebuild |
29 |
@@ -0,0 +1,157 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+GENTOO_DEPEND_ON_PERL=no |
37 |
+PYTHON_COMPAT=( python2_7 ) |
38 |
+inherit autotools perl-module python-single-r1 |
39 |
+ |
40 |
+MY_PV="${PV/_p/p}" |
41 |
+MY_P="${PN}-${MY_PV}" |
42 |
+ |
43 |
+DESCRIPTION="Nagios/Icinga event broker that allows quick/direct access to your status data" |
44 |
+HOMEPAGE="http://mathias-kettner.de/checkmk_livestatus.html" |
45 |
+SRC_URI="http://mathias-kettner.de/download/${MY_P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~ppc ~x86" |
50 |
+IUSE="examples nagios4 perl python test" |
51 |
+ |
52 |
+RDEPEND="!sys-apps/ucspi-unix:0 |
53 |
+ perl? ( |
54 |
+ dev-lang/perl:0 |
55 |
+ virtual/perl-Digest-MD5:0 |
56 |
+ virtual/perl-Scalar-List-Utils:0 |
57 |
+ >=virtual/perl-Thread-Queue-2.11:0 |
58 |
+ virtual/perl-Encode:0 |
59 |
+ dev-perl/JSON-XS:0 |
60 |
+ )" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ perl? ( |
63 |
+ dev-perl/Module-Install:0 |
64 |
+ virtual/perl-ExtUtils-MakeMaker:0 |
65 |
+ virtual/perl-File-Path:0 |
66 |
+ virtual/perl-File-Spec:0 |
67 |
+ virtual/perl-File-Temp:0 |
68 |
+ test? ( |
69 |
+ dev-perl/File-Copy-Recursive:0 |
70 |
+ dev-perl/Test-Pod:0 |
71 |
+ dev-perl/Test-Perl-Critic:0 |
72 |
+ dev-perl/Test-Pod-Coverage:0 |
73 |
+ dev-perl/Perl-Critic:0 |
74 |
+ dev-perl/Perl-Critic-Policy-Dynamic-NoIndirect:0 |
75 |
+ dev-perl/Perl-Critic-Deprecated:0 |
76 |
+ dev-perl/Perl-Critic-Nits:0 |
77 |
+ ) |
78 |
+ )" |
79 |
+ |
80 |
+# For perl test |
81 |
+SRC_TEST="parallel" |
82 |
+ |
83 |
+S="${WORKDIR}/${MY_P}" |
84 |
+ |
85 |
+PATCHES=( |
86 |
+ "${FILESDIR}/1.2.8_p10-MEDIUM-Drop-default-strip.patch" |
87 |
+ "${FILESDIR}/1.2.8_p10-MINOR-test-Remove-the-usage-of-Perl-Critic-Policy-Mo.patch" |
88 |
+) |
89 |
+ |
90 |
+src_prepare() { |
91 |
+ default |
92 |
+ |
93 |
+ # Use system Module::Install instead, it will be copied to $S by |
94 |
+ # Module::install itself. |
95 |
+ rm -rf api/perl/inc || die |
96 |
+ |
97 |
+ if use perl; then |
98 |
+ # Ensure patches are not applied twice |
99 |
+ unset PATCHES |
100 |
+ perl-module_src_prepare |
101 |
+ fi |
102 |
+ |
103 |
+ eautoreconf |
104 |
+} |
105 |
+ |
106 |
+src_configure() { |
107 |
+ econf \ |
108 |
+ $(use_with nagios4) |
109 |
+ |
110 |
+ if use perl; then |
111 |
+ cd api/perl || die |
112 |
+ perl-module_src_configure |
113 |
+ fi |
114 |
+} |
115 |
+ |
116 |
+src_compile() { |
117 |
+ emake |
118 |
+ |
119 |
+ if use perl; then |
120 |
+ cd api/perl || die |
121 |
+ perl-module_src_compile |
122 |
+ fi |
123 |
+} |
124 |
+ |
125 |
+src_test() { |
126 |
+ if use perl; then |
127 |
+ cd api/perl || die |
128 |
+ |
129 |
+ export TEST_AUTHOR="Test Author" |
130 |
+ perl-module_src_test |
131 |
+ fi |
132 |
+} |
133 |
+ |
134 |
+src_install() { |
135 |
+ emake install DESTDIR="${ED}" |
136 |
+ |
137 |
+ # install a config file showing whats needed to enable livestatus for nagios |
138 |
+ cat <<EOF >"${T}"/nagios.cfg |
139 |
+# Ensure all data is set to event brokers |
140 |
+event_broker_options=-1 |
141 |
+broker_module=${EPREFIX%/}/usr/$(get_libdir)/mk-livestatus/livestatus.o |
142 |
+EOF |
143 |
+ # same for icigna |
144 |
+ cat <<EOF >"${T}"/icigna.cfg |
145 |
+ cat << EOF > "${T}"/livestatus.cfg || die |
146 |
+define module{ |
147 |
+ module_name mk-livestatus |
148 |
+ module_type neb |
149 |
+ path /usr/$(get_libdir)/mk-livestatus/livestatus.o |
150 |
+ args /var/lib/icigna/rw/live |
151 |
+ } |
152 |
+EOF |
153 |
+ insinto /usr/share/mk-livestatus |
154 |
+ doins "${T}"/{nagios,icigna}.cfg |
155 |
+ |
156 |
+ if use perl; then |
157 |
+ cd api/perl || die |
158 |
+ perl-module_src_install |
159 |
+ cd "${S}" |
160 |
+ |
161 |
+ if use examples; then |
162 |
+ docinto / |
163 |
+ newdoc api/perl/README README.perl |
164 |
+ |
165 |
+ docinto examples |
166 |
+ dodoc api/perl/examples/dump.pl |
167 |
+ fi |
168 |
+ fi |
169 |
+ |
170 |
+ if use python; then |
171 |
+ python_foreach_impl python_domodule api/python/livestatus.py |
172 |
+ |
173 |
+ if use examples; then |
174 |
+ docinto / |
175 |
+ newdoc api/python/README README.python |
176 |
+ |
177 |
+ docinto examples |
178 |
+ dodoc api/python/{example,example_multisite,make_nagvis_map}.py |
179 |
+ fi |
180 |
+ fi |
181 |
+} |
182 |
+ |
183 |
+pkg_postinst() { |
184 |
+ elog "Sample configurations for icigna and nagios are available in" |
185 |
+ elog "/usr/share/${PN}" |
186 |
+} |