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