1 |
commit: c5c0703ea502b98d37918249fcbfd91fec6dcd91 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 4 02:34:46 2020 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 4 02:35:11 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5c0703e |
7 |
|
8 |
net-analyzer/icinga2: 2.11.4 cleanup |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-2.3.23 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
net-analyzer/icinga2/Manifest | 1 - |
14 |
net-analyzer/icinga2/icinga2-2.11.4.ebuild | 169 ----------------------------- |
15 |
2 files changed, 170 deletions(-) |
16 |
|
17 |
diff --git a/net-analyzer/icinga2/Manifest b/net-analyzer/icinga2/Manifest |
18 |
index c154ff99856..da76b6b8503 100644 |
19 |
--- a/net-analyzer/icinga2/Manifest |
20 |
+++ b/net-analyzer/icinga2/Manifest |
21 |
@@ -1,3 +1,2 @@ |
22 |
-DIST icinga2-2.11.4.tar.gz 7476667 BLAKE2B 99b004f12504dae57ae2eda37983ae17da359c6e6998d41bb408c11328d0e69b7dd87ee5bf888c64862d52fe198145e56b1ac24f53d06dfebd1241d16e61a016 SHA512 51b0170d334d4ebe2c9614e47f65a1ab59483b4d5de862ae3d90152bf547bfc0051d9fca2f6b86d301ec897980fdc0b503232eb6dd82ae603d8e809bd56b23c1 |
23 |
DIST icinga2-2.11.5.tar.gz 7478038 BLAKE2B 309d090e9dab5fb79b411ee75bdcdc3351b559a434543937b3486bc0d45a25fc320609985e4130c2cca83972e4be15180f85bc4c78851fcecbc96ae523ca6bcd SHA512 22b0902818ee840c5c50da3768d6fc6dadf574d8fb5884eb45a2184b9e516888caa2e09ece4f8880139fb0931f131786002f494de702925a6f458968c3cee144 |
24 |
DIST icinga2-2.12.0.tar.gz 7530104 BLAKE2B 6f4a37d638449596d163add4ee070d24c1eb5f483e32f6c666454353578e6399a04cda949cb51b135516be7b437196e5beeff0e5e24a7bc26b855de87e24a797 SHA512 2a0ead159cfd71ebb662b909d8c4a64bdf13235b14d37b67057034da4fbf8764167b175e20f635989a98faafabb5da4f71321a4f8592172bed5cbb3ee557b276 |
25 |
|
26 |
diff --git a/net-analyzer/icinga2/icinga2-2.11.4.ebuild b/net-analyzer/icinga2/icinga2-2.11.4.ebuild |
27 |
deleted file mode 100644 |
28 |
index a98d579ea65..00000000000 |
29 |
--- a/net-analyzer/icinga2/icinga2-2.11.4.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,169 +0,0 @@ |
32 |
-# Copyright 1999-2020 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=6 |
36 |
-if [[ ${PV} != 9999 ]]; then |
37 |
- inherit cmake-utils depend.apache eutils systemd toolchain-funcs wxwidgets |
38 |
- SRC_URI="https://github.com/Icinga/icinga2/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
39 |
- KEYWORDS="amd64 ~arm64 x86" |
40 |
-else |
41 |
- inherit cmake-utils depend.apache eutils git-r3 systemd toolchain-funcs wxwidgets |
42 |
- EGIT_REPO_URI="https://github.com/Icinga/icinga2.git" |
43 |
- EGIT_BRANCH="master" |
44 |
-fi |
45 |
- |
46 |
-DESCRIPTION="Distributed, general purpose, network monitoring engine" |
47 |
-HOMEPAGE="http://icinga.org/icinga2" |
48 |
- |
49 |
-LICENSE="GPL-2" |
50 |
-SLOT="0" |
51 |
-IUSE="console libressl lto mail mariadb minimal +mysql nano-syntax +plugins postgres systemd +vim-syntax" |
52 |
-WX_GTK_VER="3.0" |
53 |
- |
54 |
-CDEPEND=" |
55 |
- !libressl? ( dev-libs/openssl:0= ) |
56 |
- libressl? ( dev-libs/libressl: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 |
- |
64 |
-DEPEND=" |
65 |
- ${CDEPEND} |
66 |
- sys-devel/bison |
67 |
- >=sys-devel/flex-2.5.35" |
68 |
- |
69 |
-RDEPEND=" |
70 |
- ${CDEPEND} |
71 |
- plugins? ( || ( |
72 |
- net-analyzer/monitoring-plugins |
73 |
- net-analyzer/nagios-plugins |
74 |
- ) ) |
75 |
- mail? ( virtual/mailx ) |
76 |
- acct-user/icinga |
77 |
- acct-group/icinga |
78 |
- acct-group/icingacmd |
79 |
- acct-group/nagios" |
80 |
- |
81 |
-REQUIRED_USE="!minimal? ( || ( mariadb mysql postgres ) )" |
82 |
- |
83 |
-want_apache2 |
84 |
- |
85 |
-pkg_setup() { |
86 |
- depend.apache_pkg_setup |
87 |
-} |
88 |
- |
89 |
-src_configure() { |
90 |
- sed -i 's/FLAGS\}\ \-g/FLAGS\}\ \-lpthread\ /g' CMakeLists.txt || die |
91 |
- local mycmakeargs=( |
92 |
- -DICINGA2_UNITY_BUILD=FALSE |
93 |
- -DCMAKE_VERBOSE_MAKEFILE=ON |
94 |
- -DCMAKE_BUILD_TYPE=None |
95 |
- -DCMAKE_INSTALL_SYSCONFDIR=/etc |
96 |
- -DCMAKE_INSTALL_LOCALSTATEDIR=/var |
97 |
- -DICINGA2_SYSCONFIGFILE=/etc/conf.d/icinga2 |
98 |
- -DICINGA2_PLUGINDIR="/usr/$(get_libdir)/nagios/plugins" |
99 |
- -DICINGA2_USER=icinga |
100 |
- -DICINGA2_GROUP=icingacmd |
101 |
- -DICINGA2_COMMAND_GROUP=icingacmd |
102 |
- -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=yes |
103 |
- -DUSE_SYSTEMD=$(usex systemd ON OFF) |
104 |
- -DLOGROTATE_HAS_SU=ON |
105 |
- ) |
106 |
- # default to off if minimal, allow the flags to be set otherwise |
107 |
- if use minimal; then |
108 |
- mycmakeargs+=( |
109 |
- -DICINGA2_WITH_MYSQL=OFF |
110 |
- -DICINGA2_WITH_PGSQL=OFF |
111 |
- ) |
112 |
- else |
113 |
- mycmakeargs+=( |
114 |
- -DICINGA2_WITH_PGSQL=$(usex postgres ON OFF) |
115 |
- -DICINGA2_WITH_MYSQL=$(usex mysql ON OFF) |
116 |
- ) |
117 |
- fi |
118 |
- # LTO |
119 |
- if use lto; then |
120 |
- mycmakeargs+=( |
121 |
- -DICINGA2_LTO_BUILD=ON |
122 |
- ) |
123 |
- else |
124 |
- mycmakeargs+=( |
125 |
- -DICINGA2_LTO_BUILD=OFF |
126 |
- ) |
127 |
- fi |
128 |
- |
129 |
- cmake-utils_src_configure |
130 |
-} |
131 |
- |
132 |
-src_install() { |
133 |
- BUILDDIR="${WORKDIR}"/icinga2-${PV}_build |
134 |
- cd "${BUILDDIR}" || die |
135 |
- |
136 |
- emake DESTDIR="${D}" install |
137 |
- |
138 |
- einstalldocs |
139 |
- |
140 |
- newinitd "${FILESDIR}"/icinga2.initd-3 icinga2 |
141 |
- |
142 |
- if use mysql ; then |
143 |
- docinto schema |
144 |
- newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/mysql.sql mysql.sql |
145 |
- docinto schema/upgrade |
146 |
- dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_mysql/schema/upgrade/* |
147 |
- fi |
148 |
- if use mariadb ; then # same as mysql |
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 postgres ; then |
155 |
- docinto schema |
156 |
- newdoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/pgsql.sql pgsql.sql |
157 |
- docinto schema/upgrade |
158 |
- dodoc "${WORKDIR}"/icinga2-${PV}/lib/db_ido_pgsql/schema/upgrade/* |
159 |
- fi |
160 |
- |
161 |
- keepdir /etc/icinga2 |
162 |
- keepdir /var/lib/icinga2/api/zones |
163 |
- keepdir /var/lib/icinga2/api/repository |
164 |
- keepdir /var/lib/icinga2/api/log |
165 |
- keepdir /var/spool/icinga2/perfdata |
166 |
- |
167 |
- rm -r "${D}/var/run" || die "failed to remove /var/run" |
168 |
- rm -r "${D}/var/cache" || die "failed to remove /var/cache" |
169 |
- |
170 |
- fowners root:icinga /etc/icinga2 |
171 |
- fperms 0750 /etc/icinga2 |
172 |
- fowners icinga:icinga /var/lib/icinga2 |
173 |
- fowners icinga:icinga /var/spool/icinga2 |
174 |
- fowners -R icinga:icingacmd /var/lib/icinga2/api |
175 |
- fowners icinga:icinga /var/spool/icinga2/perfdata |
176 |
- fowners icinga:icingacmd /var/log/icinga2 |
177 |
- |
178 |
- fperms ug+rwX,o-rwx /etc/icinga2 |
179 |
- fperms ug+rwX,o-rwx /var/lib/icinga2 |
180 |
- fperms ug+rwX,o-rwx /var/spool/icinga2 |
181 |
- fperms ug+rwX,o-rwx /var/log/icinga2 |
182 |
- |
183 |
- if use vim-syntax; then |
184 |
- insinto /usr/share/vim/vimfiles |
185 |
- doins -r "${WORKDIR}"/${P}/tools/syntax/vim/ftdetect |
186 |
- doins -r "${WORKDIR}"/${P}/tools/syntax/vim/syntax |
187 |
- fi |
188 |
- |
189 |
- if use nano-syntax; then |
190 |
- insinto /usr/share/nano |
191 |
- doins "${WORKDIR}"/${P}/tools/syntax/nano/icinga2.nanorc |
192 |
- fi |
193 |
-} |
194 |
- |
195 |
-pkg_postinst() { |
196 |
- if [[ ${PV} != 9999 && -n ${REPLACING_VERSIONS} && ${REPLACING_VERSIONS} != ${PV} ]]; then |
197 |
- elog "DB IDO schema upgrade may be required required. |
198 |
- https://www.icinga.com/docs/icinga2/latest/doc/16-upgrading-icinga-2/" |
199 |
- fi |
200 |
-} |