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: Tue, 29 Jun 2021 02:54:19
Message-Id: 1624935250.3358040ed16d9d0a1ad777cfeefe1aa8eebce96c.prometheanfire@gentoo
1 commit: 3358040ed16d9d0a1ad777cfeefe1aa8eebce96c
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 29 02:53:53 2021 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 29 02:54:10 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3358040e
7
8 net-analyzer/icinga2: 2.12.4 stable with cleanup
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 net-analyzer/icinga2/Manifest | 1 -
14 net-analyzer/icinga2/icinga2-2.12.3.ebuild | 148 -----------------------------
15 net-analyzer/icinga2/icinga2-2.12.4.ebuild | 2 +-
16 3 files changed, 1 insertion(+), 150 deletions(-)
17
18 diff --git a/net-analyzer/icinga2/Manifest b/net-analyzer/icinga2/Manifest
19 index bd822b23fcf..3fd07f452f1 100644
20 --- a/net-analyzer/icinga2/Manifest
21 +++ b/net-analyzer/icinga2/Manifest
22 @@ -1,2 +1 @@
23 -DIST icinga2-2.12.3.tar.gz 7534454 BLAKE2B 021f940b3885c90cc43b4708c83430685fdb692d5ce95ed0f667a95b7dd2f4817b30fb7b05f1e214ba3aa31cef806af0f83e68447ece94916d806fb95f66526e SHA512 28b87e03a8ffeb7a1d19ddf9555151b826f7bf1fd33b0139c2fc8abe7c89d66d96089d5b32d0aaccc3876040514b2bfbde9970416d5ec4ea3b023b17c0fb1799
24 DIST icinga2-2.12.4.tar.gz 7535804 BLAKE2B 495a53fc0887ff2e1b5e058c52af63c155da600b4c82e38653a56c4b1dab497ef477254b19727c6c366b48c41a052b68c9910cb4bc4782605612a3d63ccf646c SHA512 3a817eb6f1be256f6eca5136e3d74c49e1cc2a7af382a906abebc6d573579e755decf72bfce62fad48f9c5a37fe6bc304c5849d1008ab7ce4939213f720ab37b
25
26 diff --git a/net-analyzer/icinga2/icinga2-2.12.3.ebuild b/net-analyzer/icinga2/icinga2-2.12.3.ebuild
27 deleted file mode 100644
28 index 60729607fd2..00000000000
29 --- a/net-analyzer/icinga2/icinga2-2.12.3.ebuild
30 +++ /dev/null
31 @@ -1,148 +0,0 @@
32 -# Copyright 1999-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -inherit cmake systemd
38 -
39 -if [[ ${PV} != 9999 ]]; then
40 - SRC_URI="https://github.com/Icinga/icinga2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 - KEYWORDS="amd64 ~arm64 x86"
42 -else
43 - inherit git-r3
44 - EGIT_REPO_URI="https://github.com/Icinga/icinga2.git"
45 -fi
46 -
47 -DESCRIPTION="Distributed, general purpose, network monitoring engine"
48 -HOMEPAGE="https://icinga.com/"
49 -
50 -LICENSE="GPL-2"
51 -SLOT="0"
52 -IUSE="console jumbo-build lto mail mariadb minimal +mysql nano-syntax +plugins postgres systemd +vim-syntax"
53 -
54 -# Add accounts to DEPEND because of fowners in src_install
55 -DEPEND="
56 - dev-libs/openssl:0=
57 - >=dev-libs/boost-1.66.0:=[context]
58 - console? ( dev-libs/libedit )
59 - mariadb? ( dev-db/mariadb-connector-c:= )
60 - mysql? ( dev-db/mysql-connector-c:= )
61 - postgres? ( dev-db/postgresql:= )
62 - dev-libs/yajl:=
63 - acct-user/icinga
64 - acct-group/icinga
65 - acct-group/icingacmd"
66 -BDEPEND="
67 - sys-devel/bison
68 - >=sys-devel/flex-2.5.35"
69 -RDEPEND="
70 - ${DEPEND}
71 - plugins? ( || (
72 - net-analyzer/monitoring-plugins
73 - net-analyzer/nagios-plugins
74 - ) )
75 - mail? ( virtual/mailx )
76 - acct-group/nagios"
77 -
78 -REQUIRED_USE="!minimal? ( || ( mariadb mysql postgres ) )"
79 -
80 -PATCHES=(
81 - # https://github.com/Icinga/icinga2/issues/8185#issuecomment-680875875
82 - "${FILESDIR}/${PN}-2.12.1-boost-1.74.0.patch"
83 -)
84 -
85 -src_configure() {
86 - local mycmakeargs=(
87 - -DICINGA2_UNITY_BUILD=$(usex jumbo-build)
88 - -DCMAKE_INSTALL_SYSCONFDIR=/etc
89 - -DCMAKE_INSTALL_LOCALSTATEDIR=/var
90 - -DICINGA2_SYSCONFIGFILE=/etc/conf.d/icinga2
91 - -DICINGA2_PLUGINDIR="/usr/$(get_libdir)/nagios/plugins"
92 - -DICINGA2_USER=icinga
93 - -DICINGA2_GROUP=icingacmd
94 - -DICINGA2_COMMAND_GROUP=icingacmd
95 - -DICINGA2_RUNDIR=/run
96 - -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=ON
97 - -DUSE_SYSTEMD=$(usex systemd)
98 - -DLOGROTATE_HAS_SU=ON
99 - -DICINGA2_LTO_BUILD=$(usex lto)
100 - )
101 - # default to off if minimal, allow the flags to be set otherwise
102 - if use minimal; then
103 - mycmakeargs+=(
104 - -DICINGA2_WITH_MYSQL=OFF
105 - -DICINGA2_WITH_PGSQL=OFF
106 - )
107 - else
108 - mycmakeargs+=(
109 - -DICINGA2_WITH_PGSQL=$(usex postgres)
110 - -DICINGA2_WITH_MYSQL=$(usex mysql yes $(usex mariadb))
111 - )
112 - fi
113 -
114 - cmake_src_configure
115 -}
116 -
117 -src_install() {
118 - cmake_src_install
119 -
120 - newinitd "${FILESDIR}"/icinga2.initd-3 icinga2
121 -
122 - if use mysql || use mariadb; then
123 - docinto schema
124 - newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/mysql.sql mysql.sql
125 - docinto schema/upgrade
126 - dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/upgrade/*
127 - fi
128 - if use postgres; then
129 - docinto schema
130 - newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/pgsql.sql pgsql.sql
131 - docinto schema/upgrade
132 - dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/upgrade/*
133 - fi
134 -
135 - keepdir /etc/icinga2
136 - keepdir /var/lib/icinga2/api/zones
137 - keepdir /var/lib/icinga2/api/repository
138 - keepdir /var/lib/icinga2/api/log
139 - keepdir /var/spool/icinga2/perfdata
140 -
141 - rm -r "${D}/run" || die "failed to remove /run"
142 - rm -r "${D}/var/cache" || die "failed to remove /var/cache"
143 -
144 - fowners root:icinga /etc/icinga2
145 - fperms 0750 /etc/icinga2
146 - fowners icinga:icinga /var/lib/icinga2
147 - fowners icinga:icinga /var/spool/icinga2
148 - fowners -R icinga:icingacmd /var/lib/icinga2/api
149 - fowners icinga:icinga /var/spool/icinga2/perfdata
150 - fowners icinga:icingacmd /var/log/icinga2
151 -
152 - fperms ug+rwX,o-rwx /etc/icinga2
153 - fperms ug+rwX,o-rwx /var/lib/icinga2
154 - fperms ug+rwX,o-rwx /var/spool/icinga2
155 - fperms ug+rwX,o-rwx /var/log/icinga2
156 -
157 - if use vim-syntax; then
158 - insinto /usr/share/vim/vimfiles
159 - doins -r "${WORKDIR}"/${P}/tools/syntax/vim/ftdetect
160 - doins -r "${WORKDIR}"/${P}/tools/syntax/vim/syntax
161 - fi
162 -
163 - if use nano-syntax; then
164 - insinto /usr/share/nano
165 - doins "${WORKDIR}"/${P}/tools/syntax/nano/icinga2.nanorc
166 - fi
167 -}
168 -
169 -pkg_postinst() {
170 - if [[ "${PV}" != 9999 ]]; then
171 - local v
172 - for v in ${REPLACING_VERSIONS}; do
173 - if ver_test "${PV}" -gt "${v}"; then
174 - elog "DB IDO schema upgrade may be required."
175 - elog "https://www.icinga.com/docs/icinga2/latest/doc/16-upgrading-icinga-2/"
176 - fi
177 - done
178 - fi
179 -}
180
181 diff --git a/net-analyzer/icinga2/icinga2-2.12.4.ebuild b/net-analyzer/icinga2/icinga2-2.12.4.ebuild
182 index de80eb55dfc..3e79963a2e6 100644
183 --- a/net-analyzer/icinga2/icinga2-2.12.4.ebuild
184 +++ b/net-analyzer/icinga2/icinga2-2.12.4.ebuild
185 @@ -7,7 +7,7 @@ inherit cmake systemd
186
187 if [[ ${PV} != 9999 ]]; then
188 SRC_URI="https://github.com/Icinga/icinga2/archive/v${PV}.tar.gz -> ${P}.tar.gz"
189 - KEYWORDS="~amd64 ~arm64 ~x86"
190 + KEYWORDS="amd64 ~arm64 x86"
191 else
192 inherit git-r3
193 EGIT_REPO_URI="https://github.com/Icinga/icinga2.git"