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: Mon, 01 Mar 2021 09:37:54
Message-Id: 1614591444.07fe2daf805cd031d48a50a6680ba24b3fd89a0d.fordfrog@gentoo
1 commit: 07fe2daf805cd031d48a50a6680ba24b3fd89a0d
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 1 09:37:24 2021 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 1 09:37:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07fe2daf
7
8 net-analyzer/zabbix: removed obsolete 4.0.27-r1, 5.0.7 & 5.2.3
9
10 Package-Manager: Portage-3.0.16, Repoman-3.0.2
11 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
12
13 net-analyzer/zabbix/Manifest | 3 -
14 net-analyzer/zabbix/zabbix-4.0.27-r1.ebuild | 353 ----------------------------
15 net-analyzer/zabbix/zabbix-5.0.7.ebuild | 350 ---------------------------
16 net-analyzer/zabbix/zabbix-5.2.3.ebuild | 350 ---------------------------
17 4 files changed, 1056 deletions(-)
18
19 diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest
20 index 7baee21cbd4..cab46acb639 100644
21 --- a/net-analyzer/zabbix/Manifest
22 +++ b/net-analyzer/zabbix/Manifest
23 @@ -1,10 +1,7 @@
24 DIST zabbix-3.0.31.tar.gz 14698394 BLAKE2B b8b5f94fe7fe08385b1b358c628b2047b437e6068dab8c3dbdab03e55e95e27f1b77ede4a1a57c4f79bf4a629d9dc5671bd144c002ace7c915f2fed382ac13b2 SHA512 35fec45667cdf217c2be21a164181f92f8f11ef9bcfb0c8dad914726e7c436bae5f8a97aebc3af82499e37125f4d1896ef74ad061a1ee3cbb674562c22a832b1
25 -DIST zabbix-4.0.27.tar.gz 17426383 BLAKE2B 33381d3705bc7cb9d451b1a536fbb4f92a9e7e321afbe9363a7879cbea3cc5977a4866a5f4d1fb70120804edaffaf869ba8c4321a67898c42c9abe2341ee118b SHA512 54690dd778d09d7309c2e2ea3f0bfc6053ef097888bfccd140484e4677766ded829757eb4dfde7da8ce19335307ddbfbb1c132feabc13cc6727a6d28c1591cfa
26 DIST zabbix-4.0.28.tar.gz 17424006 BLAKE2B f45af54d1e54ff6945f13cc684fbe0506dab4d554f65018fc30758d7b8be6814ca3661655778abb7c24dcbb241b8e6c21f0ea72a01a886392cadc917e699a957 SHA512 1f40c7316f92474beecc9470d4ad6c093a3a005180514307eb3d7aa206fa36d1a8decc20628b1fc0e62bc7a2ff0e508d694da0fe05911314de6f6d7aa726f425
27 DIST zabbix-4.0.29.tar.gz 17411987 BLAKE2B 187b6de17403c656c2faa93c8e0952be06ca4fc60e8fe62c48dd9f96371bd26b53f333b93de5805d7333b849f93ff7db6cf1f0cf256cea438afeea5d314e0e83 SHA512 778fe43c2394c572b0f1a6d426897bf24391ebda25cce5bfa0dad63827f5d3457776ecd8186c0b783d400a0d87778d9243fdfedd875136383282e56f542eafca
28 -DIST zabbix-5.0.7.tar.gz 19382483 BLAKE2B fa0864ba1ac77659e9a18b0c22cee8be1078fad1e76017d01754b626151366bfeb67aa2a5b29ac1c0ac92ebaff53f7ca273a763158f7a37566dd41efe4dee7ff SHA512 8916ff44a2b3ad16e40d37b43ed540b4eefb91423ecbcc4ab9463477f6a29ed8417c79b0951a36e2798df1166a95ee5ed150bd61448b657df694498c2a274403
29 DIST zabbix-5.0.8.tar.gz 19474050 BLAKE2B 1043efca2f373553728206837949bce5f5ea32328c6289e4028f65e6f1ed76560c1ffbd610eec9855f050d0330bcd3b364a983db896285729f30a693d5ae6c6f SHA512 19601ace704c8a887ffc9b57da8825d8a28a5d064aac3e59480994bee4156db186d37ecf4bee2208bbafc0cb76c0c7f47de964f99953ce78d0187457255d92e9
30 DIST zabbix-5.0.9.tar.gz 19513312 BLAKE2B e60fcf300c3fcd9595e9fa8465403e906672fdc908d9a15646e2ac9e88684999184acb3a0b8226dff1966554769930b0ae6d692ee4569441714912c2eb93540f SHA512 7306afce482b8b8222d46c25d91cdd8df2d5bbbeb755bd54b4bf747dc78031cc24167a954e4de5933f33f59772838ff0b4c66d0bf19c28dc1a27276da9bb0b38
31 -DIST zabbix-5.2.3.tar.gz 19791383 BLAKE2B ad0c2306f05d1d664068d9dbc6983c79e1e4d13e605a4683076da51968d2ca2dd6330ca16ad5e24fcabca95565ff1c3e4246ce7352f23a32d419ba207869f8c2 SHA512 207d522ab728bb89f6aaf793af94848469210fb257ead34b93e0f7ba7b2a22b4cce65d516dfbb549a36ae873fe6b6d3486c47f11efff8950d3c81570c673ff9e
32 DIST zabbix-5.2.4.tar.gz 19916307 BLAKE2B 17d0f5dc1d4a8b79d2a5e741a0fa18ecf584ddfb45afbe816721d0e69bae4b5e11b44fe5031c8a34562c30fd2818f7b4a8bfb1442489be3ec23a27a70e789f56 SHA512 e218de9a8b9445401e769c14a9efd0b3d1b7e9610ce021cdbfc9db159801a4033b8f1c1a808c853bfa3aeb66db8a6dd0cbb5b44fc1421fa0f54c28589d7314b4
33 DIST zabbix-5.2.5.tar.gz 20039761 BLAKE2B 27510c462947a7dedb16d029799aa1c7b38d68199aae47b4b3e5a757120bd74ddf87c7dade0bf339ff2165111345d79119718ade2fe39fd088971be6dcef2bda SHA512 5014a5a510e9ea4a39aa30bdbe3ee82dc1d0a139f32151bb7739df7442ea707b91446ce1cefb61007b603ccedfb0353c628b043db3e90cfe8fc3d67588f2dfd5
34
35 diff --git a/net-analyzer/zabbix/zabbix-4.0.27-r1.ebuild b/net-analyzer/zabbix/zabbix-4.0.27-r1.ebuild
36 deleted file mode 100644
37 index b20bafc87ab..00000000000
38 --- a/net-analyzer/zabbix/zabbix-4.0.27-r1.ebuild
39 +++ /dev/null
40 @@ -1,353 +0,0 @@
41 -# Copyright 1999-2021 Gentoo Authors
42 -# Distributed under the terms of the GNU General Public License v2
43 -
44 -EAPI=7
45 -
46 -# needed to make webapp-config dep optional
47 -WEBAPP_OPTIONAL="yes"
48 -inherit flag-o-matic webapp java-pkg-opt-2 systemd toolchain-funcs
49 -
50 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
51 -HOMEPAGE="https://www.zabbix.com/"
52 -MY_P=${P/_/}
53 -MY_PV=${PV/_/}
54 -SRC_URI="https://cdn.zabbix.com/${PN}/sources/stable/4.0/${P}.tar.gz"
55 -LICENSE="GPL-2"
56 -SLOT="0/$(ver_cut 1-2)"
57 -WEBAPP_MANUAL_SLOT="yes"
58 -KEYWORDS="amd64 x86"
59 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
60 -REQUIRED_USE="|| ( agent frontend proxy server )
61 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
62 - server? ( ^^ ( mysql oracle postgres odbc ) )
63 - static? ( !oracle !snmp )"
64 -
65 -COMMON_DEPEND="
66 - curl? ( net-misc/curl )
67 - java? ( >=virtual/jdk-1.8:* )
68 - ldap? (
69 - =dev-libs/cyrus-sasl-2*
70 - net-libs/gnutls
71 - net-nds/openldap
72 - )
73 - libxml2? ( dev-libs/libxml2 )
74 - mysql? ( dev-db/mysql-connector-c )
75 - odbc? ( dev-db/unixODBC )
76 - openipmi? ( sys-libs/openipmi )
77 - oracle? ( dev-db/oracle-instantclient-basic )
78 - postgres? ( dev-db/postgresql:* )
79 - proxy? ( sys-libs/zlib )
80 - server? (
81 - dev-libs/libevent
82 - sys-libs/zlib
83 - )
84 - snmp? ( net-analyzer/net-snmp )
85 - sqlite? ( dev-db/sqlite )
86 - ssh? ( net-libs/libssh2 )
87 - ssl? ( dev-libs/openssl:=[-bindist] )
88 - xmpp? ( dev-libs/iksemel )
89 -"
90 -
91 -RDEPEND="${COMMON_DEPEND}
92 - acct-group/zabbix
93 - acct-user/zabbix
94 - java? ( >=virtual/jre-1.8:* )
95 - mysql? ( virtual/mysql )
96 - proxy? ( net-analyzer/fping[suid] )
97 - server? (
98 - app-admin/webapp-config
99 - dev-libs/libevent
100 - dev-libs/libpcre
101 - net-analyzer/fping[suid]
102 - )
103 - frontend? (
104 - app-admin/webapp-config
105 - dev-lang/php:*[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
106 - media-libs/gd[png]
107 - virtual/httpd-php:*
108 - mysql? ( dev-lang/php[mysqli] )
109 - odbc? ( dev-lang/php[odbc] )
110 - oracle? ( dev-lang/php[oci8-instant-client] )
111 - postgres? ( dev-lang/php[postgres] )
112 - sqlite? ( dev-lang/php[sqlite] )
113 - )
114 -"
115 -DEPEND="${COMMON_DEPEND}
116 - static? (
117 - curl? ( net-misc/curl[static-libs] )
118 - ldap? (
119 - =dev-libs/cyrus-sasl-2*[static-libs]
120 - net-libs/gnutls[static-libs]
121 - net-nds/openldap[static-libs]
122 - )
123 - libxml2? ( dev-libs/libxml2[static-libs] )
124 - mysql? ( dev-db/mysql-connector-c[static-libs] )
125 - odbc? ( dev-db/unixODBC[static-libs] )
126 - postgres? ( dev-db/postgresql:*[static-libs] )
127 - sqlite? ( dev-db/sqlite[static-libs] )
128 - ssh? ( net-libs/libssh2 )
129 - )
130 -"
131 -BDEPEND="
132 - virtual/pkgconfig
133 -"
134 -
135 -PATCHES=(
136 - "${FILESDIR}/${PN}-4.0.18-modulepathfix.patch"
137 - "${FILESDIR}/${PN}-3.0.30-security-disable-PidFile.patch"
138 -)
139 -
140 -S=${WORKDIR}/${MY_P}
141 -
142 -ZABBIXJAVA_BASE="opt/zabbix_java"
143 -
144 -pkg_setup() {
145 - if use oracle; then
146 - if [ -z "${ORACLE_HOME}" ]; then
147 - eerror
148 - eerror "The environment variable ORACLE_HOME must be set"
149 - eerror "and point to the correct location."
150 - eerror "It looks like you don't have Oracle installed."
151 - eerror
152 - die "Environment variable ORACLE_HOME is not set"
153 - fi
154 - if has_version 'dev-db/oracle-instantclient-basic'; then
155 - ewarn
156 - ewarn "Please ensure you have a full install of the Oracle client."
157 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
158 - ewarn
159 - fi
160 - fi
161 -
162 - if use frontend; then
163 - webapp_pkg_setup
164 - fi
165 -
166 - java-pkg-opt-2_pkg_setup
167 -}
168 -
169 -src_prepare() {
170 - default
171 -}
172 -
173 -src_configure() {
174 - econf \
175 - $(use_enable agent) \
176 - $(use_enable ipv6) \
177 - $(use_enable java) \
178 - $(use_enable proxy) \
179 - $(use_enable server) \
180 - $(use_enable static) \
181 - $(use_with curl libcurl) \
182 - $(use_with ldap) \
183 - $(use_with libxml2) \
184 - $(use_with mysql) \
185 - $(use_with odbc unixodbc) \
186 - $(use_with openipmi openipmi) \
187 - $(use_with oracle) \
188 - $(use_with postgres postgresql) \
189 - $(use_with snmp net-snmp) \
190 - $(use_with sqlite sqlite3) \
191 - $(use_with ssh ssh2) \
192 - $(use_with ssl openssl) \
193 - $(use_with xmpp jabber)
194 -}
195 -
196 -src_compile() {
197 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
198 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
199 - fi
200 -}
201 -
202 -src_install() {
203 - local dirs=(
204 - /etc/zabbix
205 - /var/lib/zabbix
206 - /var/lib/zabbix/home
207 - /var/lib/zabbix/scripts
208 - /var/lib/zabbix/alertscripts
209 - /var/lib/zabbix/externalscripts
210 - /var/log/zabbix
211 - )
212 -
213 - for dir in "${dirs[@]}"; do
214 - dodir "${dir}"
215 - keepdir "${dir}"
216 - done
217 -
218 - if use server; then
219 - insinto /etc/zabbix
220 - doins "${S}"/conf/zabbix_server.conf
221 - fperms 0640 /etc/zabbix/zabbix_server.conf
222 - fowners root:zabbix /etc/zabbix/zabbix_server.conf
223 -
224 - newinitd "${FILESDIR}"/zabbix-server.init zabbix-server
225 -
226 - dosbin src/zabbix_server/zabbix_server
227 -
228 - insinto /usr/share/zabbix
229 - doins -r "${S}"/database/
230 -
231 - systemd_dounit "${FILESDIR}"/zabbix-server.service
232 - systemd_newtmpfilesd "${FILESDIR}"/zabbix-server.tmpfiles zabbix-server.conf
233 - fi
234 -
235 - if use proxy; then
236 - insinto /etc/zabbix
237 - doins "${S}"/conf/zabbix_proxy.conf
238 - fperms 0640 /etc/zabbix/zabbix_proxy.conf
239 - fowners root:zabbix /etc/zabbix/zabbix_proxy.conf
240 -
241 - newinitd "${FILESDIR}"/zabbix-proxy.init zabbix-proxy
242 -
243 - dosbin src/zabbix_proxy/zabbix_proxy
244 -
245 - insinto /usr/share/zabbix
246 - doins -r "${S}"/database/
247 -
248 - systemd_dounit "${FILESDIR}"/zabbix-proxy.service
249 - systemd_newtmpfilesd "${FILESDIR}"/zabbix-proxy.tmpfiles zabbix-proxy.conf
250 - fi
251 -
252 - if use agent; then
253 - insinto /etc/zabbix
254 - doins "${S}"/conf/zabbix_agentd.conf
255 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
256 - fowners root:zabbix /etc/zabbix/zabbix_agentd.conf
257 -
258 - newinitd "${FILESDIR}"/zabbix-agentd.init zabbix-agentd
259 -
260 - dosbin src/zabbix_agent/zabbix_agentd
261 - dobin \
262 - src/zabbix_sender/zabbix_sender \
263 - src/zabbix_get/zabbix_get
264 -
265 - systemd_dounit "${FILESDIR}"/zabbix-agentd.service
266 - systemd_newtmpfilesd "${FILESDIR}"/zabbix-agentd.tmpfiles zabbix-agentd.conf
267 - fi
268 -
269 - fowners root:zabbix /etc/zabbix
270 - fowners zabbix:zabbix \
271 - /var/lib/zabbix \
272 - /var/lib/zabbix/home \
273 - /var/lib/zabbix/scripts \
274 - /var/lib/zabbix/alertscripts \
275 - /var/lib/zabbix/externalscripts \
276 - /var/log/zabbix
277 - fperms 0750 \
278 - /etc/zabbix \
279 - /var/lib/zabbix \
280 - /var/lib/zabbix/home \
281 - /var/lib/zabbix/scripts \
282 - /var/lib/zabbix/alertscripts \
283 - /var/lib/zabbix/externalscripts \
284 - /var/log/zabbix
285 -
286 - dodoc README INSTALL NEWS ChangeLog \
287 - conf/zabbix_agentd.conf \
288 - conf/zabbix_proxy.conf \
289 - conf/zabbix_agentd/userparameter_examples.conf \
290 - conf/zabbix_agentd/userparameter_mysql.conf \
291 - conf/zabbix_server.conf
292 -
293 - if use frontend; then
294 - webapp_src_preinst
295 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
296 - webapp_configfile \
297 - "${MY_HTDOCSDIR}"/include/db.inc.php \
298 - "${MY_HTDOCSDIR}"/include/config.inc.php
299 - webapp_src_install
300 - fi
301 -
302 - if use java; then
303 - dodir \
304 - /${ZABBIXJAVA_BASE} \
305 - /${ZABBIXJAVA_BASE}/bin \
306 - /${ZABBIXJAVA_BASE}/lib
307 - keepdir /${ZABBIXJAVA_BASE}
308 - exeinto /${ZABBIXJAVA_BASE}/bin
309 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
310 - exeinto /${ZABBIXJAVA_BASE}/lib
311 - doexe \
312 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
313 - src/zabbix_java/lib/logback-console.xml \
314 - src/zabbix_java/lib/logback-core-0.9.27.jar \
315 - src/zabbix_java/lib/logback.xml \
316 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
317 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
318 - newinitd "${FILESDIR}"/zabbix-jmx-proxy.init zabbix-jmx-proxy
319 - newconfd "${FILESDIR}"/zabbix-jmx-proxy.conf zabbix-jmx-proxy
320 - fi
321 -}
322 -
323 -pkg_postinst() {
324 - if use server || use proxy ; then
325 - elog
326 - elog "You may need to configure your database for Zabbix"
327 - elog "if you have not already done so."
328 - elog
329 -
330 - zabbix_homedir=$(egethome zabbix)
331 - if [ -n "${zabbix_homedir}" ] && \
332 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
333 - ewarn
334 - ewarn "The user 'zabbix' should have his homedir changed"
335 - ewarn "to /var/lib/zabbix/home if you want to use"
336 - ewarn "custom alert scripts."
337 - ewarn
338 - ewarn "A real homedir might be needed for configfiles"
339 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
340 - ewarn "using sendxmpp for Jabber alerts)."
341 - ewarn
342 - ewarn "To change the homedir use:"
343 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
344 - ewarn
345 - fi
346 - fi
347 -
348 - if use server; then
349 - elog
350 - elog "For distributed monitoring you have to run:"
351 - elog
352 - elog "zabbix_server -n <nodeid>"
353 - elog
354 - elog "This will convert database data for use with Node ID"
355 - elog "and also adds a local node."
356 - elog
357 - fi
358 -
359 - elog "--"
360 - elog
361 - elog "You may need to add these lines to /etc/services:"
362 - elog
363 - elog "zabbix-agent 10050/tcp Zabbix Agent"
364 - elog "zabbix-agent 10050/udp Zabbix Agent"
365 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
366 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
367 - elog
368 -
369 - if use server || use proxy ; then
370 - # check for fping
371 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
372 - case "${fping_perms}" in
373 - 4[157][157][157])
374 - ;;
375 - *)
376 - ewarn
377 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
378 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
379 - ewarn "by everyone. Run the following command to fix it:"
380 - ewarn
381 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
382 - ewarn
383 - ewarn "Please be aware that this might impose a security risk,"
384 - ewarn "depending on the code quality of fping."
385 - ewarn
386 - ;;
387 - esac
388 - fi
389 -}
390 -
391 -pkg_prerm() {
392 - (use frontend || use server) && webapp_pkg_prerm
393 -}
394
395 diff --git a/net-analyzer/zabbix/zabbix-5.0.7.ebuild b/net-analyzer/zabbix/zabbix-5.0.7.ebuild
396 deleted file mode 100644
397 index 90a6d16b59e..00000000000
398 --- a/net-analyzer/zabbix/zabbix-5.0.7.ebuild
399 +++ /dev/null
400 @@ -1,350 +0,0 @@
401 -# Copyright 1999-2021 Gentoo Authors
402 -# Distributed under the terms of the GNU General Public License v2
403 -
404 -EAPI=7
405 -
406 -# needed to make webapp-config dep optional
407 -WEBAPP_OPTIONAL="yes"
408 -inherit flag-o-matic webapp java-pkg-opt-2 systemd toolchain-funcs
409 -
410 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
411 -HOMEPAGE="https://www.zabbix.com/"
412 -MY_P=${P/_/}
413 -MY_PV=${PV/_/}
414 -SRC_URI="https://cdn.zabbix.com/${PN}/sources/stable/$(ver_cut 1-2)/${P}.tar.gz"
415 -LICENSE="GPL-2"
416 -SLOT="0/$(ver_cut 1-2)"
417 -WEBAPP_MANUAL_SLOT="yes"
418 -KEYWORDS="amd64 x86"
419 -IUSE="+agent java curl frontend ipv6 ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
420 -REQUIRED_USE="|| ( agent frontend proxy server )
421 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
422 - server? ( ^^ ( mysql oracle postgres odbc ) )
423 - static? ( !oracle !snmp )"
424 -
425 -COMMON_DEPEND="
426 - curl? ( net-misc/curl )
427 - java? ( >=virtual/jdk-1.8:* )
428 - ldap? (
429 - =dev-libs/cyrus-sasl-2*
430 - net-libs/gnutls
431 - net-nds/openldap
432 - )
433 - libxml2? ( dev-libs/libxml2 )
434 - mysql? ( dev-db/mysql-connector-c )
435 - odbc? ( dev-db/unixODBC )
436 - openipmi? ( sys-libs/openipmi )
437 - oracle? ( dev-db/oracle-instantclient-basic )
438 - postgres? ( dev-db/postgresql:* )
439 - proxy? ( sys-libs/zlib )
440 - server? (
441 - dev-libs/libevent
442 - sys-libs/zlib
443 - )
444 - snmp? ( net-analyzer/net-snmp )
445 - sqlite? ( dev-db/sqlite )
446 - ssh? ( net-libs/libssh2 )
447 - ssl? ( dev-libs/openssl:=[-bindist] )
448 -"
449 -
450 -RDEPEND="${COMMON_DEPEND}
451 - acct-group/zabbix
452 - acct-user/zabbix
453 - java? ( >=virtual/jre-1.8:* )
454 - mysql? ( virtual/mysql )
455 - proxy? ( net-analyzer/fping[suid] )
456 - server? (
457 - app-admin/webapp-config
458 - dev-libs/libevent
459 - dev-libs/libpcre
460 - net-analyzer/fping[suid]
461 - )
462 - frontend? (
463 - app-admin/webapp-config
464 - dev-lang/php:*[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
465 - media-libs/gd[png]
466 - virtual/httpd-php:*
467 - mysql? ( dev-lang/php[mysqli] )
468 - odbc? ( dev-lang/php[odbc] )
469 - oracle? ( dev-lang/php[oci8-instant-client] )
470 - postgres? ( dev-lang/php[postgres] )
471 - sqlite? ( dev-lang/php[sqlite] )
472 - )
473 -"
474 -DEPEND="${COMMON_DEPEND}
475 - static? (
476 - curl? ( net-misc/curl[static-libs] )
477 - ldap? (
478 - =dev-libs/cyrus-sasl-2*[static-libs]
479 - net-libs/gnutls[static-libs]
480 - net-nds/openldap[static-libs]
481 - )
482 - libxml2? ( dev-libs/libxml2[static-libs] )
483 - mysql? ( dev-db/mysql-connector-c[static-libs] )
484 - odbc? ( dev-db/unixODBC[static-libs] )
485 - postgres? ( dev-db/postgresql:*[static-libs] )
486 - sqlite? ( dev-db/sqlite[static-libs] )
487 - ssh? ( net-libs/libssh2 )
488 - )
489 -"
490 -BDEPEND="
491 - virtual/pkgconfig
492 -"
493 -
494 -PATCHES=(
495 - "${FILESDIR}/${PN}-4.0.18-modulepathfix.patch"
496 - "${FILESDIR}/${PN}-3.0.30-security-disable-PidFile.patch"
497 -)
498 -
499 -S=${WORKDIR}/${MY_P}
500 -
501 -ZABBIXJAVA_BASE="opt/zabbix_java"
502 -
503 -pkg_setup() {
504 - if use oracle; then
505 - if [ -z "${ORACLE_HOME}" ]; then
506 - eerror
507 - eerror "The environment variable ORACLE_HOME must be set"
508 - eerror "and point to the correct location."
509 - eerror "It looks like you don't have Oracle installed."
510 - eerror
511 - die "Environment variable ORACLE_HOME is not set"
512 - fi
513 - if has_version 'dev-db/oracle-instantclient-basic'; then
514 - ewarn
515 - ewarn "Please ensure you have a full install of the Oracle client."
516 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
517 - ewarn
518 - fi
519 - fi
520 -
521 - if use frontend; then
522 - webapp_pkg_setup
523 - fi
524 -
525 - java-pkg-opt-2_pkg_setup
526 -}
527 -
528 -src_prepare() {
529 - default
530 -}
531 -
532 -src_configure() {
533 - econf \
534 - $(use_enable agent) \
535 - $(use_enable ipv6) \
536 - $(use_enable java) \
537 - $(use_enable proxy) \
538 - $(use_enable server) \
539 - $(use_enable static) \
540 - $(use_with curl libcurl) \
541 - $(use_with ldap) \
542 - $(use_with libxml2) \
543 - $(use_with mysql) \
544 - $(use_with odbc unixodbc) \
545 - $(use_with openipmi openipmi) \
546 - $(use_with oracle) \
547 - $(use_with postgres postgresql) \
548 - $(use_with snmp net-snmp) \
549 - $(use_with sqlite sqlite3) \
550 - $(use_with ssh ssh2) \
551 - $(use_with ssl openssl)
552 -}
553 -
554 -src_compile() {
555 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
556 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
557 - fi
558 -}
559 -
560 -src_install() {
561 - local dirs=(
562 - /etc/zabbix
563 - /var/lib/zabbix
564 - /var/lib/zabbix/home
565 - /var/lib/zabbix/scripts
566 - /var/lib/zabbix/alertscripts
567 - /var/lib/zabbix/externalscripts
568 - /var/log/zabbix
569 - )
570 -
571 - for dir in "${dirs[@]}"; do
572 - dodir "${dir}"
573 - keepdir "${dir}"
574 - done
575 -
576 - if use server; then
577 - insinto /etc/zabbix
578 - doins "${S}"/conf/zabbix_server.conf
579 - fperms 0640 /etc/zabbix/zabbix_server.conf
580 - fowners root:zabbix /etc/zabbix/zabbix_server.conf
581 -
582 - newinitd "${FILESDIR}"/zabbix-server.init zabbix-server
583 -
584 - dosbin src/zabbix_server/zabbix_server
585 -
586 - insinto /usr/share/zabbix
587 - doins -r "${S}"/database/
588 -
589 - systemd_dounit "${FILESDIR}"/zabbix-server.service
590 - systemd_newtmpfilesd "${FILESDIR}"/zabbix-server.tmpfiles zabbix-server.conf
591 - fi
592 -
593 - if use proxy; then
594 - insinto /etc/zabbix
595 - doins "${S}"/conf/zabbix_proxy.conf
596 - fperms 0640 /etc/zabbix/zabbix_proxy.conf
597 - fowners root:zabbix /etc/zabbix/zabbix_proxy.conf
598 -
599 - newinitd "${FILESDIR}"/zabbix-proxy.init zabbix-proxy
600 -
601 - dosbin src/zabbix_proxy/zabbix_proxy
602 -
603 - insinto /usr/share/zabbix
604 - doins -r "${S}"/database/
605 -
606 - systemd_dounit "${FILESDIR}"/zabbix-proxy.service
607 - systemd_newtmpfilesd "${FILESDIR}"/zabbix-proxy.tmpfiles zabbix-proxy.conf
608 - fi
609 -
610 - if use agent; then
611 - insinto /etc/zabbix
612 - doins "${S}"/conf/zabbix_agentd.conf
613 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
614 - fowners root:zabbix /etc/zabbix/zabbix_agentd.conf
615 -
616 - newinitd "${FILESDIR}"/zabbix-agentd.init zabbix-agentd
617 -
618 - dosbin src/zabbix_agent/zabbix_agentd
619 - dobin \
620 - src/zabbix_sender/zabbix_sender \
621 - src/zabbix_get/zabbix_get
622 -
623 - systemd_dounit "${FILESDIR}"/zabbix-agentd.service
624 - systemd_newtmpfilesd "${FILESDIR}"/zabbix-agentd.tmpfiles zabbix-agentd.conf
625 - fi
626 -
627 - fowners root:zabbix /etc/zabbix
628 - fowners zabbix:zabbix \
629 - /var/lib/zabbix \
630 - /var/lib/zabbix/home \
631 - /var/lib/zabbix/scripts \
632 - /var/lib/zabbix/alertscripts \
633 - /var/lib/zabbix/externalscripts \
634 - /var/log/zabbix
635 - fperms 0750 \
636 - /etc/zabbix \
637 - /var/lib/zabbix \
638 - /var/lib/zabbix/home \
639 - /var/lib/zabbix/scripts \
640 - /var/lib/zabbix/alertscripts \
641 - /var/lib/zabbix/externalscripts \
642 - /var/log/zabbix
643 -
644 - dodoc README INSTALL NEWS ChangeLog \
645 - conf/zabbix_agentd.conf \
646 - conf/zabbix_proxy.conf \
647 - conf/zabbix_agentd/userparameter_examples.conf \
648 - conf/zabbix_agentd/userparameter_mysql.conf \
649 - conf/zabbix_server.conf
650 -
651 - if use frontend; then
652 - webapp_src_preinst
653 - cp -R ui/* "${D}/${MY_HTDOCSDIR}"
654 - webapp_configfile \
655 - "${MY_HTDOCSDIR}"/include/db.inc.php \
656 - "${MY_HTDOCSDIR}"/include/config.inc.php
657 - webapp_src_install
658 - fi
659 -
660 - if use java; then
661 - dodir \
662 - /${ZABBIXJAVA_BASE} \
663 - /${ZABBIXJAVA_BASE}/bin \
664 - /${ZABBIXJAVA_BASE}/lib
665 - keepdir /${ZABBIXJAVA_BASE}
666 - exeinto /${ZABBIXJAVA_BASE}/bin
667 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
668 - exeinto /${ZABBIXJAVA_BASE}/lib
669 - doexe \
670 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
671 - src/zabbix_java/lib/logback-console.xml \
672 - src/zabbix_java/lib/logback-core-0.9.27.jar \
673 - src/zabbix_java/lib/logback.xml \
674 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
675 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
676 - newinitd "${FILESDIR}"/zabbix-jmx-proxy.init zabbix-jmx-proxy
677 - newconfd "${FILESDIR}"/zabbix-jmx-proxy.conf zabbix-jmx-proxy
678 - fi
679 -}
680 -
681 -pkg_postinst() {
682 - if use server || use proxy ; then
683 - elog
684 - elog "You may need to configure your database for Zabbix"
685 - elog "if you have not already done so."
686 - elog
687 -
688 - zabbix_homedir=$(egethome zabbix)
689 - if [ -n "${zabbix_homedir}" ] && \
690 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
691 - ewarn
692 - ewarn "The user 'zabbix' should have his homedir changed"
693 - ewarn "to /var/lib/zabbix/home if you want to use"
694 - ewarn "custom alert scripts."
695 - ewarn
696 - ewarn "A real homedir might be needed for configfiles"
697 - ewarn "for custom alert scripts."
698 - ewarn
699 - ewarn "To change the homedir use:"
700 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
701 - ewarn
702 - fi
703 - fi
704 -
705 - if use server; then
706 - elog
707 - elog "For distributed monitoring you have to run:"
708 - elog
709 - elog "zabbix_server -n <nodeid>"
710 - elog
711 - elog "This will convert database data for use with Node ID"
712 - elog "and also adds a local node."
713 - elog
714 - fi
715 -
716 - elog "--"
717 - elog
718 - elog "You may need to add these lines to /etc/services:"
719 - elog
720 - elog "zabbix-agent 10050/tcp Zabbix Agent"
721 - elog "zabbix-agent 10050/udp Zabbix Agent"
722 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
723 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
724 - elog
725 -
726 - if use server || use proxy ; then
727 - # check for fping
728 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
729 - case "${fping_perms}" in
730 - 4[157][157][157])
731 - ;;
732 - *)
733 - ewarn
734 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
735 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
736 - ewarn "by everyone. Run the following command to fix it:"
737 - ewarn
738 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
739 - ewarn
740 - ewarn "Please be aware that this might impose a security risk,"
741 - ewarn "depending on the code quality of fping."
742 - ewarn
743 - ;;
744 - esac
745 - fi
746 -}
747 -
748 -pkg_prerm() {
749 - (use frontend || use server) && webapp_pkg_prerm
750 -}
751
752 diff --git a/net-analyzer/zabbix/zabbix-5.2.3.ebuild b/net-analyzer/zabbix/zabbix-5.2.3.ebuild
753 deleted file mode 100644
754 index 90a6d16b59e..00000000000
755 --- a/net-analyzer/zabbix/zabbix-5.2.3.ebuild
756 +++ /dev/null
757 @@ -1,350 +0,0 @@
758 -# Copyright 1999-2021 Gentoo Authors
759 -# Distributed under the terms of the GNU General Public License v2
760 -
761 -EAPI=7
762 -
763 -# needed to make webapp-config dep optional
764 -WEBAPP_OPTIONAL="yes"
765 -inherit flag-o-matic webapp java-pkg-opt-2 systemd toolchain-funcs
766 -
767 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
768 -HOMEPAGE="https://www.zabbix.com/"
769 -MY_P=${P/_/}
770 -MY_PV=${PV/_/}
771 -SRC_URI="https://cdn.zabbix.com/${PN}/sources/stable/$(ver_cut 1-2)/${P}.tar.gz"
772 -LICENSE="GPL-2"
773 -SLOT="0/$(ver_cut 1-2)"
774 -WEBAPP_MANUAL_SLOT="yes"
775 -KEYWORDS="amd64 x86"
776 -IUSE="+agent java curl frontend ipv6 ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
777 -REQUIRED_USE="|| ( agent frontend proxy server )
778 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
779 - server? ( ^^ ( mysql oracle postgres odbc ) )
780 - static? ( !oracle !snmp )"
781 -
782 -COMMON_DEPEND="
783 - curl? ( net-misc/curl )
784 - java? ( >=virtual/jdk-1.8:* )
785 - ldap? (
786 - =dev-libs/cyrus-sasl-2*
787 - net-libs/gnutls
788 - net-nds/openldap
789 - )
790 - libxml2? ( dev-libs/libxml2 )
791 - mysql? ( dev-db/mysql-connector-c )
792 - odbc? ( dev-db/unixODBC )
793 - openipmi? ( sys-libs/openipmi )
794 - oracle? ( dev-db/oracle-instantclient-basic )
795 - postgres? ( dev-db/postgresql:* )
796 - proxy? ( sys-libs/zlib )
797 - server? (
798 - dev-libs/libevent
799 - sys-libs/zlib
800 - )
801 - snmp? ( net-analyzer/net-snmp )
802 - sqlite? ( dev-db/sqlite )
803 - ssh? ( net-libs/libssh2 )
804 - ssl? ( dev-libs/openssl:=[-bindist] )
805 -"
806 -
807 -RDEPEND="${COMMON_DEPEND}
808 - acct-group/zabbix
809 - acct-user/zabbix
810 - java? ( >=virtual/jre-1.8:* )
811 - mysql? ( virtual/mysql )
812 - proxy? ( net-analyzer/fping[suid] )
813 - server? (
814 - app-admin/webapp-config
815 - dev-libs/libevent
816 - dev-libs/libpcre
817 - net-analyzer/fping[suid]
818 - )
819 - frontend? (
820 - app-admin/webapp-config
821 - dev-lang/php:*[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
822 - media-libs/gd[png]
823 - virtual/httpd-php:*
824 - mysql? ( dev-lang/php[mysqli] )
825 - odbc? ( dev-lang/php[odbc] )
826 - oracle? ( dev-lang/php[oci8-instant-client] )
827 - postgres? ( dev-lang/php[postgres] )
828 - sqlite? ( dev-lang/php[sqlite] )
829 - )
830 -"
831 -DEPEND="${COMMON_DEPEND}
832 - static? (
833 - curl? ( net-misc/curl[static-libs] )
834 - ldap? (
835 - =dev-libs/cyrus-sasl-2*[static-libs]
836 - net-libs/gnutls[static-libs]
837 - net-nds/openldap[static-libs]
838 - )
839 - libxml2? ( dev-libs/libxml2[static-libs] )
840 - mysql? ( dev-db/mysql-connector-c[static-libs] )
841 - odbc? ( dev-db/unixODBC[static-libs] )
842 - postgres? ( dev-db/postgresql:*[static-libs] )
843 - sqlite? ( dev-db/sqlite[static-libs] )
844 - ssh? ( net-libs/libssh2 )
845 - )
846 -"
847 -BDEPEND="
848 - virtual/pkgconfig
849 -"
850 -
851 -PATCHES=(
852 - "${FILESDIR}/${PN}-4.0.18-modulepathfix.patch"
853 - "${FILESDIR}/${PN}-3.0.30-security-disable-PidFile.patch"
854 -)
855 -
856 -S=${WORKDIR}/${MY_P}
857 -
858 -ZABBIXJAVA_BASE="opt/zabbix_java"
859 -
860 -pkg_setup() {
861 - if use oracle; then
862 - if [ -z "${ORACLE_HOME}" ]; then
863 - eerror
864 - eerror "The environment variable ORACLE_HOME must be set"
865 - eerror "and point to the correct location."
866 - eerror "It looks like you don't have Oracle installed."
867 - eerror
868 - die "Environment variable ORACLE_HOME is not set"
869 - fi
870 - if has_version 'dev-db/oracle-instantclient-basic'; then
871 - ewarn
872 - ewarn "Please ensure you have a full install of the Oracle client."
873 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
874 - ewarn
875 - fi
876 - fi
877 -
878 - if use frontend; then
879 - webapp_pkg_setup
880 - fi
881 -
882 - java-pkg-opt-2_pkg_setup
883 -}
884 -
885 -src_prepare() {
886 - default
887 -}
888 -
889 -src_configure() {
890 - econf \
891 - $(use_enable agent) \
892 - $(use_enable ipv6) \
893 - $(use_enable java) \
894 - $(use_enable proxy) \
895 - $(use_enable server) \
896 - $(use_enable static) \
897 - $(use_with curl libcurl) \
898 - $(use_with ldap) \
899 - $(use_with libxml2) \
900 - $(use_with mysql) \
901 - $(use_with odbc unixodbc) \
902 - $(use_with openipmi openipmi) \
903 - $(use_with oracle) \
904 - $(use_with postgres postgresql) \
905 - $(use_with snmp net-snmp) \
906 - $(use_with sqlite sqlite3) \
907 - $(use_with ssh ssh2) \
908 - $(use_with ssl openssl)
909 -}
910 -
911 -src_compile() {
912 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
913 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
914 - fi
915 -}
916 -
917 -src_install() {
918 - local dirs=(
919 - /etc/zabbix
920 - /var/lib/zabbix
921 - /var/lib/zabbix/home
922 - /var/lib/zabbix/scripts
923 - /var/lib/zabbix/alertscripts
924 - /var/lib/zabbix/externalscripts
925 - /var/log/zabbix
926 - )
927 -
928 - for dir in "${dirs[@]}"; do
929 - dodir "${dir}"
930 - keepdir "${dir}"
931 - done
932 -
933 - if use server; then
934 - insinto /etc/zabbix
935 - doins "${S}"/conf/zabbix_server.conf
936 - fperms 0640 /etc/zabbix/zabbix_server.conf
937 - fowners root:zabbix /etc/zabbix/zabbix_server.conf
938 -
939 - newinitd "${FILESDIR}"/zabbix-server.init zabbix-server
940 -
941 - dosbin src/zabbix_server/zabbix_server
942 -
943 - insinto /usr/share/zabbix
944 - doins -r "${S}"/database/
945 -
946 - systemd_dounit "${FILESDIR}"/zabbix-server.service
947 - systemd_newtmpfilesd "${FILESDIR}"/zabbix-server.tmpfiles zabbix-server.conf
948 - fi
949 -
950 - if use proxy; then
951 - insinto /etc/zabbix
952 - doins "${S}"/conf/zabbix_proxy.conf
953 - fperms 0640 /etc/zabbix/zabbix_proxy.conf
954 - fowners root:zabbix /etc/zabbix/zabbix_proxy.conf
955 -
956 - newinitd "${FILESDIR}"/zabbix-proxy.init zabbix-proxy
957 -
958 - dosbin src/zabbix_proxy/zabbix_proxy
959 -
960 - insinto /usr/share/zabbix
961 - doins -r "${S}"/database/
962 -
963 - systemd_dounit "${FILESDIR}"/zabbix-proxy.service
964 - systemd_newtmpfilesd "${FILESDIR}"/zabbix-proxy.tmpfiles zabbix-proxy.conf
965 - fi
966 -
967 - if use agent; then
968 - insinto /etc/zabbix
969 - doins "${S}"/conf/zabbix_agentd.conf
970 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
971 - fowners root:zabbix /etc/zabbix/zabbix_agentd.conf
972 -
973 - newinitd "${FILESDIR}"/zabbix-agentd.init zabbix-agentd
974 -
975 - dosbin src/zabbix_agent/zabbix_agentd
976 - dobin \
977 - src/zabbix_sender/zabbix_sender \
978 - src/zabbix_get/zabbix_get
979 -
980 - systemd_dounit "${FILESDIR}"/zabbix-agentd.service
981 - systemd_newtmpfilesd "${FILESDIR}"/zabbix-agentd.tmpfiles zabbix-agentd.conf
982 - fi
983 -
984 - fowners root:zabbix /etc/zabbix
985 - fowners zabbix:zabbix \
986 - /var/lib/zabbix \
987 - /var/lib/zabbix/home \
988 - /var/lib/zabbix/scripts \
989 - /var/lib/zabbix/alertscripts \
990 - /var/lib/zabbix/externalscripts \
991 - /var/log/zabbix
992 - fperms 0750 \
993 - /etc/zabbix \
994 - /var/lib/zabbix \
995 - /var/lib/zabbix/home \
996 - /var/lib/zabbix/scripts \
997 - /var/lib/zabbix/alertscripts \
998 - /var/lib/zabbix/externalscripts \
999 - /var/log/zabbix
1000 -
1001 - dodoc README INSTALL NEWS ChangeLog \
1002 - conf/zabbix_agentd.conf \
1003 - conf/zabbix_proxy.conf \
1004 - conf/zabbix_agentd/userparameter_examples.conf \
1005 - conf/zabbix_agentd/userparameter_mysql.conf \
1006 - conf/zabbix_server.conf
1007 -
1008 - if use frontend; then
1009 - webapp_src_preinst
1010 - cp -R ui/* "${D}/${MY_HTDOCSDIR}"
1011 - webapp_configfile \
1012 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1013 - "${MY_HTDOCSDIR}"/include/config.inc.php
1014 - webapp_src_install
1015 - fi
1016 -
1017 - if use java; then
1018 - dodir \
1019 - /${ZABBIXJAVA_BASE} \
1020 - /${ZABBIXJAVA_BASE}/bin \
1021 - /${ZABBIXJAVA_BASE}/lib
1022 - keepdir /${ZABBIXJAVA_BASE}
1023 - exeinto /${ZABBIXJAVA_BASE}/bin
1024 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
1025 - exeinto /${ZABBIXJAVA_BASE}/lib
1026 - doexe \
1027 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
1028 - src/zabbix_java/lib/logback-console.xml \
1029 - src/zabbix_java/lib/logback-core-0.9.27.jar \
1030 - src/zabbix_java/lib/logback.xml \
1031 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
1032 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
1033 - newinitd "${FILESDIR}"/zabbix-jmx-proxy.init zabbix-jmx-proxy
1034 - newconfd "${FILESDIR}"/zabbix-jmx-proxy.conf zabbix-jmx-proxy
1035 - fi
1036 -}
1037 -
1038 -pkg_postinst() {
1039 - if use server || use proxy ; then
1040 - elog
1041 - elog "You may need to configure your database for Zabbix"
1042 - elog "if you have not already done so."
1043 - elog
1044 -
1045 - zabbix_homedir=$(egethome zabbix)
1046 - if [ -n "${zabbix_homedir}" ] && \
1047 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1048 - ewarn
1049 - ewarn "The user 'zabbix' should have his homedir changed"
1050 - ewarn "to /var/lib/zabbix/home if you want to use"
1051 - ewarn "custom alert scripts."
1052 - ewarn
1053 - ewarn "A real homedir might be needed for configfiles"
1054 - ewarn "for custom alert scripts."
1055 - ewarn
1056 - ewarn "To change the homedir use:"
1057 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1058 - ewarn
1059 - fi
1060 - fi
1061 -
1062 - if use server; then
1063 - elog
1064 - elog "For distributed monitoring you have to run:"
1065 - elog
1066 - elog "zabbix_server -n <nodeid>"
1067 - elog
1068 - elog "This will convert database data for use with Node ID"
1069 - elog "and also adds a local node."
1070 - elog
1071 - fi
1072 -
1073 - elog "--"
1074 - elog
1075 - elog "You may need to add these lines to /etc/services:"
1076 - elog
1077 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1078 - elog "zabbix-agent 10050/udp Zabbix Agent"
1079 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1080 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1081 - elog
1082 -
1083 - if use server || use proxy ; then
1084 - # check for fping
1085 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1086 - case "${fping_perms}" in
1087 - 4[157][157][157])
1088 - ;;
1089 - *)
1090 - ewarn
1091 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1092 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1093 - ewarn "by everyone. Run the following command to fix it:"
1094 - ewarn
1095 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1096 - ewarn
1097 - ewarn "Please be aware that this might impose a security risk,"
1098 - ewarn "depending on the code quality of fping."
1099 - ewarn
1100 - ;;
1101 - esac
1102 - fi
1103 -}
1104 -
1105 -pkg_prerm() {
1106 - (use frontend || use server) && webapp_pkg_prerm
1107 -}