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