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