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: Sat, 15 Jan 2022 17:54:31
Message-Id: 1642269260.ddcb18f8d2d6e61f6bd78770a978656bdfcf4880.prometheanfire@gentoo
1 commit: ddcb18f8d2d6e61f6bd78770a978656bdfcf4880
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 15 17:51:42 2022 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 15 17:54:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddcb18f8
7
8 net-analyzer/icinga2: 2.13.1 cleanup
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 net-analyzer/icinga2/Manifest | 1 -
14 net-analyzer/icinga2/icinga2-2.13.1.ebuild | 147 -----------------------------
15 2 files changed, 148 deletions(-)
16
17 diff --git a/net-analyzer/icinga2/Manifest b/net-analyzer/icinga2/Manifest
18 index 5408437a5ecf..257e30c33fe4 100644
19 --- a/net-analyzer/icinga2/Manifest
20 +++ b/net-analyzer/icinga2/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST icinga2-2.13.1.tar.gz 7585070 BLAKE2B 5a81d627728f8afb0c19761972d45606db246c132dfeb92d2fb32479631add8aaeb1d0dea66f354d3638ca346a3e8bcc266e8397e5246f984566f75c2b5e8003 SHA512 450df3ee36457006c78ca244331d111f65642ba5e232be28e60f189de998f5bb8ed70f2e1d46ea61374ae7bd6a5cf950e487bada1c7af7064970a149cc86baa7
23 DIST icinga2-2.13.2-9092.patch 1118 BLAKE2B c63342b8eff6afead9bf3ccec5c6df6583c2e327edb1433731ca14743ce9c6b0bde0797c6f251480e3bbfb5e6cdaae3444ea6ae6f6740bc228bd6aae5380044d SHA512 1056ff8bd66f2da86afb9664e3415d713be03b80def6d256b6db57f0864d150bc26c0fd3ce05d836da126a2616f2c70ecce05a83bb5425c25f6204d7e522ef94
24 DIST icinga2-2.13.2.tar.gz 7589357 BLAKE2B 6e1ba570e0286f09f37b3cea3b1cd833fd3005c5788e24b750edb100346c46958e97ed5df05947dc47c2bbf856cc6090d661e741072f473b8308aee5e1c0e94e SHA512 39a6f996bca671a2a22fc04e5995714b874e027888a7c9e479d5b526b23104915b7f99afb1220d440af482013043e5b969b0a0145041ac55009d1a81053e2906
25
26 diff --git a/net-analyzer/icinga2/icinga2-2.13.1.ebuild b/net-analyzer/icinga2/icinga2-2.13.1.ebuild
27 deleted file mode 100644
28 index 3e79963a2e64..000000000000
29 --- a/net-analyzer/icinga2/icinga2-2.13.1.ebuild
30 +++ /dev/null
31 @@ -1,147 +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 -)
83 -
84 -src_configure() {
85 - local mycmakeargs=(
86 - -DICINGA2_UNITY_BUILD=$(usex jumbo-build)
87 - -DCMAKE_INSTALL_SYSCONFDIR=/etc
88 - -DCMAKE_INSTALL_LOCALSTATEDIR=/var
89 - -DICINGA2_SYSCONFIGFILE=/etc/conf.d/icinga2
90 - -DICINGA2_PLUGINDIR="/usr/$(get_libdir)/nagios/plugins"
91 - -DICINGA2_USER=icinga
92 - -DICINGA2_GROUP=icingacmd
93 - -DICINGA2_COMMAND_GROUP=icingacmd
94 - -DICINGA2_RUNDIR=/run
95 - -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=ON
96 - -DUSE_SYSTEMD=$(usex systemd)
97 - -DLOGROTATE_HAS_SU=ON
98 - -DICINGA2_LTO_BUILD=$(usex lto)
99 - )
100 - # default to off if minimal, allow the flags to be set otherwise
101 - if use minimal; then
102 - mycmakeargs+=(
103 - -DICINGA2_WITH_MYSQL=OFF
104 - -DICINGA2_WITH_PGSQL=OFF
105 - )
106 - else
107 - mycmakeargs+=(
108 - -DICINGA2_WITH_PGSQL=$(usex postgres)
109 - -DICINGA2_WITH_MYSQL=$(usex mysql yes $(usex mariadb))
110 - )
111 - fi
112 -
113 - cmake_src_configure
114 -}
115 -
116 -src_install() {
117 - cmake_src_install
118 -
119 - newinitd "${FILESDIR}"/icinga2.initd-3 icinga2
120 -
121 - if use mysql || use mariadb; then
122 - docinto schema
123 - newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/mysql.sql mysql.sql
124 - docinto schema/upgrade
125 - dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/upgrade/*
126 - fi
127 - if use postgres; then
128 - docinto schema
129 - newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/pgsql.sql pgsql.sql
130 - docinto schema/upgrade
131 - dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/upgrade/*
132 - fi
133 -
134 - keepdir /etc/icinga2
135 - keepdir /var/lib/icinga2/api/zones
136 - keepdir /var/lib/icinga2/api/repository
137 - keepdir /var/lib/icinga2/api/log
138 - keepdir /var/spool/icinga2/perfdata
139 -
140 - rm -r "${D}/run" || die "failed to remove /run"
141 - rm -r "${D}/var/cache" || die "failed to remove /var/cache"
142 -
143 - fowners root:icinga /etc/icinga2
144 - fperms 0750 /etc/icinga2
145 - fowners icinga:icinga /var/lib/icinga2
146 - fowners icinga:icinga /var/spool/icinga2
147 - fowners -R icinga:icingacmd /var/lib/icinga2/api
148 - fowners icinga:icinga /var/spool/icinga2/perfdata
149 - fowners icinga:icingacmd /var/log/icinga2
150 -
151 - fperms ug+rwX,o-rwx /etc/icinga2
152 - fperms ug+rwX,o-rwx /var/lib/icinga2
153 - fperms ug+rwX,o-rwx /var/spool/icinga2
154 - fperms ug+rwX,o-rwx /var/log/icinga2
155 -
156 - if use vim-syntax; then
157 - insinto /usr/share/vim/vimfiles
158 - doins -r "${WORKDIR}"/${P}/tools/syntax/vim/ftdetect
159 - doins -r "${WORKDIR}"/${P}/tools/syntax/vim/syntax
160 - fi
161 -
162 - if use nano-syntax; then
163 - insinto /usr/share/nano
164 - doins "${WORKDIR}"/${P}/tools/syntax/nano/icinga2.nanorc
165 - fi
166 -}
167 -
168 -pkg_postinst() {
169 - if [[ "${PV}" != 9999 ]]; then
170 - local v
171 - for v in ${REPLACING_VERSIONS}; do
172 - if ver_test "${PV}" -gt "${v}"; then
173 - elog "DB IDO schema upgrade may be required."
174 - elog "https://www.icinga.com/docs/icinga2/latest/doc/16-upgrading-icinga-2/"
175 - fi
176 - done
177 - fi
178 -}