1 |
commit: 5d9d82757e9b0d50b25db129af0497c0a16d6f71 |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 2 16:30:40 2019 +0000 |
4 |
Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 2 16:30:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d9d8275 |
7 |
|
8 |
net-analyzer/zabbix: Bump |
9 |
|
10 |
Also remove some old 4.0 ebuilds |
11 |
|
12 |
Package-Manager: Portage-2.3.67, Repoman-2.3.13 |
13 |
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> |
14 |
|
15 |
net-analyzer/zabbix/Manifest | 4 +- |
16 |
net-analyzer/zabbix/zabbix-4.0.3.ebuild | 333 --------------------- |
17 |
net-analyzer/zabbix/zabbix-4.0.4.ebuild | 333 --------------------- |
18 |
.../{zabbix-4.0.5.ebuild => zabbix-4.0.7.ebuild} | 0 |
19 |
4 files changed, 1 insertion(+), 669 deletions(-) |
20 |
|
21 |
diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest |
22 |
index e1923a8840e..7aad59b1096 100644 |
23 |
--- a/net-analyzer/zabbix/Manifest |
24 |
+++ b/net-analyzer/zabbix/Manifest |
25 |
@@ -13,7 +13,5 @@ DIST zabbix-3.4.12.tar.gz 17509251 BLAKE2B 158c7b3061059cc54a5988296404ed6670ca8 |
26 |
DIST zabbix-3.4.13.tar.gz 17507365 BLAKE2B a5d1fa1a48df2ad66b844c2c85038a088ea5f7e3e67c2c3ab5f5d1ad695b3a31664d317e6a1cbf64d1f6a211304f50e5c38f5d973d4607f2caa202e1184420cf SHA512 4edcf6d9df0f100c639efa6bc18e67ed59819e719a2226593fd81212d4c2e46a19cb50501cca005246b4c01c4082a18e21c9049a99ac9df263180a3c24fa52f0 |
27 |
DIST zabbix-3.4.14.tar.gz 17476022 BLAKE2B 9fccdf69bb74379fccfe044d68da8ce458e04c4686ae70a2fed5523309196b13fb022daa00d47ae9eb97a0774942efd766858dfe94890e20f38808ef2a3e3d15 SHA512 597ae107c16578ec2b1a364f2b61a7a7423a1cf39d3b04289e2f91dc0f931e796b566cbd451b14e026c35302120b647d6d574952a453189b066fb06081f9bb83 |
28 |
DIST zabbix-3.4.15.tar.gz 17489570 BLAKE2B 8b820e29334fa7814ab54baef75374955340cb907802722a4f91496a35c7a26fc1c37178c264f606f8a4a95cea350e493763e55f44033eb2aa97ec889664908a SHA512 d210c6576a6c5d67a1f58bb51436c815a191a2ea62f6929784fcac6e0da09febdbb42c11dfb791b6a6d5897dbdda02e10bf56f9162b7f9fb34a57c34b8b1c62f |
29 |
-DIST zabbix-4.0.3.tar.gz 18019170 BLAKE2B 0b36ece98ec68ce48c7f38c167c81c4622e454f5626396fdea67092506bcea120c8cc8fd408e2dd4671db44a4c5c0760aa5aba78204d4ad7d124f7d3e62faf35 SHA512 ee8feec85a01c7617d3420529afa59550982c3c51173f8de484a8833099d33cccb84fa4e82f7199bc0ed8af687eb206ae50e4853b824bfbe784f67964cc15e37 |
30 |
-DIST zabbix-4.0.4.tar.gz 18045463 BLAKE2B b236bfc4c98aece3efa9af855055fffe8ddb032dc9dbc47564af120914c8cd373a258e1db890fa51581975628bd065fb7c41295d3291460b77575c9d1958cb37 SHA512 cf07c6dc3ea4b3722790d6db9219b81be7cb06cc11925a335b38bc3a7ad3fc395b45f6ba77edaf41eed545796ed2979c7b2f3b11b67fa6f39b76b58320642adb |
31 |
-DIST zabbix-4.0.5.tar.gz 17098529 BLAKE2B 0148f1087890a5321acf3cd9fdc45ae0f0bc6f8682645799df0e822f4b81e18625d95689b067300c28832c178e3863691dfb3b26ea747db64b0aeeb4e52326c5 SHA512 65794a37b1abd899af2709812a3ce2671e35a6bd9b4751097c6e373736f68ecb3af8c25d6c7f63c2cd8787fe9278e5d70f30d84133bf78d4c742fdf52560957d |
32 |
DIST zabbix-4.0.6.tar.gz 17162202 BLAKE2B 8f03830d5493719cbabd770527dfc99e1bd2d80a3eaeb691e07cd7d8bfe587317ee045ed13a297494539d3cc2e3a26bafe29cd6eb6126c7fe74ee5de44e98b39 SHA512 43b7ccadfaebc34098a827ef7e27c2c637d4bb74db4d06cdaee7650171b7b5e14787a473a66b638a252c1342e841b546e089bd762de703e99e0a34b0549393ca |
33 |
+DIST zabbix-4.0.7.tar.gz 17175571 BLAKE2B 3173881e093c58175e014d55c74d09656dbb6e99321f808a3ce6fe61aef56325aa94c4a3ff0b1edd2872734cc970052c63e5db377f8e8d605bf25f2eb8505802 SHA512 67373383ef961426901d8c27e1e51c902d8580b9af1877d4012c934f0ee52c5cf85e3f81fd16b244cd9c8e869cf13dbdd7597d8e2591356efc61570b354961f8 |
34 |
|
35 |
diff --git a/net-analyzer/zabbix/zabbix-4.0.3.ebuild b/net-analyzer/zabbix/zabbix-4.0.3.ebuild |
36 |
deleted file mode 100644 |
37 |
index 0ed8678d8d9..00000000000 |
38 |
--- a/net-analyzer/zabbix/zabbix-4.0.3.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,333 +0,0 @@ |
41 |
-# Copyright 1999-2018 Gentoo Authors |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI="6" |
45 |
- |
46 |
-# needed to make webapp-config dep optional |
47 |
-WEBAPP_OPTIONAL="yes" |
48 |
-inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs |
49 |
- |
50 |
-DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers" |
51 |
-HOMEPAGE="https://www.zabbix.com/" |
52 |
-MY_P=${P/_/} |
53 |
-MY_PV=${PV/_/} |
54 |
-SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz" |
55 |
-LICENSE="GPL-2" |
56 |
-SLOT="0" |
57 |
-WEBAPP_MANUAL_SLOT="yes" |
58 |
-KEYWORDS="" |
59 |
-IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static" |
60 |
-REQUIRED_USE="|| ( agent frontend proxy server ) |
61 |
- proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) ) |
62 |
- server? ( ^^ ( mysql oracle postgres odbc ) ) |
63 |
- static? ( !oracle !snmp )" |
64 |
- |
65 |
-COMMON_DEPEND="snmp? ( net-analyzer/net-snmp ) |
66 |
- ldap? ( |
67 |
- net-nds/openldap |
68 |
- =dev-libs/cyrus-sasl-2* |
69 |
- net-libs/gnutls |
70 |
- ) |
71 |
- mysql? ( >=virtual/mysql-5.0.3 ) |
72 |
- sqlite? ( >=dev-db/sqlite-3.3.5 ) |
73 |
- postgres? ( >=dev-db/postgresql-8.1:* ) |
74 |
- oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 ) |
75 |
- xmpp? ( dev-libs/iksemel ) |
76 |
- libxml2? ( dev-libs/libxml2 ) |
77 |
- curl? ( net-misc/curl ) |
78 |
- openipmi? ( sys-libs/openipmi ) |
79 |
- ssh? ( net-libs/libssh2 ) |
80 |
- java? ( virtual/jdk:* ) |
81 |
- odbc? ( dev-db/unixODBC ) |
82 |
- server? ( sys-libs/zlib ) |
83 |
- proxy? ( sys-libs/zlib ) |
84 |
- ssl? ( dev-libs/openssl:=[-bindist] )" |
85 |
- |
86 |
-RDEPEND="${COMMON_DEPEND} |
87 |
- proxy? ( net-analyzer/fping[suid] ) |
88 |
- server? ( net-analyzer/fping[suid] |
89 |
- app-admin/webapp-config |
90 |
- dev-libs/libpcre |
91 |
- dev-libs/libevent ) |
92 |
- java? ( |
93 |
- >=virtual/jre-1.4 |
94 |
- dev-java/slf4j-api |
95 |
- ) |
96 |
- frontend? ( |
97 |
- >=dev-lang/php-5.4.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode] |
98 |
- || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] ) |
99 |
- mysql? ( dev-lang/php[mysqli] ) |
100 |
- odbc? ( dev-lang/php[odbc] ) |
101 |
- oracle? ( dev-lang/php[oci8-instant-client] ) |
102 |
- postgres? ( dev-lang/php[postgres] ) |
103 |
- sqlite? ( dev-lang/php[sqlite] ) |
104 |
- media-libs/gd[png] |
105 |
- app-admin/webapp-config )" |
106 |
-DEPEND="${COMMON_DEPEND} |
107 |
- static? ( |
108 |
- ldap? ( |
109 |
- net-nds/openldap[static-libs] |
110 |
- =dev-libs/cyrus-sasl-2*[static-libs] |
111 |
- net-libs/gnutls[static-libs] |
112 |
- ) |
113 |
- mysql? ( >=virtual/mysql-5.0.3[static-libs] ) |
114 |
- sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] ) |
115 |
- postgres? ( >=dev-db/postgresql-8.1:*[static-libs] ) |
116 |
- libxml2? ( dev-libs/libxml2[static-libs] ) |
117 |
- curl? ( net-misc/curl[static-libs] ) |
118 |
- ssh? ( net-libs/libssh2[static-libs] ) |
119 |
- odbc? ( dev-db/unixODBC[static-libs] ) |
120 |
- ) |
121 |
- virtual/pkgconfig" |
122 |
- |
123 |
-S=${WORKDIR}/${MY_P} |
124 |
- |
125 |
-ZABBIXJAVA_BASE="opt/zabbix_java" |
126 |
- |
127 |
-pkg_setup() { |
128 |
- if use oracle; then |
129 |
- if [ -z "${ORACLE_HOME}" ]; then |
130 |
- eerror |
131 |
- eerror "The environment variable ORACLE_HOME must be set" |
132 |
- eerror "and point to the correct location." |
133 |
- eerror "It looks like you don't have Oracle installed." |
134 |
- eerror |
135 |
- die "Environment variable ORACLE_HOME is not set" |
136 |
- fi |
137 |
- if has_version 'dev-db/oracle-instantclient-basic'; then |
138 |
- ewarn |
139 |
- ewarn "Please ensure you have a full install of the Oracle client." |
140 |
- ewarn "dev-db/oracle-instantclient* is NOT sufficient." |
141 |
- ewarn |
142 |
- fi |
143 |
- fi |
144 |
- |
145 |
- if use frontend; then |
146 |
- webapp_pkg_setup |
147 |
- fi |
148 |
- |
149 |
- enewgroup zabbix |
150 |
- enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix |
151 |
-} |
152 |
- |
153 |
-java_prepare() { |
154 |
- cd "${S}/src/zabbix_java/lib" |
155 |
- rm -v *.jar || die |
156 |
- |
157 |
- java-pkg_jar-from slf4j-api |
158 |
-} |
159 |
- |
160 |
-src_prepare() { |
161 |
- eapply -p1 "${FILESDIR}/4.0/patches/zbx401-modulepathfix.patch" |
162 |
- eapply_user |
163 |
-} |
164 |
- |
165 |
-src_configure() { |
166 |
- econf \ |
167 |
- $(use_enable server) \ |
168 |
- $(use_enable proxy) \ |
169 |
- $(use_enable agent) \ |
170 |
- $(use_enable ipv6) \ |
171 |
- $(use_enable static) \ |
172 |
- $(use_enable java) \ |
173 |
- $(use_with ldap) \ |
174 |
- $(use_with snmp net-snmp) \ |
175 |
- $(use_with mysql) \ |
176 |
- $(use_with postgres postgresql) \ |
177 |
- $(use_with oracle) \ |
178 |
- $(use_with sqlite sqlite3) \ |
179 |
- $(use_with xmpp jabber) \ |
180 |
- $(use_with curl libcurl) \ |
181 |
- $(use_with openipmi openipmi) \ |
182 |
- $(use_with ssh ssh2) \ |
183 |
- $(use_with libxml2) \ |
184 |
- $(use_with odbc unixodbc) \ |
185 |
- $(use_with ssl openssl) \ |
186 |
- || die "econf failed" |
187 |
-} |
188 |
- |
189 |
-src_compile() { |
190 |
- if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then |
191 |
- emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed" |
192 |
- fi |
193 |
-} |
194 |
- |
195 |
-src_install() { |
196 |
- dodir \ |
197 |
- /etc/zabbix \ |
198 |
- /var/lib/zabbix \ |
199 |
- /var/lib/zabbix/home \ |
200 |
- /var/lib/zabbix/scripts \ |
201 |
- /var/lib/zabbix/alertscripts \ |
202 |
- /var/lib/zabbix/externalscripts \ |
203 |
- /var/log/zabbix |
204 |
- |
205 |
- keepdir \ |
206 |
- /etc/zabbix \ |
207 |
- /var/lib/zabbix \ |
208 |
- /var/lib/zabbix/home \ |
209 |
- /var/lib/zabbix/scripts \ |
210 |
- /var/lib/zabbix/alertscripts \ |
211 |
- /var/lib/zabbix/externalscripts \ |
212 |
- /var/log/zabbix |
213 |
- |
214 |
- if use server; then |
215 |
- insinto /etc/zabbix |
216 |
- doins "${FILESDIR}/3.0"/zabbix_server.conf |
217 |
- doinitd "${FILESDIR}/3.0"/init.d/zabbix-server |
218 |
- dosbin src/zabbix_server/zabbix_server |
219 |
- fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf |
220 |
- fperms 0640 /etc/zabbix/zabbix_server.conf |
221 |
- dodir /usr/share/zabbix |
222 |
- /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/ |
223 |
- systemd_dounit "${FILESDIR}/zabbix-server.service" |
224 |
- systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf |
225 |
- fi |
226 |
- |
227 |
- if use proxy; then |
228 |
- doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy |
229 |
- dosbin src/zabbix_proxy/zabbix_proxy |
230 |
- insinto /etc/zabbix |
231 |
- doins "${FILESDIR}/3.0"/zabbix_proxy.conf |
232 |
- dodir /usr/share/zabbix |
233 |
- /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/ |
234 |
- systemd_dounit "${FILESDIR}/zabbix-proxy.service" |
235 |
- systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf |
236 |
- fi |
237 |
- |
238 |
- if use agent; then |
239 |
- insinto /etc/zabbix |
240 |
- doins "${FILESDIR}/3.0"/zabbix_agentd.conf |
241 |
- doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd |
242 |
- dosbin src/zabbix_agent/zabbix_agentd |
243 |
- dobin \ |
244 |
- src/zabbix_sender/zabbix_sender \ |
245 |
- src/zabbix_get/zabbix_get |
246 |
- fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf |
247 |
- fperms 0640 /etc/zabbix/zabbix_agentd.conf |
248 |
- systemd_dounit "${FILESDIR}/zabbix-agentd.service" |
249 |
- systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf |
250 |
- fi |
251 |
- |
252 |
- fowners zabbix:zabbix \ |
253 |
- /etc/zabbix \ |
254 |
- /var/lib/zabbix \ |
255 |
- /var/lib/zabbix/home \ |
256 |
- /var/lib/zabbix/scripts \ |
257 |
- /var/lib/zabbix/alertscripts \ |
258 |
- /var/lib/zabbix/externalscripts \ |
259 |
- /var/log/zabbix |
260 |
- fperms 0750 \ |
261 |
- /etc/zabbix \ |
262 |
- /var/lib/zabbix \ |
263 |
- /var/lib/zabbix/home \ |
264 |
- /var/lib/zabbix/scripts \ |
265 |
- /var/lib/zabbix/alertscripts \ |
266 |
- /var/lib/zabbix/externalscripts \ |
267 |
- /var/log/zabbix |
268 |
- |
269 |
- dodoc README INSTALL NEWS ChangeLog \ |
270 |
- conf/zabbix_agentd.conf \ |
271 |
- conf/zabbix_proxy.conf \ |
272 |
- conf/zabbix_agentd/userparameter_examples.conf \ |
273 |
- conf/zabbix_agentd/userparameter_mysql.conf \ |
274 |
- conf/zabbix_server.conf |
275 |
- |
276 |
- if use frontend; then |
277 |
- webapp_src_preinst |
278 |
- cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}" |
279 |
- webapp_configfile \ |
280 |
- "${MY_HTDOCSDIR}"/include/db.inc.php \ |
281 |
- "${MY_HTDOCSDIR}"/include/config.inc.php |
282 |
- webapp_src_install |
283 |
- fi |
284 |
- |
285 |
- if use java; then |
286 |
- dodir \ |
287 |
- /${ZABBIXJAVA_BASE} \ |
288 |
- /${ZABBIXJAVA_BASE}/bin \ |
289 |
- /${ZABBIXJAVA_BASE}/lib |
290 |
- keepdir /${ZABBIXJAVA_BASE} |
291 |
- exeinto /${ZABBIXJAVA_BASE}/bin |
292 |
- doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar |
293 |
- exeinto /${ZABBIXJAVA_BASE}/lib |
294 |
- doexe \ |
295 |
- src/zabbix_java/lib/logback-classic-0.9.27.jar \ |
296 |
- src/zabbix_java/lib/logback-console.xml \ |
297 |
- src/zabbix_java/lib/logback-core-0.9.27.jar \ |
298 |
- src/zabbix_java/lib/logback.xml \ |
299 |
- src/zabbix_java/lib/android-json-4.3_r3.1.jar \ |
300 |
- src/zabbix_java/lib/slf4j-api-1.6.1.jar |
301 |
- fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE} |
302 |
- doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy |
303 |
- doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy |
304 |
- fi |
305 |
-} |
306 |
- |
307 |
-pkg_postinst() { |
308 |
- if use server || use proxy ; then |
309 |
- elog |
310 |
- elog "You may need to configure your database for Zabbix," |
311 |
- elog "if you have not already done so. " |
312 |
- elog |
313 |
- |
314 |
- zabbix_homedir=$(egethome zabbix) |
315 |
- if [ -n "${zabbix_homedir}" ] && \ |
316 |
- [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then |
317 |
- ewarn |
318 |
- ewarn "The user 'zabbix' should have his homedir changed" |
319 |
- ewarn "to /var/lib/zabbix/home if you want to use" |
320 |
- ewarn "custom alert scripts." |
321 |
- ewarn |
322 |
- ewarn "A real homedir might be needed for configfiles" |
323 |
- ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when" |
324 |
- ewarn "using sendxmpp for Jabber alerts)." |
325 |
- ewarn |
326 |
- ewarn "To change the homedir use:" |
327 |
- ewarn " usermod -d /var/lib/zabbix/home zabbix" |
328 |
- ewarn |
329 |
- fi |
330 |
- fi |
331 |
- |
332 |
- if use server; then |
333 |
- elog |
334 |
- elog "For distributed monitoring you have to run:" |
335 |
- elog |
336 |
- elog "zabbix_server -n <nodeid>" |
337 |
- elog |
338 |
- elog "This will convert database data for use with Node ID" |
339 |
- elog "and also adds a local node." |
340 |
- elog |
341 |
- fi |
342 |
- |
343 |
- elog "--" |
344 |
- elog |
345 |
- elog "You may need to add these lines to /etc/services:" |
346 |
- elog |
347 |
- elog "zabbix-agent 10050/tcp Zabbix Agent" |
348 |
- elog "zabbix-agent 10050/udp Zabbix Agent" |
349 |
- elog "zabbix-trapper 10051/tcp Zabbix Trapper" |
350 |
- elog "zabbix-trapper 10051/udp Zabbix Trapper" |
351 |
- elog |
352 |
- |
353 |
- if use server || use proxy ; then |
354 |
- # check for fping |
355 |
- fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null) |
356 |
- case "${fping_perms}" in |
357 |
- 4[157][157][157]) |
358 |
- ;; |
359 |
- *) |
360 |
- ewarn |
361 |
- ewarn "If you want to use the checks 'icmpping' and 'icmppingsec'," |
362 |
- ewarn "you have to make /usr/sbin/fping setuid root and executable" |
363 |
- ewarn "by everyone. Run the following command to fix it:" |
364 |
- ewarn |
365 |
- ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping" |
366 |
- ewarn |
367 |
- ewarn "Please be aware that this might impose a security risk," |
368 |
- ewarn "depending on the code quality of fping." |
369 |
- ewarn |
370 |
- ;; |
371 |
- esac |
372 |
- fi |
373 |
-} |
374 |
|
375 |
diff --git a/net-analyzer/zabbix/zabbix-4.0.4.ebuild b/net-analyzer/zabbix/zabbix-4.0.4.ebuild |
376 |
deleted file mode 100644 |
377 |
index 6f3e1a57879..00000000000 |
378 |
--- a/net-analyzer/zabbix/zabbix-4.0.4.ebuild |
379 |
+++ /dev/null |
380 |
@@ -1,333 +0,0 @@ |
381 |
-# Copyright 1999-2019 Gentoo Authors |
382 |
-# Distributed under the terms of the GNU General Public License v2 |
383 |
- |
384 |
-EAPI="6" |
385 |
- |
386 |
-# needed to make webapp-config dep optional |
387 |
-WEBAPP_OPTIONAL="yes" |
388 |
-inherit flag-o-matic webapp java-pkg-opt-2 user systemd toolchain-funcs |
389 |
- |
390 |
-DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers" |
391 |
-HOMEPAGE="https://www.zabbix.com/" |
392 |
-MY_P=${P/_/} |
393 |
-MY_PV=${PV/_/} |
394 |
-SRC_URI="https://prdownloads.sourceforge.net/zabbix/${MY_P}.tar.gz" |
395 |
-LICENSE="GPL-2" |
396 |
-SLOT="0" |
397 |
-WEBAPP_MANUAL_SLOT="yes" |
398 |
-KEYWORDS="" |
399 |
-IUSE="+agent java curl frontend ipv6 xmpp ldap libxml2 mysql openipmi oracle +postgres proxy server ssh ssl snmp sqlite odbc static" |
400 |
-REQUIRED_USE="|| ( agent frontend proxy server ) |
401 |
- proxy? ( ^^ ( mysql oracle postgres sqlite odbc ) ) |
402 |
- server? ( ^^ ( mysql oracle postgres odbc ) ) |
403 |
- static? ( !oracle !snmp )" |
404 |
- |
405 |
-COMMON_DEPEND="snmp? ( net-analyzer/net-snmp ) |
406 |
- ldap? ( |
407 |
- net-nds/openldap |
408 |
- =dev-libs/cyrus-sasl-2* |
409 |
- net-libs/gnutls |
410 |
- ) |
411 |
- mysql? ( >=virtual/mysql-5.0.3 ) |
412 |
- sqlite? ( >=dev-db/sqlite-3.3.5 ) |
413 |
- postgres? ( >=dev-db/postgresql-8.1:* ) |
414 |
- oracle? ( >=dev-db/oracle-instantclient-basic-10.0.0.0 ) |
415 |
- xmpp? ( dev-libs/iksemel ) |
416 |
- libxml2? ( dev-libs/libxml2 ) |
417 |
- curl? ( net-misc/curl ) |
418 |
- openipmi? ( sys-libs/openipmi ) |
419 |
- ssh? ( net-libs/libssh2 ) |
420 |
- java? ( virtual/jdk:* ) |
421 |
- odbc? ( dev-db/unixODBC ) |
422 |
- server? ( sys-libs/zlib ) |
423 |
- proxy? ( sys-libs/zlib ) |
424 |
- ssl? ( dev-libs/openssl:=[-bindist] )" |
425 |
- |
426 |
-RDEPEND="${COMMON_DEPEND} |
427 |
- proxy? ( net-analyzer/fping[suid] ) |
428 |
- server? ( net-analyzer/fping[suid] |
429 |
- app-admin/webapp-config |
430 |
- dev-libs/libpcre |
431 |
- dev-libs/libevent ) |
432 |
- java? ( |
433 |
- >=virtual/jre-1.4 |
434 |
- dev-java/slf4j-api |
435 |
- ) |
436 |
- frontend? ( |
437 |
- >=dev-lang/php-5.4.0[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode] |
438 |
- || ( dev-lang/php[apache2] dev-lang/php[cgi] dev-lang/php[fpm] ) |
439 |
- mysql? ( dev-lang/php[mysqli] ) |
440 |
- odbc? ( dev-lang/php[odbc] ) |
441 |
- oracle? ( dev-lang/php[oci8-instant-client] ) |
442 |
- postgres? ( dev-lang/php[postgres] ) |
443 |
- sqlite? ( dev-lang/php[sqlite] ) |
444 |
- media-libs/gd[png] |
445 |
- app-admin/webapp-config )" |
446 |
-DEPEND="${COMMON_DEPEND} |
447 |
- static? ( |
448 |
- ldap? ( |
449 |
- net-nds/openldap[static-libs] |
450 |
- =dev-libs/cyrus-sasl-2*[static-libs] |
451 |
- net-libs/gnutls[static-libs] |
452 |
- ) |
453 |
- mysql? ( >=virtual/mysql-5.0.3[static-libs] ) |
454 |
- sqlite? ( >=dev-db/sqlite-3.3.5[static-libs] ) |
455 |
- postgres? ( >=dev-db/postgresql-8.1:*[static-libs] ) |
456 |
- libxml2? ( dev-libs/libxml2[static-libs] ) |
457 |
- curl? ( net-misc/curl[static-libs] ) |
458 |
- ssh? ( net-libs/libssh2[static-libs] ) |
459 |
- odbc? ( dev-db/unixODBC[static-libs] ) |
460 |
- ) |
461 |
- virtual/pkgconfig" |
462 |
- |
463 |
-S=${WORKDIR}/${MY_P} |
464 |
- |
465 |
-ZABBIXJAVA_BASE="opt/zabbix_java" |
466 |
- |
467 |
-pkg_setup() { |
468 |
- if use oracle; then |
469 |
- if [ -z "${ORACLE_HOME}" ]; then |
470 |
- eerror |
471 |
- eerror "The environment variable ORACLE_HOME must be set" |
472 |
- eerror "and point to the correct location." |
473 |
- eerror "It looks like you don't have Oracle installed." |
474 |
- eerror |
475 |
- die "Environment variable ORACLE_HOME is not set" |
476 |
- fi |
477 |
- if has_version 'dev-db/oracle-instantclient-basic'; then |
478 |
- ewarn |
479 |
- ewarn "Please ensure you have a full install of the Oracle client." |
480 |
- ewarn "dev-db/oracle-instantclient* is NOT sufficient." |
481 |
- ewarn |
482 |
- fi |
483 |
- fi |
484 |
- |
485 |
- if use frontend; then |
486 |
- webapp_pkg_setup |
487 |
- fi |
488 |
- |
489 |
- enewgroup zabbix |
490 |
- enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix |
491 |
-} |
492 |
- |
493 |
-java_prepare() { |
494 |
- cd "${S}/src/zabbix_java/lib" |
495 |
- rm -v *.jar || die |
496 |
- |
497 |
- java-pkg_jar-from slf4j-api |
498 |
-} |
499 |
- |
500 |
-src_prepare() { |
501 |
- eapply -p1 "${FILESDIR}/4.0/patches/zbx401-modulepathfix.patch" |
502 |
- eapply_user |
503 |
-} |
504 |
- |
505 |
-src_configure() { |
506 |
- econf \ |
507 |
- $(use_enable server) \ |
508 |
- $(use_enable proxy) \ |
509 |
- $(use_enable agent) \ |
510 |
- $(use_enable ipv6) \ |
511 |
- $(use_enable static) \ |
512 |
- $(use_enable java) \ |
513 |
- $(use_with ldap) \ |
514 |
- $(use_with snmp net-snmp) \ |
515 |
- $(use_with mysql) \ |
516 |
- $(use_with postgres postgresql) \ |
517 |
- $(use_with oracle) \ |
518 |
- $(use_with sqlite sqlite3) \ |
519 |
- $(use_with xmpp jabber) \ |
520 |
- $(use_with curl libcurl) \ |
521 |
- $(use_with openipmi openipmi) \ |
522 |
- $(use_with ssh ssh2) \ |
523 |
- $(use_with libxml2) \ |
524 |
- $(use_with odbc unixodbc) \ |
525 |
- $(use_with ssl openssl) \ |
526 |
- || die "econf failed" |
527 |
-} |
528 |
- |
529 |
-src_compile() { |
530 |
- if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then |
531 |
- emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "emake failed" |
532 |
- fi |
533 |
-} |
534 |
- |
535 |
-src_install() { |
536 |
- dodir \ |
537 |
- /etc/zabbix \ |
538 |
- /var/lib/zabbix \ |
539 |
- /var/lib/zabbix/home \ |
540 |
- /var/lib/zabbix/scripts \ |
541 |
- /var/lib/zabbix/alertscripts \ |
542 |
- /var/lib/zabbix/externalscripts \ |
543 |
- /var/log/zabbix |
544 |
- |
545 |
- keepdir \ |
546 |
- /etc/zabbix \ |
547 |
- /var/lib/zabbix \ |
548 |
- /var/lib/zabbix/home \ |
549 |
- /var/lib/zabbix/scripts \ |
550 |
- /var/lib/zabbix/alertscripts \ |
551 |
- /var/lib/zabbix/externalscripts \ |
552 |
- /var/log/zabbix |
553 |
- |
554 |
- if use server; then |
555 |
- insinto /etc/zabbix |
556 |
- doins "${FILESDIR}/3.0"/zabbix_server.conf |
557 |
- doinitd "${FILESDIR}/3.0"/init.d/zabbix-server |
558 |
- dosbin src/zabbix_server/zabbix_server |
559 |
- fowners zabbix:zabbix /etc/zabbix/zabbix_server.conf |
560 |
- fperms 0640 /etc/zabbix/zabbix_server.conf |
561 |
- dodir /usr/share/zabbix |
562 |
- /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/ |
563 |
- systemd_dounit "${FILESDIR}/zabbix-server.service" |
564 |
- systemd_newtmpfilesd "${FILESDIR}/zabbix-server.tmpfiles" zabbix-server.conf |
565 |
- fi |
566 |
- |
567 |
- if use proxy; then |
568 |
- doinitd "${FILESDIR}/3.0"/init.d/zabbix-proxy |
569 |
- dosbin src/zabbix_proxy/zabbix_proxy |
570 |
- insinto /etc/zabbix |
571 |
- doins "${FILESDIR}/3.0"/zabbix_proxy.conf |
572 |
- dodir /usr/share/zabbix |
573 |
- /bin/cp -R "${S}/database/" "${D}"/usr/share/zabbix/ |
574 |
- systemd_dounit "${FILESDIR}/zabbix-proxy.service" |
575 |
- systemd_newtmpfilesd "${FILESDIR}/zabbix-proxy.tmpfiles" zabbix-proxy.conf |
576 |
- fi |
577 |
- |
578 |
- if use agent; then |
579 |
- insinto /etc/zabbix |
580 |
- doins "${FILESDIR}/3.0"/zabbix_agentd.conf |
581 |
- doinitd "${FILESDIR}/3.0"/init.d/zabbix-agentd |
582 |
- dosbin src/zabbix_agent/zabbix_agentd |
583 |
- dobin \ |
584 |
- src/zabbix_sender/zabbix_sender \ |
585 |
- src/zabbix_get/zabbix_get |
586 |
- fowners zabbix:zabbix /etc/zabbix/zabbix_agentd.conf |
587 |
- fperms 0640 /etc/zabbix/zabbix_agentd.conf |
588 |
- systemd_dounit "${FILESDIR}/zabbix-agentd.service" |
589 |
- systemd_newtmpfilesd "${FILESDIR}/zabbix-agentd.tmpfiles" zabbix-agentd.conf |
590 |
- fi |
591 |
- |
592 |
- fowners zabbix:zabbix \ |
593 |
- /etc/zabbix \ |
594 |
- /var/lib/zabbix \ |
595 |
- /var/lib/zabbix/home \ |
596 |
- /var/lib/zabbix/scripts \ |
597 |
- /var/lib/zabbix/alertscripts \ |
598 |
- /var/lib/zabbix/externalscripts \ |
599 |
- /var/log/zabbix |
600 |
- fperms 0750 \ |
601 |
- /etc/zabbix \ |
602 |
- /var/lib/zabbix \ |
603 |
- /var/lib/zabbix/home \ |
604 |
- /var/lib/zabbix/scripts \ |
605 |
- /var/lib/zabbix/alertscripts \ |
606 |
- /var/lib/zabbix/externalscripts \ |
607 |
- /var/log/zabbix |
608 |
- |
609 |
- dodoc README INSTALL NEWS ChangeLog \ |
610 |
- conf/zabbix_agentd.conf \ |
611 |
- conf/zabbix_proxy.conf \ |
612 |
- conf/zabbix_agentd/userparameter_examples.conf \ |
613 |
- conf/zabbix_agentd/userparameter_mysql.conf \ |
614 |
- conf/zabbix_server.conf |
615 |
- |
616 |
- if use frontend; then |
617 |
- webapp_src_preinst |
618 |
- cp -R frontends/php/* "${D}/${MY_HTDOCSDIR}" |
619 |
- webapp_configfile \ |
620 |
- "${MY_HTDOCSDIR}"/include/db.inc.php \ |
621 |
- "${MY_HTDOCSDIR}"/include/config.inc.php |
622 |
- webapp_src_install |
623 |
- fi |
624 |
- |
625 |
- if use java; then |
626 |
- dodir \ |
627 |
- /${ZABBIXJAVA_BASE} \ |
628 |
- /${ZABBIXJAVA_BASE}/bin \ |
629 |
- /${ZABBIXJAVA_BASE}/lib |
630 |
- keepdir /${ZABBIXJAVA_BASE} |
631 |
- exeinto /${ZABBIXJAVA_BASE}/bin |
632 |
- doexe src/zabbix_java/bin/zabbix-java-gateway-${MY_PV}.jar |
633 |
- exeinto /${ZABBIXJAVA_BASE}/lib |
634 |
- doexe \ |
635 |
- src/zabbix_java/lib/logback-classic-0.9.27.jar \ |
636 |
- src/zabbix_java/lib/logback-console.xml \ |
637 |
- src/zabbix_java/lib/logback-core-0.9.27.jar \ |
638 |
- src/zabbix_java/lib/logback.xml \ |
639 |
- src/zabbix_java/lib/android-json-4.3_r3.1.jar \ |
640 |
- src/zabbix_java/lib/slf4j-api-1.6.1.jar |
641 |
- fowners -R zabbix:zabbix /${ZABBIXJAVA_BASE} |
642 |
- doinitd "${FILESDIR}"/3.0/init.d/zabbix-jmx-proxy |
643 |
- doconfd "${FILESDIR}"/3.0/conf.d/zabbix-jmx-proxy |
644 |
- fi |
645 |
-} |
646 |
- |
647 |
-pkg_postinst() { |
648 |
- if use server || use proxy ; then |
649 |
- elog |
650 |
- elog "You may need to configure your database for Zabbix," |
651 |
- elog "if you have not already done so. " |
652 |
- elog |
653 |
- |
654 |
- zabbix_homedir=$(egethome zabbix) |
655 |
- if [ -n "${zabbix_homedir}" ] && \ |
656 |
- [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then |
657 |
- ewarn |
658 |
- ewarn "The user 'zabbix' should have his homedir changed" |
659 |
- ewarn "to /var/lib/zabbix/home if you want to use" |
660 |
- ewarn "custom alert scripts." |
661 |
- ewarn |
662 |
- ewarn "A real homedir might be needed for configfiles" |
663 |
- ewarn "for custom alert scripts (e.g. ~/.sendxmpprc when" |
664 |
- ewarn "using sendxmpp for Jabber alerts)." |
665 |
- ewarn |
666 |
- ewarn "To change the homedir use:" |
667 |
- ewarn " usermod -d /var/lib/zabbix/home zabbix" |
668 |
- ewarn |
669 |
- fi |
670 |
- fi |
671 |
- |
672 |
- if use server; then |
673 |
- elog |
674 |
- elog "For distributed monitoring you have to run:" |
675 |
- elog |
676 |
- elog "zabbix_server -n <nodeid>" |
677 |
- elog |
678 |
- elog "This will convert database data for use with Node ID" |
679 |
- elog "and also adds a local node." |
680 |
- elog |
681 |
- fi |
682 |
- |
683 |
- elog "--" |
684 |
- elog |
685 |
- elog "You may need to add these lines to /etc/services:" |
686 |
- elog |
687 |
- elog "zabbix-agent 10050/tcp Zabbix Agent" |
688 |
- elog "zabbix-agent 10050/udp Zabbix Agent" |
689 |
- elog "zabbix-trapper 10051/tcp Zabbix Trapper" |
690 |
- elog "zabbix-trapper 10051/udp Zabbix Trapper" |
691 |
- elog |
692 |
- |
693 |
- if use server || use proxy ; then |
694 |
- # check for fping |
695 |
- fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null) |
696 |
- case "${fping_perms}" in |
697 |
- 4[157][157][157]) |
698 |
- ;; |
699 |
- *) |
700 |
- ewarn |
701 |
- ewarn "If you want to use the checks 'icmpping' and 'icmppingsec'," |
702 |
- ewarn "you have to make /usr/sbin/fping setuid root and executable" |
703 |
- ewarn "by everyone. Run the following command to fix it:" |
704 |
- ewarn |
705 |
- ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping" |
706 |
- ewarn |
707 |
- ewarn "Please be aware that this might impose a security risk," |
708 |
- ewarn "depending on the code quality of fping." |
709 |
- ewarn |
710 |
- ;; |
711 |
- esac |
712 |
- fi |
713 |
-} |
714 |
|
715 |
diff --git a/net-analyzer/zabbix/zabbix-4.0.5.ebuild b/net-analyzer/zabbix/zabbix-4.0.7.ebuild |
716 |
similarity index 100% |
717 |
rename from net-analyzer/zabbix/zabbix-4.0.5.ebuild |
718 |
rename to net-analyzer/zabbix/zabbix-4.0.7.ebuild |