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: Sun, 28 Aug 2022 05:28:38
Message-Id: 1661664507.612962bcfc33d9c829bc4246e76357791090428e.fordfrog@gentoo
1 commit: 612962bcfc33d9c829bc4246e76357791090428e
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 28 05:28:27 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 28 05:28:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=612962bc
7
8 net-analyzer/zabbix: dropped obsolete 4.0.42, 5.0.25, 6.0.6-r1 & 6.2.0-r1
9
10 Bug: https://bugs.gentoo.org/866887
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 net-analyzer/zabbix/Manifest | 7 -
14 net-analyzer/zabbix/zabbix-4.0.42.ebuild | 367 --------------------------
15 net-analyzer/zabbix/zabbix-5.0.25.ebuild | 398 ----------------------------
16 net-analyzer/zabbix/zabbix-6.0.6-r1.ebuild | 411 -----------------------------
17 net-analyzer/zabbix/zabbix-6.2.0-r1.ebuild | 411 -----------------------------
18 5 files changed, 1594 deletions(-)
19
20 diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest
21 index 49df58997667..be731de361d9 100644
22 --- a/net-analyzer/zabbix/Manifest
23 +++ b/net-analyzer/zabbix/Manifest
24 @@ -1,14 +1,7 @@
25 -DIST zabbix-4.0.42.tar.gz 17644927 BLAKE2B 1cc80aafa2a8a556c14e5675a550307b532c01433eb3892889964b9de90e1bd05456c20da6854f149e297c88ffc7f8e165ff593652759e00836418482458f014 SHA512 80993c0cc2b0235407f3b11089a1700e90db892a732194297d893caf951f360cd4777a7e2146fed8e314b71f170c49ed2c4c271e3c3e888e55998bbf7308f0c7
26 DIST zabbix-4.0.43.tar.gz 17648025 BLAKE2B 1dbe0c8691d990278bcc540dcd57d7640a3d832021a9ec416dd67857a3e6e0724659ca13c6c59482e45e772cdb3c22f66810d0111e59d0371ed37f3d8b61275b SHA512 5d7f81a2e7dd8d060ab46c37622b4b73702d208e065bd99022f6c7e9598f2230b89347e73864238861eed7747d5439221ed1e4cc7ac99bf1e990d9550612dd7f
27 -DIST zabbix-5.0.25-go-deps.tar.xz 34381664 BLAKE2B 2da35cac59efe069587ad8217385cd276be340e9f0c37483c1a3aa500b03e0139122ca75437a1646fdb3d26ff7a824160d663cff758cf0a91fb08252606640ac SHA512 625f0cdde87cff17bfb2e348a03ffab5374a5d7657c1510abeda5e0a313658625eda946474bc7b7bf7a778d8cf0b498215f9e26ee2c72c6456e87065071ec0ac
28 -DIST zabbix-5.0.25.tar.gz 21300141 BLAKE2B 271d10a051b08d5d172d312b48a077e600856cef954201b0c11b1b4e96c70681ebe82e382893689199f6567922ed2e08b3bb534b77ccf1eed099049ccf45002e SHA512 b66776f2ceaaef7c3b74cb47b99d96dcdb614cdae2f54d096046c2aeeb82c8c9c65ca17c95773551bfa867113ca36b29acb72a9102f0ccef930c16f0a4997774
29 DIST zabbix-5.0.26-go-deps.tar.xz 34385532 BLAKE2B a52924f8bee464deb6f6812242c0d7d987e7b46d097f0a118e2cb429d6d3d26f8e116d66e594a26e22bc5bf81997d21fb66ef97151538a814f63fe2c55a7f729 SHA512 49727ccd5e26d28e577fe9ee1d7eaa2de3d5054e831ea82e5dc9d8177c63063cf957b575072c5dc68b294763d519fff9041700e2dc267394e6ec143d272b1dd7
30 DIST zabbix-5.0.26.tar.gz 21248951 BLAKE2B 9119e66acc71f5ed8baf07b6bc90a69152188e1e74058146a9c7eef7d36fc9f0363a5635518bdb696b76fb93c9777878b8d4411853c641dec809e86cba4cfa74 SHA512 b10b3eb849ea3646aeaf3d2a1dbf639e6effbd21a23c06e4f2686a177d2ae186537607ed0a76c3f520cb84f3bba3079f5d9f7e840077cf5e1a3eac4b46f0558b
31 -DIST zabbix-6.0.6-go-deps.tar.xz 35349508 BLAKE2B 14aa70142d19d1ad146d5fab6208b1133a35796a67c6dd709df2fa7a00b013229ff852e58384ca01ed3c5feeb7f697da91d7096839e2434f3b5fe89b6f315cbb SHA512 5864e268e7432cd04f389c4e6be6c871f0de402ccc0c846900daa1d77389e2839bbe1d225fcf2ac50d6052014e1efe3c8da8b02d83f46a411210edde39ed372c
32 -DIST zabbix-6.0.6.tar.gz 34013189 BLAKE2B f9d07ca8938ae4e5e47048c32872644caeda0ecdef17513c63c63d1ce2aaa4ac0c92e6c70932bc598ff908419dae05bab32924f5973a5528b5668f7c7c2c5a17 SHA512 4fc21f54cdfc09b5627a8e8dbe77ac645be7f3d3a0f18fc940cf136d05410ade755c3b4869254a47e9e316dba2b5da6b709a20a023b9cd765ad16094efcded43
33 DIST zabbix-6.0.7-go-deps.tar.xz 35327308 BLAKE2B eb95964650a58bd300218888e9207f3feb25e9e0c87ed459446d6494bc2388d21d501e73ea8e0a99e4feabbd6d6c12d18c11b096cc6dc1fb534acbe8b3b353ac SHA512 eff9ec6c170279aa228b05a83c5f1bb8d793216189575180d05255faf6a6062c2ab6366ff4aa4e2cd092636a984e6658be47c404628d24dbee209111d28a516e
34 DIST zabbix-6.0.7.tar.gz 34190093 BLAKE2B 781edbeaf5452f8e54b6fe91b77ad9dfc8ffcf4716e97f39f5ff8160f084d551cdee9bc34d67141ebcfc5eb0cb074a03c55e0dce36d06c6d589ee021c1c6dba6 SHA512 36e8e26edd104cfdd2510dd201b8020a41d7af3006ad04d6659083ebcc14574b3360c01f70c86a1e008f719c1078512c891ac525ffe7480816973b515f0dcc8f
35 -DIST zabbix-6.2.0-go-deps.tar.xz 35398044 BLAKE2B 8f7a7ec5b806a22f2f1a6b652c7cb25af3fd503ac7e6ea16e2ab565716bf94f5dc4a290aaf17642bd9da937828ec984e582e876e871f8012eb44700c4ded1089 SHA512 4324b40c28b12b1032d76ff79da95220a47f3adea5f79e1d02ca85043234eaed91c33e309f5be49728054af19cf668df6b24f6fa4d715b67821e8c3a61eb62a8
36 -DIST zabbix-6.2.0.tar.gz 34472773 BLAKE2B 2b90937f453825ba240d776a279d9bb4958c15da6cbef68c4c62bf4312c7967d8b7e0b3561d022c663ba8b42545bfd5757241c4ef13cc53b78c8135306e71e70 SHA512 4492dbd7c7acb55827ee17e7eee579d1cfdcf5fd499505c6e24f50ea361641a0813672149a87f076b2287896d56d8d0215d8c5e78b32b684386414024624d322
37 DIST zabbix-6.2.1-go-deps.tar.xz 35335980 BLAKE2B 07af6563a9349aa70bf5c258c949ebea520e191088e41e546e0f0cf139fd8f3d47d1d64c6135ed36851269fd0e5cd7b7e52d0d25ccd6fd1ed0108f60daf7cde0 SHA512 146a3a4dc2d49b4d1f48f2f3e38f1d123860d4854c5b4a696c07649141cf6de4b076751cb99582688518b060100a0b740357921177b5340ea4b9426480051360
38 DIST zabbix-6.2.1.tar.gz 34776549 BLAKE2B 4952f81936e999c03b8aa71cc370ddc7fcea7f3951bc403501c3617748ecd81a10c5bfe9f80ff55a2521e6b874c50463aa61151ea30ddd6a7b46b20b5e24b645 SHA512 cfdca2a34fecd31ff6f58257abc695e9aba3eaeefebd66f8653b5999e3b650e5ba94d036fc5b9d8e03a1cf532d5f76b1d36a3a9759831707d88ebbe37dc20fc5
39
40 diff --git a/net-analyzer/zabbix/zabbix-4.0.42.ebuild b/net-analyzer/zabbix/zabbix-4.0.42.ebuild
41 deleted file mode 100644
42 index b6f830af64d9..000000000000
43 --- a/net-analyzer/zabbix/zabbix-4.0.42.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/4.0/${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.25.ebuild b/net-analyzer/zabbix/zabbix-5.0.25.ebuild
415 deleted file mode 100644
416 index 901c486faa9c..000000000000
417 --- a/net-analyzer/zabbix/zabbix-5.0.25.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.6-r1.ebuild b/net-analyzer/zabbix/zabbix-6.0.6-r1.ebuild
820 deleted file mode 100644
821 index 0a0d755be321..000000000000
822 --- a/net-analyzer/zabbix/zabbix-6.0.6-r1.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.0-r1.ebuild b/net-analyzer/zabbix/zabbix-6.2.0-r1.ebuild
1238 deleted file mode 100644
1239 index 0a0d755be321..000000000000
1240 --- a/net-analyzer/zabbix/zabbix-6.2.0-r1.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 -}