Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/zabbix/
Date: Tue, 01 Nov 2022 06:54:34
Message-Id: 1667285667.a4ebb74759d060d79cb27f845bb4fa8a6d3dff53.fordfrog@gentoo
1 commit: a4ebb74759d060d79cb27f845bb4fa8a6d3dff53
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 1 06:54:18 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 1 06:54:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4ebb747
7
8 net-analyzer/zabbix: dropped obsolete 6.2.2, 6.0.8, 5.0.27 & 4.0.43
9
10 Bug: https://bugs.gentoo.org/878041
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 net-analyzer/zabbix/Manifest | 7 -
14 net-analyzer/zabbix/zabbix-4.0.43.ebuild | 367 ---------------------------
15 net-analyzer/zabbix/zabbix-5.0.27.ebuild | 398 ------------------------------
16 net-analyzer/zabbix/zabbix-6.0.8.ebuild | 411 -------------------------------
17 net-analyzer/zabbix/zabbix-6.2.2.ebuild | 411 -------------------------------
18 5 files changed, 1594 deletions(-)
19
20 diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest
21 index e583ec89d1f0..4ddf8be2e101 100644
22 --- a/net-analyzer/zabbix/Manifest
23 +++ b/net-analyzer/zabbix/Manifest
24 @@ -1,14 +1,7 @@
25 -DIST zabbix-4.0.43.tar.gz 17648025 BLAKE2B 1dbe0c8691d990278bcc540dcd57d7640a3d832021a9ec416dd67857a3e6e0724659ca13c6c59482e45e772cdb3c22f66810d0111e59d0371ed37f3d8b61275b SHA512 5d7f81a2e7dd8d060ab46c37622b4b73702d208e065bd99022f6c7e9598f2230b89347e73864238861eed7747d5439221ed1e4cc7ac99bf1e990d9550612dd7f
26 DIST zabbix-4.0.44.tar.gz 17713321 BLAKE2B 1f75f99430846cfc029d5e541ede7ef8c019a42af0ab6d70be3170052b723877ca54f6554cd9a29f7f436fb6e9d5ffd02913a1b12ad45a2a8ed00432738e5660 SHA512 223d6fdd352e5731487797d839c1741209eae79af78a058d3ba29e5a9eaab5cbf91072ad827bdd676696d3ea518c638d7fd515bff2a257aef3a7ad38f41b3cb6
27 -DIST zabbix-5.0.27-go-deps.tar.xz 34405712 BLAKE2B a24aa4bfde3726e04a6eb2664e4e9ab510ebaee55bd35ee61fe296cd961482d587305f461ca76a483d5441c3a2a8554dbb510bb00aabf3d60a0cc7342f48f61b SHA512 6f871b203247633253339db21015ad8610d905d9c7801ca34291af373fdc1a57b676b575da02b21968ab624fd3e87084cd4c4d234f43520d55a4a448c27d09e6
28 -DIST zabbix-5.0.27.tar.gz 21319138 BLAKE2B bd6d8986c3c1fbfb702fcda97ce1567701c4354cfed624978a3820b79643295e38c08370e43a2d2ae8b78f68118e4b443488903227197d3afd5fc298b806549e SHA512 e6c3f63e0f3999d723c6e46611cbdb33eea2c81cf33821bf6204ea1e3c31a8745a65641da037886798f918e8f775d97c326dd180dc4b26d66cc0af822e8697ad
29 DIST zabbix-5.0.28-go-deps.tar.xz 34382032 BLAKE2B 09d5ba3e81bef941b09907d3bad752935a8106d9e0ea083d13b8946c68dab995180f3b8cc18ef0506f987a12672c3899392e54a5072be03cf4ffa19fbe11ee3d SHA512 e22df02943569b4ef5dfbe043b137941194e0e44d059424d3ff59b34dfab1322dbbaf29586257f561328beec7f85f060c69866ed2723fe75f4bb45a21d2fbde1
30 DIST zabbix-5.0.28.tar.gz 21453968 BLAKE2B aa4c94ee43d986897694a9a27cfd2a5cb2aa23678e8eeb1df9b7c7198d480a2543203dda6a81b316ed3a5c80d87ea51c8160f268525e3b7e96d2087f332c4f7e SHA512 9f47205997bf2e7326dc7a7e04d352174dbc1c69fb1b34fdcbc10325ec0a3b70bf5c27373e6276e657f9a88a6d62f413e64612decf93eb53870471e53f2b6925
31 -DIST zabbix-6.0.8-go-deps.tar.xz 35354840 BLAKE2B bae764f1c66accc77171099c47432c8024c1e591286ac88cab7e25acb7c5f168ac69c5824d3e1e7281bfd2e26a1c80f5c77201368290424cc54fbb7134a76307 SHA512 f15d64e76c3ff037aa040fadd79805834b41c7494309c0d24f95c7d20c6c67c3d374f9079e2cc31a9af20a775d1691ef9cc57075cb895ee4e96f8b00cc41e2e6
32 -DIST zabbix-6.0.8.tar.gz 34291972 BLAKE2B 9c3fc052c8da9e4d54462ed84ea5a7dc784b2b2256e8ca56083f2419319d6f79b4ff25a11b853214d0bd2a9f0f4b96d09bdbe1c5b311767d045e94070d80fedb SHA512 76e3ec798b4cb4474ef6c0f936aea04cc9e15ce3aefb146e1de09b08c64559bdaa1caaa011fdfa94c23765417d8c3be3da9aa22dfb2cb403e588befa25fcc668
33 DIST zabbix-6.0.9-go-deps.tar.xz 35300488 BLAKE2B 7a516774f812e41a8640a68de11fb2f9e8e4d1da90d3c7a76807b25025ab32400e3c9efff7818ed90868da2d753c61e0f03126df0f7661cd440b1b59dc216217 SHA512 0f2c1e79b4b894384c9c09056242ccec732ffe49e80a6167748da4671e6f869486c1be70a83f09beaef356cfde4ec1b1a34ce2c5b122a0f19f351a82614d1389
34 DIST zabbix-6.0.9.tar.gz 34515806 BLAKE2B c9b5a432ede5fc5307c30ee1c1f986cb1cb8f0351a46f9f0ee9add2c5d86a9b96ed933d2c6801022451cc8b52babc54deba8ba2478d90136a12798728f83366f SHA512 20211e2eab47d03a5de221f3a466aaff24c01b868208d4cbd7a10a16a10cd20172f009842c631169962c06e13ca8b0c6f0b6bd3cfd060b68b59f95a136a2e207
35 -DIST zabbix-6.2.2-go-deps.tar.xz 35354668 BLAKE2B 2fba7e9ee2c04f74d0fe041489136ac30e27ef5869799e0eef720baf0c1f3e4426fc43a8abbb5295b5dec7a5a3ddaf2399096858e47d2d594a23b726599994aa SHA512 92d88ad0d398238cafc29a7d76b4105b8af690694a121aeb9068c5939231933ef9fb319287def02d6248dded6e6e4a6b77152be0bc3925327a4baa8974b1e76c
36 -DIST zabbix-6.2.2.tar.gz 34995538 BLAKE2B 749e43f23e06f9ad84bea2bae82fc1b8a499df3b873d26fd4fbfefd28288a3f17c1f05207d143516787cb1417107dd8594c704ea79b1a3d745affc787e723ff9 SHA512 b9ea0fb8fbfba6ecba54ad3abb68b10a005098cbbdf7130c6f9321cabcfe60a3b3094214a84e1c9d18fc4a0c959cf238eea43b400af027b9f200fb99c088658a
37 DIST zabbix-6.2.3-go-deps.tar.xz 35349056 BLAKE2B 1548167558be12e7519e59e011eb6e761a0a5e1625fb460bbf3106ca5a895277789ce4b2f649884ebb0f236997771378ea47919f3e6fb6a4f4908a29ef34385e SHA512 a8934a5bb2367395c1ba6bf7ccd830c951fb585e7dc054d29f2667bfc45d18eed13889f4c31f8f417aba1920df06512e927c77975f70ab419e7525768caece7f
38 DIST zabbix-6.2.3.tar.gz 35252249 BLAKE2B fdc9bd32c1aa632b266d26d88cdc08ac40d2663823730298ae2a136730ad4646a38921b0425ac87ef2c4dad7c62f5d41c2955cdf6b275204e26306b115ae3568 SHA512 9a8d3021f0e2929897c2f6d3e05721a9dd55ec5778c39edf7af9fb99590f8eece6bba40cb085426373837409d690646254fd2a3f0b151224532226dc46df14f4
39
40 diff --git a/net-analyzer/zabbix/zabbix-4.0.43.ebuild b/net-analyzer/zabbix/zabbix-4.0.43.ebuild
41 deleted file mode 100644
42 index 8436fd2d7b37..000000000000
43 --- a/net-analyzer/zabbix/zabbix-4.0.43.ebuild
44 +++ /dev/null
45 @@ -1,367 +0,0 @@
46 -# Copyright 1999-2022 Gentoo Authors
47 -# Distributed under the terms of the GNU General Public License v2
48 -
49 -EAPI=8
50 -
51 -# needed to make webapp-config dep optional
52 -WEBAPP_OPTIONAL="yes"
53 -inherit webapp java-pkg-opt-2 systemd toolchain-funcs tmpfiles user-info
54 -
55 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
56 -HOMEPAGE="https://www.zabbix.com/"
57 -MY_P=${P/_/}
58 -MY_PV=${PV/_/}
59 -SRC_URI="https://cdn.zabbix.com/${PN}/sources/stable/$(ver_cut 1-2)/${P}.tar.gz"
60 -LICENSE="GPL-2"
61 -SLOT="0/$(ver_cut 1-2)"
62 -WEBAPP_MANUAL_SLOT="yes"
63 -KEYWORDS="amd64 x86"
64 -IUSE="+agent curl frontend gnutls ipv6 java ldap libxml2 mbedtls mysql odbc openipmi +openssl oracle +postgres proxy server snmp sqlite ssh static xmpp"
65 -REQUIRED_USE="|| ( agent frontend proxy server )
66 - ?? ( gnutls mbedtls openssl )
67 - proxy? ( ^^ ( mysql oracle postgres sqlite ) )
68 - server? ( ^^ ( mysql oracle postgres ) !sqlite )
69 - static? ( !oracle !snmp )"
70 -
71 -COMMON_DEPEND="
72 - curl? ( net-misc/curl )
73 - gnutls? ( net-libs/gnutls:0= )
74 - java? ( >=virtual/jdk-1.8:* )
75 - ldap? (
76 - =dev-libs/cyrus-sasl-2*
77 - net-libs/gnutls:=
78 - net-nds/openldap:=
79 - )
80 - libxml2? ( dev-libs/libxml2 )
81 - mbedtls? ( net-libs/mbedtls:0= )
82 - mysql? ( dev-db/mysql-connector-c:= )
83 - odbc? ( dev-db/unixODBC )
84 - openipmi? ( sys-libs/openipmi )
85 - openssl? ( dev-libs/openssl:=[-bindist(-)] )
86 - oracle? ( dev-db/oracle-instantclient[odbc,sdk] )
87 - postgres? ( dev-db/postgresql:* )
88 - proxy? (
89 - dev-libs/libevent:=
90 - sys-libs/zlib
91 - )
92 - server? (
93 - dev-libs/libevent:=
94 - sys-libs/zlib
95 - )
96 - snmp? ( net-analyzer/net-snmp:= )
97 - sqlite? ( dev-db/sqlite )
98 - ssh? ( net-libs/libssh2 )
99 - xmpp? ( dev-libs/iksemel )
100 -"
101 -
102 -RDEPEND="${COMMON_DEPEND}
103 - acct-group/zabbix
104 - acct-user/zabbix
105 - java? ( >=virtual/jre-1.8:* )
106 - mysql? ( virtual/mysql )
107 - proxy? (
108 - dev-libs/libpcre
109 - net-analyzer/fping[suid]
110 - )
111 - server? (
112 - app-admin/webapp-config
113 - dev-libs/libpcre
114 - net-analyzer/fping[suid]
115 - )
116 - frontend? (
117 - app-admin/webapp-config
118 - dev-lang/php:*[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
119 - media-libs/gd[png]
120 - virtual/httpd-php:*
121 - mysql? ( dev-lang/php[mysqli] )
122 - odbc? ( dev-lang/php[odbc] )
123 - oracle? ( dev-lang/php[oci8-instant-client] )
124 - postgres? ( dev-lang/php[postgres] )
125 - sqlite? ( dev-lang/php[sqlite] )
126 - )
127 -"
128 -DEPEND="${COMMON_DEPEND}
129 - static? (
130 - curl? ( net-misc/curl[static-libs] )
131 - ldap? (
132 - =dev-libs/cyrus-sasl-2*[static-libs]
133 - net-libs/gnutls[static-libs]
134 - net-nds/openldap[static-libs]
135 - )
136 - libxml2? ( dev-libs/libxml2[static-libs] )
137 - mysql? ( dev-db/mysql-connector-c[static-libs] )
138 - odbc? ( dev-db/unixODBC[static-libs] )
139 - postgres? ( dev-db/postgresql:*[static-libs] )
140 - sqlite? ( dev-db/sqlite[static-libs] )
141 - ssh? ( net-libs/libssh2 )
142 - )
143 -"
144 -BDEPEND="
145 - virtual/pkgconfig
146 -"
147 -
148 -PATCHES=(
149 - "${FILESDIR}/${PN}-4.0.18-modulepathfix.patch"
150 - "${FILESDIR}/${PN}-3.0.30-security-disable-PidFile.patch"
151 -)
152 -
153 -S=${WORKDIR}/${MY_P}
154 -
155 -ZABBIXJAVA_BASE="opt/zabbix_java"
156 -
157 -pkg_setup() {
158 - if use oracle; then
159 - if [ -z "${ORACLE_HOME}" ]; then
160 - eerror
161 - eerror "The environment variable ORACLE_HOME must be set"
162 - eerror "and point to the correct location."
163 - eerror "It looks like you don't have Oracle installed."
164 - eerror
165 - die "Environment variable ORACLE_HOME is not set"
166 - fi
167 - fi
168 -
169 - if use frontend; then
170 - webapp_pkg_setup
171 - fi
172 -
173 - java-pkg-opt-2_pkg_setup
174 -}
175 -
176 -src_prepare() {
177 - default
178 -}
179 -
180 -src_configure() {
181 - econf \
182 - $(use_enable agent) \
183 - $(use_enable ipv6) \
184 - $(use_enable java) \
185 - $(use_enable proxy) \
186 - $(use_enable server) \
187 - $(use_enable static) \
188 - $(use_with curl libcurl) \
189 - $(use_with gnutls) \
190 - $(use_with ldap) \
191 - $(use_with libxml2) \
192 - $(use_with mbedtls) \
193 - $(use_with mysql) \
194 - $(use_with odbc unixodbc) \
195 - $(use_with openipmi openipmi) \
196 - $(use_with openssl) \
197 - $(use_with oracle) \
198 - $(use_with postgres postgresql) \
199 - $(use_with snmp net-snmp) \
200 - $(use_with sqlite sqlite3) \
201 - $(use_with ssh ssh2) \
202 - $(use_with xmpp jabber)
203 -}
204 -
205 -src_compile() {
206 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
207 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
208 - fi
209 -}
210 -
211 -src_install() {
212 - local dirs=(
213 - /etc/zabbix
214 - /var/lib/zabbix
215 - /var/lib/zabbix/home
216 - /var/lib/zabbix/scripts
217 - /var/lib/zabbix/alertscripts
218 - /var/lib/zabbix/externalscripts
219 - /var/log/zabbix
220 - )
221 -
222 - for dir in "${dirs[@]}"; do
223 - dodir "${dir}"
224 - keepdir "${dir}"
225 - done
226 -
227 - if use server; then
228 - insinto /etc/zabbix
229 - doins "${S}"/conf/zabbix_server.conf
230 - fperms 0640 /etc/zabbix/zabbix_server.conf
231 - fowners root:zabbix /etc/zabbix/zabbix_server.conf
232 -
233 - newinitd "${FILESDIR}"/zabbix-server-r1.init zabbix-server
234 -
235 - dosbin src/zabbix_server/zabbix_server
236 -
237 - insinto /usr/share/zabbix
238 - doins -r "${S}"/database/
239 -
240 - systemd_dounit "${FILESDIR}"/zabbix-server.service
241 - newtmpfiles "${FILESDIR}"/zabbix-server.tmpfiles zabbix-server.conf
242 - fi
243 -
244 - if use proxy; then
245 - insinto /etc/zabbix
246 - doins "${S}"/conf/zabbix_proxy.conf
247 - fperms 0640 /etc/zabbix/zabbix_proxy.conf
248 - fowners root:zabbix /etc/zabbix/zabbix_proxy.conf
249 -
250 - newinitd "${FILESDIR}"/zabbix-proxy.init zabbix-proxy
251 -
252 - dosbin src/zabbix_proxy/zabbix_proxy
253 -
254 - insinto /usr/share/zabbix
255 - doins -r "${S}"/database/
256 -
257 - systemd_dounit "${FILESDIR}"/zabbix-proxy.service
258 - newtmpfiles "${FILESDIR}"/zabbix-proxy.tmpfiles zabbix-proxy.conf
259 - fi
260 -
261 - if use agent; then
262 - insinto /etc/zabbix
263 - doins "${S}"/conf/zabbix_agentd.conf
264 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
265 - fowners root:zabbix /etc/zabbix/zabbix_agentd.conf
266 -
267 - newinitd "${FILESDIR}"/zabbix-agentd.init zabbix-agentd
268 -
269 - dosbin src/zabbix_agent/zabbix_agentd
270 - dobin \
271 - src/zabbix_sender/zabbix_sender \
272 - src/zabbix_get/zabbix_get
273 -
274 - systemd_dounit "${FILESDIR}"/zabbix-agentd.service
275 - newtmpfiles "${FILESDIR}"/zabbix-agentd.tmpfiles zabbix-agentd.conf
276 - fi
277 -
278 - fowners root:zabbix /etc/zabbix
279 - fowners zabbix:zabbix \
280 - /var/lib/zabbix \
281 - /var/lib/zabbix/home \
282 - /var/lib/zabbix/scripts \
283 - /var/lib/zabbix/alertscripts \
284 - /var/lib/zabbix/externalscripts \
285 - /var/log/zabbix
286 - fperms 0750 \
287 - /etc/zabbix \
288 - /var/lib/zabbix \
289 - /var/lib/zabbix/home \
290 - /var/lib/zabbix/scripts \
291 - /var/lib/zabbix/alertscripts \
292 - /var/lib/zabbix/externalscripts \
293 - /var/log/zabbix
294 -
295 - dodoc README INSTALL NEWS ChangeLog \
296 - conf/zabbix_agentd.conf \
297 - conf/zabbix_proxy.conf \
298 - conf/zabbix_agentd/userparameter_examples.conf \
299 - conf/zabbix_agentd/userparameter_mysql.conf \
300 - conf/zabbix_server.conf
301 -
302 - if use frontend; then
303 - webapp_src_preinst
304 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
305 - webapp_configfile \
306 - "${MY_HTDOCSDIR}"/include/db.inc.php \
307 - "${MY_HTDOCSDIR}"/include/config.inc.php
308 - webapp_src_install
309 - fi
310 -
311 - if use java; then
312 - dodir \
313 - /${ZABBIXJAVA_BASE} \
314 - /${ZABBIXJAVA_BASE}/bin \
315 - /${ZABBIXJAVA_BASE}/lib
316 - keepdir /${ZABBIXJAVA_BASE}
317 - exeinto /${ZABBIXJAVA_BASE}/bin
318 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
319 - exeinto /${ZABBIXJAVA_BASE}/lib
320 - doexe \
321 - src/zabbix_java/lib/logback-classic-1.2.9.jar \
322 - src/zabbix_java/lib/logback-console.xml \
323 - src/zabbix_java/lib/logback-core-1.2.9.jar \
324 - src/zabbix_java/lib/logback.xml \
325 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
326 - src/zabbix_java/lib/slf4j-api-1.7.32.jar
327 - newinitd "${FILESDIR}"/zabbix-jmx-proxy.init zabbix-jmx-proxy
328 - newconfd "${FILESDIR}"/zabbix-jmx-proxy.conf zabbix-jmx-proxy
329 - fi
330 -}
331 -
332 -pkg_postinst() {
333 - if use server || use proxy ; then
334 - elog
335 - elog "You may need to configure your database for Zabbix"
336 - elog "if you have not already done so."
337 - elog
338 -
339 - zabbix_homedir=$(egethome zabbix)
340 - if [ -n "${zabbix_homedir}" ] && \
341 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
342 - ewarn
343 - ewarn "The user 'zabbix' should have his homedir changed"
344 - ewarn "to /var/lib/zabbix/home if you want to use"
345 - ewarn "custom alert scripts."
346 - ewarn
347 - ewarn "A real homedir might be needed for configfiles"
348 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
349 - ewarn "using sendxmpp for Jabber alerts)."
350 - ewarn
351 - ewarn "To change the homedir use:"
352 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
353 - ewarn
354 - fi
355 - fi
356 -
357 - if use server; then
358 - tmpfiles_process zabbix-server.conf
359 -
360 - elog
361 - elog "For distributed monitoring you have to run:"
362 - elog
363 - elog "zabbix_server -n <nodeid>"
364 - elog
365 - elog "This will convert database data for use with Node ID"
366 - elog "and also adds a local node."
367 - elog
368 - fi
369 -
370 - if use proxy; then
371 - tmpfiles_process zabbix-proxy.conf
372 - fi
373 -
374 - if use agent; then
375 - tmpfiles_process zabbix-agentd.conf
376 - fi
377 -
378 - elog "--"
379 - elog
380 - elog "You may need to add these lines to /etc/services:"
381 - elog
382 - elog "zabbix-agent 10050/tcp Zabbix Agent"
383 - elog "zabbix-agent 10050/udp Zabbix Agent"
384 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
385 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
386 - elog
387 -
388 - if use server || use proxy ; then
389 - # check for fping
390 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
391 - case "${fping_perms}" in
392 - 4[157][157][157])
393 - ;;
394 - *)
395 - ewarn
396 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
397 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
398 - ewarn "by everyone. Run the following command to fix it:"
399 - ewarn
400 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
401 - ewarn
402 - ewarn "Please be aware that this might impose a security risk,"
403 - ewarn "depending on the code quality of fping."
404 - ewarn
405 - ;;
406 - esac
407 - fi
408 -}
409 -
410 -pkg_prerm() {
411 - (use frontend || use server) && webapp_pkg_prerm
412 -}
413
414 diff --git a/net-analyzer/zabbix/zabbix-5.0.27.ebuild b/net-analyzer/zabbix/zabbix-5.0.27.ebuild
415 deleted file mode 100644
416 index 901c486faa9c..000000000000
417 --- a/net-analyzer/zabbix/zabbix-5.0.27.ebuild
418 +++ /dev/null
419 @@ -1,398 +0,0 @@
420 -# Copyright 1999-2022 Gentoo Authors
421 -# Distributed under the terms of the GNU General Public License v2
422 -
423 -# To create the go modules tarball:
424 -# cd src/go
425 -# GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw
426 -# tar -acf zabbix-${PV}-go-deps.tar.xz go-mod
427 -
428 -EAPI=8
429 -
430 -GO_OPTIONAL="yes"
431 -# needed to make webapp-config dep optional
432 -WEBAPP_OPTIONAL="yes"
433 -inherit webapp java-pkg-opt-2 systemd tmpfiles toolchain-funcs go-module user-info
434 -
435 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
436 -HOMEPAGE="https://www.zabbix.com/"
437 -MY_P=${P/_/}
438 -MY_PV=${PV/_/}
439 -SRC_URI="https://cdn.zabbix.com/${PN}/sources/stable/$(ver_cut 1-2)/${P}.tar.gz
440 - agent2? ( https://dev.gentoo.org/~fordfrog/distfiles/${P}-go-deps.tar.xz )
441 -"
442 -
443 -LICENSE="GPL-2"
444 -SLOT="0/$(ver_cut 1-2)"
445 -WEBAPP_MANUAL_SLOT="yes"
446 -KEYWORDS="amd64 x86"
447 -IUSE="+agent +agent2 curl frontend gnutls ipv6 java ldap libxml2 mysql odbc openipmi +openssl oracle +postgres proxy server snmp sqlite ssh static"
448 -REQUIRED_USE="|| ( agent agent2 frontend proxy server )
449 - ?? ( gnutls openssl )
450 - proxy? ( ^^ ( mysql oracle postgres sqlite ) )
451 - server? ( ^^ ( mysql oracle postgres ) !sqlite )
452 - static? ( !oracle !snmp )"
453 -
454 -COMMON_DEPEND="
455 - curl? ( net-misc/curl )
456 - gnutls? ( net-libs/gnutls:0= )
457 - java? ( >=virtual/jdk-1.8:* )
458 - ldap? (
459 - =dev-libs/cyrus-sasl-2*
460 - net-libs/gnutls:=
461 - net-nds/openldap:=
462 - )
463 - libxml2? ( dev-libs/libxml2 )
464 - mysql? ( dev-db/mysql-connector-c:= )
465 - odbc? ( dev-db/unixODBC )
466 - openipmi? ( sys-libs/openipmi )
467 - openssl? ( dev-libs/openssl:=[-bindist(-)] )
468 - oracle? ( dev-db/oracle-instantclient[odbc,sdk] )
469 - postgres? ( dev-db/postgresql:* )
470 - proxy? (
471 - dev-libs/libevent:=
472 - sys-libs/zlib
473 - )
474 - server? (
475 - dev-libs/libevent:=
476 - sys-libs/zlib
477 - )
478 - snmp? ( net-analyzer/net-snmp:= )
479 - sqlite? ( dev-db/sqlite )
480 - ssh? ( net-libs/libssh2 )
481 -"
482 -
483 -RDEPEND="${COMMON_DEPEND}
484 - acct-group/zabbix
485 - acct-user/zabbix
486 - java? ( >=virtual/jre-1.8:* )
487 - mysql? ( virtual/mysql )
488 - proxy? (
489 - dev-libs/libpcre
490 - net-analyzer/fping[suid]
491 - )
492 - server? (
493 - app-admin/webapp-config
494 - dev-libs/libpcre
495 - net-analyzer/fping[suid]
496 - )
497 - frontend? (
498 - app-admin/webapp-config
499 - dev-lang/php:*[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
500 - media-libs/gd[png]
501 - virtual/httpd-php:*
502 - mysql? ( dev-lang/php[mysqli] )
503 - odbc? ( dev-lang/php[odbc] )
504 - oracle? ( dev-lang/php[oci8-instant-client] )
505 - postgres? ( dev-lang/php[postgres] )
506 - sqlite? ( dev-lang/php[sqlite] )
507 - )
508 -"
509 -DEPEND="${COMMON_DEPEND}
510 - static? (
511 - curl? ( net-misc/curl[static-libs] )
512 - ldap? (
513 - =dev-libs/cyrus-sasl-2*[static-libs]
514 - net-libs/gnutls[static-libs]
515 - net-nds/openldap[static-libs]
516 - )
517 - libxml2? ( dev-libs/libxml2[static-libs] )
518 - mysql? ( dev-db/mysql-connector-c[static-libs] )
519 - odbc? ( dev-db/unixODBC[static-libs] )
520 - postgres? ( dev-db/postgresql:*[static-libs] )
521 - sqlite? ( dev-db/sqlite[static-libs] )
522 - ssh? ( net-libs/libssh2 )
523 - )
524 -"
525 -BDEPEND="
526 - virtual/pkgconfig
527 - agent2? (
528 - >=dev-lang/go-1.12
529 - app-arch/unzip
530 - )
531 -"
532 -
533 -# upstream tests fail for agent2
534 -RESTRICT="test"
535 -
536 -PATCHES=(
537 - "${FILESDIR}/${PN}-4.0.18-modulepathfix.patch"
538 - "${FILESDIR}/${PN}-3.0.30-security-disable-PidFile.patch"
539 - "${FILESDIR}/${PN}-5.0.22-system.sw.packages.patch"
540 -)
541 -
542 -S=${WORKDIR}/${MY_P}
543 -
544 -ZABBIXJAVA_BASE="opt/zabbix_java"
545 -
546 -pkg_setup() {
547 - if use oracle; then
548 - if [ -z "${ORACLE_HOME}" ]; then
549 - eerror
550 - eerror "The environment variable ORACLE_HOME must be set"
551 - eerror "and point to the correct location."
552 - eerror "It looks like you don't have Oracle installed."
553 - eerror
554 - die "Environment variable ORACLE_HOME is not set"
555 - fi
556 - fi
557 -
558 - if use frontend; then
559 - webapp_pkg_setup
560 - fi
561 -
562 - java-pkg-opt-2_pkg_setup
563 -}
564 -
565 -src_prepare() {
566 - default
567 -}
568 -
569 -src_configure() {
570 - econf \
571 - $(use_enable agent) \
572 - $(use_enable agent2) \
573 - $(use_enable ipv6) \
574 - $(use_enable java) \
575 - $(use_enable proxy) \
576 - $(use_enable server) \
577 - $(use_enable static) \
578 - $(use_with curl libcurl) \
579 - $(use_with gnutls) \
580 - $(use_with ldap) \
581 - $(use_with libxml2) \
582 - $(use_with mysql) \
583 - $(use_with odbc unixodbc) \
584 - $(use_with openipmi openipmi) \
585 - $(use_with openssl) \
586 - $(use_with oracle) \
587 - $(use_with postgres postgresql) \
588 - $(use_with snmp net-snmp) \
589 - $(use_with sqlite sqlite3) \
590 - $(use_with ssh ssh2)
591 -}
592 -
593 -src_compile() {
594 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
595 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
596 - fi
597 -}
598 -
599 -src_install() {
600 - local dirs=(
601 - /etc/zabbix
602 - /var/lib/zabbix
603 - /var/lib/zabbix/home
604 - /var/lib/zabbix/scripts
605 - /var/lib/zabbix/alertscripts
606 - /var/lib/zabbix/externalscripts
607 - /var/log/zabbix
608 - )
609 -
610 - for dir in "${dirs[@]}"; do
611 - dodir "${dir}"
612 - keepdir "${dir}"
613 - done
614 -
615 - if use server; then
616 - insinto /etc/zabbix
617 - doins "${S}"/conf/zabbix_server.conf
618 - fperms 0640 /etc/zabbix/zabbix_server.conf
619 - fowners root:zabbix /etc/zabbix/zabbix_server.conf
620 -
621 - newinitd "${FILESDIR}"/zabbix-server-r1.init zabbix-server
622 -
623 - dosbin src/zabbix_server/zabbix_server
624 -
625 - insinto /usr/share/zabbix
626 - doins -r "${S}"/database/
627 -
628 - systemd_dounit "${FILESDIR}"/zabbix-server.service
629 - newtmpfiles "${FILESDIR}"/zabbix-server.tmpfiles zabbix-server.conf
630 - fi
631 -
632 - if use proxy; then
633 - insinto /etc/zabbix
634 - doins "${S}"/conf/zabbix_proxy.conf
635 - fperms 0640 /etc/zabbix/zabbix_proxy.conf
636 - fowners root:zabbix /etc/zabbix/zabbix_proxy.conf
637 -
638 - newinitd "${FILESDIR}"/zabbix-proxy.init zabbix-proxy
639 -
640 - dosbin src/zabbix_proxy/zabbix_proxy
641 -
642 - insinto /usr/share/zabbix
643 - doins -r "${S}"/database/
644 -
645 - systemd_dounit "${FILESDIR}"/zabbix-proxy.service
646 - newtmpfiles "${FILESDIR}"/zabbix-proxy.tmpfiles zabbix-proxy.conf
647 - fi
648 -
649 - if use agent; then
650 - insinto /etc/zabbix
651 - doins "${S}"/conf/zabbix_agentd.conf
652 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
653 - fowners root:zabbix /etc/zabbix/zabbix_agentd.conf
654 -
655 - newinitd "${FILESDIR}"/zabbix-agentd.init zabbix-agentd
656 -
657 - dosbin src/zabbix_agent/zabbix_agentd
658 - dobin \
659 - src/zabbix_sender/zabbix_sender \
660 - src/zabbix_get/zabbix_get
661 -
662 - systemd_dounit "${FILESDIR}"/zabbix-agentd.service
663 - newtmpfiles "${FILESDIR}"/zabbix-agentd.tmpfiles zabbix-agentd.conf
664 - fi
665 -
666 - if use agent2; then
667 - insinto /etc/zabbix
668 - doins "${S}"/src/go/conf/zabbix_agent2.conf
669 - fperms 0640 /etc/zabbix/zabbix_agent2.conf
670 - fowners root:zabbix /etc/zabbix/zabbix_agent2.conf
671 -
672 - newinitd "${FILESDIR}"/zabbix-agent2.init zabbix-agent2
673 -
674 - dosbin src/go/bin/zabbix_agent2
675 -
676 - systemd_dounit "${FILESDIR}"/zabbix-agent2.service
677 - newtmpfiles "${FILESDIR}"/zabbix-agent2.tmpfiles zabbix-agent2.conf
678 - fi
679 -
680 - fowners root:zabbix /etc/zabbix
681 - fowners zabbix:zabbix \
682 - /var/lib/zabbix \
683 - /var/lib/zabbix/home \
684 - /var/lib/zabbix/scripts \
685 - /var/lib/zabbix/alertscripts \
686 - /var/lib/zabbix/externalscripts \
687 - /var/log/zabbix
688 - fperms 0750 \
689 - /etc/zabbix \
690 - /var/lib/zabbix \
691 - /var/lib/zabbix/home \
692 - /var/lib/zabbix/scripts \
693 - /var/lib/zabbix/alertscripts \
694 - /var/lib/zabbix/externalscripts \
695 - /var/log/zabbix
696 -
697 - dodoc README INSTALL NEWS ChangeLog \
698 - conf/zabbix_agentd.conf \
699 - conf/zabbix_proxy.conf \
700 - conf/zabbix_agentd/userparameter_examples.conf \
701 - conf/zabbix_agentd/userparameter_mysql.conf \
702 - conf/zabbix_server.conf
703 -
704 - if use frontend; then
705 - webapp_src_preinst
706 - cp -R ui/* "${D}/${MY_HTDOCSDIR}"
707 - webapp_configfile \
708 - "${MY_HTDOCSDIR}"/include/db.inc.php \
709 - "${MY_HTDOCSDIR}"/include/config.inc.php
710 - webapp_src_install
711 - fi
712 -
713 - if use java; then
714 - dodir \
715 - /${ZABBIXJAVA_BASE} \
716 - /${ZABBIXJAVA_BASE}/bin \
717 - /${ZABBIXJAVA_BASE}/lib
718 - keepdir /${ZABBIXJAVA_BASE}
719 - exeinto /${ZABBIXJAVA_BASE}/bin
720 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
721 - exeinto /${ZABBIXJAVA_BASE}/lib
722 - doexe \
723 - src/zabbix_java/lib/logback-classic-1.2.9.jar \
724 - src/zabbix_java/lib/logback-console.xml \
725 - src/zabbix_java/lib/logback-core-1.2.9.jar \
726 - src/zabbix_java/lib/logback.xml \
727 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
728 - src/zabbix_java/lib/slf4j-api-1.7.32.jar
729 - newinitd "${FILESDIR}"/zabbix-jmx-proxy.init zabbix-jmx-proxy
730 - newconfd "${FILESDIR}"/zabbix-jmx-proxy.conf zabbix-jmx-proxy
731 - fi
732 -}
733 -
734 -pkg_postinst() {
735 - if use server || use proxy ; then
736 - elog
737 - elog "You may need to configure your database for Zabbix"
738 - elog "if you have not already done so."
739 - elog
740 -
741 - zabbix_homedir=$(egethome zabbix)
742 - if [ -n "${zabbix_homedir}" ] && \
743 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
744 - ewarn
745 - ewarn "The user 'zabbix' should have his homedir changed"
746 - ewarn "to /var/lib/zabbix/home if you want to use"
747 - ewarn "custom alert scripts."
748 - ewarn
749 - ewarn "A real homedir might be needed for configfiles"
750 - ewarn "for custom alert scripts."
751 - ewarn
752 - ewarn "To change the homedir use:"
753 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
754 - ewarn
755 - fi
756 - fi
757 -
758 - if use server; then
759 - tmpfiles_process zabbix-server.conf
760 -
761 - elog
762 - elog "For distributed monitoring you have to run:"
763 - elog
764 - elog "zabbix_server -n <nodeid>"
765 - elog
766 - elog "This will convert database data for use with Node ID"
767 - elog "and also adds a local node."
768 - elog
769 - fi
770 -
771 - if use proxy; then
772 - tmpfiles_process zabbix-proxy.conf
773 - fi
774 -
775 - if use agent; then
776 - tmpfiles_process zabbix-agentd.conf
777 - fi
778 -
779 - if use agent2; then
780 - tmpfiles_process zabbix-agent2.conf
781 - fi
782 -
783 - elog "--"
784 - elog
785 - elog "You may need to add these lines to /etc/services:"
786 - elog
787 - elog "zabbix-agent 10050/tcp Zabbix Agent"
788 - elog "zabbix-agent 10050/udp Zabbix Agent"
789 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
790 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
791 - elog
792 -
793 - if use server || use proxy ; then
794 - # check for fping
795 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
796 - case "${fping_perms}" in
797 - 4[157][157][157])
798 - ;;
799 - *)
800 - ewarn
801 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
802 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
803 - ewarn "by everyone. Run the following command to fix it:"
804 - ewarn
805 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
806 - ewarn
807 - ewarn "Please be aware that this might impose a security risk,"
808 - ewarn "depending on the code quality of fping."
809 - ewarn
810 - ;;
811 - esac
812 - fi
813 -}
814 -
815 -pkg_prerm() {
816 - (use frontend || use server) && webapp_pkg_prerm
817 -}
818
819 diff --git a/net-analyzer/zabbix/zabbix-6.0.8.ebuild b/net-analyzer/zabbix/zabbix-6.0.8.ebuild
820 deleted file mode 100644
821 index 0a0d755be321..000000000000
822 --- a/net-analyzer/zabbix/zabbix-6.0.8.ebuild
823 +++ /dev/null
824 @@ -1,411 +0,0 @@
825 -# Copyright 1999-2022 Gentoo Authors
826 -# Distributed under the terms of the GNU General Public License v2
827 -
828 -# To create the go modules tarball:
829 -# cd src/go
830 -# GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw
831 -# tar -acf zabbix-${PV}-go-deps.tar.xz go-mod
832 -
833 -EAPI=8
834 -
835 -GO_OPTIONAL="yes"
836 -# needed to make webapp-config dep optional
837 -WEBAPP_OPTIONAL="yes"
838 -inherit webapp java-pkg-opt-2 systemd tmpfiles toolchain-funcs go-module user-info
839 -
840 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
841 -HOMEPAGE="https://www.zabbix.com/"
842 -MY_P=${P/_/}
843 -MY_PV=${PV/_/}
844 -SRC_URI="https://cdn.zabbix.com/${PN}/sources/stable/$(ver_cut 1-2)/${P}.tar.gz
845 - agent2? ( https://dev.gentoo.org/~fordfrog/distfiles/${P}-go-deps.tar.xz )
846 -"
847 -
848 -LICENSE="GPL-2"
849 -SLOT="0/$(ver_cut 1-2)"
850 -WEBAPP_MANUAL_SLOT="yes"
851 -KEYWORDS="amd64 x86"
852 -IUSE="agent +agent2 curl frontend gnutls ipv6 java ldap libxml2 mysql odbc openipmi +openssl oracle +pcre2 +postgres proxy server snmp sqlite ssh static"
853 -REQUIRED_USE="|| ( agent agent2 frontend proxy server )
854 - ?? ( gnutls openssl )
855 - proxy? ( ^^ ( mysql oracle postgres sqlite ) )
856 - server? ( ^^ ( mysql oracle postgres ) !sqlite )
857 - static? ( !oracle !snmp )"
858 -
859 -COMMON_DEPEND="
860 - curl? ( net-misc/curl )
861 - gnutls? ( net-libs/gnutls:0= )
862 - java? ( >=virtual/jdk-1.8:* )
863 - ldap? (
864 - =dev-libs/cyrus-sasl-2*
865 - net-libs/gnutls:=
866 - net-nds/openldap:=
867 - )
868 - libxml2? ( dev-libs/libxml2 )
869 - mysql? ( dev-db/mysql-connector-c:= )
870 - odbc? ( dev-db/unixODBC )
871 - openipmi? ( sys-libs/openipmi )
872 - openssl? ( dev-libs/openssl:=[-bindist(-)] )
873 - oracle? ( dev-db/oracle-instantclient[odbc,sdk] )
874 - postgres? ( dev-db/postgresql:* )
875 - proxy? (
876 - dev-libs/libevent:=
877 - sys-libs/zlib
878 - )
879 - server? (
880 - dev-libs/libevent:=
881 - sys-libs/zlib
882 - )
883 - snmp? ( net-analyzer/net-snmp:= )
884 - sqlite? ( dev-db/sqlite )
885 - ssh? ( net-libs/libssh2 )
886 -"
887 -
888 -RDEPEND="${COMMON_DEPEND}
889 - acct-group/zabbix
890 - acct-user/zabbix
891 - java? ( >=virtual/jre-1.8:* )
892 - mysql? ( virtual/mysql )
893 - proxy? (
894 - !pcre2? ( dev-libs/libpcre )
895 - pcre2? ( dev-libs/libpcre2:= )
896 - net-analyzer/fping[suid]
897 - )
898 - server? (
899 - app-admin/webapp-config
900 - !pcre2? ( dev-libs/libpcre )
901 - pcre2? ( dev-libs/libpcre2:= )
902 - net-analyzer/fping[suid]
903 - )
904 - frontend? (
905 - app-admin/webapp-config
906 - dev-lang/php:*[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
907 - media-libs/gd[png]
908 - virtual/httpd-php:*
909 - mysql? ( dev-lang/php[mysqli] )
910 - odbc? ( dev-lang/php[odbc] )
911 - oracle? ( dev-lang/php[oci8-instant-client] )
912 - postgres? ( dev-lang/php[postgres] )
913 - sqlite? ( dev-lang/php[sqlite] )
914 - )
915 -"
916 -DEPEND="${COMMON_DEPEND}
917 - static? (
918 - curl? ( net-misc/curl[static-libs] )
919 - ldap? (
920 - =dev-libs/cyrus-sasl-2*[static-libs]
921 - net-libs/gnutls[static-libs]
922 - net-nds/openldap[static-libs]
923 - )
924 - libxml2? ( dev-libs/libxml2[static-libs] )
925 - mysql? ( dev-db/mysql-connector-c[static-libs] )
926 - odbc? ( dev-db/unixODBC[static-libs] )
927 - postgres? ( dev-db/postgresql:*[static-libs] )
928 - sqlite? ( dev-db/sqlite[static-libs] )
929 - ssh? ( net-libs/libssh2 )
930 - )
931 -"
932 -BDEPEND="
933 - virtual/pkgconfig
934 - agent2? (
935 - >=dev-lang/go-1.12
936 - app-arch/unzip
937 - )
938 -"
939 -
940 -# upstream tests fail for agent2
941 -RESTRICT="test"
942 -
943 -PATCHES=(
944 - "${FILESDIR}/${PN}-4.0.18-modulepathfix.patch"
945 - "${FILESDIR}/${PN}-3.0.30-security-disable-PidFile.patch"
946 - "${FILESDIR}/${PN}-6.0.3-system.sw.packages.patch"
947 -)
948 -
949 -S=${WORKDIR}/${MY_P}
950 -
951 -ZABBIXJAVA_BASE="opt/zabbix_java"
952 -
953 -pkg_setup() {
954 - if use oracle; then
955 - if [ -z "${ORACLE_HOME}" ]; then
956 - eerror
957 - eerror "The environment variable ORACLE_HOME must be set"
958 - eerror "and point to the correct location."
959 - eerror "It looks like you don't have Oracle installed."
960 - eerror
961 - die "Environment variable ORACLE_HOME is not set"
962 - fi
963 - fi
964 -
965 - if use frontend; then
966 - webapp_pkg_setup
967 - fi
968 -
969 - java-pkg-opt-2_pkg_setup
970 -}
971 -
972 -src_configure() {
973 - local econf_args=(
974 - "$(use_enable agent)"
975 - "$(use_enable agent2)"
976 - "$(use_enable ipv6)"
977 - "$(use_enable java)"
978 - "$(use_enable proxy)"
979 - "$(use_enable server)"
980 - "$(use_enable static)"
981 - "$(use_with curl libcurl)"
982 - "$(use_with gnutls)"
983 - "$(use_with ldap)"
984 - "$(use_with libxml2)"
985 - "$(use_with mysql)"
986 - "$(use_with odbc unixodbc)"
987 - "$(use_with openipmi openipmi)"
988 - "$(use_with openssl)"
989 - "$(use_with oracle)"
990 - "$(use_with postgres postgresql)"
991 - "$(use_with snmp net-snmp)"
992 - "$(use_with sqlite sqlite3)"
993 - "$(use_with ssh ssh2)"
994 - )
995 -
996 - if use pcre2; then
997 - econf_args+=( --with-libpcre2 )
998 - else
999 - # If pcre2 is not enabled, then use the old pcre library.
1000 - econf_args+=( --with-libpcre )
1001 - fi
1002 -
1003 - econf ${econf_args[@]}
1004 -}
1005 -
1006 -src_compile() {
1007 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
1008 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
1009 - fi
1010 -}
1011 -
1012 -src_install() {
1013 - local dirs=(
1014 - /etc/zabbix
1015 - /var/lib/zabbix
1016 - /var/lib/zabbix/home
1017 - /var/lib/zabbix/scripts
1018 - /var/lib/zabbix/alertscripts
1019 - /var/lib/zabbix/externalscripts
1020 - /var/log/zabbix
1021 - )
1022 -
1023 - for dir in "${dirs[@]}"; do
1024 - keepdir "${dir}"
1025 - done
1026 -
1027 - if use server; then
1028 - insinto /etc/zabbix
1029 - doins "${S}"/conf/zabbix_server.conf
1030 - fperms 0640 /etc/zabbix/zabbix_server.conf
1031 - fowners root:zabbix /etc/zabbix/zabbix_server.conf
1032 -
1033 - newinitd "${FILESDIR}"/zabbix-server-r1.init zabbix-server
1034 -
1035 - dosbin src/zabbix_server/zabbix_server
1036 -
1037 - insinto /usr/share/zabbix
1038 - doins -r "${S}"/database/
1039 -
1040 - systemd_dounit "${FILESDIR}"/zabbix-server.service
1041 - newtmpfiles "${FILESDIR}"/zabbix-server.tmpfiles zabbix-server.conf
1042 - fi
1043 -
1044 - if use proxy; then
1045 - insinto /etc/zabbix
1046 - doins "${S}"/conf/zabbix_proxy.conf
1047 - fperms 0640 /etc/zabbix/zabbix_proxy.conf
1048 - fowners root:zabbix /etc/zabbix/zabbix_proxy.conf
1049 -
1050 - newinitd "${FILESDIR}"/zabbix-proxy.init zabbix-proxy
1051 -
1052 - dosbin src/zabbix_proxy/zabbix_proxy
1053 -
1054 - insinto /usr/share/zabbix
1055 - doins -r "${S}"/database/
1056 -
1057 - systemd_dounit "${FILESDIR}"/zabbix-proxy.service
1058 - newtmpfiles "${FILESDIR}"/zabbix-proxy.tmpfiles zabbix-proxy.conf
1059 - fi
1060 -
1061 - if use agent; then
1062 - insinto /etc/zabbix
1063 - doins "${S}"/conf/zabbix_agentd.conf
1064 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
1065 - fowners root:zabbix /etc/zabbix/zabbix_agentd.conf
1066 -
1067 - newinitd "${FILESDIR}"/zabbix-agentd.init zabbix-agentd
1068 -
1069 - dosbin src/zabbix_agent/zabbix_agentd
1070 - dobin \
1071 - src/zabbix_sender/zabbix_sender \
1072 - src/zabbix_get/zabbix_get
1073 -
1074 - systemd_dounit "${FILESDIR}"/zabbix-agentd.service
1075 - newtmpfiles "${FILESDIR}"/zabbix-agentd.tmpfiles zabbix-agentd.conf
1076 - fi
1077 - if use agent2; then
1078 - insinto /etc/zabbix
1079 - doins "${S}"/src/go/conf/zabbix_agent2.conf
1080 - fperms 0640 /etc/zabbix/zabbix_agent2.conf
1081 - fowners root:zabbix /etc/zabbix/zabbix_agent2.conf
1082 - keepdir /etc/zabbix/zabbix_agent2.d/plugins.d
1083 -
1084 - newinitd "${FILESDIR}"/zabbix-agent2.init zabbix-agent2
1085 -
1086 - dosbin src/go/bin/zabbix_agent2
1087 -
1088 - systemd_dounit "${FILESDIR}"/zabbix-agent2.service
1089 - newtmpfiles "${FILESDIR}"/zabbix-agent2.tmpfiles zabbix-agent2.conf
1090 - fi
1091 -
1092 - fowners root:zabbix /etc/zabbix
1093 - fowners zabbix:zabbix \
1094 - /var/lib/zabbix \
1095 - /var/lib/zabbix/home \
1096 - /var/lib/zabbix/scripts \
1097 - /var/lib/zabbix/alertscripts \
1098 - /var/lib/zabbix/externalscripts \
1099 - /var/log/zabbix
1100 - fperms 0750 \
1101 - /etc/zabbix \
1102 - /var/lib/zabbix \
1103 - /var/lib/zabbix/home \
1104 - /var/lib/zabbix/scripts \
1105 - /var/lib/zabbix/alertscripts \
1106 - /var/lib/zabbix/externalscripts \
1107 - /var/log/zabbix
1108 -
1109 - dodoc README INSTALL NEWS ChangeLog \
1110 - conf/zabbix_agentd.conf \
1111 - conf/zabbix_proxy.conf \
1112 - conf/zabbix_agentd/userparameter_examples.conf \
1113 - conf/zabbix_agentd/userparameter_mysql.conf \
1114 - conf/zabbix_server.conf
1115 -
1116 - if use frontend; then
1117 - webapp_src_preinst
1118 - cp -R ui/* "${D}/${MY_HTDOCSDIR}"
1119 - webapp_configfile \
1120 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1121 - "${MY_HTDOCSDIR}"/include/config.inc.php
1122 - webapp_src_install
1123 - fi
1124 -
1125 - if use java; then
1126 - dodir \
1127 - /${ZABBIXJAVA_BASE} \
1128 - /${ZABBIXJAVA_BASE}/bin \
1129 - /${ZABBIXJAVA_BASE}/lib
1130 - keepdir /${ZABBIXJAVA_BASE}
1131 - exeinto /${ZABBIXJAVA_BASE}/bin
1132 - doexe src/zabbix_java/bin/zabbix-java-gateway-"${MY_PV}".jar
1133 - exeinto /${ZABBIXJAVA_BASE}/lib
1134 - doexe \
1135 - src/zabbix_java/lib/logback-classic-1.2.9.jar \
1136 - src/zabbix_java/lib/logback-console.xml \
1137 - src/zabbix_java/lib/logback-core-1.2.9.jar \
1138 - src/zabbix_java/lib/logback.xml \
1139 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
1140 - src/zabbix_java/lib/slf4j-api-1.7.32.jar
1141 - newinitd "${FILESDIR}"/zabbix-jmx-proxy.init zabbix-jmx-proxy
1142 - newconfd "${FILESDIR}"/zabbix-jmx-proxy.conf zabbix-jmx-proxy
1143 - fi
1144 -}
1145 -
1146 -pkg_postinst() {
1147 - if use server || use proxy ; then
1148 - elog
1149 - elog "You may need to configure your database for Zabbix"
1150 - elog "if you have not already done so."
1151 - elog
1152 -
1153 - zabbix_homedir=$(egethome zabbix)
1154 - if [ -n "${zabbix_homedir}" ] && \
1155 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1156 - ewarn
1157 - ewarn "The user 'zabbix' should have his homedir changed"
1158 - ewarn "to /var/lib/zabbix/home if you want to use"
1159 - ewarn "custom alert scripts."
1160 - ewarn
1161 - ewarn "A real homedir might be needed for configfiles"
1162 - ewarn "for custom alert scripts."
1163 - ewarn
1164 - ewarn "To change the homedir use:"
1165 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1166 - ewarn
1167 - fi
1168 - fi
1169 -
1170 - if use server; then
1171 - tmpfiles_process zabbix-server.conf
1172 -
1173 - elog
1174 - elog "For distributed monitoring you have to run:"
1175 - elog
1176 - elog "zabbix_server -n <nodeid>"
1177 - elog
1178 - elog "This will convert database data for use with Node ID"
1179 - elog "and also adds a local node."
1180 - elog
1181 -
1182 - if ! use pcre2; then
1183 - ewarn "You are using zabbix with dev-libs/libpcre which is deprecated."
1184 - ewarn "Consider switching to dev-libs/libpcre2 (USE=pcre2) as soon as possible."
1185 - ewarn "See https://www.zabbix.com/documentation/6.0/en/manual/installation/upgrade_notes_600#pcre2-support"
1186 - fi
1187 - fi
1188 -
1189 - if use proxy; then
1190 - tmpfiles_process zabbix-proxy.conf
1191 - fi
1192 -
1193 - if use agent; then
1194 - tmpfiles_process zabbix-agentd.conf
1195 - fi
1196 -
1197 - if use agent2; then
1198 - tmpfiles_process zabbix-agent2.conf
1199 - fi
1200 -
1201 - elog "--"
1202 - elog
1203 - elog "You may need to add these lines to /etc/services:"
1204 - elog
1205 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1206 - elog "zabbix-agent 10050/udp Zabbix Agent"
1207 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1208 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1209 - elog
1210 -
1211 - if use server || use proxy ; then
1212 - # check for fping
1213 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1214 - case "${fping_perms}" in
1215 - 4[157][157][157])
1216 - ;;
1217 - *)
1218 - ewarn
1219 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1220 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1221 - ewarn "by everyone. Run the following command to fix it:"
1222 - ewarn
1223 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1224 - ewarn
1225 - ewarn "Please be aware that this might impose a security risk,"
1226 - ewarn "depending on the code quality of fping."
1227 - ewarn
1228 - ;;
1229 - esac
1230 - fi
1231 -}
1232 -
1233 -pkg_prerm() {
1234 - (use frontend || use server) && webapp_pkg_prerm
1235 -}
1236
1237 diff --git a/net-analyzer/zabbix/zabbix-6.2.2.ebuild b/net-analyzer/zabbix/zabbix-6.2.2.ebuild
1238 deleted file mode 100644
1239 index 0a0d755be321..000000000000
1240 --- a/net-analyzer/zabbix/zabbix-6.2.2.ebuild
1241 +++ /dev/null
1242 @@ -1,411 +0,0 @@
1243 -# Copyright 1999-2022 Gentoo Authors
1244 -# Distributed under the terms of the GNU General Public License v2
1245 -
1246 -# To create the go modules tarball:
1247 -# cd src/go
1248 -# GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw
1249 -# tar -acf zabbix-${PV}-go-deps.tar.xz go-mod
1250 -
1251 -EAPI=8
1252 -
1253 -GO_OPTIONAL="yes"
1254 -# needed to make webapp-config dep optional
1255 -WEBAPP_OPTIONAL="yes"
1256 -inherit webapp java-pkg-opt-2 systemd tmpfiles toolchain-funcs go-module user-info
1257 -
1258 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
1259 -HOMEPAGE="https://www.zabbix.com/"
1260 -MY_P=${P/_/}
1261 -MY_PV=${PV/_/}
1262 -SRC_URI="https://cdn.zabbix.com/${PN}/sources/stable/$(ver_cut 1-2)/${P}.tar.gz
1263 - agent2? ( https://dev.gentoo.org/~fordfrog/distfiles/${P}-go-deps.tar.xz )
1264 -"
1265 -
1266 -LICENSE="GPL-2"
1267 -SLOT="0/$(ver_cut 1-2)"
1268 -WEBAPP_MANUAL_SLOT="yes"
1269 -KEYWORDS="amd64 x86"
1270 -IUSE="agent +agent2 curl frontend gnutls ipv6 java ldap libxml2 mysql odbc openipmi +openssl oracle +pcre2 +postgres proxy server snmp sqlite ssh static"
1271 -REQUIRED_USE="|| ( agent agent2 frontend proxy server )
1272 - ?? ( gnutls openssl )
1273 - proxy? ( ^^ ( mysql oracle postgres sqlite ) )
1274 - server? ( ^^ ( mysql oracle postgres ) !sqlite )
1275 - static? ( !oracle !snmp )"
1276 -
1277 -COMMON_DEPEND="
1278 - curl? ( net-misc/curl )
1279 - gnutls? ( net-libs/gnutls:0= )
1280 - java? ( >=virtual/jdk-1.8:* )
1281 - ldap? (
1282 - =dev-libs/cyrus-sasl-2*
1283 - net-libs/gnutls:=
1284 - net-nds/openldap:=
1285 - )
1286 - libxml2? ( dev-libs/libxml2 )
1287 - mysql? ( dev-db/mysql-connector-c:= )
1288 - odbc? ( dev-db/unixODBC )
1289 - openipmi? ( sys-libs/openipmi )
1290 - openssl? ( dev-libs/openssl:=[-bindist(-)] )
1291 - oracle? ( dev-db/oracle-instantclient[odbc,sdk] )
1292 - postgres? ( dev-db/postgresql:* )
1293 - proxy? (
1294 - dev-libs/libevent:=
1295 - sys-libs/zlib
1296 - )
1297 - server? (
1298 - dev-libs/libevent:=
1299 - sys-libs/zlib
1300 - )
1301 - snmp? ( net-analyzer/net-snmp:= )
1302 - sqlite? ( dev-db/sqlite )
1303 - ssh? ( net-libs/libssh2 )
1304 -"
1305 -
1306 -RDEPEND="${COMMON_DEPEND}
1307 - acct-group/zabbix
1308 - acct-user/zabbix
1309 - java? ( >=virtual/jre-1.8:* )
1310 - mysql? ( virtual/mysql )
1311 - proxy? (
1312 - !pcre2? ( dev-libs/libpcre )
1313 - pcre2? ( dev-libs/libpcre2:= )
1314 - net-analyzer/fping[suid]
1315 - )
1316 - server? (
1317 - app-admin/webapp-config
1318 - !pcre2? ( dev-libs/libpcre )
1319 - pcre2? ( dev-libs/libpcre2:= )
1320 - net-analyzer/fping[suid]
1321 - )
1322 - frontend? (
1323 - app-admin/webapp-config
1324 - dev-lang/php:*[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
1325 - media-libs/gd[png]
1326 - virtual/httpd-php:*
1327 - mysql? ( dev-lang/php[mysqli] )
1328 - odbc? ( dev-lang/php[odbc] )
1329 - oracle? ( dev-lang/php[oci8-instant-client] )
1330 - postgres? ( dev-lang/php[postgres] )
1331 - sqlite? ( dev-lang/php[sqlite] )
1332 - )
1333 -"
1334 -DEPEND="${COMMON_DEPEND}
1335 - static? (
1336 - curl? ( net-misc/curl[static-libs] )
1337 - ldap? (
1338 - =dev-libs/cyrus-sasl-2*[static-libs]
1339 - net-libs/gnutls[static-libs]
1340 - net-nds/openldap[static-libs]
1341 - )
1342 - libxml2? ( dev-libs/libxml2[static-libs] )
1343 - mysql? ( dev-db/mysql-connector-c[static-libs] )
1344 - odbc? ( dev-db/unixODBC[static-libs] )
1345 - postgres? ( dev-db/postgresql:*[static-libs] )
1346 - sqlite? ( dev-db/sqlite[static-libs] )
1347 - ssh? ( net-libs/libssh2 )
1348 - )
1349 -"
1350 -BDEPEND="
1351 - virtual/pkgconfig
1352 - agent2? (
1353 - >=dev-lang/go-1.12
1354 - app-arch/unzip
1355 - )
1356 -"
1357 -
1358 -# upstream tests fail for agent2
1359 -RESTRICT="test"
1360 -
1361 -PATCHES=(
1362 - "${FILESDIR}/${PN}-4.0.18-modulepathfix.patch"
1363 - "${FILESDIR}/${PN}-3.0.30-security-disable-PidFile.patch"
1364 - "${FILESDIR}/${PN}-6.0.3-system.sw.packages.patch"
1365 -)
1366 -
1367 -S=${WORKDIR}/${MY_P}
1368 -
1369 -ZABBIXJAVA_BASE="opt/zabbix_java"
1370 -
1371 -pkg_setup() {
1372 - if use oracle; then
1373 - if [ -z "${ORACLE_HOME}" ]; then
1374 - eerror
1375 - eerror "The environment variable ORACLE_HOME must be set"
1376 - eerror "and point to the correct location."
1377 - eerror "It looks like you don't have Oracle installed."
1378 - eerror
1379 - die "Environment variable ORACLE_HOME is not set"
1380 - fi
1381 - fi
1382 -
1383 - if use frontend; then
1384 - webapp_pkg_setup
1385 - fi
1386 -
1387 - java-pkg-opt-2_pkg_setup
1388 -}
1389 -
1390 -src_configure() {
1391 - local econf_args=(
1392 - "$(use_enable agent)"
1393 - "$(use_enable agent2)"
1394 - "$(use_enable ipv6)"
1395 - "$(use_enable java)"
1396 - "$(use_enable proxy)"
1397 - "$(use_enable server)"
1398 - "$(use_enable static)"
1399 - "$(use_with curl libcurl)"
1400 - "$(use_with gnutls)"
1401 - "$(use_with ldap)"
1402 - "$(use_with libxml2)"
1403 - "$(use_with mysql)"
1404 - "$(use_with odbc unixodbc)"
1405 - "$(use_with openipmi openipmi)"
1406 - "$(use_with openssl)"
1407 - "$(use_with oracle)"
1408 - "$(use_with postgres postgresql)"
1409 - "$(use_with snmp net-snmp)"
1410 - "$(use_with sqlite sqlite3)"
1411 - "$(use_with ssh ssh2)"
1412 - )
1413 -
1414 - if use pcre2; then
1415 - econf_args+=( --with-libpcre2 )
1416 - else
1417 - # If pcre2 is not enabled, then use the old pcre library.
1418 - econf_args+=( --with-libpcre )
1419 - fi
1420 -
1421 - econf ${econf_args[@]}
1422 -}
1423 -
1424 -src_compile() {
1425 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
1426 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
1427 - fi
1428 -}
1429 -
1430 -src_install() {
1431 - local dirs=(
1432 - /etc/zabbix
1433 - /var/lib/zabbix
1434 - /var/lib/zabbix/home
1435 - /var/lib/zabbix/scripts
1436 - /var/lib/zabbix/alertscripts
1437 - /var/lib/zabbix/externalscripts
1438 - /var/log/zabbix
1439 - )
1440 -
1441 - for dir in "${dirs[@]}"; do
1442 - keepdir "${dir}"
1443 - done
1444 -
1445 - if use server; then
1446 - insinto /etc/zabbix
1447 - doins "${S}"/conf/zabbix_server.conf
1448 - fperms 0640 /etc/zabbix/zabbix_server.conf
1449 - fowners root:zabbix /etc/zabbix/zabbix_server.conf
1450 -
1451 - newinitd "${FILESDIR}"/zabbix-server-r1.init zabbix-server
1452 -
1453 - dosbin src/zabbix_server/zabbix_server
1454 -
1455 - insinto /usr/share/zabbix
1456 - doins -r "${S}"/database/
1457 -
1458 - systemd_dounit "${FILESDIR}"/zabbix-server.service
1459 - newtmpfiles "${FILESDIR}"/zabbix-server.tmpfiles zabbix-server.conf
1460 - fi
1461 -
1462 - if use proxy; then
1463 - insinto /etc/zabbix
1464 - doins "${S}"/conf/zabbix_proxy.conf
1465 - fperms 0640 /etc/zabbix/zabbix_proxy.conf
1466 - fowners root:zabbix /etc/zabbix/zabbix_proxy.conf
1467 -
1468 - newinitd "${FILESDIR}"/zabbix-proxy.init zabbix-proxy
1469 -
1470 - dosbin src/zabbix_proxy/zabbix_proxy
1471 -
1472 - insinto /usr/share/zabbix
1473 - doins -r "${S}"/database/
1474 -
1475 - systemd_dounit "${FILESDIR}"/zabbix-proxy.service
1476 - newtmpfiles "${FILESDIR}"/zabbix-proxy.tmpfiles zabbix-proxy.conf
1477 - fi
1478 -
1479 - if use agent; then
1480 - insinto /etc/zabbix
1481 - doins "${S}"/conf/zabbix_agentd.conf
1482 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
1483 - fowners root:zabbix /etc/zabbix/zabbix_agentd.conf
1484 -
1485 - newinitd "${FILESDIR}"/zabbix-agentd.init zabbix-agentd
1486 -
1487 - dosbin src/zabbix_agent/zabbix_agentd
1488 - dobin \
1489 - src/zabbix_sender/zabbix_sender \
1490 - src/zabbix_get/zabbix_get
1491 -
1492 - systemd_dounit "${FILESDIR}"/zabbix-agentd.service
1493 - newtmpfiles "${FILESDIR}"/zabbix-agentd.tmpfiles zabbix-agentd.conf
1494 - fi
1495 - if use agent2; then
1496 - insinto /etc/zabbix
1497 - doins "${S}"/src/go/conf/zabbix_agent2.conf
1498 - fperms 0640 /etc/zabbix/zabbix_agent2.conf
1499 - fowners root:zabbix /etc/zabbix/zabbix_agent2.conf
1500 - keepdir /etc/zabbix/zabbix_agent2.d/plugins.d
1501 -
1502 - newinitd "${FILESDIR}"/zabbix-agent2.init zabbix-agent2
1503 -
1504 - dosbin src/go/bin/zabbix_agent2
1505 -
1506 - systemd_dounit "${FILESDIR}"/zabbix-agent2.service
1507 - newtmpfiles "${FILESDIR}"/zabbix-agent2.tmpfiles zabbix-agent2.conf
1508 - fi
1509 -
1510 - fowners root:zabbix /etc/zabbix
1511 - fowners zabbix:zabbix \
1512 - /var/lib/zabbix \
1513 - /var/lib/zabbix/home \
1514 - /var/lib/zabbix/scripts \
1515 - /var/lib/zabbix/alertscripts \
1516 - /var/lib/zabbix/externalscripts \
1517 - /var/log/zabbix
1518 - fperms 0750 \
1519 - /etc/zabbix \
1520 - /var/lib/zabbix \
1521 - /var/lib/zabbix/home \
1522 - /var/lib/zabbix/scripts \
1523 - /var/lib/zabbix/alertscripts \
1524 - /var/lib/zabbix/externalscripts \
1525 - /var/log/zabbix
1526 -
1527 - dodoc README INSTALL NEWS ChangeLog \
1528 - conf/zabbix_agentd.conf \
1529 - conf/zabbix_proxy.conf \
1530 - conf/zabbix_agentd/userparameter_examples.conf \
1531 - conf/zabbix_agentd/userparameter_mysql.conf \
1532 - conf/zabbix_server.conf
1533 -
1534 - if use frontend; then
1535 - webapp_src_preinst
1536 - cp -R ui/* "${D}/${MY_HTDOCSDIR}"
1537 - webapp_configfile \
1538 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1539 - "${MY_HTDOCSDIR}"/include/config.inc.php
1540 - webapp_src_install
1541 - fi
1542 -
1543 - if use java; then
1544 - dodir \
1545 - /${ZABBIXJAVA_BASE} \
1546 - /${ZABBIXJAVA_BASE}/bin \
1547 - /${ZABBIXJAVA_BASE}/lib
1548 - keepdir /${ZABBIXJAVA_BASE}
1549 - exeinto /${ZABBIXJAVA_BASE}/bin
1550 - doexe src/zabbix_java/bin/zabbix-java-gateway-"${MY_PV}".jar
1551 - exeinto /${ZABBIXJAVA_BASE}/lib
1552 - doexe \
1553 - src/zabbix_java/lib/logback-classic-1.2.9.jar \
1554 - src/zabbix_java/lib/logback-console.xml \
1555 - src/zabbix_java/lib/logback-core-1.2.9.jar \
1556 - src/zabbix_java/lib/logback.xml \
1557 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
1558 - src/zabbix_java/lib/slf4j-api-1.7.32.jar
1559 - newinitd "${FILESDIR}"/zabbix-jmx-proxy.init zabbix-jmx-proxy
1560 - newconfd "${FILESDIR}"/zabbix-jmx-proxy.conf zabbix-jmx-proxy
1561 - fi
1562 -}
1563 -
1564 -pkg_postinst() {
1565 - if use server || use proxy ; then
1566 - elog
1567 - elog "You may need to configure your database for Zabbix"
1568 - elog "if you have not already done so."
1569 - elog
1570 -
1571 - zabbix_homedir=$(egethome zabbix)
1572 - if [ -n "${zabbix_homedir}" ] && \
1573 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1574 - ewarn
1575 - ewarn "The user 'zabbix' should have his homedir changed"
1576 - ewarn "to /var/lib/zabbix/home if you want to use"
1577 - ewarn "custom alert scripts."
1578 - ewarn
1579 - ewarn "A real homedir might be needed for configfiles"
1580 - ewarn "for custom alert scripts."
1581 - ewarn
1582 - ewarn "To change the homedir use:"
1583 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1584 - ewarn
1585 - fi
1586 - fi
1587 -
1588 - if use server; then
1589 - tmpfiles_process zabbix-server.conf
1590 -
1591 - elog
1592 - elog "For distributed monitoring you have to run:"
1593 - elog
1594 - elog "zabbix_server -n <nodeid>"
1595 - elog
1596 - elog "This will convert database data for use with Node ID"
1597 - elog "and also adds a local node."
1598 - elog
1599 -
1600 - if ! use pcre2; then
1601 - ewarn "You are using zabbix with dev-libs/libpcre which is deprecated."
1602 - ewarn "Consider switching to dev-libs/libpcre2 (USE=pcre2) as soon as possible."
1603 - ewarn "See https://www.zabbix.com/documentation/6.0/en/manual/installation/upgrade_notes_600#pcre2-support"
1604 - fi
1605 - fi
1606 -
1607 - if use proxy; then
1608 - tmpfiles_process zabbix-proxy.conf
1609 - fi
1610 -
1611 - if use agent; then
1612 - tmpfiles_process zabbix-agentd.conf
1613 - fi
1614 -
1615 - if use agent2; then
1616 - tmpfiles_process zabbix-agent2.conf
1617 - fi
1618 -
1619 - elog "--"
1620 - elog
1621 - elog "You may need to add these lines to /etc/services:"
1622 - elog
1623 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1624 - elog "zabbix-agent 10050/udp Zabbix Agent"
1625 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1626 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1627 - elog
1628 -
1629 - if use server || use proxy ; then
1630 - # check for fping
1631 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1632 - case "${fping_perms}" in
1633 - 4[157][157][157])
1634 - ;;
1635 - *)
1636 - ewarn
1637 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1638 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1639 - ewarn "by everyone. Run the following command to fix it:"
1640 - ewarn
1641 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1642 - ewarn
1643 - ewarn "Please be aware that this might impose a security risk,"
1644 - ewarn "depending on the code quality of fping."
1645 - ewarn
1646 - ;;
1647 - esac
1648 - fi
1649 -}
1650 -
1651 -pkg_prerm() {
1652 - (use frontend || use server) && webapp_pkg_prerm
1653 -}