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, 07 Jul 2018 07:42:22
Message-Id: 1530949333.6fd6afb0770f581c67edc1877ac88b7124d6adb3.patrick@gentoo
1 commit: 6fd6afb0770f581c67edc1877ac88b7124d6adb3
2 Author: Patrick Lauer <patrick <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 7 07:42:00 2018 +0000
4 Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 7 07:42:13 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fd6afb0
7
8 net-analyzer/zabbix: Remove old
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 net-analyzer/zabbix/Manifest | 10 -
13 net-analyzer/zabbix/zabbix-3.0.14.ebuild | 331 -------------------------------
14 net-analyzer/zabbix/zabbix-3.0.17.ebuild | 331 -------------------------------
15 net-analyzer/zabbix/zabbix-3.0.18.ebuild | 331 -------------------------------
16 net-analyzer/zabbix/zabbix-3.2.10.ebuild | 328 ------------------------------
17 net-analyzer/zabbix/zabbix-3.2.9.ebuild | 328 ------------------------------
18 net-analyzer/zabbix/zabbix-3.4.5.ebuild | 329 ------------------------------
19 net-analyzer/zabbix/zabbix-3.4.6.ebuild | 329 ------------------------------
20 net-analyzer/zabbix/zabbix-3.4.7.ebuild | 329 ------------------------------
21 net-analyzer/zabbix/zabbix-3.4.8.ebuild | 329 ------------------------------
22 net-analyzer/zabbix/zabbix-3.4.9.ebuild | 329 ------------------------------
23 11 files changed, 3304 deletions(-)
24
25 diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest
26 index 2854c26a5d4..c650bb1940f 100644
27 --- a/net-analyzer/zabbix/Manifest
28 +++ b/net-analyzer/zabbix/Manifest
29 @@ -1,16 +1,6 @@
30 DIST zabbix-2.2.16.tar.gz 15498413 BLAKE2B fc634ca5124525b3143bb736b53b5040c8f1fd45ecfcf3cc2bdf7e625d54b0fcfa3690ce5d766e987d320d9ccbf7f430957f532c31f180a0a037334d6eb5b51a SHA512 5d92c17e86608359fff220416d5eed2d4ac10edfe56f4162f4b7660c472cf6f609ba01034d76e5b7164c22d55a1fc5be753f5d0e0ce7ac71d00a6f68dca14afd
31 DIST zabbix-2.2.21.tar.gz 15489747 BLAKE2B e00fe140977f0ce995497954a15ff647c813c048a706e536a12010a649d3467d6c63343c3c0d11b1900f91f8fcc5bb235f9e4a030362c93ad3c1c31e68699f54 SHA512 29e3cba0663e7160dce5141cc389959571e5e298206baed26209facab206cc4f66611d48d76306a53925a2096db6f0bed1753435ec1be20bd8db53862cb902a4
32 -DIST zabbix-3.0.14.tar.gz 15643983 BLAKE2B 129bcde3318c049932ad24d6b20fcd3cdf3a0a0f246aadb81663265eb31550fd5966745486e4e863236801d41e6cefec3bdc82eca024be94bc2437f44b2d81a1 SHA512 b024de610b86bd45fc0be655e8275daf53b1de813e13a1e78cfad149b1191a7f118862646f5ded43938bc489ff0b0f325de36d4b2c076ce6fe768ee4234eb944
33 -DIST zabbix-3.0.17.tar.gz 15646656 BLAKE2B c24ac286f35d36163054abf3946e9d6530bf44c66576a4c077874bf68dff1ad0a36a98bf23b81063ba551b5bc0069a1d7c74ab75f5bf67c87039af371bcf2512 SHA512 5a06e8dca49c1f7e9fef936f0e534e78af9be6fecdf534d24e914ce658ad7140c1bd62510603f6a8860f964e4fe78093c115efd8da8e12581b452116b6b14627
34 -DIST zabbix-3.0.18.tar.gz 15661951 BLAKE2B a6c31cf783f9b2a1ceb4ec5d2430bbc6127bc9e7a7b2c656c436bab10c821d28e782552403de95d45aed3df82b5f61072638251a03c695424c1ae55e1bd40b72 SHA512 b1bf3a109becaf6f756898f0f3bbf8d4df0ec9dfabf9b9c7cf7c7c7813b917e3c23c757f6f62df782c3f37f25e0532049a378e8d5a86d59aaee60e39dc4eaf2a
35 DIST zabbix-3.0.19.tar.gz 15642128 BLAKE2B b9b84f21371db1eb8efdfb547e2b4a9216e9fb3c76fe54420ab1c76bad5cbf4537f6f0aca720748d39fb2ebf0447c3f82bf9e0d276f9fa4c9e91bc70e8b67f22 SHA512 30239db9236f536325f0ad3a8ea08abd8c460caf60dfd80b881cc9532d2f65d6154e8911be89d141539f7eeced359809405cf1b655eafdab1b940c314c8d3132
36 -DIST zabbix-3.2.10.tar.gz 16089723 BLAKE2B c69b8b00781198b8e4845f94e5a42e3910950954bd240703165be15630788f22e486a2ebbd941902eb92b06b42bc7923869f7b885fcc7248508d9e535ad23170 SHA512 6413247ea0f47f410eadd970599dc4a0bfef4202b6f88bcb1636d1fad270a2d5545a90870052af5445a5219dab3b58867c23f3afaddb5d78e200fecbd987e545
37 DIST zabbix-3.2.11.tar.gz 16099820 BLAKE2B 7038679ecc9ae1b6684d65b3dd0019865e587c82e5a3ffe55610c057f8516ebe34978101065ac31628e6fd54077877c447d64cb1d169e0ad7402e727c7e65d76 SHA512 a14e0af4b183c8deb524c8965700c2988c0c131844f7fbc748aa8d1703b9dad73c2cf6d77663799fbd455adf58fdd1ce8dc5fd6404a9269c1a42160ad0e33e6e
38 -DIST zabbix-3.2.9.tar.gz 16098846 BLAKE2B a8d7ab803cab075889bbaee10806c1f35be42a91c78e1ee62e8fa458987865401d2fb677d4ebf42267e13acb38b8689bb6d232fbc3247ffba3f06f5e8c3cd692 SHA512 e8d82d4cadd8f6d5124de5d1b93f4768086c9543bfea676f321df86a76e001400330ea3650d3c295b25fa76858a205dac49caa97d61af30cc31fac544025d347
39 DIST zabbix-3.4.10.tar.gz 17300622 BLAKE2B 1b4c275d271ae4d4607400cb6e5f955ba624bf19cd116728e7a71a1b4adc0fbbde8cf91e6b0a71c5d48bf5c38b2ebe0db79f00ba3a42cc4213a0e310d56d5e29 SHA512 25e85cbe7a93a088fa0132ed6f3f75ad1aadedb839d745be38e180f0f9b858e32045b9d057b10cab4d3a8aa770b22b631aa0894fe5f1c3ca4ca62a000934bf94
40 DIST zabbix-3.4.11.tar.gz 17517171 BLAKE2B 72f7d1cad3e8cb7972cb9c3698d35f70c45de1244c14a87f403a0c2c9b1825d679fa32e54dc4b2aae80a24acb7723ce489e0d409fb027c1afc8bb4eccecf9867 SHA512 1360e1de02fbbda30539e0f1dbe9d4aee57bc693f597db011cdefe7e7c4acaa6e3452813ee29e0e614794336e7fc9210ff3458f3761fcec90db66fb4a2275373
41 -DIST zabbix-3.4.5.tar.gz 17170228 BLAKE2B bd799a3ad25256421bc2a8458019237da17e78d2dd5253485cebbc40df785e550e7cf15fcf8925a225c118e38e9aaad3f7532f909ba3eaff3a175136033ae81a SHA512 e77c8693d687c9f1e3c160f2f41161b5e4ac663f0db69f4bff424da4ba607815ad0148448c6f80a2b9357ad7472016610f4beed173e40c6fcf661874d75c69a4
42 -DIST zabbix-3.4.6.tar.gz 17162881 BLAKE2B cf8a461f720b2f1d4910d8f512ac9949c56b9116fb9ddd1a26687b22da2c3938c4f10e6d0029bf348101e897fe6d352880964aaf5a0f55dd377fb6eec59a5006 SHA512 02300b103278f6f2867629a958a8bc5ea8e6cfe5743056b7e2f9d59afdeea04e29f51cae7c5d9847899c45c321a4c15cdaf66203c627fb1d85b3af619afe73ca
43 -DIST zabbix-3.4.7.tar.gz 17177022 BLAKE2B db465ff9c0085922e23ba042b0975d1368abb15408e943aa784e8efb49f7c412761742d1c8cda19c3cf86ea03d358d731cbe022ba3c9b139963f396290e4a272 SHA512 8397ee41c3b4efc2fb66638fd7c554ea668fad0a7c79d8aa3ed442cae065e62355c1e16e2008c7a65def775f23e6dfa1d75bbc682c49a45c9db5d7eddf905140
44 -DIST zabbix-3.4.8.tar.gz 17289635 BLAKE2B a90eb47f8a93877aa5131e263f0c00da7cea4e745ee816887dffeb2d40919c1b4251a8ea61fa834699d1d39547c6c366519a3751c266aea47e3d28a1d18c35c3 SHA512 a4e3573b3ffc07bf9a5a68b784a56569219caf7dbcadfc2d0eb5d87e1f3aa3b5ddf339b61a41e432487d55d2f4788f1a8a722574b07b8ecb7abd3c99ce7c7d70
45 -DIST zabbix-3.4.9.tar.gz 17300077 BLAKE2B 99335efb27f074a2b0f0fe1f911c6a7f3e379a9b6e0ac9370a02702148dec934645016cd93a652e7dd395ac73277240f1b203b20a53f3210d8d7de90ec78d442 SHA512 364f6272d33b4eb74d3644e3f3dca240803596e620fc71e8ea8b4957673c4eeaa69ec9a696d23b268749dda6654e0aa83c557363d9bbb35ca9abc6551efef4ac
46
47 diff --git a/net-analyzer/zabbix/zabbix-3.0.14.ebuild b/net-analyzer/zabbix/zabbix-3.0.14.ebuild
48 deleted file mode 100644
49 index 3a717015470..00000000000
50 --- a/net-analyzer/zabbix/zabbix-3.0.14.ebuild
51 +++ /dev/null
52 @@ -1,331 +0,0 @@
53 -# Copyright 1999-2018 Gentoo Foundation
54 -# Distributed under the terms of the GNU General Public License v2
55 -
56 -EAPI="6"
57 -
58 -# needed to make webapp-config dep optional
59 -WEBAPP_OPTIONAL="yes"
60 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
61 -
62 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
63 -HOMEPAGE="https://www.zabbix.com/"
64 -MY_P=${P/_/}
65 -MY_PV=${PV/_/}
66 -SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
67 -LICENSE="GPL-2"
68 -SLOT="0"
69 -WEBAPP_MANUAL_SLOT="yes"
70 -KEYWORDS="~amd64 ~x86"
71 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
72 -REQUIRED_USE="|| ( agent frontend proxy server )
73 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
74 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
75 - static? ( !oracle !snmp )"
76 -
77 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
78 - ldap? (
79 - net-nds/openldap
80 - =dev-libs/cyrus-sasl-2*
81 - net-libs/gnutls
82 - )
83 - mysql? ( >=virtual/mysql-5.0.3 )
84 - sqlite? ( >=dev-db/sqlite-3.3.5 )
85 - postgres? ( dev-db/postgresql:* )
86 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
87 - xmpp? ( dev-libs/iksemel )
88 - libxml2? ( dev-libs/libxml2 )
89 - curl? ( net-misc/curl )
90 - openipmi? ( sys-libs/openipmi )
91 - ssh? ( net-libs/libssh2 )
92 - java? ( virtual/jdk:* )
93 - odbc? ( dev-db/unixODBC )
94 - ssl? ( dev-libs/openssl:=[-bindist] )"
95 -
96 -RDEPEND="${COMMON_DEPEND}
97 - proxy? ( net-analyzer/fping )
98 - server? ( net-analyzer/fping
99 - app-admin/webapp-config )
100 - java? (
101 - >=virtual/jre-1.4
102 - dev-java/slf4j-api
103 - )
104 - frontend? (
105 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
106 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
107 - mysql? ( dev-lang/php[mysqli] )
108 - odbc? ( dev-lang/php[odbc] )
109 - oracle? ( dev-lang/php[oci8-instant-client] )
110 - postgres? ( dev-lang/php[postgres] )
111 - sqlite? ( dev-lang/php[sqlite] )
112 - media-libs/gd[png]
113 - app-admin/webapp-config )"
114 -DEPEND="${COMMON_DEPEND}
115 - static? (
116 - ldap? (
117 - net-nds/openldap[static-libs]
118 - =dev-libs/cyrus-sasl-2*[static-libs]
119 - net-libs/gnutls[static-libs]
120 - )
121 - mysql? ( >=virtual/mysql-5.0.3 virtual/libmysqlclient[static-libs] )
122 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
123 - postgres? ( dev-db/postgresql:*[static-libs] )
124 - libxml2? ( dev-libs/libxml2[static-libs] )
125 - curl? ( net-misc/curl[static-libs] )
126 - ssh? ( net-libs/libssh2[static-libs] )
127 - odbc? ( dev-db/unixODBC[static-libs] )
128 - )
129 - virtual/pkgconfig"
130 -
131 -S=${WORKDIR}/${MY_P}
132 -
133 -ZABBIXJAVA_BASE="opt/zabbix_java"
134 -
135 -pkg_setup() {
136 - if use oracle; then
137 - if [ -z "${ORACLE_HOME}" ]; then
138 - eerror
139 - eerror "The environment variable ORACLE_HOME must be set"
140 - eerror "and point to the correct location."
141 - eerror "It looks like you don't have Oracle installed."
142 - eerror
143 - die "Environment variable ORACLE_HOME is not set"
144 - fi
145 - if has_version 'dev-db/oracle-instantclient-basic'; then
146 - ewarn
147 - ewarn "Please ensure you have a full install of the Oracle client."
148 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
149 - ewarn
150 - fi
151 - fi
152 -
153 - if use frontend; then
154 - webapp_pkg_setup
155 - fi
156 -
157 - enewgroup zabbix
158 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
159 -}
160 -
161 -java_prepare() {
162 - cd "${S}/src/zabbix_java/lib"
163 - rm -v *.jar || die
164 -
165 - java-pkg_jar-from slf4j-api
166 -}
167 -
168 -src_prepare() {
169 - default
170 -}
171 -
172 -src_configure() {
173 - econf \
174 - $(use_enable server) \
175 - $(use_enable proxy) \
176 - $(use_enable agent) \
177 - $(use_enable ipv6) \
178 - $(use_enable static) \
179 - $(use_enable java) \
180 - $(use_with ldap) \
181 - $(use_with snmp net-snmp) \
182 - $(use_with mysql) \
183 - $(use_with postgres postgresql) \
184 - $(use_with oracle) \
185 - $(use_with sqlite sqlite3) \
186 - $(use_with xmpp jabber) \
187 - $(use_with curl libcurl) \
188 - $(use_with openipmi openipmi) \
189 - $(use_with ssh ssh2) \
190 - $(use_with libxml2) \
191 - $(use_with odbc unixodbc) \
192 - $(use_with ssl openssl) \
193 - || die "econf failed"
194 -}
195 -
196 -src_compile() {
197 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
198 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
199 - fi
200 -}
201 -
202 -src_install() {
203 - dodir \
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 - keepdir \
213 - /etc/zabbix \
214 - /var/lib/zabbix \
215 - /var/lib/zabbix/home \
216 - /var/lib/zabbix/scripts \
217 - /var/lib/zabbix/alertscripts \
218 - /var/lib/zabbix/externalscripts \
219 - /var/log/zabbix
220 -
221 - if use server; then
222 - insinto /etc/zabbix
223 - doins "${FILESDIR}/3.0"/zabbix_server.conf
224 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
225 - dosbin src/zabbix_server/zabbix_server
226 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
227 - fperms 0640 /etc/zabbix/zabbix_server.conf
228 - dodir /usr/share/zabbix
229 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
230 - systemd_dounit "${FILESDIR}/zabbix-server.service"
231 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
232 - fi
233 -
234 - if use proxy; then
235 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
236 - dosbin src/zabbix_proxy/zabbix_proxy
237 - insinto /etc/zabbix
238 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
239 - dodir /usr/share/zabbix
240 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
241 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
242 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
243 - fi
244 -
245 - if use agent; then
246 - insinto /etc/zabbix
247 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
248 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
249 - dosbin src/zabbix_agent/zabbix_agentd
250 - dobin \
251 - src/zabbix_sender/zabbix_sender \
252 - src/zabbix_get/zabbix_get
253 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
254 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
255 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
256 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
257 - fi
258 -
259 - fowners zabbix:zabbix \
260 - /etc/zabbix \
261 - /var/lib/zabbix \
262 - /var/lib/zabbix/home \
263 - /var/lib/zabbix/scripts \
264 - /var/lib/zabbix/alertscripts \
265 - /var/lib/zabbix/externalscripts \
266 - /var/log/zabbix
267 - fperms 0750 \
268 - /etc/zabbix \
269 - /var/lib/zabbix \
270 - /var/lib/zabbix/home \
271 - /var/lib/zabbix/scripts \
272 - /var/lib/zabbix/alertscripts \
273 - /var/lib/zabbix/externalscripts \
274 - /var/log/zabbix
275 -
276 - dodoc README INSTALL NEWS ChangeLog \
277 - conf/zabbix_agentd.conf \
278 - conf/zabbix_proxy.conf \
279 - conf/zabbix_agentd/userparameter_examples.conf \
280 - conf/zabbix_agentd/userparameter_mysql.conf \
281 - conf/zabbix_server.conf
282 -
283 - if use frontend; then
284 - webapp_src_preinst
285 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
286 - webapp_configfile \
287 - "${MY_HTDOCSDIR}"/include/db.inc.php \
288 - "${MY_HTDOCSDIR}"/include/config.inc.php
289 - webapp_src_install
290 - fi
291 -
292 - if use java; then
293 - dodir \
294 - /${ZABBIXJAVA_BASE} \
295 - /${ZABBIXJAVA_BASE}/bin \
296 - /${ZABBIXJAVA_BASE}/lib
297 - keepdir /${ZABBIXJAVA_BASE}
298 - exeinto /${ZABBIXJAVA_BASE}/bin
299 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
300 - exeinto /${ZABBIXJAVA_BASE}/lib
301 - doexe \
302 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
303 - src/zabbix_java/lib/logback-console.xml \
304 - src/zabbix_java/lib/logback-core-0.9.27.jar \
305 - src/zabbix_java/lib/logback.xml \
306 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
307 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
308 - exeinto /${ZABBIXJAVA_BASE}/
309 - doexe \
310 - src/zabbix_java/settings.sh \
311 - src/zabbix_java/startup.sh \
312 - src/zabbix_java/shutdown.sh
313 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
314 - fi
315 -}
316 -
317 -pkg_postinst() {
318 - if use server || use proxy ; then
319 - elog
320 - elog "You may need to configure your database for Zabbix,"
321 - elog "if you have not already done so. "
322 - elog
323 -
324 - zabbix_homedir=$(egethome zabbix)
325 - if [ -n "${zabbix_homedir}" ] && \
326 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
327 - ewarn
328 - ewarn "The user 'zabbix' should have his homedir changed"
329 - ewarn "to /var/lib/zabbix/home if you want to use"
330 - ewarn "custom alert scripts."
331 - ewarn
332 - ewarn "A real homedir might be needed for configfiles"
333 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
334 - ewarn "using sendxmpp for Jabber alerts)."
335 - ewarn
336 - ewarn "To change the homedir use:"
337 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
338 - ewarn
339 - fi
340 - fi
341 -
342 - if use server; then
343 - elog
344 - elog "For distributed monitoring you have to run:"
345 - elog
346 - elog "zabbix_server -n <nodeid>"
347 - elog
348 - elog "This will convert database data for use with Node ID"
349 - elog "and also adds a local node."
350 - elog
351 - fi
352 -
353 - elog "--"
354 - elog
355 - elog "You may need to add these lines to /etc/services:"
356 - elog
357 - elog "zabbix-agent 10050/tcp Zabbix Agent"
358 - elog "zabbix-agent 10050/udp Zabbix Agent"
359 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
360 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
361 - elog
362 -
363 - if use server || use proxy ; then
364 - # check for fping
365 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
366 - case "${fping_perms}" in
367 - 4[157][157][157])
368 - ;;
369 - *)
370 - ewarn
371 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
372 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
373 - ewarn "by everyone. Run the following command to fix it:"
374 - ewarn
375 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
376 - ewarn
377 - ewarn "Please be aware that this might impose a security risk,"
378 - ewarn "depending on the code quality of fping."
379 - ewarn
380 - ;;
381 - esac
382 - fi
383 -}
384
385 diff --git a/net-analyzer/zabbix/zabbix-3.0.17.ebuild b/net-analyzer/zabbix/zabbix-3.0.17.ebuild
386 deleted file mode 100644
387 index c3575d4f121..00000000000
388 --- a/net-analyzer/zabbix/zabbix-3.0.17.ebuild
389 +++ /dev/null
390 @@ -1,331 +0,0 @@
391 -# Copyright 1999-2018 Gentoo Foundation
392 -# Distributed under the terms of the GNU General Public License v2
393 -
394 -EAPI="6"
395 -
396 -# needed to make webapp-config dep optional
397 -WEBAPP_OPTIONAL="yes"
398 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
399 -
400 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
401 -HOMEPAGE="https://www.zabbix.com/"
402 -MY_P=${P/_/}
403 -MY_PV=${PV/_/}
404 -SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
405 -LICENSE="GPL-2"
406 -SLOT="0"
407 -WEBAPP_MANUAL_SLOT="yes"
408 -KEYWORDS="~amd64 ~x86"
409 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
410 -REQUIRED_USE="|| ( agent frontend proxy server )
411 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
412 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
413 - static? ( !oracle !snmp )"
414 -
415 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
416 - ldap? (
417 - net-nds/openldap
418 - =dev-libs/cyrus-sasl-2*
419 - net-libs/gnutls
420 - )
421 - mysql? ( >=virtual/mysql-5.0.3 )
422 - sqlite? ( >=dev-db/sqlite-3.3.5 )
423 - postgres? ( dev-db/postgresql:* )
424 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
425 - xmpp? ( dev-libs/iksemel )
426 - libxml2? ( dev-libs/libxml2 )
427 - curl? ( net-misc/curl )
428 - openipmi? ( sys-libs/openipmi )
429 - ssh? ( net-libs/libssh2 )
430 - java? ( virtual/jdk:* )
431 - odbc? ( dev-db/unixODBC )
432 - ssl? ( dev-libs/openssl:=[-bindist] )"
433 -
434 -RDEPEND="${COMMON_DEPEND}
435 - proxy? ( net-analyzer/fping )
436 - server? ( net-analyzer/fping
437 - app-admin/webapp-config )
438 - java? (
439 - >=virtual/jre-1.4
440 - dev-java/slf4j-api
441 - )
442 - frontend? (
443 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
444 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
445 - mysql? ( dev-lang/php[mysqli] )
446 - odbc? ( dev-lang/php[odbc] )
447 - oracle? ( dev-lang/php[oci8-instant-client] )
448 - postgres? ( dev-lang/php[postgres] )
449 - sqlite? ( dev-lang/php[sqlite] )
450 - media-libs/gd[png]
451 - app-admin/webapp-config )"
452 -DEPEND="${COMMON_DEPEND}
453 - static? (
454 - ldap? (
455 - net-nds/openldap[static-libs]
456 - =dev-libs/cyrus-sasl-2*[static-libs]
457 - net-libs/gnutls[static-libs]
458 - )
459 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
460 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
461 - postgres? ( dev-db/postgresql:*[static-libs] )
462 - libxml2? ( dev-libs/libxml2[static-libs] )
463 - curl? ( net-misc/curl[static-libs] )
464 - ssh? ( net-libs/libssh2[static-libs] )
465 - odbc? ( dev-db/unixODBC[static-libs] )
466 - )
467 - virtual/pkgconfig"
468 -
469 -S=${WORKDIR}/${MY_P}
470 -
471 -ZABBIXJAVA_BASE="opt/zabbix_java"
472 -
473 -pkg_setup() {
474 - if use oracle; then
475 - if [ -z "${ORACLE_HOME}" ]; then
476 - eerror
477 - eerror "The environment variable ORACLE_HOME must be set"
478 - eerror "and point to the correct location."
479 - eerror "It looks like you don't have Oracle installed."
480 - eerror
481 - die "Environment variable ORACLE_HOME is not set"
482 - fi
483 - if has_version 'dev-db/oracle-instantclient-basic'; then
484 - ewarn
485 - ewarn "Please ensure you have a full install of the Oracle client."
486 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
487 - ewarn
488 - fi
489 - fi
490 -
491 - if use frontend; then
492 - webapp_pkg_setup
493 - fi
494 -
495 - enewgroup zabbix
496 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
497 -}
498 -
499 -java_prepare() {
500 - cd "${S}/src/zabbix_java/lib"
501 - rm -v *.jar || die
502 -
503 - java-pkg_jar-from slf4j-api
504 -}
505 -
506 -src_prepare() {
507 - default
508 -}
509 -
510 -src_configure() {
511 - econf \
512 - $(use_enable server) \
513 - $(use_enable proxy) \
514 - $(use_enable agent) \
515 - $(use_enable ipv6) \
516 - $(use_enable static) \
517 - $(use_enable java) \
518 - $(use_with ldap) \
519 - $(use_with snmp net-snmp) \
520 - $(use_with mysql) \
521 - $(use_with postgres postgresql) \
522 - $(use_with oracle) \
523 - $(use_with sqlite sqlite3) \
524 - $(use_with xmpp jabber) \
525 - $(use_with curl libcurl) \
526 - $(use_with openipmi openipmi) \
527 - $(use_with ssh ssh2) \
528 - $(use_with libxml2) \
529 - $(use_with odbc unixodbc) \
530 - $(use_with ssl openssl) \
531 - || die "econf failed"
532 -}
533 -
534 -src_compile() {
535 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
536 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
537 - fi
538 -}
539 -
540 -src_install() {
541 - dodir \
542 - /etc/zabbix \
543 - /var/lib/zabbix \
544 - /var/lib/zabbix/home \
545 - /var/lib/zabbix/scripts \
546 - /var/lib/zabbix/alertscripts \
547 - /var/lib/zabbix/externalscripts \
548 - /var/log/zabbix
549 -
550 - keepdir \
551 - /etc/zabbix \
552 - /var/lib/zabbix \
553 - /var/lib/zabbix/home \
554 - /var/lib/zabbix/scripts \
555 - /var/lib/zabbix/alertscripts \
556 - /var/lib/zabbix/externalscripts \
557 - /var/log/zabbix
558 -
559 - if use server; then
560 - insinto /etc/zabbix
561 - doins "${FILESDIR}/3.0"/zabbix_server.conf
562 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
563 - dosbin src/zabbix_server/zabbix_server
564 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
565 - fperms 0640 /etc/zabbix/zabbix_server.conf
566 - dodir /usr/share/zabbix
567 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
568 - systemd_dounit "${FILESDIR}/zabbix-server.service"
569 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
570 - fi
571 -
572 - if use proxy; then
573 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
574 - dosbin src/zabbix_proxy/zabbix_proxy
575 - insinto /etc/zabbix
576 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
577 - dodir /usr/share/zabbix
578 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
579 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
580 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
581 - fi
582 -
583 - if use agent; then
584 - insinto /etc/zabbix
585 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
586 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
587 - dosbin src/zabbix_agent/zabbix_agentd
588 - dobin \
589 - src/zabbix_sender/zabbix_sender \
590 - src/zabbix_get/zabbix_get
591 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
592 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
593 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
594 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
595 - fi
596 -
597 - fowners zabbix:zabbix \
598 - /etc/zabbix \
599 - /var/lib/zabbix \
600 - /var/lib/zabbix/home \
601 - /var/lib/zabbix/scripts \
602 - /var/lib/zabbix/alertscripts \
603 - /var/lib/zabbix/externalscripts \
604 - /var/log/zabbix
605 - fperms 0750 \
606 - /etc/zabbix \
607 - /var/lib/zabbix \
608 - /var/lib/zabbix/home \
609 - /var/lib/zabbix/scripts \
610 - /var/lib/zabbix/alertscripts \
611 - /var/lib/zabbix/externalscripts \
612 - /var/log/zabbix
613 -
614 - dodoc README INSTALL NEWS ChangeLog \
615 - conf/zabbix_agentd.conf \
616 - conf/zabbix_proxy.conf \
617 - conf/zabbix_agentd/userparameter_examples.conf \
618 - conf/zabbix_agentd/userparameter_mysql.conf \
619 - conf/zabbix_server.conf
620 -
621 - if use frontend; then
622 - webapp_src_preinst
623 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
624 - webapp_configfile \
625 - "${MY_HTDOCSDIR}"/include/db.inc.php \
626 - "${MY_HTDOCSDIR}"/include/config.inc.php
627 - webapp_src_install
628 - fi
629 -
630 - if use java; then
631 - dodir \
632 - /${ZABBIXJAVA_BASE} \
633 - /${ZABBIXJAVA_BASE}/bin \
634 - /${ZABBIXJAVA_BASE}/lib
635 - keepdir /${ZABBIXJAVA_BASE}
636 - exeinto /${ZABBIXJAVA_BASE}/bin
637 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
638 - exeinto /${ZABBIXJAVA_BASE}/lib
639 - doexe \
640 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
641 - src/zabbix_java/lib/logback-console.xml \
642 - src/zabbix_java/lib/logback-core-0.9.27.jar \
643 - src/zabbix_java/lib/logback.xml \
644 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
645 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
646 - exeinto /${ZABBIXJAVA_BASE}/
647 - doexe \
648 - src/zabbix_java/settings.sh \
649 - src/zabbix_java/startup.sh \
650 - src/zabbix_java/shutdown.sh
651 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
652 - fi
653 -}
654 -
655 -pkg_postinst() {
656 - if use server || use proxy ; then
657 - elog
658 - elog "You may need to configure your database for Zabbix,"
659 - elog "if you have not already done so. "
660 - elog
661 -
662 - zabbix_homedir=$(egethome zabbix)
663 - if [ -n "${zabbix_homedir}" ] && \
664 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
665 - ewarn
666 - ewarn "The user 'zabbix' should have his homedir changed"
667 - ewarn "to /var/lib/zabbix/home if you want to use"
668 - ewarn "custom alert scripts."
669 - ewarn
670 - ewarn "A real homedir might be needed for configfiles"
671 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
672 - ewarn "using sendxmpp for Jabber alerts)."
673 - ewarn
674 - ewarn "To change the homedir use:"
675 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
676 - ewarn
677 - fi
678 - fi
679 -
680 - if use server; then
681 - elog
682 - elog "For distributed monitoring you have to run:"
683 - elog
684 - elog "zabbix_server -n <nodeid>"
685 - elog
686 - elog "This will convert database data for use with Node ID"
687 - elog "and also adds a local node."
688 - elog
689 - fi
690 -
691 - elog "--"
692 - elog
693 - elog "You may need to add these lines to /etc/services:"
694 - elog
695 - elog "zabbix-agent 10050/tcp Zabbix Agent"
696 - elog "zabbix-agent 10050/udp Zabbix Agent"
697 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
698 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
699 - elog
700 -
701 - if use server || use proxy ; then
702 - # check for fping
703 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
704 - case "${fping_perms}" in
705 - 4[157][157][157])
706 - ;;
707 - *)
708 - ewarn
709 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
710 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
711 - ewarn "by everyone. Run the following command to fix it:"
712 - ewarn
713 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
714 - ewarn
715 - ewarn "Please be aware that this might impose a security risk,"
716 - ewarn "depending on the code quality of fping."
717 - ewarn
718 - ;;
719 - esac
720 - fi
721 -}
722
723 diff --git a/net-analyzer/zabbix/zabbix-3.0.18.ebuild b/net-analyzer/zabbix/zabbix-3.0.18.ebuild
724 deleted file mode 100644
725 index c3575d4f121..00000000000
726 --- a/net-analyzer/zabbix/zabbix-3.0.18.ebuild
727 +++ /dev/null
728 @@ -1,331 +0,0 @@
729 -# Copyright 1999-2018 Gentoo Foundation
730 -# Distributed under the terms of the GNU General Public License v2
731 -
732 -EAPI="6"
733 -
734 -# needed to make webapp-config dep optional
735 -WEBAPP_OPTIONAL="yes"
736 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
737 -
738 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
739 -HOMEPAGE="https://www.zabbix.com/"
740 -MY_P=${P/_/}
741 -MY_PV=${PV/_/}
742 -SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
743 -LICENSE="GPL-2"
744 -SLOT="0"
745 -WEBAPP_MANUAL_SLOT="yes"
746 -KEYWORDS="~amd64 ~x86"
747 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
748 -REQUIRED_USE="|| ( agent frontend proxy server )
749 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
750 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
751 - static? ( !oracle !snmp )"
752 -
753 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
754 - ldap? (
755 - net-nds/openldap
756 - =dev-libs/cyrus-sasl-2*
757 - net-libs/gnutls
758 - )
759 - mysql? ( >=virtual/mysql-5.0.3 )
760 - sqlite? ( >=dev-db/sqlite-3.3.5 )
761 - postgres? ( dev-db/postgresql:* )
762 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
763 - xmpp? ( dev-libs/iksemel )
764 - libxml2? ( dev-libs/libxml2 )
765 - curl? ( net-misc/curl )
766 - openipmi? ( sys-libs/openipmi )
767 - ssh? ( net-libs/libssh2 )
768 - java? ( virtual/jdk:* )
769 - odbc? ( dev-db/unixODBC )
770 - ssl? ( dev-libs/openssl:=[-bindist] )"
771 -
772 -RDEPEND="${COMMON_DEPEND}
773 - proxy? ( net-analyzer/fping )
774 - server? ( net-analyzer/fping
775 - app-admin/webapp-config )
776 - java? (
777 - >=virtual/jre-1.4
778 - dev-java/slf4j-api
779 - )
780 - frontend? (
781 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
782 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
783 - mysql? ( dev-lang/php[mysqli] )
784 - odbc? ( dev-lang/php[odbc] )
785 - oracle? ( dev-lang/php[oci8-instant-client] )
786 - postgres? ( dev-lang/php[postgres] )
787 - sqlite? ( dev-lang/php[sqlite] )
788 - media-libs/gd[png]
789 - app-admin/webapp-config )"
790 -DEPEND="${COMMON_DEPEND}
791 - static? (
792 - ldap? (
793 - net-nds/openldap[static-libs]
794 - =dev-libs/cyrus-sasl-2*[static-libs]
795 - net-libs/gnutls[static-libs]
796 - )
797 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
798 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
799 - postgres? ( dev-db/postgresql:*[static-libs] )
800 - libxml2? ( dev-libs/libxml2[static-libs] )
801 - curl? ( net-misc/curl[static-libs] )
802 - ssh? ( net-libs/libssh2[static-libs] )
803 - odbc? ( dev-db/unixODBC[static-libs] )
804 - )
805 - virtual/pkgconfig"
806 -
807 -S=${WORKDIR}/${MY_P}
808 -
809 -ZABBIXJAVA_BASE="opt/zabbix_java"
810 -
811 -pkg_setup() {
812 - if use oracle; then
813 - if [ -z "${ORACLE_HOME}" ]; then
814 - eerror
815 - eerror "The environment variable ORACLE_HOME must be set"
816 - eerror "and point to the correct location."
817 - eerror "It looks like you don't have Oracle installed."
818 - eerror
819 - die "Environment variable ORACLE_HOME is not set"
820 - fi
821 - if has_version 'dev-db/oracle-instantclient-basic'; then
822 - ewarn
823 - ewarn "Please ensure you have a full install of the Oracle client."
824 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
825 - ewarn
826 - fi
827 - fi
828 -
829 - if use frontend; then
830 - webapp_pkg_setup
831 - fi
832 -
833 - enewgroup zabbix
834 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
835 -}
836 -
837 -java_prepare() {
838 - cd "${S}/src/zabbix_java/lib"
839 - rm -v *.jar || die
840 -
841 - java-pkg_jar-from slf4j-api
842 -}
843 -
844 -src_prepare() {
845 - default
846 -}
847 -
848 -src_configure() {
849 - econf \
850 - $(use_enable server) \
851 - $(use_enable proxy) \
852 - $(use_enable agent) \
853 - $(use_enable ipv6) \
854 - $(use_enable static) \
855 - $(use_enable java) \
856 - $(use_with ldap) \
857 - $(use_with snmp net-snmp) \
858 - $(use_with mysql) \
859 - $(use_with postgres postgresql) \
860 - $(use_with oracle) \
861 - $(use_with sqlite sqlite3) \
862 - $(use_with xmpp jabber) \
863 - $(use_with curl libcurl) \
864 - $(use_with openipmi openipmi) \
865 - $(use_with ssh ssh2) \
866 - $(use_with libxml2) \
867 - $(use_with odbc unixodbc) \
868 - $(use_with ssl openssl) \
869 - || die "econf failed"
870 -}
871 -
872 -src_compile() {
873 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
874 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
875 - fi
876 -}
877 -
878 -src_install() {
879 - dodir \
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 - keepdir \
889 - /etc/zabbix \
890 - /var/lib/zabbix \
891 - /var/lib/zabbix/home \
892 - /var/lib/zabbix/scripts \
893 - /var/lib/zabbix/alertscripts \
894 - /var/lib/zabbix/externalscripts \
895 - /var/log/zabbix
896 -
897 - if use server; then
898 - insinto /etc/zabbix
899 - doins "${FILESDIR}/3.0"/zabbix_server.conf
900 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
901 - dosbin src/zabbix_server/zabbix_server
902 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
903 - fperms 0640 /etc/zabbix/zabbix_server.conf
904 - dodir /usr/share/zabbix
905 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
906 - systemd_dounit "${FILESDIR}/zabbix-server.service"
907 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
908 - fi
909 -
910 - if use proxy; then
911 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
912 - dosbin src/zabbix_proxy/zabbix_proxy
913 - insinto /etc/zabbix
914 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
915 - dodir /usr/share/zabbix
916 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
917 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
918 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
919 - fi
920 -
921 - if use agent; then
922 - insinto /etc/zabbix
923 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
924 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
925 - dosbin src/zabbix_agent/zabbix_agentd
926 - dobin \
927 - src/zabbix_sender/zabbix_sender \
928 - src/zabbix_get/zabbix_get
929 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
930 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
931 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
932 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
933 - fi
934 -
935 - fowners zabbix:zabbix \
936 - /etc/zabbix \
937 - /var/lib/zabbix \
938 - /var/lib/zabbix/home \
939 - /var/lib/zabbix/scripts \
940 - /var/lib/zabbix/alertscripts \
941 - /var/lib/zabbix/externalscripts \
942 - /var/log/zabbix
943 - fperms 0750 \
944 - /etc/zabbix \
945 - /var/lib/zabbix \
946 - /var/lib/zabbix/home \
947 - /var/lib/zabbix/scripts \
948 - /var/lib/zabbix/alertscripts \
949 - /var/lib/zabbix/externalscripts \
950 - /var/log/zabbix
951 -
952 - dodoc README INSTALL NEWS ChangeLog \
953 - conf/zabbix_agentd.conf \
954 - conf/zabbix_proxy.conf \
955 - conf/zabbix_agentd/userparameter_examples.conf \
956 - conf/zabbix_agentd/userparameter_mysql.conf \
957 - conf/zabbix_server.conf
958 -
959 - if use frontend; then
960 - webapp_src_preinst
961 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
962 - webapp_configfile \
963 - "${MY_HTDOCSDIR}"/include/db.inc.php \
964 - "${MY_HTDOCSDIR}"/include/config.inc.php
965 - webapp_src_install
966 - fi
967 -
968 - if use java; then
969 - dodir \
970 - /${ZABBIXJAVA_BASE} \
971 - /${ZABBIXJAVA_BASE}/bin \
972 - /${ZABBIXJAVA_BASE}/lib
973 - keepdir /${ZABBIXJAVA_BASE}
974 - exeinto /${ZABBIXJAVA_BASE}/bin
975 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
976 - exeinto /${ZABBIXJAVA_BASE}/lib
977 - doexe \
978 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
979 - src/zabbix_java/lib/logback-console.xml \
980 - src/zabbix_java/lib/logback-core-0.9.27.jar \
981 - src/zabbix_java/lib/logback.xml \
982 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
983 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
984 - exeinto /${ZABBIXJAVA_BASE}/
985 - doexe \
986 - src/zabbix_java/settings.sh \
987 - src/zabbix_java/startup.sh \
988 - src/zabbix_java/shutdown.sh
989 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
990 - fi
991 -}
992 -
993 -pkg_postinst() {
994 - if use server || use proxy ; then
995 - elog
996 - elog "You may need to configure your database for Zabbix,"
997 - elog "if you have not already done so. "
998 - elog
999 -
1000 - zabbix_homedir=$(egethome zabbix)
1001 - if [ -n "${zabbix_homedir}" ] && \
1002 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1003 - ewarn
1004 - ewarn "The user 'zabbix' should have his homedir changed"
1005 - ewarn "to /var/lib/zabbix/home if you want to use"
1006 - ewarn "custom alert scripts."
1007 - ewarn
1008 - ewarn "A real homedir might be needed for configfiles"
1009 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
1010 - ewarn "using sendxmpp for Jabber alerts)."
1011 - ewarn
1012 - ewarn "To change the homedir use:"
1013 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1014 - ewarn
1015 - fi
1016 - fi
1017 -
1018 - if use server; then
1019 - elog
1020 - elog "For distributed monitoring you have to run:"
1021 - elog
1022 - elog "zabbix_server -n <nodeid>"
1023 - elog
1024 - elog "This will convert database data for use with Node ID"
1025 - elog "and also adds a local node."
1026 - elog
1027 - fi
1028 -
1029 - elog "--"
1030 - elog
1031 - elog "You may need to add these lines to /etc/services:"
1032 - elog
1033 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1034 - elog "zabbix-agent 10050/udp Zabbix Agent"
1035 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1036 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1037 - elog
1038 -
1039 - if use server || use proxy ; then
1040 - # check for fping
1041 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1042 - case "${fping_perms}" in
1043 - 4[157][157][157])
1044 - ;;
1045 - *)
1046 - ewarn
1047 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1048 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1049 - ewarn "by everyone. Run the following command to fix it:"
1050 - ewarn
1051 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1052 - ewarn
1053 - ewarn "Please be aware that this might impose a security risk,"
1054 - ewarn "depending on the code quality of fping."
1055 - ewarn
1056 - ;;
1057 - esac
1058 - fi
1059 -}
1060
1061 diff --git a/net-analyzer/zabbix/zabbix-3.2.10.ebuild b/net-analyzer/zabbix/zabbix-3.2.10.ebuild
1062 deleted file mode 100644
1063 index 318cb957524..00000000000
1064 --- a/net-analyzer/zabbix/zabbix-3.2.10.ebuild
1065 +++ /dev/null
1066 @@ -1,328 +0,0 @@
1067 -# Copyright 1999-2018 Gentoo Foundation
1068 -# Distributed under the terms of the GNU General Public License v2
1069 -
1070 -EAPI="6"
1071 -
1072 -# needed to make webapp-config dep optional
1073 -WEBAPP_OPTIONAL="yes"
1074 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
1075 -
1076 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
1077 -HOMEPAGE="https://www.zabbix.com/"
1078 -MY_P=${P/_/}
1079 -MY_PV=${PV/_/}
1080 -SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
1081 -LICENSE="GPL-2"
1082 -SLOT="0"
1083 -WEBAPP_MANUAL_SLOT="yes"
1084 -KEYWORDS="~amd64 ~x86"
1085 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
1086 -REQUIRED_USE="|| ( agent frontend proxy server )
1087 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1088 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1089 - static? ( !oracle !snmp )"
1090 -
1091 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
1092 - ldap? (
1093 - net-nds/openldap
1094 - =dev-libs/cyrus-sasl-2*
1095 - net-libs/gnutls
1096 - )
1097 - mysql? ( >=virtual/mysql-5.0.3 )
1098 - sqlite? ( >=dev-db/sqlite-3.3.5 )
1099 - postgres? ( dev-db/postgresql:* )
1100 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
1101 - xmpp? ( dev-libs/iksemel )
1102 - libxml2? ( dev-libs/libxml2 )
1103 - curl? ( net-misc/curl )
1104 - openipmi? ( sys-libs/openipmi )
1105 - ssh? ( net-libs/libssh2 )
1106 - java? ( virtual/jdk:* )
1107 - odbc? ( dev-db/unixODBC )
1108 - ssl? ( dev-libs/openssl:=[-bindist] )"
1109 -
1110 -RDEPEND="${COMMON_DEPEND}
1111 - proxy? ( net-analyzer/fping[suid] )
1112 - server? ( net-analyzer/fping[suid]
1113 - app-admin/webapp-config )
1114 - java? (
1115 - >=virtual/jre-1.4
1116 - dev-java/slf4j-api
1117 - )
1118 - frontend? (
1119 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
1120 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
1121 - mysql? ( dev-lang/php[mysqli] )
1122 - odbc? ( dev-lang/php[odbc] )
1123 - oracle? ( dev-lang/php[oci8-instant-client] )
1124 - postgres? ( dev-lang/php[postgres] )
1125 - sqlite? ( dev-lang/php[sqlite] )
1126 - media-libs/gd[png]
1127 - app-admin/webapp-config )"
1128 -DEPEND="${COMMON_DEPEND}
1129 - static? (
1130 - ldap? (
1131 - net-nds/openldap[static-libs]
1132 - =dev-libs/cyrus-sasl-2*[static-libs]
1133 - net-libs/gnutls[static-libs]
1134 - )
1135 - mysql? ( >=virtual/mysql-5.0.3 virtual/libmysqlclient[static-libs] )
1136 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
1137 - postgres? ( dev-db/postgresql:*[static-libs] )
1138 - libxml2? ( dev-libs/libxml2[static-libs] )
1139 - curl? ( net-misc/curl[static-libs] )
1140 - ssh? ( net-libs/libssh2[static-libs] )
1141 - odbc? ( dev-db/unixODBC[static-libs] )
1142 - )
1143 - virtual/pkgconfig"
1144 -
1145 -S=${WORKDIR}/${MY_P}
1146 -
1147 -ZABBIXJAVA_BASE="opt/zabbix_java"
1148 -
1149 -pkg_setup() {
1150 - if use oracle; then
1151 - if [ -z "${ORACLE_HOME}" ]; then
1152 - eerror
1153 - eerror "The environment variable ORACLE_HOME must be set"
1154 - eerror "and point to the correct location."
1155 - eerror "It looks like you don't have Oracle installed."
1156 - eerror
1157 - die "Environment variable ORACLE_HOME is not set"
1158 - fi
1159 - if has_version 'dev-db/oracle-instantclient-basic'; then
1160 - ewarn
1161 - ewarn "Please ensure you have a full install of the Oracle client."
1162 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
1163 - ewarn
1164 - fi
1165 - fi
1166 -
1167 - if use frontend; then
1168 - webapp_pkg_setup
1169 - fi
1170 -
1171 - enewgroup zabbix
1172 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
1173 -}
1174 -
1175 -java_prepare() {
1176 - cd "${S}/src/zabbix_java/lib"
1177 - rm -v *.jar || die
1178 -
1179 - java-pkg_jar-from slf4j-api
1180 -}
1181 -
1182 -src_prepare() {
1183 - default
1184 -}
1185 -
1186 -src_configure() {
1187 - econf \
1188 - $(use_enable server) \
1189 - $(use_enable proxy) \
1190 - $(use_enable agent) \
1191 - $(use_enable ipv6) \
1192 - $(use_enable static) \
1193 - $(use_enable java) \
1194 - $(use_with ldap) \
1195 - $(use_with snmp net-snmp) \
1196 - $(use_with mysql) \
1197 - $(use_with postgres postgresql) \
1198 - $(use_with oracle) \
1199 - $(use_with sqlite sqlite3) \
1200 - $(use_with xmpp jabber) \
1201 - $(use_with curl libcurl) \
1202 - $(use_with openipmi openipmi) \
1203 - $(use_with ssh ssh2) \
1204 - $(use_with libxml2) \
1205 - $(use_with odbc unixodbc) \
1206 - $(use_with ssl openssl) \
1207 - || die "econf failed"
1208 -}
1209 -
1210 -src_compile() {
1211 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
1212 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
1213 - fi
1214 -}
1215 -
1216 -src_install() {
1217 - dodir \
1218 - /etc/zabbix \
1219 - /var/lib/zabbix \
1220 - /var/lib/zabbix/home \
1221 - /var/lib/zabbix/scripts \
1222 - /var/lib/zabbix/alertscripts \
1223 - /var/lib/zabbix/externalscripts \
1224 - /var/log/zabbix
1225 -
1226 - keepdir \
1227 - /etc/zabbix \
1228 - /var/lib/zabbix \
1229 - /var/lib/zabbix/home \
1230 - /var/lib/zabbix/scripts \
1231 - /var/lib/zabbix/alertscripts \
1232 - /var/lib/zabbix/externalscripts \
1233 - /var/log/zabbix
1234 -
1235 - if use server; then
1236 - insinto /etc/zabbix
1237 - doins "${FILESDIR}/3.0"/zabbix_server.conf
1238 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
1239 - dosbin src/zabbix_server/zabbix_server
1240 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
1241 - fperms 0640 /etc/zabbix/zabbix_server.conf
1242 - dodir /usr/share/zabbix
1243 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1244 - systemd_dounit "${FILESDIR}/zabbix-server.service"
1245 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
1246 - fi
1247 -
1248 - if use proxy; then
1249 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
1250 - dosbin src/zabbix_proxy/zabbix_proxy
1251 - insinto /etc/zabbix
1252 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
1253 - dodir /usr/share/zabbix
1254 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1255 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
1256 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
1257 - fi
1258 -
1259 - if use agent; then
1260 - insinto /etc/zabbix
1261 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
1262 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
1263 - dosbin src/zabbix_agent/zabbix_agentd
1264 - dobin \
1265 - src/zabbix_sender/zabbix_sender \
1266 - src/zabbix_get/zabbix_get
1267 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
1268 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
1269 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
1270 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
1271 - fi
1272 -
1273 - fowners zabbix:zabbix \
1274 - /etc/zabbix \
1275 - /var/lib/zabbix \
1276 - /var/lib/zabbix/home \
1277 - /var/lib/zabbix/scripts \
1278 - /var/lib/zabbix/alertscripts \
1279 - /var/lib/zabbix/externalscripts \
1280 - /var/log/zabbix
1281 - fperms 0750 \
1282 - /etc/zabbix \
1283 - /var/lib/zabbix \
1284 - /var/lib/zabbix/home \
1285 - /var/lib/zabbix/scripts \
1286 - /var/lib/zabbix/alertscripts \
1287 - /var/lib/zabbix/externalscripts \
1288 - /var/log/zabbix
1289 -
1290 - dodoc README INSTALL NEWS ChangeLog \
1291 - conf/zabbix_agentd.conf \
1292 - conf/zabbix_proxy.conf \
1293 - conf/zabbix_agentd/userparameter_examples.conf \
1294 - conf/zabbix_agentd/userparameter_mysql.conf \
1295 - conf/zabbix_server.conf
1296 -
1297 - if use frontend; then
1298 - webapp_src_preinst
1299 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
1300 - webapp_configfile \
1301 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1302 - "${MY_HTDOCSDIR}"/include/config.inc.php
1303 - webapp_src_install
1304 - fi
1305 -
1306 - if use java; then
1307 - dodir \
1308 - /${ZABBIXJAVA_BASE} \
1309 - /${ZABBIXJAVA_BASE}/bin \
1310 - /${ZABBIXJAVA_BASE}/lib
1311 - keepdir /${ZABBIXJAVA_BASE}
1312 - exeinto /${ZABBIXJAVA_BASE}/bin
1313 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
1314 - exeinto /${ZABBIXJAVA_BASE}/lib
1315 - doexe \
1316 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
1317 - src/zabbix_java/lib/logback-console.xml \
1318 - src/zabbix_java/lib/logback-core-0.9.27.jar \
1319 - src/zabbix_java/lib/logback.xml \
1320 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
1321 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
1322 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
1323 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
1324 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
1325 - fi
1326 -}
1327 -
1328 -pkg_postinst() {
1329 - if use server || use proxy ; then
1330 - elog
1331 - elog "You may need to configure your database for Zabbix,"
1332 - elog "if you have not already done so. "
1333 - elog
1334 -
1335 - zabbix_homedir=$(egethome zabbix)
1336 - if [ -n "${zabbix_homedir}" ] && \
1337 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1338 - ewarn
1339 - ewarn "The user 'zabbix' should have his homedir changed"
1340 - ewarn "to /var/lib/zabbix/home if you want to use"
1341 - ewarn "custom alert scripts."
1342 - ewarn
1343 - ewarn "A real homedir might be needed for configfiles"
1344 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
1345 - ewarn "using sendxmpp for Jabber alerts)."
1346 - ewarn
1347 - ewarn "To change the homedir use:"
1348 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1349 - ewarn
1350 - fi
1351 - fi
1352 -
1353 - if use server; then
1354 - elog
1355 - elog "For distributed monitoring you have to run:"
1356 - elog
1357 - elog "zabbix_server -n <nodeid>"
1358 - elog
1359 - elog "This will convert database data for use with Node ID"
1360 - elog "and also adds a local node."
1361 - elog
1362 - fi
1363 -
1364 - elog "--"
1365 - elog
1366 - elog "You may need to add these lines to /etc/services:"
1367 - elog
1368 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1369 - elog "zabbix-agent 10050/udp Zabbix Agent"
1370 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1371 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1372 - elog
1373 -
1374 - if use server || use proxy ; then
1375 - # check for fping
1376 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1377 - case "${fping_perms}" in
1378 - 4[157][157][157])
1379 - ;;
1380 - *)
1381 - ewarn
1382 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1383 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1384 - ewarn "by everyone. Run the following command to fix it:"
1385 - ewarn
1386 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1387 - ewarn
1388 - ewarn "Please be aware that this might impose a security risk,"
1389 - ewarn "depending on the code quality of fping."
1390 - ewarn
1391 - ;;
1392 - esac
1393 - fi
1394 -}
1395
1396 diff --git a/net-analyzer/zabbix/zabbix-3.2.9.ebuild b/net-analyzer/zabbix/zabbix-3.2.9.ebuild
1397 deleted file mode 100644
1398 index 318cb957524..00000000000
1399 --- a/net-analyzer/zabbix/zabbix-3.2.9.ebuild
1400 +++ /dev/null
1401 @@ -1,328 +0,0 @@
1402 -# Copyright 1999-2018 Gentoo Foundation
1403 -# Distributed under the terms of the GNU General Public License v2
1404 -
1405 -EAPI="6"
1406 -
1407 -# needed to make webapp-config dep optional
1408 -WEBAPP_OPTIONAL="yes"
1409 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
1410 -
1411 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
1412 -HOMEPAGE="https://www.zabbix.com/"
1413 -MY_P=${P/_/}
1414 -MY_PV=${PV/_/}
1415 -SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
1416 -LICENSE="GPL-2"
1417 -SLOT="0"
1418 -WEBAPP_MANUAL_SLOT="yes"
1419 -KEYWORDS="~amd64 ~x86"
1420 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
1421 -REQUIRED_USE="|| ( agent frontend proxy server )
1422 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1423 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1424 - static? ( !oracle !snmp )"
1425 -
1426 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
1427 - ldap? (
1428 - net-nds/openldap
1429 - =dev-libs/cyrus-sasl-2*
1430 - net-libs/gnutls
1431 - )
1432 - mysql? ( >=virtual/mysql-5.0.3 )
1433 - sqlite? ( >=dev-db/sqlite-3.3.5 )
1434 - postgres? ( dev-db/postgresql:* )
1435 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
1436 - xmpp? ( dev-libs/iksemel )
1437 - libxml2? ( dev-libs/libxml2 )
1438 - curl? ( net-misc/curl )
1439 - openipmi? ( sys-libs/openipmi )
1440 - ssh? ( net-libs/libssh2 )
1441 - java? ( virtual/jdk:* )
1442 - odbc? ( dev-db/unixODBC )
1443 - ssl? ( dev-libs/openssl:=[-bindist] )"
1444 -
1445 -RDEPEND="${COMMON_DEPEND}
1446 - proxy? ( net-analyzer/fping[suid] )
1447 - server? ( net-analyzer/fping[suid]
1448 - app-admin/webapp-config )
1449 - java? (
1450 - >=virtual/jre-1.4
1451 - dev-java/slf4j-api
1452 - )
1453 - frontend? (
1454 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
1455 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
1456 - mysql? ( dev-lang/php[mysqli] )
1457 - odbc? ( dev-lang/php[odbc] )
1458 - oracle? ( dev-lang/php[oci8-instant-client] )
1459 - postgres? ( dev-lang/php[postgres] )
1460 - sqlite? ( dev-lang/php[sqlite] )
1461 - media-libs/gd[png]
1462 - app-admin/webapp-config )"
1463 -DEPEND="${COMMON_DEPEND}
1464 - static? (
1465 - ldap? (
1466 - net-nds/openldap[static-libs]
1467 - =dev-libs/cyrus-sasl-2*[static-libs]
1468 - net-libs/gnutls[static-libs]
1469 - )
1470 - mysql? ( >=virtual/mysql-5.0.3 virtual/libmysqlclient[static-libs] )
1471 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
1472 - postgres? ( dev-db/postgresql:*[static-libs] )
1473 - libxml2? ( dev-libs/libxml2[static-libs] )
1474 - curl? ( net-misc/curl[static-libs] )
1475 - ssh? ( net-libs/libssh2[static-libs] )
1476 - odbc? ( dev-db/unixODBC[static-libs] )
1477 - )
1478 - virtual/pkgconfig"
1479 -
1480 -S=${WORKDIR}/${MY_P}
1481 -
1482 -ZABBIXJAVA_BASE="opt/zabbix_java"
1483 -
1484 -pkg_setup() {
1485 - if use oracle; then
1486 - if [ -z "${ORACLE_HOME}" ]; then
1487 - eerror
1488 - eerror "The environment variable ORACLE_HOME must be set"
1489 - eerror "and point to the correct location."
1490 - eerror "It looks like you don't have Oracle installed."
1491 - eerror
1492 - die "Environment variable ORACLE_HOME is not set"
1493 - fi
1494 - if has_version 'dev-db/oracle-instantclient-basic'; then
1495 - ewarn
1496 - ewarn "Please ensure you have a full install of the Oracle client."
1497 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
1498 - ewarn
1499 - fi
1500 - fi
1501 -
1502 - if use frontend; then
1503 - webapp_pkg_setup
1504 - fi
1505 -
1506 - enewgroup zabbix
1507 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
1508 -}
1509 -
1510 -java_prepare() {
1511 - cd "${S}/src/zabbix_java/lib"
1512 - rm -v *.jar || die
1513 -
1514 - java-pkg_jar-from slf4j-api
1515 -}
1516 -
1517 -src_prepare() {
1518 - default
1519 -}
1520 -
1521 -src_configure() {
1522 - econf \
1523 - $(use_enable server) \
1524 - $(use_enable proxy) \
1525 - $(use_enable agent) \
1526 - $(use_enable ipv6) \
1527 - $(use_enable static) \
1528 - $(use_enable java) \
1529 - $(use_with ldap) \
1530 - $(use_with snmp net-snmp) \
1531 - $(use_with mysql) \
1532 - $(use_with postgres postgresql) \
1533 - $(use_with oracle) \
1534 - $(use_with sqlite sqlite3) \
1535 - $(use_with xmpp jabber) \
1536 - $(use_with curl libcurl) \
1537 - $(use_with openipmi openipmi) \
1538 - $(use_with ssh ssh2) \
1539 - $(use_with libxml2) \
1540 - $(use_with odbc unixodbc) \
1541 - $(use_with ssl openssl) \
1542 - || die "econf failed"
1543 -}
1544 -
1545 -src_compile() {
1546 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
1547 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
1548 - fi
1549 -}
1550 -
1551 -src_install() {
1552 - dodir \
1553 - /etc/zabbix \
1554 - /var/lib/zabbix \
1555 - /var/lib/zabbix/home \
1556 - /var/lib/zabbix/scripts \
1557 - /var/lib/zabbix/alertscripts \
1558 - /var/lib/zabbix/externalscripts \
1559 - /var/log/zabbix
1560 -
1561 - keepdir \
1562 - /etc/zabbix \
1563 - /var/lib/zabbix \
1564 - /var/lib/zabbix/home \
1565 - /var/lib/zabbix/scripts \
1566 - /var/lib/zabbix/alertscripts \
1567 - /var/lib/zabbix/externalscripts \
1568 - /var/log/zabbix
1569 -
1570 - if use server; then
1571 - insinto /etc/zabbix
1572 - doins "${FILESDIR}/3.0"/zabbix_server.conf
1573 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
1574 - dosbin src/zabbix_server/zabbix_server
1575 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
1576 - fperms 0640 /etc/zabbix/zabbix_server.conf
1577 - dodir /usr/share/zabbix
1578 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1579 - systemd_dounit "${FILESDIR}/zabbix-server.service"
1580 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
1581 - fi
1582 -
1583 - if use proxy; then
1584 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
1585 - dosbin src/zabbix_proxy/zabbix_proxy
1586 - insinto /etc/zabbix
1587 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
1588 - dodir /usr/share/zabbix
1589 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1590 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
1591 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
1592 - fi
1593 -
1594 - if use agent; then
1595 - insinto /etc/zabbix
1596 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
1597 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
1598 - dosbin src/zabbix_agent/zabbix_agentd
1599 - dobin \
1600 - src/zabbix_sender/zabbix_sender \
1601 - src/zabbix_get/zabbix_get
1602 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
1603 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
1604 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
1605 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
1606 - fi
1607 -
1608 - fowners zabbix:zabbix \
1609 - /etc/zabbix \
1610 - /var/lib/zabbix \
1611 - /var/lib/zabbix/home \
1612 - /var/lib/zabbix/scripts \
1613 - /var/lib/zabbix/alertscripts \
1614 - /var/lib/zabbix/externalscripts \
1615 - /var/log/zabbix
1616 - fperms 0750 \
1617 - /etc/zabbix \
1618 - /var/lib/zabbix \
1619 - /var/lib/zabbix/home \
1620 - /var/lib/zabbix/scripts \
1621 - /var/lib/zabbix/alertscripts \
1622 - /var/lib/zabbix/externalscripts \
1623 - /var/log/zabbix
1624 -
1625 - dodoc README INSTALL NEWS ChangeLog \
1626 - conf/zabbix_agentd.conf \
1627 - conf/zabbix_proxy.conf \
1628 - conf/zabbix_agentd/userparameter_examples.conf \
1629 - conf/zabbix_agentd/userparameter_mysql.conf \
1630 - conf/zabbix_server.conf
1631 -
1632 - if use frontend; then
1633 - webapp_src_preinst
1634 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
1635 - webapp_configfile \
1636 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1637 - "${MY_HTDOCSDIR}"/include/config.inc.php
1638 - webapp_src_install
1639 - fi
1640 -
1641 - if use java; then
1642 - dodir \
1643 - /${ZABBIXJAVA_BASE} \
1644 - /${ZABBIXJAVA_BASE}/bin \
1645 - /${ZABBIXJAVA_BASE}/lib
1646 - keepdir /${ZABBIXJAVA_BASE}
1647 - exeinto /${ZABBIXJAVA_BASE}/bin
1648 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
1649 - exeinto /${ZABBIXJAVA_BASE}/lib
1650 - doexe \
1651 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
1652 - src/zabbix_java/lib/logback-console.xml \
1653 - src/zabbix_java/lib/logback-core-0.9.27.jar \
1654 - src/zabbix_java/lib/logback.xml \
1655 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
1656 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
1657 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
1658 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
1659 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
1660 - fi
1661 -}
1662 -
1663 -pkg_postinst() {
1664 - if use server || use proxy ; then
1665 - elog
1666 - elog "You may need to configure your database for Zabbix,"
1667 - elog "if you have not already done so. "
1668 - elog
1669 -
1670 - zabbix_homedir=$(egethome zabbix)
1671 - if [ -n "${zabbix_homedir}" ] && \
1672 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1673 - ewarn
1674 - ewarn "The user 'zabbix' should have his homedir changed"
1675 - ewarn "to /var/lib/zabbix/home if you want to use"
1676 - ewarn "custom alert scripts."
1677 - ewarn
1678 - ewarn "A real homedir might be needed for configfiles"
1679 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
1680 - ewarn "using sendxmpp for Jabber alerts)."
1681 - ewarn
1682 - ewarn "To change the homedir use:"
1683 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1684 - ewarn
1685 - fi
1686 - fi
1687 -
1688 - if use server; then
1689 - elog
1690 - elog "For distributed monitoring you have to run:"
1691 - elog
1692 - elog "zabbix_server -n <nodeid>"
1693 - elog
1694 - elog "This will convert database data for use with Node ID"
1695 - elog "and also adds a local node."
1696 - elog
1697 - fi
1698 -
1699 - elog "--"
1700 - elog
1701 - elog "You may need to add these lines to /etc/services:"
1702 - elog
1703 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1704 - elog "zabbix-agent 10050/udp Zabbix Agent"
1705 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1706 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1707 - elog
1708 -
1709 - if use server || use proxy ; then
1710 - # check for fping
1711 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1712 - case "${fping_perms}" in
1713 - 4[157][157][157])
1714 - ;;
1715 - *)
1716 - ewarn
1717 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1718 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1719 - ewarn "by everyone. Run the following command to fix it:"
1720 - ewarn
1721 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1722 - ewarn
1723 - ewarn "Please be aware that this might impose a security risk,"
1724 - ewarn "depending on the code quality of fping."
1725 - ewarn
1726 - ;;
1727 - esac
1728 - fi
1729 -}
1730
1731 diff --git a/net-analyzer/zabbix/zabbix-3.4.5.ebuild b/net-analyzer/zabbix/zabbix-3.4.5.ebuild
1732 deleted file mode 100644
1733 index e06d6f85c70..00000000000
1734 --- a/net-analyzer/zabbix/zabbix-3.4.5.ebuild
1735 +++ /dev/null
1736 @@ -1,329 +0,0 @@
1737 -# Copyright 1999-2018 Gentoo Foundation
1738 -# Distributed under the terms of the GNU General Public License v2
1739 -
1740 -EAPI="6"
1741 -
1742 -# needed to make webapp-config dep optional
1743 -WEBAPP_OPTIONAL="yes"
1744 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
1745 -
1746 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
1747 -HOMEPAGE="https://www.zabbix.com/"
1748 -MY_P=${P/_/}
1749 -MY_PV=${PV/_/}
1750 -SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
1751 -LICENSE="GPL-2"
1752 -SLOT="0"
1753 -WEBAPP_MANUAL_SLOT="yes"
1754 -KEYWORDS="~amd64 ~x86"
1755 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
1756 -REQUIRED_USE="|| ( agent frontend proxy server )
1757 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1758 - server? ( ^^ ( mysql oracle postgres odbc ) )
1759 - static? ( !oracle !snmp )"
1760 -
1761 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
1762 - ldap? (
1763 - net-nds/openldap
1764 - =dev-libs/cyrus-sasl-2*
1765 - net-libs/gnutls
1766 - )
1767 - mysql? ( >=virtual/mysql-5.0.3 )
1768 - sqlite? ( >=dev-db/sqlite-3.3.5 )
1769 - postgres? ( dev-db/postgresql:* )
1770 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
1771 - xmpp? ( dev-libs/iksemel )
1772 - libxml2? ( dev-libs/libxml2 )
1773 - curl? ( net-misc/curl )
1774 - openipmi? ( sys-libs/openipmi )
1775 - ssh? ( net-libs/libssh2 )
1776 - java? ( virtual/jdk:* )
1777 - odbc? ( dev-db/unixODBC )
1778 - ssl? ( dev-libs/openssl:=[-bindist] )"
1779 -
1780 -RDEPEND="${COMMON_DEPEND}
1781 - proxy? ( net-analyzer/fping[suid] )
1782 - server? ( net-analyzer/fping[suid]
1783 - app-admin/webapp-config
1784 - dev-libs/libevent )
1785 - java? (
1786 - >=virtual/jre-1.4
1787 - dev-java/slf4j-api
1788 - )
1789 - frontend? (
1790 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
1791 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
1792 - mysql? ( dev-lang/php[mysqli] )
1793 - odbc? ( dev-lang/php[odbc] )
1794 - oracle? ( dev-lang/php[oci8-instant-client] )
1795 - postgres? ( dev-lang/php[postgres] )
1796 - sqlite? ( dev-lang/php[sqlite] )
1797 - media-libs/gd[png]
1798 - app-admin/webapp-config )"
1799 -DEPEND="${COMMON_DEPEND}
1800 - static? (
1801 - ldap? (
1802 - net-nds/openldap[static-libs]
1803 - =dev-libs/cyrus-sasl-2*[static-libs]
1804 - net-libs/gnutls[static-libs]
1805 - )
1806 - mysql? ( >=virtual/mysql-5.0.3 virtual/libmysqlclient[static-libs] )
1807 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
1808 - postgres? ( dev-db/postgresql:*[static-libs] )
1809 - libxml2? ( dev-libs/libxml2[static-libs] )
1810 - curl? ( net-misc/curl[static-libs] )
1811 - ssh? ( net-libs/libssh2[static-libs] )
1812 - odbc? ( dev-db/unixODBC[static-libs] )
1813 - )
1814 - virtual/pkgconfig"
1815 -
1816 -S=${WORKDIR}/${MY_P}
1817 -
1818 -ZABBIXJAVA_BASE="opt/zabbix_java"
1819 -
1820 -pkg_setup() {
1821 - if use oracle; then
1822 - if [ -z "${ORACLE_HOME}" ]; then
1823 - eerror
1824 - eerror "The environment variable ORACLE_HOME must be set"
1825 - eerror "and point to the correct location."
1826 - eerror "It looks like you don't have Oracle installed."
1827 - eerror
1828 - die "Environment variable ORACLE_HOME is not set"
1829 - fi
1830 - if has_version 'dev-db/oracle-instantclient-basic'; then
1831 - ewarn
1832 - ewarn "Please ensure you have a full install of the Oracle client."
1833 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
1834 - ewarn
1835 - fi
1836 - fi
1837 -
1838 - if use frontend; then
1839 - webapp_pkg_setup
1840 - fi
1841 -
1842 - enewgroup zabbix
1843 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
1844 -}
1845 -
1846 -java_prepare() {
1847 - cd "${S}/src/zabbix_java/lib"
1848 - rm -v *.jar || die
1849 -
1850 - java-pkg_jar-from slf4j-api
1851 -}
1852 -
1853 -src_prepare() {
1854 - default
1855 -}
1856 -
1857 -src_configure() {
1858 - econf \
1859 - $(use_enable server) \
1860 - $(use_enable proxy) \
1861 - $(use_enable agent) \
1862 - $(use_enable ipv6) \
1863 - $(use_enable static) \
1864 - $(use_enable java) \
1865 - $(use_with ldap) \
1866 - $(use_with snmp net-snmp) \
1867 - $(use_with mysql) \
1868 - $(use_with postgres postgresql) \
1869 - $(use_with oracle) \
1870 - $(use_with sqlite sqlite3) \
1871 - $(use_with xmpp jabber) \
1872 - $(use_with curl libcurl) \
1873 - $(use_with openipmi openipmi) \
1874 - $(use_with ssh ssh2) \
1875 - $(use_with libxml2) \
1876 - $(use_with odbc unixodbc) \
1877 - $(use_with ssl openssl) \
1878 - || die "econf failed"
1879 -}
1880 -
1881 -src_compile() {
1882 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
1883 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
1884 - fi
1885 -}
1886 -
1887 -src_install() {
1888 - dodir \
1889 - /etc/zabbix \
1890 - /var/lib/zabbix \
1891 - /var/lib/zabbix/home \
1892 - /var/lib/zabbix/scripts \
1893 - /var/lib/zabbix/alertscripts \
1894 - /var/lib/zabbix/externalscripts \
1895 - /var/log/zabbix
1896 -
1897 - keepdir \
1898 - /etc/zabbix \
1899 - /var/lib/zabbix \
1900 - /var/lib/zabbix/home \
1901 - /var/lib/zabbix/scripts \
1902 - /var/lib/zabbix/alertscripts \
1903 - /var/lib/zabbix/externalscripts \
1904 - /var/log/zabbix
1905 -
1906 - if use server; then
1907 - insinto /etc/zabbix
1908 - doins "${FILESDIR}/3.0"/zabbix_server.conf
1909 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
1910 - dosbin src/zabbix_server/zabbix_server
1911 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
1912 - fperms 0640 /etc/zabbix/zabbix_server.conf
1913 - dodir /usr/share/zabbix
1914 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1915 - systemd_dounit "${FILESDIR}/zabbix-server.service"
1916 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
1917 - fi
1918 -
1919 - if use proxy; then
1920 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
1921 - dosbin src/zabbix_proxy/zabbix_proxy
1922 - insinto /etc/zabbix
1923 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
1924 - dodir /usr/share/zabbix
1925 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1926 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
1927 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
1928 - fi
1929 -
1930 - if use agent; then
1931 - insinto /etc/zabbix
1932 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
1933 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
1934 - dosbin src/zabbix_agent/zabbix_agentd
1935 - dobin \
1936 - src/zabbix_sender/zabbix_sender \
1937 - src/zabbix_get/zabbix_get
1938 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
1939 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
1940 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
1941 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
1942 - fi
1943 -
1944 - fowners zabbix:zabbix \
1945 - /etc/zabbix \
1946 - /var/lib/zabbix \
1947 - /var/lib/zabbix/home \
1948 - /var/lib/zabbix/scripts \
1949 - /var/lib/zabbix/alertscripts \
1950 - /var/lib/zabbix/externalscripts \
1951 - /var/log/zabbix
1952 - fperms 0750 \
1953 - /etc/zabbix \
1954 - /var/lib/zabbix \
1955 - /var/lib/zabbix/home \
1956 - /var/lib/zabbix/scripts \
1957 - /var/lib/zabbix/alertscripts \
1958 - /var/lib/zabbix/externalscripts \
1959 - /var/log/zabbix
1960 -
1961 - dodoc README INSTALL NEWS ChangeLog \
1962 - conf/zabbix_agentd.conf \
1963 - conf/zabbix_proxy.conf \
1964 - conf/zabbix_agentd/userparameter_examples.conf \
1965 - conf/zabbix_agentd/userparameter_mysql.conf \
1966 - conf/zabbix_server.conf
1967 -
1968 - if use frontend; then
1969 - webapp_src_preinst
1970 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
1971 - webapp_configfile \
1972 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1973 - "${MY_HTDOCSDIR}"/include/config.inc.php
1974 - webapp_src_install
1975 - fi
1976 -
1977 - if use java; then
1978 - dodir \
1979 - /${ZABBIXJAVA_BASE} \
1980 - /${ZABBIXJAVA_BASE}/bin \
1981 - /${ZABBIXJAVA_BASE}/lib
1982 - keepdir /${ZABBIXJAVA_BASE}
1983 - exeinto /${ZABBIXJAVA_BASE}/bin
1984 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
1985 - exeinto /${ZABBIXJAVA_BASE}/lib
1986 - doexe \
1987 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
1988 - src/zabbix_java/lib/logback-console.xml \
1989 - src/zabbix_java/lib/logback-core-0.9.27.jar \
1990 - src/zabbix_java/lib/logback.xml \
1991 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
1992 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
1993 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
1994 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
1995 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
1996 - fi
1997 -}
1998 -
1999 -pkg_postinst() {
2000 - if use server || use proxy ; then
2001 - elog
2002 - elog "You may need to configure your database for Zabbix,"
2003 - elog "if you have not already done so. "
2004 - elog
2005 -
2006 - zabbix_homedir=$(egethome zabbix)
2007 - if [ -n "${zabbix_homedir}" ] && \
2008 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
2009 - ewarn
2010 - ewarn "The user 'zabbix' should have his homedir changed"
2011 - ewarn "to /var/lib/zabbix/home if you want to use"
2012 - ewarn "custom alert scripts."
2013 - ewarn
2014 - ewarn "A real homedir might be needed for configfiles"
2015 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
2016 - ewarn "using sendxmpp for Jabber alerts)."
2017 - ewarn
2018 - ewarn "To change the homedir use:"
2019 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
2020 - ewarn
2021 - fi
2022 - fi
2023 -
2024 - if use server; then
2025 - elog
2026 - elog "For distributed monitoring you have to run:"
2027 - elog
2028 - elog "zabbix_server -n <nodeid>"
2029 - elog
2030 - elog "This will convert database data for use with Node ID"
2031 - elog "and also adds a local node."
2032 - elog
2033 - fi
2034 -
2035 - elog "--"
2036 - elog
2037 - elog "You may need to add these lines to /etc/services:"
2038 - elog
2039 - elog "zabbix-agent 10050/tcp Zabbix Agent"
2040 - elog "zabbix-agent 10050/udp Zabbix Agent"
2041 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
2042 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
2043 - elog
2044 -
2045 - if use server || use proxy ; then
2046 - # check for fping
2047 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
2048 - case "${fping_perms}" in
2049 - 4[157][157][157])
2050 - ;;
2051 - *)
2052 - ewarn
2053 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
2054 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
2055 - ewarn "by everyone. Run the following command to fix it:"
2056 - ewarn
2057 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
2058 - ewarn
2059 - ewarn "Please be aware that this might impose a security risk,"
2060 - ewarn "depending on the code quality of fping."
2061 - ewarn
2062 - ;;
2063 - esac
2064 - fi
2065 -}
2066
2067 diff --git a/net-analyzer/zabbix/zabbix-3.4.6.ebuild b/net-analyzer/zabbix/zabbix-3.4.6.ebuild
2068 deleted file mode 100644
2069 index e06d6f85c70..00000000000
2070 --- a/net-analyzer/zabbix/zabbix-3.4.6.ebuild
2071 +++ /dev/null
2072 @@ -1,329 +0,0 @@
2073 -# Copyright 1999-2018 Gentoo Foundation
2074 -# Distributed under the terms of the GNU General Public License v2
2075 -
2076 -EAPI="6"
2077 -
2078 -# needed to make webapp-config dep optional
2079 -WEBAPP_OPTIONAL="yes"
2080 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
2081 -
2082 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
2083 -HOMEPAGE="https://www.zabbix.com/"
2084 -MY_P=${P/_/}
2085 -MY_PV=${PV/_/}
2086 -SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
2087 -LICENSE="GPL-2"
2088 -SLOT="0"
2089 -WEBAPP_MANUAL_SLOT="yes"
2090 -KEYWORDS="~amd64 ~x86"
2091 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
2092 -REQUIRED_USE="|| ( agent frontend proxy server )
2093 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2094 - server? ( ^^ ( mysql oracle postgres odbc ) )
2095 - static? ( !oracle !snmp )"
2096 -
2097 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
2098 - ldap? (
2099 - net-nds/openldap
2100 - =dev-libs/cyrus-sasl-2*
2101 - net-libs/gnutls
2102 - )
2103 - mysql? ( >=virtual/mysql-5.0.3 )
2104 - sqlite? ( >=dev-db/sqlite-3.3.5 )
2105 - postgres? ( dev-db/postgresql:* )
2106 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
2107 - xmpp? ( dev-libs/iksemel )
2108 - libxml2? ( dev-libs/libxml2 )
2109 - curl? ( net-misc/curl )
2110 - openipmi? ( sys-libs/openipmi )
2111 - ssh? ( net-libs/libssh2 )
2112 - java? ( virtual/jdk:* )
2113 - odbc? ( dev-db/unixODBC )
2114 - ssl? ( dev-libs/openssl:=[-bindist] )"
2115 -
2116 -RDEPEND="${COMMON_DEPEND}
2117 - proxy? ( net-analyzer/fping[suid] )
2118 - server? ( net-analyzer/fping[suid]
2119 - app-admin/webapp-config
2120 - dev-libs/libevent )
2121 - java? (
2122 - >=virtual/jre-1.4
2123 - dev-java/slf4j-api
2124 - )
2125 - frontend? (
2126 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
2127 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
2128 - mysql? ( dev-lang/php[mysqli] )
2129 - odbc? ( dev-lang/php[odbc] )
2130 - oracle? ( dev-lang/php[oci8-instant-client] )
2131 - postgres? ( dev-lang/php[postgres] )
2132 - sqlite? ( dev-lang/php[sqlite] )
2133 - media-libs/gd[png]
2134 - app-admin/webapp-config )"
2135 -DEPEND="${COMMON_DEPEND}
2136 - static? (
2137 - ldap? (
2138 - net-nds/openldap[static-libs]
2139 - =dev-libs/cyrus-sasl-2*[static-libs]
2140 - net-libs/gnutls[static-libs]
2141 - )
2142 - mysql? ( >=virtual/mysql-5.0.3 virtual/libmysqlclient[static-libs] )
2143 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
2144 - postgres? ( dev-db/postgresql:*[static-libs] )
2145 - libxml2? ( dev-libs/libxml2[static-libs] )
2146 - curl? ( net-misc/curl[static-libs] )
2147 - ssh? ( net-libs/libssh2[static-libs] )
2148 - odbc? ( dev-db/unixODBC[static-libs] )
2149 - )
2150 - virtual/pkgconfig"
2151 -
2152 -S=${WORKDIR}/${MY_P}
2153 -
2154 -ZABBIXJAVA_BASE="opt/zabbix_java"
2155 -
2156 -pkg_setup() {
2157 - if use oracle; then
2158 - if [ -z "${ORACLE_HOME}" ]; then
2159 - eerror
2160 - eerror "The environment variable ORACLE_HOME must be set"
2161 - eerror "and point to the correct location."
2162 - eerror "It looks like you don't have Oracle installed."
2163 - eerror
2164 - die "Environment variable ORACLE_HOME is not set"
2165 - fi
2166 - if has_version 'dev-db/oracle-instantclient-basic'; then
2167 - ewarn
2168 - ewarn "Please ensure you have a full install of the Oracle client."
2169 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
2170 - ewarn
2171 - fi
2172 - fi
2173 -
2174 - if use frontend; then
2175 - webapp_pkg_setup
2176 - fi
2177 -
2178 - enewgroup zabbix
2179 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
2180 -}
2181 -
2182 -java_prepare() {
2183 - cd "${S}/src/zabbix_java/lib"
2184 - rm -v *.jar || die
2185 -
2186 - java-pkg_jar-from slf4j-api
2187 -}
2188 -
2189 -src_prepare() {
2190 - default
2191 -}
2192 -
2193 -src_configure() {
2194 - econf \
2195 - $(use_enable server) \
2196 - $(use_enable proxy) \
2197 - $(use_enable agent) \
2198 - $(use_enable ipv6) \
2199 - $(use_enable static) \
2200 - $(use_enable java) \
2201 - $(use_with ldap) \
2202 - $(use_with snmp net-snmp) \
2203 - $(use_with mysql) \
2204 - $(use_with postgres postgresql) \
2205 - $(use_with oracle) \
2206 - $(use_with sqlite sqlite3) \
2207 - $(use_with xmpp jabber) \
2208 - $(use_with curl libcurl) \
2209 - $(use_with openipmi openipmi) \
2210 - $(use_with ssh ssh2) \
2211 - $(use_with libxml2) \
2212 - $(use_with odbc unixodbc) \
2213 - $(use_with ssl openssl) \
2214 - || die "econf failed"
2215 -}
2216 -
2217 -src_compile() {
2218 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
2219 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
2220 - fi
2221 -}
2222 -
2223 -src_install() {
2224 - dodir \
2225 - /etc/zabbix \
2226 - /var/lib/zabbix \
2227 - /var/lib/zabbix/home \
2228 - /var/lib/zabbix/scripts \
2229 - /var/lib/zabbix/alertscripts \
2230 - /var/lib/zabbix/externalscripts \
2231 - /var/log/zabbix
2232 -
2233 - keepdir \
2234 - /etc/zabbix \
2235 - /var/lib/zabbix \
2236 - /var/lib/zabbix/home \
2237 - /var/lib/zabbix/scripts \
2238 - /var/lib/zabbix/alertscripts \
2239 - /var/lib/zabbix/externalscripts \
2240 - /var/log/zabbix
2241 -
2242 - if use server; then
2243 - insinto /etc/zabbix
2244 - doins "${FILESDIR}/3.0"/zabbix_server.conf
2245 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
2246 - dosbin src/zabbix_server/zabbix_server
2247 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
2248 - fperms 0640 /etc/zabbix/zabbix_server.conf
2249 - dodir /usr/share/zabbix
2250 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2251 - systemd_dounit "${FILESDIR}/zabbix-server.service"
2252 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
2253 - fi
2254 -
2255 - if use proxy; then
2256 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
2257 - dosbin src/zabbix_proxy/zabbix_proxy
2258 - insinto /etc/zabbix
2259 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
2260 - dodir /usr/share/zabbix
2261 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2262 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
2263 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
2264 - fi
2265 -
2266 - if use agent; then
2267 - insinto /etc/zabbix
2268 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
2269 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
2270 - dosbin src/zabbix_agent/zabbix_agentd
2271 - dobin \
2272 - src/zabbix_sender/zabbix_sender \
2273 - src/zabbix_get/zabbix_get
2274 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
2275 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
2276 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
2277 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
2278 - fi
2279 -
2280 - fowners zabbix:zabbix \
2281 - /etc/zabbix \
2282 - /var/lib/zabbix \
2283 - /var/lib/zabbix/home \
2284 - /var/lib/zabbix/scripts \
2285 - /var/lib/zabbix/alertscripts \
2286 - /var/lib/zabbix/externalscripts \
2287 - /var/log/zabbix
2288 - fperms 0750 \
2289 - /etc/zabbix \
2290 - /var/lib/zabbix \
2291 - /var/lib/zabbix/home \
2292 - /var/lib/zabbix/scripts \
2293 - /var/lib/zabbix/alertscripts \
2294 - /var/lib/zabbix/externalscripts \
2295 - /var/log/zabbix
2296 -
2297 - dodoc README INSTALL NEWS ChangeLog \
2298 - conf/zabbix_agentd.conf \
2299 - conf/zabbix_proxy.conf \
2300 - conf/zabbix_agentd/userparameter_examples.conf \
2301 - conf/zabbix_agentd/userparameter_mysql.conf \
2302 - conf/zabbix_server.conf
2303 -
2304 - if use frontend; then
2305 - webapp_src_preinst
2306 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
2307 - webapp_configfile \
2308 - "${MY_HTDOCSDIR}"/include/db.inc.php \
2309 - "${MY_HTDOCSDIR}"/include/config.inc.php
2310 - webapp_src_install
2311 - fi
2312 -
2313 - if use java; then
2314 - dodir \
2315 - /${ZABBIXJAVA_BASE} \
2316 - /${ZABBIXJAVA_BASE}/bin \
2317 - /${ZABBIXJAVA_BASE}/lib
2318 - keepdir /${ZABBIXJAVA_BASE}
2319 - exeinto /${ZABBIXJAVA_BASE}/bin
2320 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
2321 - exeinto /${ZABBIXJAVA_BASE}/lib
2322 - doexe \
2323 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
2324 - src/zabbix_java/lib/logback-console.xml \
2325 - src/zabbix_java/lib/logback-core-0.9.27.jar \
2326 - src/zabbix_java/lib/logback.xml \
2327 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
2328 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
2329 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
2330 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
2331 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
2332 - fi
2333 -}
2334 -
2335 -pkg_postinst() {
2336 - if use server || use proxy ; then
2337 - elog
2338 - elog "You may need to configure your database for Zabbix,"
2339 - elog "if you have not already done so. "
2340 - elog
2341 -
2342 - zabbix_homedir=$(egethome zabbix)
2343 - if [ -n "${zabbix_homedir}" ] && \
2344 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
2345 - ewarn
2346 - ewarn "The user 'zabbix' should have his homedir changed"
2347 - ewarn "to /var/lib/zabbix/home if you want to use"
2348 - ewarn "custom alert scripts."
2349 - ewarn
2350 - ewarn "A real homedir might be needed for configfiles"
2351 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
2352 - ewarn "using sendxmpp for Jabber alerts)."
2353 - ewarn
2354 - ewarn "To change the homedir use:"
2355 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
2356 - ewarn
2357 - fi
2358 - fi
2359 -
2360 - if use server; then
2361 - elog
2362 - elog "For distributed monitoring you have to run:"
2363 - elog
2364 - elog "zabbix_server -n <nodeid>"
2365 - elog
2366 - elog "This will convert database data for use with Node ID"
2367 - elog "and also adds a local node."
2368 - elog
2369 - fi
2370 -
2371 - elog "--"
2372 - elog
2373 - elog "You may need to add these lines to /etc/services:"
2374 - elog
2375 - elog "zabbix-agent 10050/tcp Zabbix Agent"
2376 - elog "zabbix-agent 10050/udp Zabbix Agent"
2377 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
2378 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
2379 - elog
2380 -
2381 - if use server || use proxy ; then
2382 - # check for fping
2383 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
2384 - case "${fping_perms}" in
2385 - 4[157][157][157])
2386 - ;;
2387 - *)
2388 - ewarn
2389 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
2390 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
2391 - ewarn "by everyone. Run the following command to fix it:"
2392 - ewarn
2393 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
2394 - ewarn
2395 - ewarn "Please be aware that this might impose a security risk,"
2396 - ewarn "depending on the code quality of fping."
2397 - ewarn
2398 - ;;
2399 - esac
2400 - fi
2401 -}
2402
2403 diff --git a/net-analyzer/zabbix/zabbix-3.4.7.ebuild b/net-analyzer/zabbix/zabbix-3.4.7.ebuild
2404 deleted file mode 100644
2405 index e06d6f85c70..00000000000
2406 --- a/net-analyzer/zabbix/zabbix-3.4.7.ebuild
2407 +++ /dev/null
2408 @@ -1,329 +0,0 @@
2409 -# Copyright 1999-2018 Gentoo Foundation
2410 -# Distributed under the terms of the GNU General Public License v2
2411 -
2412 -EAPI="6"
2413 -
2414 -# needed to make webapp-config dep optional
2415 -WEBAPP_OPTIONAL="yes"
2416 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
2417 -
2418 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
2419 -HOMEPAGE="https://www.zabbix.com/"
2420 -MY_P=${P/_/}
2421 -MY_PV=${PV/_/}
2422 -SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
2423 -LICENSE="GPL-2"
2424 -SLOT="0"
2425 -WEBAPP_MANUAL_SLOT="yes"
2426 -KEYWORDS="~amd64 ~x86"
2427 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
2428 -REQUIRED_USE="|| ( agent frontend proxy server )
2429 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2430 - server? ( ^^ ( mysql oracle postgres odbc ) )
2431 - static? ( !oracle !snmp )"
2432 -
2433 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
2434 - ldap? (
2435 - net-nds/openldap
2436 - =dev-libs/cyrus-sasl-2*
2437 - net-libs/gnutls
2438 - )
2439 - mysql? ( >=virtual/mysql-5.0.3 )
2440 - sqlite? ( >=dev-db/sqlite-3.3.5 )
2441 - postgres? ( dev-db/postgresql:* )
2442 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
2443 - xmpp? ( dev-libs/iksemel )
2444 - libxml2? ( dev-libs/libxml2 )
2445 - curl? ( net-misc/curl )
2446 - openipmi? ( sys-libs/openipmi )
2447 - ssh? ( net-libs/libssh2 )
2448 - java? ( virtual/jdk:* )
2449 - odbc? ( dev-db/unixODBC )
2450 - ssl? ( dev-libs/openssl:=[-bindist] )"
2451 -
2452 -RDEPEND="${COMMON_DEPEND}
2453 - proxy? ( net-analyzer/fping[suid] )
2454 - server? ( net-analyzer/fping[suid]
2455 - app-admin/webapp-config
2456 - dev-libs/libevent )
2457 - java? (
2458 - >=virtual/jre-1.4
2459 - dev-java/slf4j-api
2460 - )
2461 - frontend? (
2462 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
2463 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
2464 - mysql? ( dev-lang/php[mysqli] )
2465 - odbc? ( dev-lang/php[odbc] )
2466 - oracle? ( dev-lang/php[oci8-instant-client] )
2467 - postgres? ( dev-lang/php[postgres] )
2468 - sqlite? ( dev-lang/php[sqlite] )
2469 - media-libs/gd[png]
2470 - app-admin/webapp-config )"
2471 -DEPEND="${COMMON_DEPEND}
2472 - static? (
2473 - ldap? (
2474 - net-nds/openldap[static-libs]
2475 - =dev-libs/cyrus-sasl-2*[static-libs]
2476 - net-libs/gnutls[static-libs]
2477 - )
2478 - mysql? ( >=virtual/mysql-5.0.3 virtual/libmysqlclient[static-libs] )
2479 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
2480 - postgres? ( dev-db/postgresql:*[static-libs] )
2481 - libxml2? ( dev-libs/libxml2[static-libs] )
2482 - curl? ( net-misc/curl[static-libs] )
2483 - ssh? ( net-libs/libssh2[static-libs] )
2484 - odbc? ( dev-db/unixODBC[static-libs] )
2485 - )
2486 - virtual/pkgconfig"
2487 -
2488 -S=${WORKDIR}/${MY_P}
2489 -
2490 -ZABBIXJAVA_BASE="opt/zabbix_java"
2491 -
2492 -pkg_setup() {
2493 - if use oracle; then
2494 - if [ -z "${ORACLE_HOME}" ]; then
2495 - eerror
2496 - eerror "The environment variable ORACLE_HOME must be set"
2497 - eerror "and point to the correct location."
2498 - eerror "It looks like you don't have Oracle installed."
2499 - eerror
2500 - die "Environment variable ORACLE_HOME is not set"
2501 - fi
2502 - if has_version 'dev-db/oracle-instantclient-basic'; then
2503 - ewarn
2504 - ewarn "Please ensure you have a full install of the Oracle client."
2505 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
2506 - ewarn
2507 - fi
2508 - fi
2509 -
2510 - if use frontend; then
2511 - webapp_pkg_setup
2512 - fi
2513 -
2514 - enewgroup zabbix
2515 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
2516 -}
2517 -
2518 -java_prepare() {
2519 - cd "${S}/src/zabbix_java/lib"
2520 - rm -v *.jar || die
2521 -
2522 - java-pkg_jar-from slf4j-api
2523 -}
2524 -
2525 -src_prepare() {
2526 - default
2527 -}
2528 -
2529 -src_configure() {
2530 - econf \
2531 - $(use_enable server) \
2532 - $(use_enable proxy) \
2533 - $(use_enable agent) \
2534 - $(use_enable ipv6) \
2535 - $(use_enable static) \
2536 - $(use_enable java) \
2537 - $(use_with ldap) \
2538 - $(use_with snmp net-snmp) \
2539 - $(use_with mysql) \
2540 - $(use_with postgres postgresql) \
2541 - $(use_with oracle) \
2542 - $(use_with sqlite sqlite3) \
2543 - $(use_with xmpp jabber) \
2544 - $(use_with curl libcurl) \
2545 - $(use_with openipmi openipmi) \
2546 - $(use_with ssh ssh2) \
2547 - $(use_with libxml2) \
2548 - $(use_with odbc unixodbc) \
2549 - $(use_with ssl openssl) \
2550 - || die "econf failed"
2551 -}
2552 -
2553 -src_compile() {
2554 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
2555 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
2556 - fi
2557 -}
2558 -
2559 -src_install() {
2560 - dodir \
2561 - /etc/zabbix \
2562 - /var/lib/zabbix \
2563 - /var/lib/zabbix/home \
2564 - /var/lib/zabbix/scripts \
2565 - /var/lib/zabbix/alertscripts \
2566 - /var/lib/zabbix/externalscripts \
2567 - /var/log/zabbix
2568 -
2569 - keepdir \
2570 - /etc/zabbix \
2571 - /var/lib/zabbix \
2572 - /var/lib/zabbix/home \
2573 - /var/lib/zabbix/scripts \
2574 - /var/lib/zabbix/alertscripts \
2575 - /var/lib/zabbix/externalscripts \
2576 - /var/log/zabbix
2577 -
2578 - if use server; then
2579 - insinto /etc/zabbix
2580 - doins "${FILESDIR}/3.0"/zabbix_server.conf
2581 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
2582 - dosbin src/zabbix_server/zabbix_server
2583 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
2584 - fperms 0640 /etc/zabbix/zabbix_server.conf
2585 - dodir /usr/share/zabbix
2586 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2587 - systemd_dounit "${FILESDIR}/zabbix-server.service"
2588 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
2589 - fi
2590 -
2591 - if use proxy; then
2592 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
2593 - dosbin src/zabbix_proxy/zabbix_proxy
2594 - insinto /etc/zabbix
2595 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
2596 - dodir /usr/share/zabbix
2597 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2598 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
2599 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
2600 - fi
2601 -
2602 - if use agent; then
2603 - insinto /etc/zabbix
2604 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
2605 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
2606 - dosbin src/zabbix_agent/zabbix_agentd
2607 - dobin \
2608 - src/zabbix_sender/zabbix_sender \
2609 - src/zabbix_get/zabbix_get
2610 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
2611 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
2612 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
2613 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
2614 - fi
2615 -
2616 - fowners zabbix:zabbix \
2617 - /etc/zabbix \
2618 - /var/lib/zabbix \
2619 - /var/lib/zabbix/home \
2620 - /var/lib/zabbix/scripts \
2621 - /var/lib/zabbix/alertscripts \
2622 - /var/lib/zabbix/externalscripts \
2623 - /var/log/zabbix
2624 - fperms 0750 \
2625 - /etc/zabbix \
2626 - /var/lib/zabbix \
2627 - /var/lib/zabbix/home \
2628 - /var/lib/zabbix/scripts \
2629 - /var/lib/zabbix/alertscripts \
2630 - /var/lib/zabbix/externalscripts \
2631 - /var/log/zabbix
2632 -
2633 - dodoc README INSTALL NEWS ChangeLog \
2634 - conf/zabbix_agentd.conf \
2635 - conf/zabbix_proxy.conf \
2636 - conf/zabbix_agentd/userparameter_examples.conf \
2637 - conf/zabbix_agentd/userparameter_mysql.conf \
2638 - conf/zabbix_server.conf
2639 -
2640 - if use frontend; then
2641 - webapp_src_preinst
2642 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
2643 - webapp_configfile \
2644 - "${MY_HTDOCSDIR}"/include/db.inc.php \
2645 - "${MY_HTDOCSDIR}"/include/config.inc.php
2646 - webapp_src_install
2647 - fi
2648 -
2649 - if use java; then
2650 - dodir \
2651 - /${ZABBIXJAVA_BASE} \
2652 - /${ZABBIXJAVA_BASE}/bin \
2653 - /${ZABBIXJAVA_BASE}/lib
2654 - keepdir /${ZABBIXJAVA_BASE}
2655 - exeinto /${ZABBIXJAVA_BASE}/bin
2656 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
2657 - exeinto /${ZABBIXJAVA_BASE}/lib
2658 - doexe \
2659 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
2660 - src/zabbix_java/lib/logback-console.xml \
2661 - src/zabbix_java/lib/logback-core-0.9.27.jar \
2662 - src/zabbix_java/lib/logback.xml \
2663 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
2664 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
2665 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
2666 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
2667 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
2668 - fi
2669 -}
2670 -
2671 -pkg_postinst() {
2672 - if use server || use proxy ; then
2673 - elog
2674 - elog "You may need to configure your database for Zabbix,"
2675 - elog "if you have not already done so. "
2676 - elog
2677 -
2678 - zabbix_homedir=$(egethome zabbix)
2679 - if [ -n "${zabbix_homedir}" ] && \
2680 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
2681 - ewarn
2682 - ewarn "The user 'zabbix' should have his homedir changed"
2683 - ewarn "to /var/lib/zabbix/home if you want to use"
2684 - ewarn "custom alert scripts."
2685 - ewarn
2686 - ewarn "A real homedir might be needed for configfiles"
2687 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
2688 - ewarn "using sendxmpp for Jabber alerts)."
2689 - ewarn
2690 - ewarn "To change the homedir use:"
2691 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
2692 - ewarn
2693 - fi
2694 - fi
2695 -
2696 - if use server; then
2697 - elog
2698 - elog "For distributed monitoring you have to run:"
2699 - elog
2700 - elog "zabbix_server -n <nodeid>"
2701 - elog
2702 - elog "This will convert database data for use with Node ID"
2703 - elog "and also adds a local node."
2704 - elog
2705 - fi
2706 -
2707 - elog "--"
2708 - elog
2709 - elog "You may need to add these lines to /etc/services:"
2710 - elog
2711 - elog "zabbix-agent 10050/tcp Zabbix Agent"
2712 - elog "zabbix-agent 10050/udp Zabbix Agent"
2713 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
2714 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
2715 - elog
2716 -
2717 - if use server || use proxy ; then
2718 - # check for fping
2719 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
2720 - case "${fping_perms}" in
2721 - 4[157][157][157])
2722 - ;;
2723 - *)
2724 - ewarn
2725 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
2726 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
2727 - ewarn "by everyone. Run the following command to fix it:"
2728 - ewarn
2729 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
2730 - ewarn
2731 - ewarn "Please be aware that this might impose a security risk,"
2732 - ewarn "depending on the code quality of fping."
2733 - ewarn
2734 - ;;
2735 - esac
2736 - fi
2737 -}
2738
2739 diff --git a/net-analyzer/zabbix/zabbix-3.4.8.ebuild b/net-analyzer/zabbix/zabbix-3.4.8.ebuild
2740 deleted file mode 100644
2741 index e06d6f85c70..00000000000
2742 --- a/net-analyzer/zabbix/zabbix-3.4.8.ebuild
2743 +++ /dev/null
2744 @@ -1,329 +0,0 @@
2745 -# Copyright 1999-2018 Gentoo Foundation
2746 -# Distributed under the terms of the GNU General Public License v2
2747 -
2748 -EAPI="6"
2749 -
2750 -# needed to make webapp-config dep optional
2751 -WEBAPP_OPTIONAL="yes"
2752 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
2753 -
2754 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
2755 -HOMEPAGE="https://www.zabbix.com/"
2756 -MY_P=${P/_/}
2757 -MY_PV=${PV/_/}
2758 -SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
2759 -LICENSE="GPL-2"
2760 -SLOT="0"
2761 -WEBAPP_MANUAL_SLOT="yes"
2762 -KEYWORDS="~amd64 ~x86"
2763 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
2764 -REQUIRED_USE="|| ( agent frontend proxy server )
2765 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2766 - server? ( ^^ ( mysql oracle postgres odbc ) )
2767 - static? ( !oracle !snmp )"
2768 -
2769 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
2770 - ldap? (
2771 - net-nds/openldap
2772 - =dev-libs/cyrus-sasl-2*
2773 - net-libs/gnutls
2774 - )
2775 - mysql? ( >=virtual/mysql-5.0.3 )
2776 - sqlite? ( >=dev-db/sqlite-3.3.5 )
2777 - postgres? ( dev-db/postgresql:* )
2778 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
2779 - xmpp? ( dev-libs/iksemel )
2780 - libxml2? ( dev-libs/libxml2 )
2781 - curl? ( net-misc/curl )
2782 - openipmi? ( sys-libs/openipmi )
2783 - ssh? ( net-libs/libssh2 )
2784 - java? ( virtual/jdk:* )
2785 - odbc? ( dev-db/unixODBC )
2786 - ssl? ( dev-libs/openssl:=[-bindist] )"
2787 -
2788 -RDEPEND="${COMMON_DEPEND}
2789 - proxy? ( net-analyzer/fping[suid] )
2790 - server? ( net-analyzer/fping[suid]
2791 - app-admin/webapp-config
2792 - dev-libs/libevent )
2793 - java? (
2794 - >=virtual/jre-1.4
2795 - dev-java/slf4j-api
2796 - )
2797 - frontend? (
2798 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
2799 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
2800 - mysql? ( dev-lang/php[mysqli] )
2801 - odbc? ( dev-lang/php[odbc] )
2802 - oracle? ( dev-lang/php[oci8-instant-client] )
2803 - postgres? ( dev-lang/php[postgres] )
2804 - sqlite? ( dev-lang/php[sqlite] )
2805 - media-libs/gd[png]
2806 - app-admin/webapp-config )"
2807 -DEPEND="${COMMON_DEPEND}
2808 - static? (
2809 - ldap? (
2810 - net-nds/openldap[static-libs]
2811 - =dev-libs/cyrus-sasl-2*[static-libs]
2812 - net-libs/gnutls[static-libs]
2813 - )
2814 - mysql? ( >=virtual/mysql-5.0.3 virtual/libmysqlclient[static-libs] )
2815 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
2816 - postgres? ( dev-db/postgresql:*[static-libs] )
2817 - libxml2? ( dev-libs/libxml2[static-libs] )
2818 - curl? ( net-misc/curl[static-libs] )
2819 - ssh? ( net-libs/libssh2[static-libs] )
2820 - odbc? ( dev-db/unixODBC[static-libs] )
2821 - )
2822 - virtual/pkgconfig"
2823 -
2824 -S=${WORKDIR}/${MY_P}
2825 -
2826 -ZABBIXJAVA_BASE="opt/zabbix_java"
2827 -
2828 -pkg_setup() {
2829 - if use oracle; then
2830 - if [ -z "${ORACLE_HOME}" ]; then
2831 - eerror
2832 - eerror "The environment variable ORACLE_HOME must be set"
2833 - eerror "and point to the correct location."
2834 - eerror "It looks like you don't have Oracle installed."
2835 - eerror
2836 - die "Environment variable ORACLE_HOME is not set"
2837 - fi
2838 - if has_version 'dev-db/oracle-instantclient-basic'; then
2839 - ewarn
2840 - ewarn "Please ensure you have a full install of the Oracle client."
2841 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
2842 - ewarn
2843 - fi
2844 - fi
2845 -
2846 - if use frontend; then
2847 - webapp_pkg_setup
2848 - fi
2849 -
2850 - enewgroup zabbix
2851 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
2852 -}
2853 -
2854 -java_prepare() {
2855 - cd "${S}/src/zabbix_java/lib"
2856 - rm -v *.jar || die
2857 -
2858 - java-pkg_jar-from slf4j-api
2859 -}
2860 -
2861 -src_prepare() {
2862 - default
2863 -}
2864 -
2865 -src_configure() {
2866 - econf \
2867 - $(use_enable server) \
2868 - $(use_enable proxy) \
2869 - $(use_enable agent) \
2870 - $(use_enable ipv6) \
2871 - $(use_enable static) \
2872 - $(use_enable java) \
2873 - $(use_with ldap) \
2874 - $(use_with snmp net-snmp) \
2875 - $(use_with mysql) \
2876 - $(use_with postgres postgresql) \
2877 - $(use_with oracle) \
2878 - $(use_with sqlite sqlite3) \
2879 - $(use_with xmpp jabber) \
2880 - $(use_with curl libcurl) \
2881 - $(use_with openipmi openipmi) \
2882 - $(use_with ssh ssh2) \
2883 - $(use_with libxml2) \
2884 - $(use_with odbc unixodbc) \
2885 - $(use_with ssl openssl) \
2886 - || die "econf failed"
2887 -}
2888 -
2889 -src_compile() {
2890 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
2891 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
2892 - fi
2893 -}
2894 -
2895 -src_install() {
2896 - dodir \
2897 - /etc/zabbix \
2898 - /var/lib/zabbix \
2899 - /var/lib/zabbix/home \
2900 - /var/lib/zabbix/scripts \
2901 - /var/lib/zabbix/alertscripts \
2902 - /var/lib/zabbix/externalscripts \
2903 - /var/log/zabbix
2904 -
2905 - keepdir \
2906 - /etc/zabbix \
2907 - /var/lib/zabbix \
2908 - /var/lib/zabbix/home \
2909 - /var/lib/zabbix/scripts \
2910 - /var/lib/zabbix/alertscripts \
2911 - /var/lib/zabbix/externalscripts \
2912 - /var/log/zabbix
2913 -
2914 - if use server; then
2915 - insinto /etc/zabbix
2916 - doins "${FILESDIR}/3.0"/zabbix_server.conf
2917 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
2918 - dosbin src/zabbix_server/zabbix_server
2919 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
2920 - fperms 0640 /etc/zabbix/zabbix_server.conf
2921 - dodir /usr/share/zabbix
2922 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2923 - systemd_dounit "${FILESDIR}/zabbix-server.service"
2924 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
2925 - fi
2926 -
2927 - if use proxy; then
2928 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
2929 - dosbin src/zabbix_proxy/zabbix_proxy
2930 - insinto /etc/zabbix
2931 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
2932 - dodir /usr/share/zabbix
2933 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2934 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
2935 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
2936 - fi
2937 -
2938 - if use agent; then
2939 - insinto /etc/zabbix
2940 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
2941 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
2942 - dosbin src/zabbix_agent/zabbix_agentd
2943 - dobin \
2944 - src/zabbix_sender/zabbix_sender \
2945 - src/zabbix_get/zabbix_get
2946 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
2947 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
2948 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
2949 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
2950 - fi
2951 -
2952 - fowners zabbix:zabbix \
2953 - /etc/zabbix \
2954 - /var/lib/zabbix \
2955 - /var/lib/zabbix/home \
2956 - /var/lib/zabbix/scripts \
2957 - /var/lib/zabbix/alertscripts \
2958 - /var/lib/zabbix/externalscripts \
2959 - /var/log/zabbix
2960 - fperms 0750 \
2961 - /etc/zabbix \
2962 - /var/lib/zabbix \
2963 - /var/lib/zabbix/home \
2964 - /var/lib/zabbix/scripts \
2965 - /var/lib/zabbix/alertscripts \
2966 - /var/lib/zabbix/externalscripts \
2967 - /var/log/zabbix
2968 -
2969 - dodoc README INSTALL NEWS ChangeLog \
2970 - conf/zabbix_agentd.conf \
2971 - conf/zabbix_proxy.conf \
2972 - conf/zabbix_agentd/userparameter_examples.conf \
2973 - conf/zabbix_agentd/userparameter_mysql.conf \
2974 - conf/zabbix_server.conf
2975 -
2976 - if use frontend; then
2977 - webapp_src_preinst
2978 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
2979 - webapp_configfile \
2980 - "${MY_HTDOCSDIR}"/include/db.inc.php \
2981 - "${MY_HTDOCSDIR}"/include/config.inc.php
2982 - webapp_src_install
2983 - fi
2984 -
2985 - if use java; then
2986 - dodir \
2987 - /${ZABBIXJAVA_BASE} \
2988 - /${ZABBIXJAVA_BASE}/bin \
2989 - /${ZABBIXJAVA_BASE}/lib
2990 - keepdir /${ZABBIXJAVA_BASE}
2991 - exeinto /${ZABBIXJAVA_BASE}/bin
2992 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
2993 - exeinto /${ZABBIXJAVA_BASE}/lib
2994 - doexe \
2995 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
2996 - src/zabbix_java/lib/logback-console.xml \
2997 - src/zabbix_java/lib/logback-core-0.9.27.jar \
2998 - src/zabbix_java/lib/logback.xml \
2999 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
3000 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
3001 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
3002 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
3003 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
3004 - fi
3005 -}
3006 -
3007 -pkg_postinst() {
3008 - if use server || use proxy ; then
3009 - elog
3010 - elog "You may need to configure your database for Zabbix,"
3011 - elog "if you have not already done so. "
3012 - elog
3013 -
3014 - zabbix_homedir=$(egethome zabbix)
3015 - if [ -n "${zabbix_homedir}" ] && \
3016 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
3017 - ewarn
3018 - ewarn "The user 'zabbix' should have his homedir changed"
3019 - ewarn "to /var/lib/zabbix/home if you want to use"
3020 - ewarn "custom alert scripts."
3021 - ewarn
3022 - ewarn "A real homedir might be needed for configfiles"
3023 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
3024 - ewarn "using sendxmpp for Jabber alerts)."
3025 - ewarn
3026 - ewarn "To change the homedir use:"
3027 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
3028 - ewarn
3029 - fi
3030 - fi
3031 -
3032 - if use server; then
3033 - elog
3034 - elog "For distributed monitoring you have to run:"
3035 - elog
3036 - elog "zabbix_server -n <nodeid>"
3037 - elog
3038 - elog "This will convert database data for use with Node ID"
3039 - elog "and also adds a local node."
3040 - elog
3041 - fi
3042 -
3043 - elog "--"
3044 - elog
3045 - elog "You may need to add these lines to /etc/services:"
3046 - elog
3047 - elog "zabbix-agent 10050/tcp Zabbix Agent"
3048 - elog "zabbix-agent 10050/udp Zabbix Agent"
3049 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
3050 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
3051 - elog
3052 -
3053 - if use server || use proxy ; then
3054 - # check for fping
3055 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
3056 - case "${fping_perms}" in
3057 - 4[157][157][157])
3058 - ;;
3059 - *)
3060 - ewarn
3061 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
3062 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
3063 - ewarn "by everyone. Run the following command to fix it:"
3064 - ewarn
3065 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
3066 - ewarn
3067 - ewarn "Please be aware that this might impose a security risk,"
3068 - ewarn "depending on the code quality of fping."
3069 - ewarn
3070 - ;;
3071 - esac
3072 - fi
3073 -}
3074
3075 diff --git a/net-analyzer/zabbix/zabbix-3.4.9.ebuild b/net-analyzer/zabbix/zabbix-3.4.9.ebuild
3076 deleted file mode 100644
3077 index 94b8bc3cdff..00000000000
3078 --- a/net-analyzer/zabbix/zabbix-3.4.9.ebuild
3079 +++ /dev/null
3080 @@ -1,329 +0,0 @@
3081 -# Copyright 1999-2018 Gentoo Foundation
3082 -# Distributed under the terms of the GNU General Public License v2
3083 -
3084 -EAPI="6"
3085 -
3086 -# needed to make webapp-config dep optional
3087 -WEBAPP_OPTIONAL="yes"
3088 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
3089 -
3090 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
3091 -HOMEPAGE="https://www.zabbix.com/"
3092 -MY_P=${P/_/}
3093 -MY_PV=${PV/_/}
3094 -SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
3095 -LICENSE="GPL-2"
3096 -SLOT="0"
3097 -WEBAPP_MANUAL_SLOT="yes"
3098 -KEYWORDS="~amd64 ~x86"
3099 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static"
3100 -REQUIRED_USE="|| ( agent frontend proxy server )
3101 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
3102 - server? ( ^^ ( mysql oracle postgres odbc ) )
3103 - static? ( !oracle !snmp )"
3104 -
3105 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
3106 - ldap? (
3107 - net-nds/openldap
3108 - =dev-libs/cyrus-sasl-2*
3109 - net-libs/gnutls
3110 - )
3111 - mysql? ( >=virtual/mysql-5.0.3 )
3112 - sqlite? ( >=dev-db/sqlite-3.3.5 )
3113 - postgres? ( dev-db/postgresql:* )
3114 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
3115 - xmpp? ( dev-libs/iksemel )
3116 - libxml2? ( dev-libs/libxml2 )
3117 - curl? ( net-misc/curl )
3118 - openipmi? ( sys-libs/openipmi )
3119 - ssh? ( net-libs/libssh2 )
3120 - java? ( virtual/jdk:* )
3121 - odbc? ( dev-db/unixODBC )
3122 - ssl? ( dev-libs/openssl:=[-bindist] )"
3123 -
3124 -RDEPEND="${COMMON_DEPEND}
3125 - proxy? ( net-analyzer/fping[suid] )
3126 - server? ( net-analyzer/fping[suid]
3127 - app-admin/webapp-config
3128 - dev-libs/libevent )
3129 - java? (
3130 - >=virtual/jre-1.4
3131 - dev-java/slf4j-api
3132 - )
3133 - frontend? (
3134 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
3135 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
3136 - mysql? ( dev-lang/php[mysqli] )
3137 - odbc? ( dev-lang/php[odbc] )
3138 - oracle? ( dev-lang/php[oci8-instant-client] )
3139 - postgres? ( dev-lang/php[postgres] )
3140 - sqlite? ( dev-lang/php[sqlite] )
3141 - media-libs/gd[png]
3142 - app-admin/webapp-config )"
3143 -DEPEND="${COMMON_DEPEND}
3144 - static? (
3145 - ldap? (
3146 - net-nds/openldap[static-libs]
3147 - =dev-libs/cyrus-sasl-2*[static-libs]
3148 - net-libs/gnutls[static-libs]
3149 - )
3150 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
3151 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
3152 - postgres? ( dev-db/postgresql:*[static-libs] )
3153 - libxml2? ( dev-libs/libxml2[static-libs] )
3154 - curl? ( net-misc/curl[static-libs] )
3155 - ssh? ( net-libs/libssh2[static-libs] )
3156 - odbc? ( dev-db/unixODBC[static-libs] )
3157 - )
3158 - virtual/pkgconfig"
3159 -
3160 -S=${WORKDIR}/${MY_P}
3161 -
3162 -ZABBIXJAVA_BASE="opt/zabbix_java"
3163 -
3164 -pkg_setup() {
3165 - if use oracle; then
3166 - if [ -z "${ORACLE_HOME}" ]; then
3167 - eerror
3168 - eerror "The environment variable ORACLE_HOME must be set"
3169 - eerror "and point to the correct location."
3170 - eerror "It looks like you don't have Oracle installed."
3171 - eerror
3172 - die "Environment variable ORACLE_HOME is not set"
3173 - fi
3174 - if has_version 'dev-db/oracle-instantclient-basic'; then
3175 - ewarn
3176 - ewarn "Please ensure you have a full install of the Oracle client."
3177 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
3178 - ewarn
3179 - fi
3180 - fi
3181 -
3182 - if use frontend; then
3183 - webapp_pkg_setup
3184 - fi
3185 -
3186 - enewgroup zabbix
3187 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
3188 -}
3189 -
3190 -java_prepare() {
3191 - cd "${S}/src/zabbix_java/lib"
3192 - rm -v *.jar || die
3193 -
3194 - java-pkg_jar-from slf4j-api
3195 -}
3196 -
3197 -src_prepare() {
3198 - default
3199 -}
3200 -
3201 -src_configure() {
3202 - econf \
3203 - $(use_enable server) \
3204 - $(use_enable proxy) \
3205 - $(use_enable agent) \
3206 - $(use_enable ipv6) \
3207 - $(use_enable static) \
3208 - $(use_enable java) \
3209 - $(use_with ldap) \
3210 - $(use_with snmp net-snmp) \
3211 - $(use_with mysql) \
3212 - $(use_with postgres postgresql) \
3213 - $(use_with oracle) \
3214 - $(use_with sqlite sqlite3) \
3215 - $(use_with xmpp jabber) \
3216 - $(use_with curl libcurl) \
3217 - $(use_with openipmi openipmi) \
3218 - $(use_with ssh ssh2) \
3219 - $(use_with libxml2) \
3220 - $(use_with odbc unixodbc) \
3221 - $(use_with ssl openssl) \
3222 - || die "econf failed"
3223 -}
3224 -
3225 -src_compile() {
3226 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
3227 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
3228 - fi
3229 -}
3230 -
3231 -src_install() {
3232 - dodir \
3233 - /etc/zabbix \
3234 - /var/lib/zabbix \
3235 - /var/lib/zabbix/home \
3236 - /var/lib/zabbix/scripts \
3237 - /var/lib/zabbix/alertscripts \
3238 - /var/lib/zabbix/externalscripts \
3239 - /var/log/zabbix
3240 -
3241 - keepdir \
3242 - /etc/zabbix \
3243 - /var/lib/zabbix \
3244 - /var/lib/zabbix/home \
3245 - /var/lib/zabbix/scripts \
3246 - /var/lib/zabbix/alertscripts \
3247 - /var/lib/zabbix/externalscripts \
3248 - /var/log/zabbix
3249 -
3250 - if use server; then
3251 - insinto /etc/zabbix
3252 - doins "${FILESDIR}/3.0"/zabbix_server.conf
3253 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
3254 - dosbin src/zabbix_server/zabbix_server
3255 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
3256 - fperms 0640 /etc/zabbix/zabbix_server.conf
3257 - dodir /usr/share/zabbix
3258 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
3259 - systemd_dounit "${FILESDIR}/zabbix-server.service"
3260 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
3261 - fi
3262 -
3263 - if use proxy; then
3264 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
3265 - dosbin src/zabbix_proxy/zabbix_proxy
3266 - insinto /etc/zabbix
3267 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
3268 - dodir /usr/share/zabbix
3269 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
3270 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
3271 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
3272 - fi
3273 -
3274 - if use agent; then
3275 - insinto /etc/zabbix
3276 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
3277 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
3278 - dosbin src/zabbix_agent/zabbix_agentd
3279 - dobin \
3280 - src/zabbix_sender/zabbix_sender \
3281 - src/zabbix_get/zabbix_get
3282 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
3283 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
3284 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
3285 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
3286 - fi
3287 -
3288 - fowners zabbix:zabbix \
3289 - /etc/zabbix \
3290 - /var/lib/zabbix \
3291 - /var/lib/zabbix/home \
3292 - /var/lib/zabbix/scripts \
3293 - /var/lib/zabbix/alertscripts \
3294 - /var/lib/zabbix/externalscripts \
3295 - /var/log/zabbix
3296 - fperms 0750 \
3297 - /etc/zabbix \
3298 - /var/lib/zabbix \
3299 - /var/lib/zabbix/home \
3300 - /var/lib/zabbix/scripts \
3301 - /var/lib/zabbix/alertscripts \
3302 - /var/lib/zabbix/externalscripts \
3303 - /var/log/zabbix
3304 -
3305 - dodoc README INSTALL NEWS ChangeLog \
3306 - conf/zabbix_agentd.conf \
3307 - conf/zabbix_proxy.conf \
3308 - conf/zabbix_agentd/userparameter_examples.conf \
3309 - conf/zabbix_agentd/userparameter_mysql.conf \
3310 - conf/zabbix_server.conf
3311 -
3312 - if use frontend; then
3313 - webapp_src_preinst
3314 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
3315 - webapp_configfile \
3316 - "${MY_HTDOCSDIR}"/include/db.inc.php \
3317 - "${MY_HTDOCSDIR}"/include/config.inc.php
3318 - webapp_src_install
3319 - fi
3320 -
3321 - if use java; then
3322 - dodir \
3323 - /${ZABBIXJAVA_BASE} \
3324 - /${ZABBIXJAVA_BASE}/bin \
3325 - /${ZABBIXJAVA_BASE}/lib
3326 - keepdir /${ZABBIXJAVA_BASE}
3327 - exeinto /${ZABBIXJAVA_BASE}/bin
3328 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
3329 - exeinto /${ZABBIXJAVA_BASE}/lib
3330 - doexe \
3331 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
3332 - src/zabbix_java/lib/logback-console.xml \
3333 - src/zabbix_java/lib/logback-core-0.9.27.jar \
3334 - src/zabbix_java/lib/logback.xml \
3335 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
3336 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
3337 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
3338 - doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy
3339 - doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy
3340 - fi
3341 -}
3342 -
3343 -pkg_postinst() {
3344 - if use server || use proxy ; then
3345 - elog
3346 - elog "You may need to configure your database for Zabbix,"
3347 - elog "if you have not already done so. "
3348 - elog
3349 -
3350 - zabbix_homedir=$(egethome zabbix)
3351 - if [ -n "${zabbix_homedir}" ] && \
3352 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
3353 - ewarn
3354 - ewarn "The user 'zabbix' should have his homedir changed"
3355 - ewarn "to /var/lib/zabbix/home if you want to use"
3356 - ewarn "custom alert scripts."
3357 - ewarn
3358 - ewarn "A real homedir might be needed for configfiles"
3359 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
3360 - ewarn "using sendxmpp for Jabber alerts)."
3361 - ewarn
3362 - ewarn "To change the homedir use:"
3363 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
3364 - ewarn
3365 - fi
3366 - fi
3367 -
3368 - if use server; then
3369 - elog
3370 - elog "For distributed monitoring you have to run:"
3371 - elog
3372 - elog "zabbix_server -n <nodeid>"
3373 - elog
3374 - elog "This will convert database data for use with Node ID"
3375 - elog "and also adds a local node."
3376 - elog
3377 - fi
3378 -
3379 - elog "--"
3380 - elog
3381 - elog "You may need to add these lines to /etc/services:"
3382 - elog
3383 - elog "zabbix-agent 10050/tcp Zabbix Agent"
3384 - elog "zabbix-agent 10050/udp Zabbix Agent"
3385 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
3386 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
3387 - elog
3388 -
3389 - if use server || use proxy ; then
3390 - # check for fping
3391 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
3392 - case "${fping_perms}" in
3393 - 4[157][157][157])
3394 - ;;
3395 - *)
3396 - ewarn
3397 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
3398 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
3399 - ewarn "by everyone. Run the following command to fix it:"
3400 - ewarn
3401 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
3402 - ewarn
3403 - ewarn "Please be aware that this might impose a security risk,"
3404 - ewarn "depending on the code quality of fping."
3405 - ewarn
3406 - ;;
3407 - esac
3408 - fi
3409 -}