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