Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/icinga2/
Date: Mon, 24 Jun 2019 00:15:18
Message-Id: 1561335308.eff2131ce92483e3e3367ac2bdafc390334664ca.prometheanfire@gentoo
1 commit: eff2131ce92483e3e3367ac2bdafc390334664ca
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 24 00:13:21 2019 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 24 00:15:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eff2131c
7
8 net-analyzer/icinga2: 2.10.5 stable with cleanup
9
10 Package-Manager: Portage-2.3.66, Repoman-2.3.15
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 net-analyzer/icinga2/Manifest | 2 -
14 net-analyzer/icinga2/icinga2-2.10.4.ebuild | 172 ----------------------------
15 net-analyzer/icinga2/icinga2-2.10.5.ebuild | 2 +-
16 net-analyzer/icinga2/icinga2-2.8.4.ebuild | 176 -----------------------------
17 net-analyzer/icinga2/metadata.xml | 1 -
18 5 files changed, 1 insertion(+), 352 deletions(-)
19
20 diff --git a/net-analyzer/icinga2/Manifest b/net-analyzer/icinga2/Manifest
21 index c9cf2e377c6..180268e443c 100644
22 --- a/net-analyzer/icinga2/Manifest
23 +++ b/net-analyzer/icinga2/Manifest
24 @@ -1,3 +1 @@
25 -DIST icinga2-2.10.4.tar.gz 5129248 BLAKE2B 420330cfdbecce98e9b825527c38d4606c0f3e3a74c6798b7012dae2c4ebc583317e60a91c7966d68de17359b6af676f5accd71d0fece505a17a3ca92f00e05e SHA512 7277dd315541341ee68f2e83035210c233d6556d36c26d3211b85e2d43759627c73e881edac8e5e1d266c6b1eef19c5e1eeb8e5a77a237e688039ba88a58438c
26 DIST icinga2-2.10.5.tar.gz 5141193 BLAKE2B 7262e9f0ccb2180faba51b2e04b58964fe6c72782ab61488925c0f6528a80fc1f58afab5f3858f6f696fdca7c8d5546beb8fd374f7f72e452ffd7cd1f1e3ff4a SHA512 c43443d0bbb4ec997d3c5405ef3019ae3b09131bcce2e9d7c7b0e187768335a2f1347fdd382655f12a28b3a29ec8bf644c1b610ea5157f3ee40ae5e0e9253d38
27 -DIST icinga2-2.8.4.tar.gz 2510333 BLAKE2B f551a5eadc93d8455612af40e34a0922bc75f41b8064f9989c8f0c28dc2c3fb18963cf9b3272efa29f03973e7cf5824762bebff1bfa1a23c4ba39c93fc29c8e5 SHA512 b2cb5989962ac65da927cbdbac1b3345c913321d507b5113f32dd90bf969b2513478e68d52b9cd4cf255057d74428f9e42067288b7ddc59ad060ca7b84f4f114
28
29 diff --git a/net-analyzer/icinga2/icinga2-2.10.4.ebuild b/net-analyzer/icinga2/icinga2-2.10.4.ebuild
30 deleted file mode 100644
31 index 45914f5d789..00000000000
32 --- a/net-analyzer/icinga2/icinga2-2.10.4.ebuild
33 +++ /dev/null
34 @@ -1,172 +0,0 @@
35 -# Copyright 1999-2019 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=6
39 -if [[ ${PV} != 9999 ]]; then
40 - inherit cmake-utils depend.apache eutils systemd toolchain-funcs user wxwidgets
41 - SRC_URI="https://github.com/Icinga/icinga2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 - KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
43 -else
44 - inherit cmake-utils depend.apache eutils git-r3 systemd toolchain-funcs user wxwidgets
45 - EGIT_REPO_URI="https://github.com/Icinga/icinga2.git"
46 - EGIT_BRANCH="master"
47 - KEYWORDS=""
48 -fi
49 -
50 -DESCRIPTION="Distributed, general purpose, network monitoring engine"
51 -HOMEPAGE="http://icinga.org/icinga2"
52 -
53 -LICENSE="GPL-2"
54 -SLOT="0"
55 -IUSE="classicui console libressl lto mail mariadb minimal +mysql nano-syntax +plugins postgres systemd +vim-syntax"
56 -WX_GTK_VER="3.0"
57 -
58 -CDEPEND="
59 - !libressl? ( dev-libs/openssl:0= )
60 - libressl? ( dev-libs/libressl:0= )
61 - >=dev-libs/boost-1.58-r1
62 - console? ( dev-libs/libedit )
63 - mariadb? ( dev-db/mariadb-connector-c:= )
64 - mysql? ( dev-db/mysql-connector-c:= )
65 - postgres? ( dev-db/postgresql:= )
66 - dev-libs/yajl"
67 -
68 -DEPEND="
69 - ${CDEPEND}
70 - sys-devel/bison
71 - >=sys-devel/flex-2.5.35"
72 -
73 -RDEPEND="
74 - ${CDEPEND}
75 - plugins? ( || (
76 - net-analyzer/monitoring-plugins
77 - net-analyzer/nagios-plugins
78 - ) )
79 - mail? ( virtual/mailx )
80 - classicui? ( net-analyzer/icinga[web] )"
81 -
82 -REQUIRED_USE="!minimal? ( || ( mariadb mysql postgres ) )"
83 -
84 -want_apache2
85 -
86 -pkg_setup() {
87 - depend.apache_pkg_setup
88 - enewgroup icinga
89 - enewgroup icingacmd
90 - enewgroup nagios # for plugins
91 - enewuser icinga -1 -1 /var/lib/icinga2 "icinga,icingacmd,nagios"
92 -}
93 -
94 -src_configure() {
95 - sed -i 's/FLAGS\}\ \-g/FLAGS\}\ \-lpthread\ /g' CMakeLists.txt || die
96 - local mycmakeargs=(
97 - -DICINGA2_UNITY_BUILD=FALSE
98 - -DCMAKE_VERBOSE_MAKEFILE=ON
99 - -DCMAKE_BUILD_TYPE=None
100 - -DCMAKE_INSTALL_PREFIX=/usr
101 - -DCMAKE_INSTALL_SYSCONFDIR=/etc
102 - -DCMAKE_INSTALL_LOCALSTATEDIR=/var
103 - -DICINGA2_SYSCONFIGFILE=/etc/conf.d/icinga2
104 - -DICINGA2_PLUGINDIR="/usr/$(get_libdir)/nagios/plugins"
105 - -DICINGA2_USER=icinga
106 - -DICINGA2_GROUP=icingacmd
107 - -DICINGA2_COMMAND_GROUP=icingacmd
108 - -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=yes
109 - -DUSE_SYSTEMD=$(usex systemd ON OFF)
110 - -DLOGROTATE_HAS_SU=ON
111 - )
112 - # default to off if minimal, allow the flags to be set otherwise
113 - if use minimal; then
114 - mycmakeargs+=(
115 - -DICINGA2_WITH_MYSQL=OFF
116 - -DICINGA2_WITH_PGSQL=OFF
117 - )
118 - else
119 - mycmakeargs+=(
120 - -DICINGA2_WITH_PGSQL=$(usex postgres ON OFF)
121 - -DICINGA2_WITH_MYSQL=$(usex mysql ON OFF)
122 - )
123 - fi
124 - # LTO
125 - if use lto; then
126 - mycmakeargs+=(
127 - -DICINGA2_LTO_BUILD=ON
128 - )
129 - else
130 - mycmakeargs+=(
131 - -DICINGA2_LTO_BUILD=OFF
132 - )
133 - fi
134 -
135 - cmake-utils_src_configure
136 -}
137 -
138 -src_install() {
139 - BUILDDIR="${WORKDIR}"/icinga2-${PV}_build
140 - cd "${BUILDDIR}" || die
141 -
142 - emake DESTDIR="${D}" install
143 -
144 - einstalldocs
145 -
146 - newinitd "${FILESDIR}"/icinga2.initd-3 icinga2
147 -
148 - if use mysql ; then
149 - docinto schema
150 - newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/mysql.sql mysql.sql
151 - docinto schema/upgrade
152 - dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/upgrade/*
153 - fi
154 - if use mariadb ; then # same as mysql
155 - docinto schema
156 - newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/mysql.sql mysql.sql
157 - docinto schema/upgrade
158 - dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/upgrade/*
159 - fi
160 - if use postgres ; then
161 - docinto schema
162 - newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/pgsql.sql pgsql.sql
163 - docinto schema/upgrade
164 - dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/upgrade/*
165 - fi
166 -
167 - keepdir /etc/icinga2
168 - keepdir /var/lib/icinga2/api/zones
169 - keepdir /var/lib/icinga2/api/repository
170 - keepdir /var/lib/icinga2/api/log
171 - keepdir /var/spool/icinga2/perfdata
172 -
173 - rm -r "${D}/var/run" || die "failed to remove /var/run"
174 - rm -r "${D}/var/cache" || die "failed to remove /var/cache"
175 -
176 - fowners root:icinga /etc/icinga2
177 - fperms 0750 /etc/icinga2
178 - fowners icinga:icinga /var/lib/icinga2
179 - fowners icinga:icinga /var/spool/icinga2
180 - fowners -R icinga:icingacmd /var/lib/icinga2/api
181 - fowners icinga:icinga /var/spool/icinga2/perfdata
182 - fowners icinga:icingacmd /var/log/icinga2
183 -
184 - fperms ug+rwX,o-rwx /etc/icinga2
185 - fperms ug+rwX,o-rwx /var/lib/icinga2
186 - fperms ug+rwX,o-rwx /var/spool/icinga2
187 - fperms ug+rwX,o-rwx /var/log/icinga2
188 -
189 - if use vim-syntax; then
190 - insinto /usr/share/vim/vimfiles
191 - doins -r "${WORKDIR}"/${P}/tools/syntax/vim/ftdetect
192 - doins -r "${WORKDIR}"/${P}/tools/syntax/vim/syntax
193 - fi
194 -
195 - if use nano-syntax; then
196 - insinto /usr/share/nano
197 - doins "${WORKDIR}"/${P}/tools/syntax/nano/icinga2.nanorc
198 - fi
199 -}
200 -
201 -pkg_postinst() {
202 - if [[ ${PV} != 9999 && -n ${REPLACING_VERSIONS} && ${REPLACING_VERSIONS} != ${PV} ]]; then
203 - elog "DB IDO schema upgrade may be required required.
204 - https://www.icinga.com/docs/icinga2/latest/doc/16-upgrading-icinga-2/"
205 - fi
206 -}
207
208 diff --git a/net-analyzer/icinga2/icinga2-2.10.5.ebuild b/net-analyzer/icinga2/icinga2-2.10.5.ebuild
209 index 8a9695a5e27..45914f5d789 100644
210 --- a/net-analyzer/icinga2/icinga2-2.10.5.ebuild
211 +++ b/net-analyzer/icinga2/icinga2-2.10.5.ebuild
212 @@ -5,7 +5,7 @@ EAPI=6
213 if [[ ${PV} != 9999 ]]; then
214 inherit cmake-utils depend.apache eutils systemd toolchain-funcs user wxwidgets
215 SRC_URI="https://github.com/Icinga/icinga2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
216 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
217 + KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
218 else
219 inherit cmake-utils depend.apache eutils git-r3 systemd toolchain-funcs user wxwidgets
220 EGIT_REPO_URI="https://github.com/Icinga/icinga2.git"
221
222 diff --git a/net-analyzer/icinga2/icinga2-2.8.4.ebuild b/net-analyzer/icinga2/icinga2-2.8.4.ebuild
223 deleted file mode 100644
224 index 525aa185b12..00000000000
225 --- a/net-analyzer/icinga2/icinga2-2.8.4.ebuild
226 +++ /dev/null
227 @@ -1,176 +0,0 @@
228 -# Copyright 1999-2018 Gentoo Foundation
229 -# Distributed under the terms of the GNU General Public License v2
230 -
231 -EAPI=6
232 -if [[ ${PV} != 9999 ]]; then
233 - inherit cmake-utils depend.apache eutils systemd toolchain-funcs user wxwidgets
234 - SRC_URI="https://github.com/Icinga/icinga2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
235 - KEYWORDS="amd64 ~arm ~arm64 ppc ppc64 x86"
236 -else
237 - inherit cmake-utils depend.apache eutils git-r3 systemd toolchain-funcs user wxwidgets
238 - EGIT_REPO_URI="https://github.com/Icinga/icinga2.git"
239 - EGIT_BRANCH="master"
240 - KEYWORDS=""
241 -fi
242 -
243 -DESCRIPTION="Distributed, general purpose, network monitoring engine"
244 -HOMEPAGE="http://icinga.org/icinga2"
245 -
246 -LICENSE="GPL-2"
247 -SLOT="0"
248 -IUSE="+mysql postgres classicui console libressl lto mail minimal nano-syntax +plugins studio +vim-syntax"
249 -WX_GTK_VER="3.0"
250 -
251 -CDEPEND="
252 - !libressl? ( dev-libs/openssl:0= )
253 - libressl? ( dev-libs/libressl:0= )
254 - >=dev-libs/boost-1.58-r1
255 - console? ( dev-libs/libedit )
256 - mysql? ( virtual/mysql )
257 - postgres? ( dev-db/postgresql:= )"
258 -
259 -DEPEND="
260 - ${CDEPEND}
261 - sys-devel/bison
262 - >=sys-devel/flex-2.5.35"
263 -
264 -RDEPEND="
265 - ${CDEPEND}
266 - plugins? ( || (
267 - net-analyzer/monitoring-plugins
268 - net-analyzer/nagios-plugins
269 - ) )
270 - mail? ( virtual/mailx )
271 - classicui? ( net-analyzer/icinga[web] )
272 - studio? ( x11-libs/wxGTK:3.0 )"
273 -
274 -REQUIRED_USE="!minimal? ( || ( mysql postgres ) )"
275 -
276 -want_apache2
277 -
278 -pkg_setup() {
279 - depend.apache_pkg_setup
280 - if use studio ; then
281 - setup-wxwidgets
282 - fi
283 - enewgroup icinga
284 - enewgroup icingacmd
285 - enewgroup nagios # for plugins
286 - enewuser icinga -1 -1 /var/lib/icinga2 "icinga,icingacmd,nagios"
287 -}
288 -
289 -src_configure() {
290 - sed -i 's/FLAGS\}\ \-g/FLAGS\}\ \-lpthread\ /g' CMakeLists.txt || die
291 - local mycmakeargs=(
292 - -DICINGA2_UNITY_BUILD=FALSE
293 - -DCMAKE_VERBOSE_MAKEFILE=ON
294 - -DCMAKE_BUILD_TYPE=None
295 - -DCMAKE_INSTALL_PREFIX=/usr
296 - -DCMAKE_INSTALL_SYSCONFDIR=/etc
297 - -DCMAKE_INSTALL_LOCALSTATEDIR=/var
298 - -DICINGA2_SYSCONFIGFILE=/etc/conf.d/icinga2
299 - -DICINGA2_PLUGINDIR="/usr/$(get_libdir)/nagios/plugins"
300 - -DICINGA2_USER=icinga
301 - -DICINGA2_GROUP=icingacmd
302 - -DICINGA2_COMMAND_GROUP=icingacmd
303 - -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=yes
304 - -DLOGROTATE_HAS_SU=ON
305 - )
306 - # default to off if minimal, allow the flags to be set otherwise
307 - if use minimal; then
308 - mycmakeargs+=(
309 - -DICINGA2_WITH_MYSQL=OFF
310 - -DICINGA2_WITH_PGSQL=OFF
311 - )
312 - else
313 - mycmakeargs+=(
314 - -DICINGA2_WITH_PGSQL=$(usex postgres ON OFF)
315 - -DICINGA2_WITH_MYSQL=$(usex mysql ON OFF)
316 - )
317 - fi
318 - # LTO
319 - if use lto; then
320 - mycmakeargs+=(
321 - -DICINGA2_LTO_BUILD=ON
322 - )
323 - else
324 - mycmakeargs+=(
325 - -DICINGA2_LTO_BUILD=OFF
326 - )
327 - fi
328 - # STUDIO
329 - if use studio; then
330 - mycmakeargs+=(
331 - -DICINGA2_WITH_STUDIO=ON
332 - )
333 - else
334 - mycmakeargs+=(
335 - -DICINGA2_WITH_STUDIO=OFF
336 - )
337 - fi
338 -
339 - cmake-utils_src_configure
340 -}
341 -
342 -src_install() {
343 - BUILDDIR="${WORKDIR}"/icinga2-${PV}_build
344 - cd "${BUILDDIR}" || die
345 -
346 - emake DESTDIR="${D}" install
347 -
348 - einstalldocs
349 -
350 - newinitd "${FILESDIR}"/icinga2.initd icinga2
351 -
352 - if use mysql ; then
353 - docinto schema
354 - newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/mysql.sql mysql.sql
355 - docinto schema/upgrade
356 - dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/upgrade/*
357 - elif use postgres ; then
358 - docinto schema
359 - newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/pgsql.sql pgsql.sql
360 - docinto schema/upgrade
361 - dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/upgrade/*
362 - fi
363 -
364 - keepdir /etc/icinga2
365 - keepdir /var/lib/icinga2/api/zones
366 - keepdir /var/lib/icinga2/api/repository
367 - keepdir /var/lib/icinga2/api/log
368 - keepdir /var/spool/icinga2/perfdata
369 -
370 - rm -r "${D}/var/run" || die "failed to remove /var/run"
371 - rm -r "${D}/var/cache" || die "failed to remove /var/cache"
372 -
373 - fowners root:icinga /etc/icinga2
374 - fperms 0750 /etc/icinga2
375 - fowners icinga:icinga /var/lib/icinga2
376 - fowners icinga:icinga /var/spool/icinga2
377 - fowners -R icinga:icingacmd /var/lib/icinga2/api
378 - fowners icinga:icinga /var/spool/icinga2/perfdata
379 - fowners icinga:icingacmd /var/log/icinga2
380 -
381 - fperms ug+rwX,o-rwx /etc/icinga2
382 - fperms ug+rwX,o-rwx /var/lib/icinga2
383 - fperms ug+rwX,o-rwx /var/spool/icinga2
384 - fperms ug+rwX,o-rwx /var/log/icinga2
385 -
386 - if use vim-syntax; then
387 - insinto /usr/share/vim/vimfiles
388 - doins -r "${WORKDIR}"/${P}/tools/syntax/vim/ftdetect
389 - doins -r "${WORKDIR}"/${P}/tools/syntax/vim/syntax
390 - fi
391 -
392 - if use nano-syntax; then
393 - insinto /usr/share/nano
394 - doins "${WORKDIR}"/${P}/tools/syntax/nano/icinga2.nanorc
395 - fi
396 -}
397 -
398 -pkg_postinst() {
399 - if [[ ${PV} != 9999 && -n ${REPLACING_VERSIONS} && ${REPLACING_VERSIONS} != ${PV} ]]; then
400 - elog "DB IDO schema upgrade may be required required.
401 - http://docs.icinga.org/icinga2/snapshot/doc/module/icinga2/chapter/upgrading-icinga-2"
402 - fi
403 -}
404
405 diff --git a/net-analyzer/icinga2/metadata.xml b/net-analyzer/icinga2/metadata.xml
406 index 73dade68872..6c4dccde701 100644
407 --- a/net-analyzer/icinga2/metadata.xml
408 +++ b/net-analyzer/icinga2/metadata.xml
409 @@ -11,7 +11,6 @@
410 <flag name="lto">Adds support for link time optimization</flag>
411 <flag name="mail">Allows for mailing of alerts</flag>
412 <flag name="mariadb">Enable support for the mariadb database backend</flag>
413 - <flag name="studio">Adds support for Icinga-studio</flag>
414 <flag name="nano-syntax">Adds support for syntax used in the nano editor</flag>
415 <flag name="plugins">Adds support for nagios plugins</flag>
416 </use>