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