Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/zabbix/
Date: Wed, 30 Nov 2016 08:16:19
Message-Id: 1480493753.e1a18ca5c204792aab0a70ac8303b779cae8a3db.bman@gentoo
1 commit: e1a18ca5c204792aab0a70ac8303b779cae8a3db
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 30 08:15:53 2016 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 08:15:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1a18ca5
7
8 net-analyzer/zabbix: cleanup vulnerable versions wrt security bug #591372
9
10 net-analyzer/zabbix/Manifest | 7 -
11 net-analyzer/zabbix/zabbix-2.2.11.ebuild | 362 ----------------------------
12 net-analyzer/zabbix/zabbix-2.2.13.ebuild | 342 ---------------------------
13 net-analyzer/zabbix/zabbix-2.2.14.ebuild | 342 ---------------------------
14 net-analyzer/zabbix/zabbix-2.2.5.ebuild | 364 -----------------------------
15 net-analyzer/zabbix/zabbix-2.2.9.ebuild | 362 ----------------------------
16 net-analyzer/zabbix/zabbix-3.0.3-r1.ebuild | 332 --------------------------
17 net-analyzer/zabbix/zabbix-3.0.4.ebuild | 332 --------------------------
18 8 files changed, 2443 deletions(-)
19
20 diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest
21 index 3068663..7a2c980 100644
22 --- a/net-analyzer/zabbix/Manifest
23 +++ b/net-analyzer/zabbix/Manifest
24 @@ -1,11 +1,4 @@
25 -DIST zabbix-2.2.11.tar.gz 15147477 SHA256 9ad7bd71985dc316ee2a614bba2b1dd108d2a930c0a5cc5a8f75eb45a7a7e1ba SHA512 7447d3207bf67fdda67c1e56636ae114df7776a2ba4df4f9f260eef6a65e37d770ed73d6edd6438a9a783da1fc9bfede2d98acdc51fa6c7a130565efe8ae5b2d WHIRLPOOL e2b1f2ed019651d127a40f656117c9acccc8dcb1b9a8c0f9a773368de6d430d0716b5c50c42358992c9c2567c59cf0ec02bffea123ee4ac873be262aef0f2f6f
26 -DIST zabbix-2.2.13.tar.gz 15478414 SHA256 0a272ad4de22368f9a77864e0a9fa566f76c872814e81845e16d4d24cd5452f4 SHA512 dc9a20069376de2221577f2833f003dd243f09e583a673038787dab413c0affa1a85abdef567d7ea015c2ff88d97481570cb3732f5d72f45d4e7f509654f93eb WHIRLPOOL 3f7385068fa65b693bfb280686242512dcc1a9a4d3df9af56319c17f1075c9ebf4dfa54aab18b6b5e645055fd8efcfd847fca3e0fe2e6041acc5f1342d0538b0
27 -DIST zabbix-2.2.14.tar.gz 15481807 SHA256 76fa3f45168946b9fb4a22840b4b06054f1a09da93c910969eacd04217fa21c8 SHA512 98450ba663e1737fcbacdab6ed8d13f57634913b37fae50c091325c675fbc0739be55d7e7e5278bb8af7aac748deb81f2bc39b02ffece0553b256bd8dd8d7d18 WHIRLPOOL 543f3574f7357a0ea14bf247e1c23e887582253b110e739b2599d30f5b45f0f071978952fb3332e573a01e68f0f91d7d6b737af3c168d2258b28df7617298b5a
28 DIST zabbix-2.2.15.tar.gz 15487398 SHA256 1dc370a04bc42bf21cdedc2dd53de051ac4a61d20ae83cd7c6e1cdd9c574f653 SHA512 4affb310f81ccba71ebb6fade953592ca88ec2bb57767cab53329e771d7e541094f29f4709da27e0236b2d6511618e5342ee2d6bf28ca2b4438c11f1060a892b WHIRLPOOL fcba3f0282c4ed258343a3061bbc1401080e1d44ad8f1837f5f91fa5fdffcb9b10c8f71de6326095fb5f321611d47bafda15b73762a0a861fc1a9c5d15d68f5c
29 -DIST zabbix-2.2.5.tar.gz 14960556 SHA256 1e33f54d4accc5b6a0dccf4a308d27dc82de245567dffef823f9add9fa7d81b5 SHA512 0e229a2502f1332775db2107556b5e62267bcdf05dc483957960f563877ed970aef7ed465123576849413305e54309d83eeb75dd1f522c93cf09cd4b75265514 WHIRLPOOL 0a6b81f4e23ad8c8247b5356aa31bc4dfbd364642a647b9dff3216a0141cd2287b75731f396d26083aa412669a7efdb6f24fcb8592b4773c4a21d02b2f369681
30 -DIST zabbix-2.2.9.tar.gz 15032149 SHA256 7c8c319b34beb978e4b7be8c93e084485f93fe028dd9dbc6b674a7498d324439 SHA512 8400f875546140a7393ac6598a02e95645ac63ece1d958e7752737d0c0fff25e70923f2dd1ea29a9e73640b159da8a5286d9b1c31fbb3f090acbd07606c6113d WHIRLPOOL cb68a2c1467c83e8c2e2662af3995d7d90a00408009df2d9fe0b0d0d81191521b3f6e1624240150f68419252324e0d6e5653a3f19ed3b88adeb2719277172fb6
31 -DIST zabbix-3.0.3.tar.gz 15407273 SHA256 1a42ce537580913268f1ece673208b49ca241fb067f8ea1ad497ce07455c10e0 SHA512 b59fd6e34e2636d1ad69993e33abe3694ba58f99c0372fc421c5620ade3ff497b23a022fa273691b968dabe0b9776fb0db6f6bf85e1d60d7dd5d61240bc60419 WHIRLPOOL 556e432a5c5bbf31ff2efce0d2b64c9b0ca959dfbba27aa2ec774c4880b38d8c8f82f968bc99c22cef15ad00b3a45b5dd89de6f2da4a4b17ce9db3f28a4e138f
32 -DIST zabbix-3.0.4.tar.gz 15403727 SHA256 9fa47d97843b6ca9f550d706b40ee6b35b76c5165ff32ff11ef0474f161e7700 SHA512 e11bad801e4b978ac072a6701b202395d9566c0f319857dc997aaf978eb03c14e3d0d9fee5542eba27aec9881a0360f14f97864ffe4ac9ea58844d05c1a2425a WHIRLPOOL 58118c6606ec4e97eed022b307187b009cc37277b01e14f70626d2bef73ce5b71cc8a74f93f186f629caa721ba4ab2491e91bdcfae784db31d3ea1d5d751ad4c
33 DIST zabbix-3.0.5.tar.gz 15412400 SHA256 641e608765e34edfc04ec005f7c501430105b7c3ec9210bbf52b73fda530c1a1 SHA512 ffee20f913ac3f3efaf8678940815004190f991ad61f3412d01f6d7685a95b12d313b44529d351d567c9cbd06974d0c17b2edf4ba23391b07919fa69a031b6bd WHIRLPOOL fe86deb3eb1db61916f9c85adc83cf55c857cace56de4a4a85e102cd2e557198033f58ddd5c3f5e9377ede8161003ed5f1e04aa2d9a206384381077adfffbad4
34 DIST zabbix-3.2.0.tar.gz 15806267 SHA256 036d1042359cb62e414d7fcf58bb09bcbf1eabfd7bc8d5dd60d0f3095765cd5c SHA512 e6a0957c4b14f4662996277f2051773e732dcc658998d671a2f4189180c91ccc6b72ba84a2a8e70affe17fb811405fcb5eab59f036de414c1b8ee2a654d21ce4 WHIRLPOOL 4e76bf68c6da0f8c93cbc65580ccca16dab4d96eddd86b30a8772e3726ce3852369e7af6cac71ea8da46900e507b24253dc0cf3f89d5d9e73bb7514b3ce38531
35 DIST zabbix-3.2.1.tar.gz 15815404 SHA256 8926b96ef05cba041d05329130f40e8e1311ad201e58c75d22005eda4075c091 SHA512 85d43360c1cf4b5507d92a483a5e2a4283bea53e9b85f08c29ff36908ba43695a3ac89a69ca83f9f79f2a8336b96e1a1e9be6dc2f862e449006f8892e3c01961 WHIRLPOOL ec6c0054292400c8f6d9daf6eb97881a8d5b78d0276d8468a8dffbffc07535fc1bf9279ef3fb6e6e8215dde137b2595d5694bd7905bc3feb767bacd94becd140
36
37 diff --git a/net-analyzer/zabbix/zabbix-2.2.11.ebuild b/net-analyzer/zabbix/zabbix-2.2.11.ebuild
38 deleted file mode 100644
39 index 28fab63..00000000
40 --- a/net-analyzer/zabbix/zabbix-2.2.11.ebuild
41 +++ /dev/null
42 @@ -1,362 +0,0 @@
43 -# Copyright 1999-2016 Gentoo Foundation
44 -# Distributed under the terms of the GNU General Public License v2
45 -# $Id$
46 -
47 -EAPI="5"
48 -
49 -# needed to make webapp-config dep optional
50 -WEBAPP_OPTIONAL="yes"
51 -inherit flag-o-matic webapp autotools java-pkg-opt-2 user systemd toolchain-funcs
52 -
53 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
54 -HOMEPAGE="http://www.zabbix.com/"
55 -MY_P=${P/_/}
56 -MY_PV=${PV/_/}
57 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
58 -LICENSE="GPL-2"
59 -SLOT="0"
60 -WEBAPP_MANUAL_SLOT="yes"
61 -KEYWORDS="~amd64 ~x86"
62 -IUSE="agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
63 -
64 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
65 - ldap? (
66 - net-nds/openldap
67 - =dev-libs/cyrus-sasl-2*
68 - net-libs/gnutls
69 - )
70 - mysql? ( >=virtual/mysql-5.0.3 )
71 - sqlite? ( >=dev-db/sqlite-3.3.5 )
72 - postgres? ( dev-db/postgresql:* )
73 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
74 - xmpp? ( dev-libs/iksemel )
75 - libxml2? ( dev-libs/libxml2 )
76 - curl? ( net-misc/curl )
77 - openipmi? ( sys-libs/openipmi )
78 - ssh? ( net-libs/libssh2 )
79 - java? ( virtual/jdk:* )
80 - odbc? ( dev-db/unixODBC )"
81 -
82 -RDEPEND="${COMMON_DEPEND}
83 - proxy? ( <=net-analyzer/fping-2.9 )
84 - server? ( <=net-analyzer/fping-2.9
85 - app-admin/webapp-config )
86 - java? (
87 - >=virtual/jre-1.4
88 - dev-java/slf4j-api
89 - )
90 - frontend? (
91 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
92 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
93 - media-libs/gd[png]
94 - app-admin/webapp-config )"
95 -DEPEND="${COMMON_DEPEND}
96 - virtual/pkgconfig"
97 -
98 -S=${WORKDIR}/${MY_P}
99 -
100 -ZABBIXJAVA_BASE="opt/zabbix_java"
101 -
102 -java_prepare() {
103 - cd "${S}/src/zabbix_java/lib"
104 - rm -v *.jar || die
105 -
106 - java-pkg_jar-from slf4j-api
107 -}
108 -
109 -src_prepare() {
110 - eautoreconf
111 -}
112 -
113 -pkg_setup() {
114 - if use server || use proxy ; then
115 - local dbnum dbtypes="mysql oracle postgres sqlite" dbtype
116 - declare -i dbnum=0
117 - for dbtype in ${dbtypes}; do
118 - use ${dbtype} && let dbnum++
119 - done
120 - if [ ${dbnum} -gt 1 ]; then
121 - eerror
122 - eerror "You can't use more than one database type in Zabbix."
123 - eerror "Select exactly one database type out of these: ${dbtypes}"
124 - eerror
125 - die "Multiple database types selected."
126 - elif [ ${dbnum} -lt 1 ]; then
127 - eerror
128 - eerror "Select exactly one database type out of these: ${dbtypes}"
129 - eerror
130 - die "No database type selected."
131 - fi
132 - if use oracle; then
133 - if [ -z "${ORACLE_HOME}" ]; then
134 - eerror
135 - eerror "The environment variable ORACLE_HOME must be set"
136 - eerror "and point to the correct location."
137 - eerror "It looks like you don't have Oracle installed."
138 - eerror
139 - die "Environment variable ORACLE_HOME is not set"
140 - fi
141 - if has_version 'dev-db/oracle-instantclient-basic'; then
142 - ewarn
143 - ewarn "Please ensure you have a full install of the Oracle client."
144 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
145 - ewarn
146 - fi
147 - fi
148 - fi
149 -
150 - if use frontend; then
151 - webapp_pkg_setup
152 - fi
153 -
154 - enewgroup zabbix
155 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
156 -}
157 -
158 -pkg_postinst() {
159 - if use server || use proxy ; then
160 - elog
161 - elog "You may need to configure your database for Zabbix,"
162 - elog "if you have not already done so. "
163 - elog
164 -
165 - zabbix_homedir=$(egethome zabbix)
166 - if [ -n "${zabbix_homedir}" ] && \
167 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
168 - ewarn
169 - ewarn "The user 'zabbix' should have his homedir changed"
170 - ewarn "to /var/lib/zabbix/home if you want to use"
171 - ewarn "custom alert scripts."
172 - ewarn
173 - ewarn "A real homedir might be needed for configfiles"
174 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
175 - ewarn "using sendxmpp for Jabber alerts)."
176 - ewarn
177 - ewarn "To change the homedir use:"
178 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
179 - ewarn
180 - fi
181 - fi
182 -
183 - if use server; then
184 - elog
185 - elog "For distributed monitoring you have to run:"
186 - elog
187 - elog "zabbix_server -n <nodeid>"
188 - elog
189 - elog "This will convert database data for use with Node ID"
190 - elog "and also adds a local node."
191 - elog
192 - fi
193 -
194 - elog "--"
195 - elog
196 - elog "You may need to add these lines to /etc/services:"
197 - elog
198 - elog "zabbix-agent 10050/tcp Zabbix Agent"
199 - elog "zabbix-agent 10050/udp Zabbix Agent"
200 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
201 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
202 - elog
203 -
204 - elog "Feel free to download or contribute gentoo specific zabbix templates"
205 - elog "via https://github.com/deploylinux/gentooZabbixTemplates (WIP)."
206 -
207 - # repeat fowners/fperms functionality from src_install()
208 - # here to catch wrong permissions on existing files in
209 - # the live filesystem (yeah, that sucks).
210 - chown -R zabbix:zabbix \
211 - "${ROOT}"/etc/zabbix \
212 - "${ROOT}"/var/lib/zabbix \
213 - "${ROOT}"/var/lib/zabbix/home \
214 - "${ROOT}"/var/lib/zabbix/scripts \
215 - "${ROOT}"/var/log/zabbix
216 - chmod 0750 \
217 - "${ROOT}"/etc/zabbix \
218 - "${ROOT}"/var/lib/zabbix \
219 - "${ROOT}"/var/lib/zabbix/home \
220 - "${ROOT}"/var/lib/zabbix/scripts \
221 - "${ROOT}"/var/log/zabbix
222 -
223 - chmod 0640 \
224 - "${ROOT}"/etc/zabbix/zabbix_*
225 -
226 - if use server || use proxy ; then
227 - # check for fping
228 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
229 - case "${fping_perms}" in
230 - 4[157][157][157])
231 - ;;
232 - *)
233 - ewarn
234 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
235 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
236 - ewarn "by everyone. Run the following command to fix it:"
237 - ewarn
238 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
239 - ewarn
240 - ewarn "Please be aware that this might impose a security risk,"
241 - ewarn "depending on the code quality of fping."
242 - ewarn
243 - ;;
244 - esac
245 - fi
246 -}
247 -
248 -src_configure() {
249 -
250 - econf \
251 - $(use_enable server) \
252 - $(use_enable proxy) \
253 - $(use_enable agent) \
254 - $(use_enable ipv6) \
255 - $(use_enable static) \
256 - $(use_enable java) \
257 - $(use_with ldap) \
258 - $(use_with snmp net-snmp) \
259 - $(use_with mysql) \
260 - $(use_with postgres postgresql) \
261 - $(use_with oracle) \
262 - $(use_with sqlite sqlite3) \
263 - $(use_with xmpp jabber) \
264 - $(use_with curl libcurl) \
265 - $(use_with openipmi openipmi) \
266 - $(use_with ssh ssh2) \
267 - $(use_with libxml2) \
268 - $(use_with odbc unixodbc) \
269 - || die "econf failed"
270 -}
271 -
272 -src_install() {
273 - dodir \
274 - /etc/zabbix \
275 - /var/lib/zabbix \
276 - /var/lib/zabbix/home \
277 - /var/lib/zabbix/scripts \
278 - /var/lib/zabbix/alertscripts \
279 - /var/lib/zabbix/externalscripts \
280 - /var/log/zabbix
281 -
282 - keepdir \
283 - /etc/zabbix \
284 - /var/lib/zabbix \
285 - /var/lib/zabbix/home \
286 - /var/lib/zabbix/scripts \
287 - /var/lib/zabbix/alertscripts \
288 - /var/lib/zabbix/externalscripts \
289 - /var/log/zabbix
290 -
291 - if use server; then
292 - insinto /etc/zabbix
293 - doins "${FILESDIR}/2.2"/zabbix_server.conf
294 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-server
295 - dosbin src/zabbix_server/zabbix_server
296 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
297 - fperms 0640 /etc/zabbix/zabbix_server.conf
298 - dodir /usr/share/zabbix
299 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
300 - systemd_dounit "${FILESDIR}/zabbix-server.service"
301 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
302 - fi
303 -
304 - if use proxy; then
305 - doinitd \
306 - "${FILESDIR}/2.2"/init.d/zabbix-proxy
307 - dosbin \
308 - src/zabbix_proxy/zabbix_proxy
309 - insinto /etc/zabbix
310 - doins \
311 - "${FILESDIR}/2.2"/zabbix_proxy.conf
312 - dodir /usr/share/zabbix
313 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
314 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
315 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
316 - fi
317 -
318 - if use agent; then
319 - insinto /etc/zabbix
320 - doins \
321 - "${FILESDIR}/2.2"/zabbix_agent.conf \
322 - "${FILESDIR}/2.2"/zabbix_agentd.conf
323 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-agentd
324 - dosbin \
325 - src/zabbix_agent/zabbix_agent \
326 - src/zabbix_agent/zabbix_agentd
327 - dobin \
328 - src/zabbix_sender/zabbix_sender \
329 - src/zabbix_get/zabbix_get
330 - fowners zabbix:zabbix \
331 - /etc/zabbix/zabbix_agent.conf \
332 - /etc/zabbix/zabbix_agentd.conf
333 - fperms 0640 \
334 - /etc/zabbix/zabbix_agent.conf \
335 - /etc/zabbix/zabbix_agentd.conf
336 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
337 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
338 - fi
339 -
340 - fowners zabbix:zabbix \
341 - /etc/zabbix \
342 - /var/lib/zabbix \
343 - /var/lib/zabbix/home \
344 - /var/lib/zabbix/scripts \
345 - /var/lib/zabbix/alertscripts \
346 - /var/lib/zabbix/externalscripts \
347 - /var/log/zabbix
348 - fperms 0750 \
349 - /etc/zabbix \
350 - /var/lib/zabbix \
351 - /var/lib/zabbix/home \
352 - /var/lib/zabbix/scripts \
353 - /var/lib/zabbix/alertscripts \
354 - /var/lib/zabbix/externalscripts \
355 - /var/log/zabbix
356 -
357 - dodoc README INSTALL NEWS ChangeLog \
358 - conf/zabbix_agent.conf \
359 - conf/zabbix_agentd.conf \
360 - conf/zabbix_proxy.conf \
361 - conf/zabbix_agentd/userparameter_examples.conf \
362 - conf/zabbix_agentd/userparameter_mysql.conf \
363 - conf/zabbix_server.conf
364 -
365 - if use frontend; then
366 - webapp_src_preinst
367 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
368 - webapp_configfile \
369 - "${MY_HTDOCSDIR}"/include/db.inc.php \
370 - "${MY_HTDOCSDIR}"/include/config.inc.php
371 - webapp_src_install
372 - fi
373 -
374 - if use java; then
375 - dodir \
376 - /${ZABBIXJAVA_BASE} \
377 - /${ZABBIXJAVA_BASE}/bin \
378 - /${ZABBIXJAVA_BASE}/lib
379 - keepdir /${ZABBIXJAVA_BASE}
380 - exeinto /${ZABBIXJAVA_BASE}/bin
381 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
382 - exeinto /${ZABBIXJAVA_BASE}/lib
383 - doexe \
384 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
385 - src/zabbix_java/lib/logback-console.xml \
386 - src/zabbix_java/lib/logback-core-0.9.27.jar \
387 - src/zabbix_java/lib/logback.xml \
388 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
389 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
390 - exeinto /${ZABBIXJAVA_BASE}/
391 - doexe \
392 - src/zabbix_java/settings.sh \
393 - src/zabbix_java/startup.sh \
394 - src/zabbix_java/shutdown.sh
395 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
396 - fi
397 -
398 -}
399 -
400 -src_compile() {
401 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
402 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
403 - fi
404 -}
405
406 diff --git a/net-analyzer/zabbix/zabbix-2.2.13.ebuild b/net-analyzer/zabbix/zabbix-2.2.13.ebuild
407 deleted file mode 100644
408 index 0bbbf88..00000000
409 --- a/net-analyzer/zabbix/zabbix-2.2.13.ebuild
410 +++ /dev/null
411 @@ -1,342 +0,0 @@
412 -# Copyright 1999-2016 Gentoo Foundation
413 -# Distributed under the terms of the GNU General Public License v2
414 -# $Id$
415 -
416 -EAPI="6"
417 -
418 -# needed to make webapp-config dep optional
419 -WEBAPP_OPTIONAL="yes"
420 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
421 -
422 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
423 -HOMEPAGE="http://www.zabbix.com/"
424 -MY_P=${P/_/}
425 -MY_PV=${PV/_/}
426 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
427 -LICENSE="GPL-2"
428 -SLOT="0"
429 -WEBAPP_MANUAL_SLOT="yes"
430 -KEYWORDS="~amd64 ~x86"
431 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
432 -REQUIRED_USE="|| ( agent frontend proxy server )
433 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
434 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
435 - static? ( !oracle !snmp )"
436 -
437 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
438 - ldap? (
439 - net-nds/openldap
440 - =dev-libs/cyrus-sasl-2*
441 - net-libs/gnutls
442 - )
443 - mysql? ( >=virtual/mysql-5.0.3 )
444 - sqlite? ( >=dev-db/sqlite-3.3.5 )
445 - postgres? ( dev-db/postgresql:* )
446 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
447 - xmpp? ( dev-libs/iksemel )
448 - libxml2? ( dev-libs/libxml2 )
449 - curl? ( net-misc/curl )
450 - openipmi? ( sys-libs/openipmi )
451 - ssh? ( net-libs/libssh2 )
452 - java? ( virtual/jdk:* )
453 - odbc? ( dev-db/unixODBC )"
454 -
455 -RDEPEND="${COMMON_DEPEND}
456 - proxy? ( net-analyzer/fping )
457 - server? ( net-analyzer/fping
458 - app-admin/webapp-config )
459 - java? (
460 - >=virtual/jre-1.4
461 - dev-java/slf4j-api
462 - )
463 - frontend? (
464 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
465 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
466 - mysql? ( dev-lang/php[mysqli] )
467 - odbc? ( dev-lang/php[odbc] )
468 - oracle? ( dev-lang/php[oci8-instant-client] )
469 - postgres? ( dev-lang/php[postgres] )
470 - sqlite? ( dev-lang/php[sqlite] )
471 - media-libs/gd[png]
472 - app-admin/webapp-config )"
473 -DEPEND="${COMMON_DEPEND}
474 - static? (
475 - ldap? (
476 - net-nds/openldap[static-libs]
477 - =dev-libs/cyrus-sasl-2*[static-libs]
478 - net-libs/gnutls[static-libs]
479 - )
480 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
481 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
482 - postgres? ( dev-db/postgresql:*[static-libs] )
483 - libxml2? ( dev-libs/libxml2[static-libs] )
484 - curl? ( net-misc/curl[static-libs] )
485 - ssh? ( net-libs/libssh2[static-libs] )
486 - odbc? ( dev-db/unixODBC[static-libs] )
487 - )
488 - virtual/pkgconfig"
489 -
490 -S=${WORKDIR}/${MY_P}
491 -
492 -ZABBIXJAVA_BASE="opt/zabbix_java"
493 -
494 -pkg_setup() {
495 - if use oracle; then
496 - if [ -z "${ORACLE_HOME}" ]; then
497 - eerror
498 - eerror "The environment variable ORACLE_HOME must be set"
499 - eerror "and point to the correct location."
500 - eerror "It looks like you don't have Oracle installed."
501 - eerror
502 - die "Environment variable ORACLE_HOME is not set"
503 - fi
504 - if has_version 'dev-db/oracle-instantclient-basic'; then
505 - ewarn
506 - ewarn "Please ensure you have a full install of the Oracle client."
507 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
508 - ewarn
509 - fi
510 - fi
511 -
512 - if use frontend; then
513 - webapp_pkg_setup
514 - fi
515 -
516 - enewgroup zabbix
517 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
518 -}
519 -
520 -java_prepare() {
521 - cd "${S}/src/zabbix_java/lib"
522 - rm -v *.jar || die
523 -
524 - java-pkg_jar-from slf4j-api
525 -}
526 -
527 -src_prepare() {
528 - default
529 -}
530 -
531 -src_configure() {
532 - econf \
533 - $(use_enable server) \
534 - $(use_enable proxy) \
535 - $(use_enable agent) \
536 - $(use_enable ipv6) \
537 - $(use_enable static) \
538 - $(use_enable java) \
539 - $(use_with ldap) \
540 - $(use_with snmp net-snmp) \
541 - $(use_with mysql) \
542 - $(use_with postgres postgresql) \
543 - $(use_with oracle) \
544 - $(use_with sqlite sqlite3) \
545 - $(use_with xmpp jabber) \
546 - $(use_with curl libcurl) \
547 - $(use_with openipmi openipmi) \
548 - $(use_with ssh ssh2) \
549 - $(use_with libxml2) \
550 - $(use_with odbc unixodbc) \
551 - || die "econf failed"
552 -}
553 -
554 -src_compile() {
555 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
556 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
557 - fi
558 -}
559 -
560 -src_install() {
561 - dodir \
562 - /etc/zabbix \
563 - /var/lib/zabbix \
564 - /var/lib/zabbix/home \
565 - /var/lib/zabbix/scripts \
566 - /var/lib/zabbix/alertscripts \
567 - /var/lib/zabbix/externalscripts \
568 - /var/log/zabbix
569 -
570 - keepdir \
571 - /etc/zabbix \
572 - /var/lib/zabbix \
573 - /var/lib/zabbix/home \
574 - /var/lib/zabbix/scripts \
575 - /var/lib/zabbix/alertscripts \
576 - /var/lib/zabbix/externalscripts \
577 - /var/log/zabbix
578 -
579 - if use server; then
580 - insinto /etc/zabbix
581 - doins "${FILESDIR}/2.2"/zabbix_server.conf
582 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-server
583 - dosbin src/zabbix_server/zabbix_server
584 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
585 - fperms 0640 /etc/zabbix/zabbix_server.conf
586 - dodir /usr/share/zabbix
587 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
588 - systemd_dounit "${FILESDIR}/zabbix-server.service"
589 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
590 - fi
591 -
592 - if use proxy; then
593 - doinitd \
594 - "${FILESDIR}/2.2"/init.d/zabbix-proxy
595 - dosbin \
596 - src/zabbix_proxy/zabbix_proxy
597 - insinto /etc/zabbix
598 - doins \
599 - "${FILESDIR}/2.2"/zabbix_proxy.conf
600 - dodir /usr/share/zabbix
601 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
602 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
603 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
604 - fi
605 -
606 - if use agent; then
607 - insinto /etc/zabbix
608 - doins \
609 - "${FILESDIR}/2.2"/zabbix_agent.conf \
610 - "${FILESDIR}/2.2"/zabbix_agentd.conf
611 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-agentd
612 - dosbin \
613 - src/zabbix_agent/zabbix_agent \
614 - src/zabbix_agent/zabbix_agentd
615 - dobin \
616 - src/zabbix_sender/zabbix_sender \
617 - src/zabbix_get/zabbix_get
618 - fowners zabbix:zabbix \
619 - /etc/zabbix/zabbix_agent.conf \
620 - /etc/zabbix/zabbix_agentd.conf
621 - fperms 0640 \
622 - /etc/zabbix/zabbix_agent.conf \
623 - /etc/zabbix/zabbix_agentd.conf
624 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
625 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
626 - fi
627 -
628 - fowners zabbix:zabbix \
629 - /etc/zabbix \
630 - /var/lib/zabbix \
631 - /var/lib/zabbix/home \
632 - /var/lib/zabbix/scripts \
633 - /var/lib/zabbix/alertscripts \
634 - /var/lib/zabbix/externalscripts \
635 - /var/log/zabbix
636 - fperms 0750 \
637 - /etc/zabbix \
638 - /var/lib/zabbix \
639 - /var/lib/zabbix/home \
640 - /var/lib/zabbix/scripts \
641 - /var/lib/zabbix/alertscripts \
642 - /var/lib/zabbix/externalscripts \
643 - /var/log/zabbix
644 -
645 - dodoc README INSTALL NEWS ChangeLog \
646 - conf/zabbix_agent.conf \
647 - conf/zabbix_agentd.conf \
648 - conf/zabbix_proxy.conf \
649 - conf/zabbix_agentd/userparameter_examples.conf \
650 - conf/zabbix_agentd/userparameter_mysql.conf \
651 - conf/zabbix_server.conf
652 -
653 - if use frontend; then
654 - webapp_src_preinst
655 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
656 - webapp_configfile \
657 - "${MY_HTDOCSDIR}"/include/db.inc.php \
658 - "${MY_HTDOCSDIR}"/include/config.inc.php
659 - webapp_src_install
660 - fi
661 -
662 - if use java; then
663 - dodir \
664 - /${ZABBIXJAVA_BASE} \
665 - /${ZABBIXJAVA_BASE}/bin \
666 - /${ZABBIXJAVA_BASE}/lib
667 - keepdir /${ZABBIXJAVA_BASE}
668 - exeinto /${ZABBIXJAVA_BASE}/bin
669 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
670 - exeinto /${ZABBIXJAVA_BASE}/lib
671 - doexe \
672 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
673 - src/zabbix_java/lib/logback-console.xml \
674 - src/zabbix_java/lib/logback-core-0.9.27.jar \
675 - src/zabbix_java/lib/logback.xml \
676 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
677 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
678 - exeinto /${ZABBIXJAVA_BASE}/
679 - doexe \
680 - src/zabbix_java/settings.sh \
681 - src/zabbix_java/startup.sh \
682 - src/zabbix_java/shutdown.sh
683 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
684 - fi
685 -}
686 -
687 -pkg_postinst() {
688 - if use server || use proxy ; then
689 - elog
690 - elog "You may need to configure your database for Zabbix,"
691 - elog "if you have not already done so. "
692 - elog
693 -
694 - zabbix_homedir=$(egethome zabbix)
695 - if [ -n "${zabbix_homedir}" ] && \
696 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
697 - ewarn
698 - ewarn "The user 'zabbix' should have his homedir changed"
699 - ewarn "to /var/lib/zabbix/home if you want to use"
700 - ewarn "custom alert scripts."
701 - ewarn
702 - ewarn "A real homedir might be needed for configfiles"
703 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
704 - ewarn "using sendxmpp for Jabber alerts)."
705 - ewarn
706 - ewarn "To change the homedir use:"
707 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
708 - ewarn
709 - fi
710 - fi
711 -
712 - if use server; then
713 - elog
714 - elog "For distributed monitoring you have to run:"
715 - elog
716 - elog "zabbix_server -n <nodeid>"
717 - elog
718 - elog "This will convert database data for use with Node ID"
719 - elog "and also adds a local node."
720 - elog
721 - fi
722 -
723 - elog "--"
724 - elog
725 - elog "You may need to add these lines to /etc/services:"
726 - elog
727 - elog "zabbix-agent 10050/tcp Zabbix Agent"
728 - elog "zabbix-agent 10050/udp Zabbix Agent"
729 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
730 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
731 - elog
732 -
733 - if use server || use proxy ; then
734 - # check for fping
735 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
736 - case "${fping_perms}" in
737 - 4[157][157][157])
738 - ;;
739 - *)
740 - ewarn
741 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
742 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
743 - ewarn "by everyone. Run the following command to fix it:"
744 - ewarn
745 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
746 - ewarn
747 - ewarn "Please be aware that this might impose a security risk,"
748 - ewarn "depending on the code quality of fping."
749 - ewarn
750 - ;;
751 - esac
752 - fi
753 -}
754
755 diff --git a/net-analyzer/zabbix/zabbix-2.2.14.ebuild b/net-analyzer/zabbix/zabbix-2.2.14.ebuild
756 deleted file mode 100644
757 index 0bbbf88..00000000
758 --- a/net-analyzer/zabbix/zabbix-2.2.14.ebuild
759 +++ /dev/null
760 @@ -1,342 +0,0 @@
761 -# Copyright 1999-2016 Gentoo Foundation
762 -# Distributed under the terms of the GNU General Public License v2
763 -# $Id$
764 -
765 -EAPI="6"
766 -
767 -# needed to make webapp-config dep optional
768 -WEBAPP_OPTIONAL="yes"
769 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
770 -
771 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
772 -HOMEPAGE="http://www.zabbix.com/"
773 -MY_P=${P/_/}
774 -MY_PV=${PV/_/}
775 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
776 -LICENSE="GPL-2"
777 -SLOT="0"
778 -WEBAPP_MANUAL_SLOT="yes"
779 -KEYWORDS="~amd64 ~x86"
780 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
781 -REQUIRED_USE="|| ( agent frontend proxy server )
782 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
783 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
784 - static? ( !oracle !snmp )"
785 -
786 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
787 - ldap? (
788 - net-nds/openldap
789 - =dev-libs/cyrus-sasl-2*
790 - net-libs/gnutls
791 - )
792 - mysql? ( >=virtual/mysql-5.0.3 )
793 - sqlite? ( >=dev-db/sqlite-3.3.5 )
794 - postgres? ( dev-db/postgresql:* )
795 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
796 - xmpp? ( dev-libs/iksemel )
797 - libxml2? ( dev-libs/libxml2 )
798 - curl? ( net-misc/curl )
799 - openipmi? ( sys-libs/openipmi )
800 - ssh? ( net-libs/libssh2 )
801 - java? ( virtual/jdk:* )
802 - odbc? ( dev-db/unixODBC )"
803 -
804 -RDEPEND="${COMMON_DEPEND}
805 - proxy? ( net-analyzer/fping )
806 - server? ( net-analyzer/fping
807 - app-admin/webapp-config )
808 - java? (
809 - >=virtual/jre-1.4
810 - dev-java/slf4j-api
811 - )
812 - frontend? (
813 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
814 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
815 - mysql? ( dev-lang/php[mysqli] )
816 - odbc? ( dev-lang/php[odbc] )
817 - oracle? ( dev-lang/php[oci8-instant-client] )
818 - postgres? ( dev-lang/php[postgres] )
819 - sqlite? ( dev-lang/php[sqlite] )
820 - media-libs/gd[png]
821 - app-admin/webapp-config )"
822 -DEPEND="${COMMON_DEPEND}
823 - static? (
824 - ldap? (
825 - net-nds/openldap[static-libs]
826 - =dev-libs/cyrus-sasl-2*[static-libs]
827 - net-libs/gnutls[static-libs]
828 - )
829 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
830 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
831 - postgres? ( dev-db/postgresql:*[static-libs] )
832 - libxml2? ( dev-libs/libxml2[static-libs] )
833 - curl? ( net-misc/curl[static-libs] )
834 - ssh? ( net-libs/libssh2[static-libs] )
835 - odbc? ( dev-db/unixODBC[static-libs] )
836 - )
837 - virtual/pkgconfig"
838 -
839 -S=${WORKDIR}/${MY_P}
840 -
841 -ZABBIXJAVA_BASE="opt/zabbix_java"
842 -
843 -pkg_setup() {
844 - if use oracle; then
845 - if [ -z "${ORACLE_HOME}" ]; then
846 - eerror
847 - eerror "The environment variable ORACLE_HOME must be set"
848 - eerror "and point to the correct location."
849 - eerror "It looks like you don't have Oracle installed."
850 - eerror
851 - die "Environment variable ORACLE_HOME is not set"
852 - fi
853 - if has_version 'dev-db/oracle-instantclient-basic'; then
854 - ewarn
855 - ewarn "Please ensure you have a full install of the Oracle client."
856 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
857 - ewarn
858 - fi
859 - fi
860 -
861 - if use frontend; then
862 - webapp_pkg_setup
863 - fi
864 -
865 - enewgroup zabbix
866 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
867 -}
868 -
869 -java_prepare() {
870 - cd "${S}/src/zabbix_java/lib"
871 - rm -v *.jar || die
872 -
873 - java-pkg_jar-from slf4j-api
874 -}
875 -
876 -src_prepare() {
877 - default
878 -}
879 -
880 -src_configure() {
881 - econf \
882 - $(use_enable server) \
883 - $(use_enable proxy) \
884 - $(use_enable agent) \
885 - $(use_enable ipv6) \
886 - $(use_enable static) \
887 - $(use_enable java) \
888 - $(use_with ldap) \
889 - $(use_with snmp net-snmp) \
890 - $(use_with mysql) \
891 - $(use_with postgres postgresql) \
892 - $(use_with oracle) \
893 - $(use_with sqlite sqlite3) \
894 - $(use_with xmpp jabber) \
895 - $(use_with curl libcurl) \
896 - $(use_with openipmi openipmi) \
897 - $(use_with ssh ssh2) \
898 - $(use_with libxml2) \
899 - $(use_with odbc unixodbc) \
900 - || die "econf failed"
901 -}
902 -
903 -src_compile() {
904 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
905 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
906 - fi
907 -}
908 -
909 -src_install() {
910 - dodir \
911 - /etc/zabbix \
912 - /var/lib/zabbix \
913 - /var/lib/zabbix/home \
914 - /var/lib/zabbix/scripts \
915 - /var/lib/zabbix/alertscripts \
916 - /var/lib/zabbix/externalscripts \
917 - /var/log/zabbix
918 -
919 - keepdir \
920 - /etc/zabbix \
921 - /var/lib/zabbix \
922 - /var/lib/zabbix/home \
923 - /var/lib/zabbix/scripts \
924 - /var/lib/zabbix/alertscripts \
925 - /var/lib/zabbix/externalscripts \
926 - /var/log/zabbix
927 -
928 - if use server; then
929 - insinto /etc/zabbix
930 - doins "${FILESDIR}/2.2"/zabbix_server.conf
931 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-server
932 - dosbin src/zabbix_server/zabbix_server
933 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
934 - fperms 0640 /etc/zabbix/zabbix_server.conf
935 - dodir /usr/share/zabbix
936 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
937 - systemd_dounit "${FILESDIR}/zabbix-server.service"
938 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
939 - fi
940 -
941 - if use proxy; then
942 - doinitd \
943 - "${FILESDIR}/2.2"/init.d/zabbix-proxy
944 - dosbin \
945 - src/zabbix_proxy/zabbix_proxy
946 - insinto /etc/zabbix
947 - doins \
948 - "${FILESDIR}/2.2"/zabbix_proxy.conf
949 - dodir /usr/share/zabbix
950 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
951 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
952 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
953 - fi
954 -
955 - if use agent; then
956 - insinto /etc/zabbix
957 - doins \
958 - "${FILESDIR}/2.2"/zabbix_agent.conf \
959 - "${FILESDIR}/2.2"/zabbix_agentd.conf
960 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-agentd
961 - dosbin \
962 - src/zabbix_agent/zabbix_agent \
963 - src/zabbix_agent/zabbix_agentd
964 - dobin \
965 - src/zabbix_sender/zabbix_sender \
966 - src/zabbix_get/zabbix_get
967 - fowners zabbix:zabbix \
968 - /etc/zabbix/zabbix_agent.conf \
969 - /etc/zabbix/zabbix_agentd.conf
970 - fperms 0640 \
971 - /etc/zabbix/zabbix_agent.conf \
972 - /etc/zabbix/zabbix_agentd.conf
973 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
974 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
975 - fi
976 -
977 - fowners zabbix:zabbix \
978 - /etc/zabbix \
979 - /var/lib/zabbix \
980 - /var/lib/zabbix/home \
981 - /var/lib/zabbix/scripts \
982 - /var/lib/zabbix/alertscripts \
983 - /var/lib/zabbix/externalscripts \
984 - /var/log/zabbix
985 - fperms 0750 \
986 - /etc/zabbix \
987 - /var/lib/zabbix \
988 - /var/lib/zabbix/home \
989 - /var/lib/zabbix/scripts \
990 - /var/lib/zabbix/alertscripts \
991 - /var/lib/zabbix/externalscripts \
992 - /var/log/zabbix
993 -
994 - dodoc README INSTALL NEWS ChangeLog \
995 - conf/zabbix_agent.conf \
996 - conf/zabbix_agentd.conf \
997 - conf/zabbix_proxy.conf \
998 - conf/zabbix_agentd/userparameter_examples.conf \
999 - conf/zabbix_agentd/userparameter_mysql.conf \
1000 - conf/zabbix_server.conf
1001 -
1002 - if use frontend; then
1003 - webapp_src_preinst
1004 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
1005 - webapp_configfile \
1006 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1007 - "${MY_HTDOCSDIR}"/include/config.inc.php
1008 - webapp_src_install
1009 - fi
1010 -
1011 - if use java; then
1012 - dodir \
1013 - /${ZABBIXJAVA_BASE} \
1014 - /${ZABBIXJAVA_BASE}/bin \
1015 - /${ZABBIXJAVA_BASE}/lib
1016 - keepdir /${ZABBIXJAVA_BASE}
1017 - exeinto /${ZABBIXJAVA_BASE}/bin
1018 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
1019 - exeinto /${ZABBIXJAVA_BASE}/lib
1020 - doexe \
1021 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
1022 - src/zabbix_java/lib/logback-console.xml \
1023 - src/zabbix_java/lib/logback-core-0.9.27.jar \
1024 - src/zabbix_java/lib/logback.xml \
1025 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
1026 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
1027 - exeinto /${ZABBIXJAVA_BASE}/
1028 - doexe \
1029 - src/zabbix_java/settings.sh \
1030 - src/zabbix_java/startup.sh \
1031 - src/zabbix_java/shutdown.sh
1032 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
1033 - fi
1034 -}
1035 -
1036 -pkg_postinst() {
1037 - if use server || use proxy ; then
1038 - elog
1039 - elog "You may need to configure your database for Zabbix,"
1040 - elog "if you have not already done so. "
1041 - elog
1042 -
1043 - zabbix_homedir=$(egethome zabbix)
1044 - if [ -n "${zabbix_homedir}" ] && \
1045 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1046 - ewarn
1047 - ewarn "The user 'zabbix' should have his homedir changed"
1048 - ewarn "to /var/lib/zabbix/home if you want to use"
1049 - ewarn "custom alert scripts."
1050 - ewarn
1051 - ewarn "A real homedir might be needed for configfiles"
1052 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
1053 - ewarn "using sendxmpp for Jabber alerts)."
1054 - ewarn
1055 - ewarn "To change the homedir use:"
1056 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1057 - ewarn
1058 - fi
1059 - fi
1060 -
1061 - if use server; then
1062 - elog
1063 - elog "For distributed monitoring you have to run:"
1064 - elog
1065 - elog "zabbix_server -n <nodeid>"
1066 - elog
1067 - elog "This will convert database data for use with Node ID"
1068 - elog "and also adds a local node."
1069 - elog
1070 - fi
1071 -
1072 - elog "--"
1073 - elog
1074 - elog "You may need to add these lines to /etc/services:"
1075 - elog
1076 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1077 - elog "zabbix-agent 10050/udp Zabbix Agent"
1078 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1079 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1080 - elog
1081 -
1082 - if use server || use proxy ; then
1083 - # check for fping
1084 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1085 - case "${fping_perms}" in
1086 - 4[157][157][157])
1087 - ;;
1088 - *)
1089 - ewarn
1090 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1091 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1092 - ewarn "by everyone. Run the following command to fix it:"
1093 - ewarn
1094 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1095 - ewarn
1096 - ewarn "Please be aware that this might impose a security risk,"
1097 - ewarn "depending on the code quality of fping."
1098 - ewarn
1099 - ;;
1100 - esac
1101 - fi
1102 -}
1103
1104 diff --git a/net-analyzer/zabbix/zabbix-2.2.5.ebuild b/net-analyzer/zabbix/zabbix-2.2.5.ebuild
1105 deleted file mode 100644
1106 index 4510f2e..00000000
1107 --- a/net-analyzer/zabbix/zabbix-2.2.5.ebuild
1108 +++ /dev/null
1109 @@ -1,364 +0,0 @@
1110 -# Copyright 1999-2016 Gentoo Foundation
1111 -# Distributed under the terms of the GNU General Public License v2
1112 -# $Id$
1113 -
1114 -EAPI="5"
1115 -
1116 -# needed to make webapp-config dep optional
1117 -WEBAPP_OPTIONAL="yes"
1118 -inherit flag-o-matic webapp autotools java-pkg-opt-2 user systemd toolchain-funcs
1119 -
1120 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
1121 -HOMEPAGE="http://www.zabbix.com/"
1122 -MY_P=${P/_/}
1123 -MY_PV=${PV/_/}
1124 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
1125 -LICENSE="GPL-2"
1126 -SLOT="0"
1127 -WEBAPP_MANUAL_SLOT="yes"
1128 -KEYWORDS="amd64 x86"
1129 -IUSE="agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
1130 -
1131 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
1132 - ldap? (
1133 - net-nds/openldap
1134 - =dev-libs/cyrus-sasl-2*
1135 - net-libs/gnutls
1136 - )
1137 - mysql? ( >=virtual/mysql-5.0.3 )
1138 - sqlite? ( >=dev-db/sqlite-3.3.5 )
1139 - postgres? ( dev-db/postgresql:* )
1140 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
1141 - xmpp? ( dev-libs/iksemel )
1142 - libxml2? ( dev-libs/libxml2 )
1143 - curl? ( net-misc/curl )
1144 - openipmi? ( sys-libs/openipmi )
1145 - ssh? ( net-libs/libssh2 )
1146 - java? ( virtual/jdk:* )
1147 - odbc? ( dev-db/unixODBC )"
1148 -
1149 -RDEPEND="${COMMON_DEPEND}
1150 - proxy? ( <=net-analyzer/fping-2.9 )
1151 - server? ( <=net-analyzer/fping-2.9
1152 - app-admin/webapp-config )
1153 - java? (
1154 - >=virtual/jre-1.4
1155 - dev-java/slf4j-api
1156 - dev-java/json-simple
1157 - )
1158 - frontend? (
1159 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
1160 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
1161 - media-libs/gd[png]
1162 - app-admin/webapp-config )"
1163 -DEPEND="${COMMON_DEPEND}
1164 - virtual/pkgconfig"
1165 -
1166 -S=${WORKDIR}/${MY_P}
1167 -
1168 -ZABBIXJAVA_BASE="opt/zabbix_java"
1169 -
1170 -java_prepare() {
1171 - cd "${S}/src/zabbix_java/lib"
1172 - rm -v *.jar || die
1173 -
1174 - java-pkg_jar-from slf4j-api
1175 - java-pkg_jar-from json-simple
1176 -}
1177 -
1178 -src_prepare() {
1179 - eautoreconf
1180 -}
1181 -
1182 -pkg_setup() {
1183 - if use server || use proxy ; then
1184 - local dbnum dbtypes="mysql oracle postgres sqlite" dbtype
1185 - declare -i dbnum=0
1186 - for dbtype in ${dbtypes}; do
1187 - use ${dbtype} && let dbnum++
1188 - done
1189 - if [ ${dbnum} -gt 1 ]; then
1190 - eerror
1191 - eerror "You can't use more than one database type in Zabbix."
1192 - eerror "Select exactly one database type out of these: ${dbtypes}"
1193 - eerror
1194 - die "Multiple database types selected."
1195 - elif [ ${dbnum} -lt 1 ]; then
1196 - eerror
1197 - eerror "Select exactly one database type out of these: ${dbtypes}"
1198 - eerror
1199 - die "No database type selected."
1200 - fi
1201 - if use oracle; then
1202 - if [ -z "${ORACLE_HOME}" ]; then
1203 - eerror
1204 - eerror "The environment variable ORACLE_HOME must be set"
1205 - eerror "and point to the correct location."
1206 - eerror "It looks like you don't have Oracle installed."
1207 - eerror
1208 - die "Environment variable ORACLE_HOME is not set"
1209 - fi
1210 - if has_version 'dev-db/oracle-instantclient-basic'; then
1211 - ewarn
1212 - ewarn "Please ensure you have a full install of the Oracle client."
1213 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
1214 - ewarn
1215 - fi
1216 - fi
1217 - fi
1218 -
1219 - if use frontend; then
1220 - webapp_pkg_setup
1221 - fi
1222 -
1223 - enewgroup zabbix
1224 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
1225 -}
1226 -
1227 -pkg_postinst() {
1228 - if use server || use proxy ; then
1229 - elog
1230 - elog "You may need to configure your database for Zabbix,"
1231 - elog "if you have not already done so. "
1232 - elog
1233 -
1234 - zabbix_homedir=$(egethome zabbix)
1235 - if [ -n "${zabbix_homedir}" ] && \
1236 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1237 - ewarn
1238 - ewarn "The user 'zabbix' should have his homedir changed"
1239 - ewarn "to /var/lib/zabbix/home if you want to use"
1240 - ewarn "custom alert scripts."
1241 - ewarn
1242 - ewarn "A real homedir might be needed for configfiles"
1243 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
1244 - ewarn "using sendxmpp for Jabber alerts)."
1245 - ewarn
1246 - ewarn "To change the homedir use:"
1247 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1248 - ewarn
1249 - fi
1250 - fi
1251 -
1252 - if use server; then
1253 - elog
1254 - elog "For distributed monitoring you have to run:"
1255 - elog
1256 - elog "zabbix_server -n <nodeid>"
1257 - elog
1258 - elog "This will convert database data for use with Node ID"
1259 - elog "and also adds a local node."
1260 - elog
1261 - fi
1262 -
1263 - elog "--"
1264 - elog
1265 - elog "You may need to add these lines to /etc/services:"
1266 - elog
1267 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1268 - elog "zabbix-agent 10050/udp Zabbix Agent"
1269 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1270 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1271 - elog
1272 -
1273 - elog "Feel free to download or contribute gentoo specific zabbix templates"
1274 - elog "via https://github.com/deploylinux/gentooZabbixTemplates (WIP)."
1275 -
1276 - # repeat fowners/fperms functionality from src_install()
1277 - # here to catch wrong permissions on existing files in
1278 - # the live filesystem (yeah, that sucks).
1279 - chown -R zabbix:zabbix \
1280 - "${ROOT}"/etc/zabbix \
1281 - "${ROOT}"/var/lib/zabbix \
1282 - "${ROOT}"/var/lib/zabbix/home \
1283 - "${ROOT}"/var/lib/zabbix/scripts \
1284 - "${ROOT}"/var/log/zabbix
1285 - chmod 0750 \
1286 - "${ROOT}"/etc/zabbix \
1287 - "${ROOT}"/var/lib/zabbix \
1288 - "${ROOT}"/var/lib/zabbix/home \
1289 - "${ROOT}"/var/lib/zabbix/scripts \
1290 - "${ROOT}"/var/log/zabbix
1291 -
1292 - chmod 0640 \
1293 - "${ROOT}"/etc/zabbix/zabbix_*
1294 -
1295 - if use server || use proxy ; then
1296 - # check for fping
1297 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1298 - case "${fping_perms}" in
1299 - 4[157][157][157])
1300 - ;;
1301 - *)
1302 - ewarn
1303 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1304 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1305 - ewarn "by everyone. Run the following command to fix it:"
1306 - ewarn
1307 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1308 - ewarn
1309 - ewarn "Please be aware that this might impose a security risk,"
1310 - ewarn "depending on the code quality of fping."
1311 - ewarn
1312 - ;;
1313 - esac
1314 - fi
1315 -}
1316 -
1317 -src_configure() {
1318 -
1319 - econf \
1320 - $(use_enable server) \
1321 - $(use_enable proxy) \
1322 - $(use_enable agent) \
1323 - $(use_enable ipv6) \
1324 - $(use_enable static) \
1325 - $(use_enable java) \
1326 - $(use_with ldap) \
1327 - $(use_with snmp net-snmp) \
1328 - $(use_with mysql) \
1329 - $(use_with postgres postgresql) \
1330 - $(use_with oracle) \
1331 - $(use_with sqlite sqlite3) \
1332 - $(use_with xmpp jabber) \
1333 - $(use_with curl libcurl) \
1334 - $(use_with openipmi openipmi) \
1335 - $(use_with ssh ssh2) \
1336 - $(use_with libxml2) \
1337 - $(use_with odbc unixodbc) \
1338 - || die "econf failed"
1339 -}
1340 -
1341 -src_install() {
1342 - dodir \
1343 - /etc/zabbix \
1344 - /var/lib/zabbix \
1345 - /var/lib/zabbix/home \
1346 - /var/lib/zabbix/scripts \
1347 - /var/lib/zabbix/alertscripts \
1348 - /var/lib/zabbix/externalscripts \
1349 - /var/log/zabbix
1350 -
1351 - keepdir \
1352 - /etc/zabbix \
1353 - /var/lib/zabbix \
1354 - /var/lib/zabbix/home \
1355 - /var/lib/zabbix/scripts \
1356 - /var/lib/zabbix/alertscripts \
1357 - /var/lib/zabbix/externalscripts \
1358 - /var/log/zabbix
1359 -
1360 - if use server; then
1361 - insinto /etc/zabbix
1362 - doins "${FILESDIR}/2.2"/zabbix_server.conf
1363 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-server
1364 - dosbin src/zabbix_server/zabbix_server
1365 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
1366 - fperms 0640 /etc/zabbix/zabbix_server.conf
1367 - dodir /usr/share/zabbix
1368 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1369 - systemd_dounit "${FILESDIR}/zabbix-server.service"
1370 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
1371 - fi
1372 -
1373 - if use proxy; then
1374 - doinitd \
1375 - "${FILESDIR}/2.2"/init.d/zabbix-proxy
1376 - dosbin \
1377 - src/zabbix_proxy/zabbix_proxy
1378 - insinto /etc/zabbix
1379 - doins \
1380 - "${FILESDIR}/2.2"/zabbix_proxy.conf
1381 - dodir /usr/share/zabbix
1382 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1383 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
1384 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
1385 - fi
1386 -
1387 - if use agent; then
1388 - insinto /etc/zabbix
1389 - doins \
1390 - "${FILESDIR}/2.2"/zabbix_agent.conf \
1391 - "${FILESDIR}/2.2"/zabbix_agentd.conf
1392 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-agentd
1393 - dosbin \
1394 - src/zabbix_agent/zabbix_agent \
1395 - src/zabbix_agent/zabbix_agentd
1396 - dobin \
1397 - src/zabbix_sender/zabbix_sender \
1398 - src/zabbix_get/zabbix_get
1399 - fowners zabbix:zabbix \
1400 - /etc/zabbix/zabbix_agent.conf \
1401 - /etc/zabbix/zabbix_agentd.conf
1402 - fperms 0640 \
1403 - /etc/zabbix/zabbix_agent.conf \
1404 - /etc/zabbix/zabbix_agentd.conf
1405 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
1406 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
1407 - fi
1408 -
1409 - fowners zabbix:zabbix \
1410 - /etc/zabbix \
1411 - /var/lib/zabbix \
1412 - /var/lib/zabbix/home \
1413 - /var/lib/zabbix/scripts \
1414 - /var/lib/zabbix/alertscripts \
1415 - /var/lib/zabbix/externalscripts \
1416 - /var/log/zabbix
1417 - fperms 0750 \
1418 - /etc/zabbix \
1419 - /var/lib/zabbix \
1420 - /var/lib/zabbix/home \
1421 - /var/lib/zabbix/scripts \
1422 - /var/lib/zabbix/alertscripts \
1423 - /var/lib/zabbix/externalscripts \
1424 - /var/log/zabbix
1425 -
1426 - dodoc README INSTALL NEWS ChangeLog \
1427 - conf/zabbix_agent.conf \
1428 - conf/zabbix_agentd.conf \
1429 - conf/zabbix_proxy.conf \
1430 - conf/zabbix_agentd/userparameter_examples.conf \
1431 - conf/zabbix_agentd/userparameter_mysql.conf \
1432 - conf/zabbix_server.conf
1433 -
1434 - if use frontend; then
1435 - webapp_src_preinst
1436 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
1437 - webapp_configfile \
1438 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1439 - "${MY_HTDOCSDIR}"/include/config.inc.php
1440 - webapp_src_install
1441 - fi
1442 -
1443 - if use java; then
1444 - dodir \
1445 - /${ZABBIXJAVA_BASE} \
1446 - /${ZABBIXJAVA_BASE}/bin \
1447 - /${ZABBIXJAVA_BASE}/lib
1448 - keepdir /${ZABBIXJAVA_BASE}
1449 - exeinto /${ZABBIXJAVA_BASE}/bin
1450 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
1451 - exeinto /${ZABBIXJAVA_BASE}/lib
1452 - doexe \
1453 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
1454 - src/zabbix_java/lib/logback-console.xml \
1455 - src/zabbix_java/lib/logback-core-0.9.27.jar \
1456 - src/zabbix_java/lib/logback.xml \
1457 - src/zabbix_java/lib/org-json-2010-12-28.jar \
1458 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
1459 - exeinto /${ZABBIXJAVA_BASE}/
1460 - doexe \
1461 - src/zabbix_java/settings.sh \
1462 - src/zabbix_java/startup.sh \
1463 - src/zabbix_java/shutdown.sh
1464 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
1465 - fi
1466 -
1467 -}
1468 -
1469 -src_compile() {
1470 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
1471 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
1472 - fi
1473 -}
1474
1475 diff --git a/net-analyzer/zabbix/zabbix-2.2.9.ebuild b/net-analyzer/zabbix/zabbix-2.2.9.ebuild
1476 deleted file mode 100644
1477 index 28fab63..00000000
1478 --- a/net-analyzer/zabbix/zabbix-2.2.9.ebuild
1479 +++ /dev/null
1480 @@ -1,362 +0,0 @@
1481 -# Copyright 1999-2016 Gentoo Foundation
1482 -# Distributed under the terms of the GNU General Public License v2
1483 -# $Id$
1484 -
1485 -EAPI="5"
1486 -
1487 -# needed to make webapp-config dep optional
1488 -WEBAPP_OPTIONAL="yes"
1489 -inherit flag-o-matic webapp autotools java-pkg-opt-2 user systemd toolchain-funcs
1490 -
1491 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
1492 -HOMEPAGE="http://www.zabbix.com/"
1493 -MY_P=${P/_/}
1494 -MY_PV=${PV/_/}
1495 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
1496 -LICENSE="GPL-2"
1497 -SLOT="0"
1498 -WEBAPP_MANUAL_SLOT="yes"
1499 -KEYWORDS="~amd64 ~x86"
1500 -IUSE="agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh snmp sqlite odbc static"
1501 -
1502 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
1503 - ldap? (
1504 - net-nds/openldap
1505 - =dev-libs/cyrus-sasl-2*
1506 - net-libs/gnutls
1507 - )
1508 - mysql? ( >=virtual/mysql-5.0.3 )
1509 - sqlite? ( >=dev-db/sqlite-3.3.5 )
1510 - postgres? ( dev-db/postgresql:* )
1511 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
1512 - xmpp? ( dev-libs/iksemel )
1513 - libxml2? ( dev-libs/libxml2 )
1514 - curl? ( net-misc/curl )
1515 - openipmi? ( sys-libs/openipmi )
1516 - ssh? ( net-libs/libssh2 )
1517 - java? ( virtual/jdk:* )
1518 - odbc? ( dev-db/unixODBC )"
1519 -
1520 -RDEPEND="${COMMON_DEPEND}
1521 - proxy? ( <=net-analyzer/fping-2.9 )
1522 - server? ( <=net-analyzer/fping-2.9
1523 - app-admin/webapp-config )
1524 - java? (
1525 - >=virtual/jre-1.4
1526 - dev-java/slf4j-api
1527 - )
1528 - frontend? (
1529 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
1530 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
1531 - media-libs/gd[png]
1532 - app-admin/webapp-config )"
1533 -DEPEND="${COMMON_DEPEND}
1534 - virtual/pkgconfig"
1535 -
1536 -S=${WORKDIR}/${MY_P}
1537 -
1538 -ZABBIXJAVA_BASE="opt/zabbix_java"
1539 -
1540 -java_prepare() {
1541 - cd "${S}/src/zabbix_java/lib"
1542 - rm -v *.jar || die
1543 -
1544 - java-pkg_jar-from slf4j-api
1545 -}
1546 -
1547 -src_prepare() {
1548 - eautoreconf
1549 -}
1550 -
1551 -pkg_setup() {
1552 - if use server || use proxy ; then
1553 - local dbnum dbtypes="mysql oracle postgres sqlite" dbtype
1554 - declare -i dbnum=0
1555 - for dbtype in ${dbtypes}; do
1556 - use ${dbtype} && let dbnum++
1557 - done
1558 - if [ ${dbnum} -gt 1 ]; then
1559 - eerror
1560 - eerror "You can't use more than one database type in Zabbix."
1561 - eerror "Select exactly one database type out of these: ${dbtypes}"
1562 - eerror
1563 - die "Multiple database types selected."
1564 - elif [ ${dbnum} -lt 1 ]; then
1565 - eerror
1566 - eerror "Select exactly one database type out of these: ${dbtypes}"
1567 - eerror
1568 - die "No database type selected."
1569 - fi
1570 - if use oracle; then
1571 - if [ -z "${ORACLE_HOME}" ]; then
1572 - eerror
1573 - eerror "The environment variable ORACLE_HOME must be set"
1574 - eerror "and point to the correct location."
1575 - eerror "It looks like you don't have Oracle installed."
1576 - eerror
1577 - die "Environment variable ORACLE_HOME is not set"
1578 - fi
1579 - if has_version 'dev-db/oracle-instantclient-basic'; then
1580 - ewarn
1581 - ewarn "Please ensure you have a full install of the Oracle client."
1582 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
1583 - ewarn
1584 - fi
1585 - fi
1586 - fi
1587 -
1588 - if use frontend; then
1589 - webapp_pkg_setup
1590 - fi
1591 -
1592 - enewgroup zabbix
1593 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
1594 -}
1595 -
1596 -pkg_postinst() {
1597 - if use server || use proxy ; then
1598 - elog
1599 - elog "You may need to configure your database for Zabbix,"
1600 - elog "if you have not already done so. "
1601 - elog
1602 -
1603 - zabbix_homedir=$(egethome zabbix)
1604 - if [ -n "${zabbix_homedir}" ] && \
1605 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
1606 - ewarn
1607 - ewarn "The user 'zabbix' should have his homedir changed"
1608 - ewarn "to /var/lib/zabbix/home if you want to use"
1609 - ewarn "custom alert scripts."
1610 - ewarn
1611 - ewarn "A real homedir might be needed for configfiles"
1612 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
1613 - ewarn "using sendxmpp for Jabber alerts)."
1614 - ewarn
1615 - ewarn "To change the homedir use:"
1616 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
1617 - ewarn
1618 - fi
1619 - fi
1620 -
1621 - if use server; then
1622 - elog
1623 - elog "For distributed monitoring you have to run:"
1624 - elog
1625 - elog "zabbix_server -n <nodeid>"
1626 - elog
1627 - elog "This will convert database data for use with Node ID"
1628 - elog "and also adds a local node."
1629 - elog
1630 - fi
1631 -
1632 - elog "--"
1633 - elog
1634 - elog "You may need to add these lines to /etc/services:"
1635 - elog
1636 - elog "zabbix-agent 10050/tcp Zabbix Agent"
1637 - elog "zabbix-agent 10050/udp Zabbix Agent"
1638 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
1639 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
1640 - elog
1641 -
1642 - elog "Feel free to download or contribute gentoo specific zabbix templates"
1643 - elog "via https://github.com/deploylinux/gentooZabbixTemplates (WIP)."
1644 -
1645 - # repeat fowners/fperms functionality from src_install()
1646 - # here to catch wrong permissions on existing files in
1647 - # the live filesystem (yeah, that sucks).
1648 - chown -R zabbix:zabbix \
1649 - "${ROOT}"/etc/zabbix \
1650 - "${ROOT}"/var/lib/zabbix \
1651 - "${ROOT}"/var/lib/zabbix/home \
1652 - "${ROOT}"/var/lib/zabbix/scripts \
1653 - "${ROOT}"/var/log/zabbix
1654 - chmod 0750 \
1655 - "${ROOT}"/etc/zabbix \
1656 - "${ROOT}"/var/lib/zabbix \
1657 - "${ROOT}"/var/lib/zabbix/home \
1658 - "${ROOT}"/var/lib/zabbix/scripts \
1659 - "${ROOT}"/var/log/zabbix
1660 -
1661 - chmod 0640 \
1662 - "${ROOT}"/etc/zabbix/zabbix_*
1663 -
1664 - if use server || use proxy ; then
1665 - # check for fping
1666 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
1667 - case "${fping_perms}" in
1668 - 4[157][157][157])
1669 - ;;
1670 - *)
1671 - ewarn
1672 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
1673 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
1674 - ewarn "by everyone. Run the following command to fix it:"
1675 - ewarn
1676 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
1677 - ewarn
1678 - ewarn "Please be aware that this might impose a security risk,"
1679 - ewarn "depending on the code quality of fping."
1680 - ewarn
1681 - ;;
1682 - esac
1683 - fi
1684 -}
1685 -
1686 -src_configure() {
1687 -
1688 - econf \
1689 - $(use_enable server) \
1690 - $(use_enable proxy) \
1691 - $(use_enable agent) \
1692 - $(use_enable ipv6) \
1693 - $(use_enable static) \
1694 - $(use_enable java) \
1695 - $(use_with ldap) \
1696 - $(use_with snmp net-snmp) \
1697 - $(use_with mysql) \
1698 - $(use_with postgres postgresql) \
1699 - $(use_with oracle) \
1700 - $(use_with sqlite sqlite3) \
1701 - $(use_with xmpp jabber) \
1702 - $(use_with curl libcurl) \
1703 - $(use_with openipmi openipmi) \
1704 - $(use_with ssh ssh2) \
1705 - $(use_with libxml2) \
1706 - $(use_with odbc unixodbc) \
1707 - || die "econf failed"
1708 -}
1709 -
1710 -src_install() {
1711 - dodir \
1712 - /etc/zabbix \
1713 - /var/lib/zabbix \
1714 - /var/lib/zabbix/home \
1715 - /var/lib/zabbix/scripts \
1716 - /var/lib/zabbix/alertscripts \
1717 - /var/lib/zabbix/externalscripts \
1718 - /var/log/zabbix
1719 -
1720 - keepdir \
1721 - /etc/zabbix \
1722 - /var/lib/zabbix \
1723 - /var/lib/zabbix/home \
1724 - /var/lib/zabbix/scripts \
1725 - /var/lib/zabbix/alertscripts \
1726 - /var/lib/zabbix/externalscripts \
1727 - /var/log/zabbix
1728 -
1729 - if use server; then
1730 - insinto /etc/zabbix
1731 - doins "${FILESDIR}/2.2"/zabbix_server.conf
1732 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-server
1733 - dosbin src/zabbix_server/zabbix_server
1734 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
1735 - fperms 0640 /etc/zabbix/zabbix_server.conf
1736 - dodir /usr/share/zabbix
1737 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1738 - systemd_dounit "${FILESDIR}/zabbix-server.service"
1739 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
1740 - fi
1741 -
1742 - if use proxy; then
1743 - doinitd \
1744 - "${FILESDIR}/2.2"/init.d/zabbix-proxy
1745 - dosbin \
1746 - src/zabbix_proxy/zabbix_proxy
1747 - insinto /etc/zabbix
1748 - doins \
1749 - "${FILESDIR}/2.2"/zabbix_proxy.conf
1750 - dodir /usr/share/zabbix
1751 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
1752 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
1753 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
1754 - fi
1755 -
1756 - if use agent; then
1757 - insinto /etc/zabbix
1758 - doins \
1759 - "${FILESDIR}/2.2"/zabbix_agent.conf \
1760 - "${FILESDIR}/2.2"/zabbix_agentd.conf
1761 - doinitd "${FILESDIR}/2.2"/init.d/zabbix-agentd
1762 - dosbin \
1763 - src/zabbix_agent/zabbix_agent \
1764 - src/zabbix_agent/zabbix_agentd
1765 - dobin \
1766 - src/zabbix_sender/zabbix_sender \
1767 - src/zabbix_get/zabbix_get
1768 - fowners zabbix:zabbix \
1769 - /etc/zabbix/zabbix_agent.conf \
1770 - /etc/zabbix/zabbix_agentd.conf
1771 - fperms 0640 \
1772 - /etc/zabbix/zabbix_agent.conf \
1773 - /etc/zabbix/zabbix_agentd.conf
1774 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
1775 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
1776 - fi
1777 -
1778 - fowners zabbix:zabbix \
1779 - /etc/zabbix \
1780 - /var/lib/zabbix \
1781 - /var/lib/zabbix/home \
1782 - /var/lib/zabbix/scripts \
1783 - /var/lib/zabbix/alertscripts \
1784 - /var/lib/zabbix/externalscripts \
1785 - /var/log/zabbix
1786 - fperms 0750 \
1787 - /etc/zabbix \
1788 - /var/lib/zabbix \
1789 - /var/lib/zabbix/home \
1790 - /var/lib/zabbix/scripts \
1791 - /var/lib/zabbix/alertscripts \
1792 - /var/lib/zabbix/externalscripts \
1793 - /var/log/zabbix
1794 -
1795 - dodoc README INSTALL NEWS ChangeLog \
1796 - conf/zabbix_agent.conf \
1797 - conf/zabbix_agentd.conf \
1798 - conf/zabbix_proxy.conf \
1799 - conf/zabbix_agentd/userparameter_examples.conf \
1800 - conf/zabbix_agentd/userparameter_mysql.conf \
1801 - conf/zabbix_server.conf
1802 -
1803 - if use frontend; then
1804 - webapp_src_preinst
1805 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
1806 - webapp_configfile \
1807 - "${MY_HTDOCSDIR}"/include/db.inc.php \
1808 - "${MY_HTDOCSDIR}"/include/config.inc.php
1809 - webapp_src_install
1810 - fi
1811 -
1812 - if use java; then
1813 - dodir \
1814 - /${ZABBIXJAVA_BASE} \
1815 - /${ZABBIXJAVA_BASE}/bin \
1816 - /${ZABBIXJAVA_BASE}/lib
1817 - keepdir /${ZABBIXJAVA_BASE}
1818 - exeinto /${ZABBIXJAVA_BASE}/bin
1819 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
1820 - exeinto /${ZABBIXJAVA_BASE}/lib
1821 - doexe \
1822 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
1823 - src/zabbix_java/lib/logback-console.xml \
1824 - src/zabbix_java/lib/logback-core-0.9.27.jar \
1825 - src/zabbix_java/lib/logback.xml \
1826 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
1827 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
1828 - exeinto /${ZABBIXJAVA_BASE}/
1829 - doexe \
1830 - src/zabbix_java/settings.sh \
1831 - src/zabbix_java/startup.sh \
1832 - src/zabbix_java/shutdown.sh
1833 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
1834 - fi
1835 -
1836 -}
1837 -
1838 -src_compile() {
1839 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
1840 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
1841 - fi
1842 -}
1843
1844 diff --git a/net-analyzer/zabbix/zabbix-3.0.3-r1.ebuild b/net-analyzer/zabbix/zabbix-3.0.3-r1.ebuild
1845 deleted file mode 100644
1846 index 212ccb7..00000000
1847 --- a/net-analyzer/zabbix/zabbix-3.0.3-r1.ebuild
1848 +++ /dev/null
1849 @@ -1,332 +0,0 @@
1850 -# Copyright 1999-2016 Gentoo Foundation
1851 -# Distributed under the terms of the GNU General Public License v2
1852 -# $Id$
1853 -
1854 -EAPI="6"
1855 -
1856 -# needed to make webapp-config dep optional
1857 -WEBAPP_OPTIONAL="yes"
1858 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
1859 -
1860 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
1861 -HOMEPAGE="http://www.zabbix.com/"
1862 -MY_P=${P/_/}
1863 -MY_PV=${PV/_/}
1864 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
1865 -LICENSE="GPL-2"
1866 -SLOT="0"
1867 -WEBAPP_MANUAL_SLOT="yes"
1868 -KEYWORDS="~amd64 ~x86"
1869 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
1870 -REQUIRED_USE="|| ( agent frontend proxy server )
1871 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1872 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
1873 - static? ( !oracle !snmp )"
1874 -
1875 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
1876 - ldap? (
1877 - net-nds/openldap
1878 - =dev-libs/cyrus-sasl-2*
1879 - net-libs/gnutls
1880 - )
1881 - mysql? ( >=virtual/mysql-5.0.3 )
1882 - sqlite? ( >=dev-db/sqlite-3.3.5 )
1883 - postgres? ( dev-db/postgresql:* )
1884 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
1885 - xmpp? ( dev-libs/iksemel )
1886 - libxml2? ( dev-libs/libxml2 )
1887 - curl? ( net-misc/curl )
1888 - openipmi? ( sys-libs/openipmi )
1889 - ssh? ( net-libs/libssh2 )
1890 - java? ( virtual/jdk:* )
1891 - odbc? ( dev-db/unixODBC )
1892 - ssl? ( dev-libs/openssl:=[-bindist] )"
1893 -
1894 -RDEPEND="${COMMON_DEPEND}
1895 - proxy? ( net-analyzer/fping )
1896 - server? ( net-analyzer/fping
1897 - app-admin/webapp-config )
1898 - java? (
1899 - >=virtual/jre-1.4
1900 - dev-java/slf4j-api
1901 - )
1902 - frontend? (
1903 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
1904 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
1905 - mysql? ( dev-lang/php[mysqli] )
1906 - odbc? ( dev-lang/php[odbc] )
1907 - oracle? ( dev-lang/php[oci8-instant-client] )
1908 - postgres? ( dev-lang/php[postgres] )
1909 - sqlite? ( dev-lang/php[sqlite] )
1910 - media-libs/gd[png]
1911 - app-admin/webapp-config )"
1912 -DEPEND="${COMMON_DEPEND}
1913 - static? (
1914 - ldap? (
1915 - net-nds/openldap[static-libs]
1916 - =dev-libs/cyrus-sasl-2*[static-libs]
1917 - net-libs/gnutls[static-libs]
1918 - )
1919 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
1920 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
1921 - postgres? ( dev-db/postgresql:*[static-libs] )
1922 - libxml2? ( dev-libs/libxml2[static-libs] )
1923 - curl? ( net-misc/curl[static-libs] )
1924 - ssh? ( net-libs/libssh2[static-libs] )
1925 - odbc? ( dev-db/unixODBC[static-libs] )
1926 - )
1927 - virtual/pkgconfig"
1928 -
1929 -S=${WORKDIR}/${MY_P}
1930 -
1931 -ZABBIXJAVA_BASE="opt/zabbix_java"
1932 -
1933 -pkg_setup() {
1934 - if use oracle; then
1935 - if [ -z "${ORACLE_HOME}" ]; then
1936 - eerror
1937 - eerror "The environment variable ORACLE_HOME must be set"
1938 - eerror "and point to the correct location."
1939 - eerror "It looks like you don't have Oracle installed."
1940 - eerror
1941 - die "Environment variable ORACLE_HOME is not set"
1942 - fi
1943 - if has_version 'dev-db/oracle-instantclient-basic'; then
1944 - ewarn
1945 - ewarn "Please ensure you have a full install of the Oracle client."
1946 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
1947 - ewarn
1948 - fi
1949 - fi
1950 -
1951 - if use frontend; then
1952 - webapp_pkg_setup
1953 - fi
1954 -
1955 - enewgroup zabbix
1956 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
1957 -}
1958 -
1959 -java_prepare() {
1960 - cd "${S}/src/zabbix_java/lib"
1961 - rm -v *.jar || die
1962 -
1963 - java-pkg_jar-from slf4j-api
1964 -}
1965 -
1966 -src_prepare() {
1967 - default
1968 -}
1969 -
1970 -src_configure() {
1971 - econf \
1972 - $(use_enable server) \
1973 - $(use_enable proxy) \
1974 - $(use_enable agent) \
1975 - $(use_enable ipv6) \
1976 - $(use_enable static) \
1977 - $(use_enable java) \
1978 - $(use_with ldap) \
1979 - $(use_with snmp net-snmp) \
1980 - $(use_with mysql) \
1981 - $(use_with postgres postgresql) \
1982 - $(use_with oracle) \
1983 - $(use_with sqlite sqlite3) \
1984 - $(use_with xmpp jabber) \
1985 - $(use_with curl libcurl) \
1986 - $(use_with openipmi openipmi) \
1987 - $(use_with ssh ssh2) \
1988 - $(use_with libxml2) \
1989 - $(use_with odbc unixodbc) \
1990 - $(use_with ssl openssl) \
1991 - || die "econf failed"
1992 -}
1993 -
1994 -src_compile() {
1995 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
1996 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
1997 - fi
1998 -}
1999 -
2000 -src_install() {
2001 - dodir \
2002 - /etc/zabbix \
2003 - /var/lib/zabbix \
2004 - /var/lib/zabbix/home \
2005 - /var/lib/zabbix/scripts \
2006 - /var/lib/zabbix/alertscripts \
2007 - /var/lib/zabbix/externalscripts \
2008 - /var/log/zabbix
2009 -
2010 - keepdir \
2011 - /etc/zabbix \
2012 - /var/lib/zabbix \
2013 - /var/lib/zabbix/home \
2014 - /var/lib/zabbix/scripts \
2015 - /var/lib/zabbix/alertscripts \
2016 - /var/lib/zabbix/externalscripts \
2017 - /var/log/zabbix
2018 -
2019 - if use server; then
2020 - insinto /etc/zabbix
2021 - doins "${FILESDIR}/3.0"/zabbix_server.conf
2022 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
2023 - dosbin src/zabbix_server/zabbix_server
2024 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
2025 - fperms 0640 /etc/zabbix/zabbix_server.conf
2026 - dodir /usr/share/zabbix
2027 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2028 - systemd_dounit "${FILESDIR}/zabbix-server.service"
2029 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
2030 - fi
2031 -
2032 - if use proxy; then
2033 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
2034 - dosbin src/zabbix_proxy/zabbix_proxy
2035 - insinto /etc/zabbix
2036 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
2037 - dodir /usr/share/zabbix
2038 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2039 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
2040 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
2041 - fi
2042 -
2043 - if use agent; then
2044 - insinto /etc/zabbix
2045 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
2046 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
2047 - dosbin src/zabbix_agent/zabbix_agentd
2048 - dobin \
2049 - src/zabbix_sender/zabbix_sender \
2050 - src/zabbix_get/zabbix_get
2051 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
2052 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
2053 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
2054 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
2055 - fi
2056 -
2057 - fowners zabbix:zabbix \
2058 - /etc/zabbix \
2059 - /var/lib/zabbix \
2060 - /var/lib/zabbix/home \
2061 - /var/lib/zabbix/scripts \
2062 - /var/lib/zabbix/alertscripts \
2063 - /var/lib/zabbix/externalscripts \
2064 - /var/log/zabbix
2065 - fperms 0750 \
2066 - /etc/zabbix \
2067 - /var/lib/zabbix \
2068 - /var/lib/zabbix/home \
2069 - /var/lib/zabbix/scripts \
2070 - /var/lib/zabbix/alertscripts \
2071 - /var/lib/zabbix/externalscripts \
2072 - /var/log/zabbix
2073 -
2074 - dodoc README INSTALL NEWS ChangeLog \
2075 - conf/zabbix_agentd.conf \
2076 - conf/zabbix_proxy.conf \
2077 - conf/zabbix_agentd/userparameter_examples.conf \
2078 - conf/zabbix_agentd/userparameter_mysql.conf \
2079 - conf/zabbix_server.conf
2080 -
2081 - if use frontend; then
2082 - webapp_src_preinst
2083 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
2084 - webapp_configfile \
2085 - "${MY_HTDOCSDIR}"/include/db.inc.php \
2086 - "${MY_HTDOCSDIR}"/include/config.inc.php
2087 - webapp_src_install
2088 - fi
2089 -
2090 - if use java; then
2091 - dodir \
2092 - /${ZABBIXJAVA_BASE} \
2093 - /${ZABBIXJAVA_BASE}/bin \
2094 - /${ZABBIXJAVA_BASE}/lib
2095 - keepdir /${ZABBIXJAVA_BASE}
2096 - exeinto /${ZABBIXJAVA_BASE}/bin
2097 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
2098 - exeinto /${ZABBIXJAVA_BASE}/lib
2099 - doexe \
2100 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
2101 - src/zabbix_java/lib/logback-console.xml \
2102 - src/zabbix_java/lib/logback-core-0.9.27.jar \
2103 - src/zabbix_java/lib/logback.xml \
2104 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
2105 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
2106 - exeinto /${ZABBIXJAVA_BASE}/
2107 - doexe \
2108 - src/zabbix_java/settings.sh \
2109 - src/zabbix_java/startup.sh \
2110 - src/zabbix_java/shutdown.sh
2111 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
2112 - fi
2113 -}
2114 -
2115 -pkg_postinst() {
2116 - if use server || use proxy ; then
2117 - elog
2118 - elog "You may need to configure your database for Zabbix,"
2119 - elog "if you have not already done so. "
2120 - elog
2121 -
2122 - zabbix_homedir=$(egethome zabbix)
2123 - if [ -n "${zabbix_homedir}" ] && \
2124 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
2125 - ewarn
2126 - ewarn "The user 'zabbix' should have his homedir changed"
2127 - ewarn "to /var/lib/zabbix/home if you want to use"
2128 - ewarn "custom alert scripts."
2129 - ewarn
2130 - ewarn "A real homedir might be needed for configfiles"
2131 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
2132 - ewarn "using sendxmpp for Jabber alerts)."
2133 - ewarn
2134 - ewarn "To change the homedir use:"
2135 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
2136 - ewarn
2137 - fi
2138 - fi
2139 -
2140 - if use server; then
2141 - elog
2142 - elog "For distributed monitoring you have to run:"
2143 - elog
2144 - elog "zabbix_server -n <nodeid>"
2145 - elog
2146 - elog "This will convert database data for use with Node ID"
2147 - elog "and also adds a local node."
2148 - elog
2149 - fi
2150 -
2151 - elog "--"
2152 - elog
2153 - elog "You may need to add these lines to /etc/services:"
2154 - elog
2155 - elog "zabbix-agent 10050/tcp Zabbix Agent"
2156 - elog "zabbix-agent 10050/udp Zabbix Agent"
2157 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
2158 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
2159 - elog
2160 -
2161 - if use server || use proxy ; then
2162 - # check for fping
2163 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
2164 - case "${fping_perms}" in
2165 - 4[157][157][157])
2166 - ;;
2167 - *)
2168 - ewarn
2169 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
2170 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
2171 - ewarn "by everyone. Run the following command to fix it:"
2172 - ewarn
2173 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
2174 - ewarn
2175 - ewarn "Please be aware that this might impose a security risk,"
2176 - ewarn "depending on the code quality of fping."
2177 - ewarn
2178 - ;;
2179 - esac
2180 - fi
2181 -}
2182
2183 diff --git a/net-analyzer/zabbix/zabbix-3.0.4.ebuild b/net-analyzer/zabbix/zabbix-3.0.4.ebuild
2184 deleted file mode 100644
2185 index 212ccb7..00000000
2186 --- a/net-analyzer/zabbix/zabbix-3.0.4.ebuild
2187 +++ /dev/null
2188 @@ -1,332 +0,0 @@
2189 -# Copyright 1999-2016 Gentoo Foundation
2190 -# Distributed under the terms of the GNU General Public License v2
2191 -# $Id$
2192 -
2193 -EAPI="6"
2194 -
2195 -# needed to make webapp-config dep optional
2196 -WEBAPP_OPTIONAL="yes"
2197 -inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs
2198 -
2199 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
2200 -HOMEPAGE="http://www.zabbix.com/"
2201 -MY_P=${P/_/}
2202 -MY_PV=${PV/_/}
2203 -SRC_URI="http://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz"
2204 -LICENSE="GPL-2"
2205 -SLOT="0"
2206 -WEBAPP_MANUAL_SLOT="yes"
2207 -KEYWORDS="~amd64 ~x86"
2208 -IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle postgres proxy server ssh ssl snmp sqlite odbc static"
2209 -REQUIRED_USE="|| ( agent frontend proxy server )
2210 - proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2211 - server? ( ^^ ( mysql oracle postgres sqlite odbc ) )
2212 - static? ( !oracle !snmp )"
2213 -
2214 -COMMON_DEPEND="snmp? ( net-analyzer/net-snmp )
2215 - ldap? (
2216 - net-nds/openldap
2217 - =dev-libs/cyrus-sasl-2*
2218 - net-libs/gnutls
2219 - )
2220 - mysql? ( >=virtual/mysql-5.0.3 )
2221 - sqlite? ( >=dev-db/sqlite-3.3.5 )
2222 - postgres? ( dev-db/postgresql:* )
2223 - oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 )
2224 - xmpp? ( dev-libs/iksemel )
2225 - libxml2? ( dev-libs/libxml2 )
2226 - curl? ( net-misc/curl )
2227 - openipmi? ( sys-libs/openipmi )
2228 - ssh? ( net-libs/libssh2 )
2229 - java? ( virtual/jdk:* )
2230 - odbc? ( dev-db/unixODBC )
2231 - ssl? ( dev-libs/openssl:=[-bindist] )"
2232 -
2233 -RDEPEND="${COMMON_DEPEND}
2234 - proxy? ( net-analyzer/fping )
2235 - server? ( net-analyzer/fping
2236 - app-admin/webapp-config )
2237 - java? (
2238 - >=virtual/jre-1.4
2239 - dev-java/slf4j-api
2240 - )
2241 - frontend? (
2242 - >=dev-lang/php-5.3.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
2243 - || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] )
2244 - mysql? ( dev-lang/php[mysqli] )
2245 - odbc? ( dev-lang/php[odbc] )
2246 - oracle? ( dev-lang/php[oci8-instant-client] )
2247 - postgres? ( dev-lang/php[postgres] )
2248 - sqlite? ( dev-lang/php[sqlite] )
2249 - media-libs/gd[png]
2250 - app-admin/webapp-config )"
2251 -DEPEND="${COMMON_DEPEND}
2252 - static? (
2253 - ldap? (
2254 - net-nds/openldap[static-libs]
2255 - =dev-libs/cyrus-sasl-2*[static-libs]
2256 - net-libs/gnutls[static-libs]
2257 - )
2258 - mysql? ( >=virtual/mysql-5.0.3[static-libs] )
2259 - sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] )
2260 - postgres? ( dev-db/postgresql:*[static-libs] )
2261 - libxml2? ( dev-libs/libxml2[static-libs] )
2262 - curl? ( net-misc/curl[static-libs] )
2263 - ssh? ( net-libs/libssh2[static-libs] )
2264 - odbc? ( dev-db/unixODBC[static-libs] )
2265 - )
2266 - virtual/pkgconfig"
2267 -
2268 -S=${WORKDIR}/${MY_P}
2269 -
2270 -ZABBIXJAVA_BASE="opt/zabbix_java"
2271 -
2272 -pkg_setup() {
2273 - if use oracle; then
2274 - if [ -z "${ORACLE_HOME}" ]; then
2275 - eerror
2276 - eerror "The environment variable ORACLE_HOME must be set"
2277 - eerror "and point to the correct location."
2278 - eerror "It looks like you don't have Oracle installed."
2279 - eerror
2280 - die "Environment variable ORACLE_HOME is not set"
2281 - fi
2282 - if has_version 'dev-db/oracle-instantclient-basic'; then
2283 - ewarn
2284 - ewarn "Please ensure you have a full install of the Oracle client."
2285 - ewarn "dev-db/oracle-instantclient* is NOT sufficient."
2286 - ewarn
2287 - fi
2288 - fi
2289 -
2290 - if use frontend; then
2291 - webapp_pkg_setup
2292 - fi
2293 -
2294 - enewgroup zabbix
2295 - enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix
2296 -}
2297 -
2298 -java_prepare() {
2299 - cd "${S}/src/zabbix_java/lib"
2300 - rm -v *.jar || die
2301 -
2302 - java-pkg_jar-from slf4j-api
2303 -}
2304 -
2305 -src_prepare() {
2306 - default
2307 -}
2308 -
2309 -src_configure() {
2310 - econf \
2311 - $(use_enable server) \
2312 - $(use_enable proxy) \
2313 - $(use_enable agent) \
2314 - $(use_enable ipv6) \
2315 - $(use_enable static) \
2316 - $(use_enable java) \
2317 - $(use_with ldap) \
2318 - $(use_with snmp net-snmp) \
2319 - $(use_with mysql) \
2320 - $(use_with postgres postgresql) \
2321 - $(use_with oracle) \
2322 - $(use_with sqlite sqlite3) \
2323 - $(use_with xmpp jabber) \
2324 - $(use_with curl libcurl) \
2325 - $(use_with openipmi openipmi) \
2326 - $(use_with ssh ssh2) \
2327 - $(use_with libxml2) \
2328 - $(use_with odbc unixodbc) \
2329 - $(use_with ssl openssl) \
2330 - || die "econf failed"
2331 -}
2332 -
2333 -src_compile() {
2334 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
2335 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed"
2336 - fi
2337 -}
2338 -
2339 -src_install() {
2340 - dodir \
2341 - /etc/zabbix \
2342 - /var/lib/zabbix \
2343 - /var/lib/zabbix/home \
2344 - /var/lib/zabbix/scripts \
2345 - /var/lib/zabbix/alertscripts \
2346 - /var/lib/zabbix/externalscripts \
2347 - /var/log/zabbix
2348 -
2349 - keepdir \
2350 - /etc/zabbix \
2351 - /var/lib/zabbix \
2352 - /var/lib/zabbix/home \
2353 - /var/lib/zabbix/scripts \
2354 - /var/lib/zabbix/alertscripts \
2355 - /var/lib/zabbix/externalscripts \
2356 - /var/log/zabbix
2357 -
2358 - if use server; then
2359 - insinto /etc/zabbix
2360 - doins "${FILESDIR}/3.0"/zabbix_server.conf
2361 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-server
2362 - dosbin src/zabbix_server/zabbix_server
2363 - fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf
2364 - fperms 0640 /etc/zabbix/zabbix_server.conf
2365 - dodir /usr/share/zabbix
2366 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2367 - systemd_dounit "${FILESDIR}/zabbix-server.service"
2368 - systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf
2369 - fi
2370 -
2371 - if use proxy; then
2372 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy
2373 - dosbin src/zabbix_proxy/zabbix_proxy
2374 - insinto /etc/zabbix
2375 - doins "${FILESDIR}/3.0"/zabbix_proxy.conf
2376 - dodir /usr/share/zabbix
2377 - /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/
2378 - systemd_dounit "${FILESDIR}/zabbix-proxy.service"
2379 - systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf
2380 - fi
2381 -
2382 - if use agent; then
2383 - insinto /etc/zabbix
2384 - doins "${FILESDIR}/3.0"/zabbix_agentd.conf
2385 - doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd
2386 - dosbin src/zabbix_agent/zabbix_agentd
2387 - dobin \
2388 - src/zabbix_sender/zabbix_sender \
2389 - src/zabbix_get/zabbix_get
2390 - fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf
2391 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
2392 - systemd_dounit "${FILESDIR}/zabbix-agentd.service"
2393 - systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf
2394 - fi
2395 -
2396 - fowners zabbix:zabbix \
2397 - /etc/zabbix \
2398 - /var/lib/zabbix \
2399 - /var/lib/zabbix/home \
2400 - /var/lib/zabbix/scripts \
2401 - /var/lib/zabbix/alertscripts \
2402 - /var/lib/zabbix/externalscripts \
2403 - /var/log/zabbix
2404 - fperms 0750 \
2405 - /etc/zabbix \
2406 - /var/lib/zabbix \
2407 - /var/lib/zabbix/home \
2408 - /var/lib/zabbix/scripts \
2409 - /var/lib/zabbix/alertscripts \
2410 - /var/lib/zabbix/externalscripts \
2411 - /var/log/zabbix
2412 -
2413 - dodoc README INSTALL NEWS ChangeLog \
2414 - conf/zabbix_agentd.conf \
2415 - conf/zabbix_proxy.conf \
2416 - conf/zabbix_agentd/userparameter_examples.conf \
2417 - conf/zabbix_agentd/userparameter_mysql.conf \
2418 - conf/zabbix_server.conf
2419 -
2420 - if use frontend; then
2421 - webapp_src_preinst
2422 - cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}"
2423 - webapp_configfile \
2424 - "${MY_HTDOCSDIR}"/include/db.inc.php \
2425 - "${MY_HTDOCSDIR}"/include/config.inc.php
2426 - webapp_src_install
2427 - fi
2428 -
2429 - if use java; then
2430 - dodir \
2431 - /${ZABBIXJAVA_BASE} \
2432 - /${ZABBIXJAVA_BASE}/bin \
2433 - /${ZABBIXJAVA_BASE}/lib
2434 - keepdir /${ZABBIXJAVA_BASE}
2435 - exeinto /${ZABBIXJAVA_BASE}/bin
2436 - doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar
2437 - exeinto /${ZABBIXJAVA_BASE}/lib
2438 - doexe \
2439 - src/zabbix_java/lib/logback-classic-0.9.27.jar \
2440 - src/zabbix_java/lib/logback-console.xml \
2441 - src/zabbix_java/lib/logback-core-0.9.27.jar \
2442 - src/zabbix_java/lib/logback.xml \
2443 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
2444 - src/zabbix_java/lib/slf4j-api-1.6.1.jar
2445 - exeinto /${ZABBIXJAVA_BASE}/
2446 - doexe \
2447 - src/zabbix_java/settings.sh \
2448 - src/zabbix_java/startup.sh \
2449 - src/zabbix_java/shutdown.sh
2450 - fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE}
2451 - fi
2452 -}
2453 -
2454 -pkg_postinst() {
2455 - if use server || use proxy ; then
2456 - elog
2457 - elog "You may need to configure your database for Zabbix,"
2458 - elog "if you have not already done so. "
2459 - elog
2460 -
2461 - zabbix_homedir=$(egethome zabbix)
2462 - if [ -n "${zabbix_homedir}" ] && \
2463 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
2464 - ewarn
2465 - ewarn "The user 'zabbix' should have his homedir changed"
2466 - ewarn "to /var/lib/zabbix/home if you want to use"
2467 - ewarn "custom alert scripts."
2468 - ewarn
2469 - ewarn "A real homedir might be needed for configfiles"
2470 - ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when"
2471 - ewarn "using sendxmpp for Jabber alerts)."
2472 - ewarn
2473 - ewarn "To change the homedir use:"
2474 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
2475 - ewarn
2476 - fi
2477 - fi
2478 -
2479 - if use server; then
2480 - elog
2481 - elog "For distributed monitoring you have to run:"
2482 - elog
2483 - elog "zabbix_server -n <nodeid>"
2484 - elog
2485 - elog "This will convert database data for use with Node ID"
2486 - elog "and also adds a local node."
2487 - elog
2488 - fi
2489 -
2490 - elog "--"
2491 - elog
2492 - elog "You may need to add these lines to /etc/services:"
2493 - elog
2494 - elog "zabbix-agent 10050/tcp Zabbix Agent"
2495 - elog "zabbix-agent 10050/udp Zabbix Agent"
2496 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
2497 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
2498 - elog
2499 -
2500 - if use server || use proxy ; then
2501 - # check for fping
2502 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
2503 - case "${fping_perms}" in
2504 - 4[157][157][157])
2505 - ;;
2506 - *)
2507 - ewarn
2508 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
2509 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
2510 - ewarn "by everyone. Run the following command to fix it:"
2511 - ewarn
2512 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
2513 - ewarn
2514 - ewarn "Please be aware that this might impose a security risk,"
2515 - ewarn "depending on the code quality of fping."
2516 - ewarn
2517 - ;;
2518 - esac
2519 - fi
2520 -}