Gentoo Archives: gentoo-commits

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