Gentoo Archives: gentoo-commits

From: "Miroslav Šulc" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/zabbix/
Date: Mon, 06 Jun 2022 06:12:28
Message-Id: 1654495931.8c9a53c7f8ee0801ae14d978694310e362e905af.fordfrog@gentoo
1 commit: 8c9a53c7f8ee0801ae14d978694310e362e905af
2 Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 6 06:11:51 2022 +0000
4 Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 6 06:12:11 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c9a53c7
7
8 net-analyzer/zabbix: dropped 5.4.12 - 5.4 branch not supported anymore by upstream
9
10 Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
11
12 net-analyzer/zabbix/Manifest | 2 -
13 net-analyzer/zabbix/zabbix-5.4.12.ebuild | 387 -------------------------------
14 2 files changed, 389 deletions(-)
15
16 diff --git a/net-analyzer/zabbix/Manifest b/net-analyzer/zabbix/Manifest
17 index f43c886373a4..6a664733045d 100644
18 --- a/net-analyzer/zabbix/Manifest
19 +++ b/net-analyzer/zabbix/Manifest
20 @@ -1,7 +1,5 @@
21 DIST zabbix-4.0.38.tar.gz 17558387 BLAKE2B 1ddf27d76734128ddd197eb9dffeb59018282464a7322973dc4102992c0ade003d4d0291194f5b5a487d83a702917d6f0036636e56acc424bd7a7d6beb3f787c SHA512 0d38a74336c9e46b3f9985aca3508312dd5b15affeadee3497ebf8d5e59b4fa7b99ff28819b01878cbc5c9c304c1992a6a91d73f35bf1a333ae2ee561e0d7e1f
22 DIST zabbix-5.0.22-go-deps.tar.xz 34395200 BLAKE2B 3065878d5d61617f52ec48381a248ea13a603c13bb1cc18b6fde4e81f47bfd9dc4bafe34303e4bb46f1d7e9809d0b17acf48b782c11162fdcf04f0de89402f2b SHA512 fc30d33066248fe7c9049fec7538e1d1880d9c23d10516032027ea90e90a7531288990a33a48cbab2722a6ca67f49f79507cce7351d2c026317fc58843d4868e
23 DIST zabbix-5.0.22.tar.gz 21245241 BLAKE2B d2343fc5dbc4112ef77c75bd00b8344a363a8e2acc6623a009ebd24d7116377a66d2ca94f22dee386fbee1fa9822ce7e08287cb1336fe939bd2b621fe57b5b1f SHA512 d326ed5dd81b44adf80e8cc01d32b3b7ebed0b8ffddc2870e76ffcd010513f2b2bbe4586681e5c5ab5202f88c7861078efad537bb852ee52d5c00b7712cc2aab
24 -DIST zabbix-5.4.12-go-deps.tar.xz 35810488 BLAKE2B 26a7995bbe6b40a1912f90e1ea572a0de96f9182928d2401054fc1935c9ecac25ee90cb44c7b1b0f71a8c56e4477752b2bffebca7a331fbdc341a7a9ca1eca6c SHA512 bd5882b1bfc4d75c2b42170bbab5cca5e8795f3ff001b62444faf5d1601c5ef54da0198c83253fefd5c2c465f78a9ddb2a4aa13699d198337af935a80756c991
25 -DIST zabbix-5.4.12.tar.gz 24513065 BLAKE2B fe289b58384c9b956fcbada940220c5288022457b7eb5b0a7ce2f86df777e2d84a45fc4d4f17f43aecac4466dc0e9d9941e0070cd00b3688b26821123d2301da SHA512 5f4862540e15f88efa52002b9ec6d7251a35e94f8e5f6f8b6090f5827a574411c813732a88a08fbcc3c24033011d678b953a7a78260aef702454269537232c7b
26 DIST zabbix-6.0.3-go-deps.tar.xz 35806596 BLAKE2B bf86722b1ee26237e42b4b3b5558415e0eb29dbe675b70585c8bb06c0b1e469ed9887e425778503c1d42ee2bd938b085f544d0696d080e04957dcb5794b7afa4 SHA512 0a5a051561dee2f3e42f18fff9127e3c8a0b5a7cae3a828a880866feac81a21ef71ba83c53f9e5a37fb3eee78475974b2f30ba5398012aeca6adf8d3cea74399
27 DIST zabbix-6.0.3.tar.gz 33135282 BLAKE2B d2cb50678710e96737e72ddb4b0b02d4695f872df6cab2edfd50d343ffc0103eec3191bfa02d8421e29c583f6d478598effc22a0f8d3f76b57a9ac3b4e4369fe SHA512 f93a7b4b19d2a1561e42ef67378bfb94a5edaae5b9bba8f2214de3bad1bf9d7efcb32da9f1b3ee820cc6bdc68308286606c4ceb7e1ba0ab42e24045c56f8ce47
28
29 diff --git a/net-analyzer/zabbix/zabbix-5.4.12.ebuild b/net-analyzer/zabbix/zabbix-5.4.12.ebuild
30 deleted file mode 100644
31 index 13f0b6d9bc42..000000000000
32 --- a/net-analyzer/zabbix/zabbix-5.4.12.ebuild
33 +++ /dev/null
34 @@ -1,387 +0,0 @@
35 -# Copyright 1999-2022 Gentoo Authors
36 -# Distributed under the terms of the GNU General Public License v2
37 -
38 -EAPI=8
39 -
40 -GO_OPTIONAL="yes"
41 -# needed to make webapp-config dep optional
42 -WEBAPP_OPTIONAL="yes"
43 -inherit webapp java-pkg-opt-2 systemd tmpfiles toolchain-funcs go-module user-info
44 -
45 -DESCRIPTION="ZABBIX is software for monitoring of your applications, network and servers"
46 -HOMEPAGE="https://www.zabbix.com/"
47 -MY_P=${P/_/}
48 -MY_PV=${PV/_/}
49 -SRC_URI="https://cdn.zabbix.com/${PN}/sources/stable/$(ver_cut 1-2)/${P}.tar.gz
50 - agent2? ( https://dev.gentoo.org/~fordfrog/distfiles/${P}-go-deps.tar.xz )
51 -"
52 -
53 -LICENSE="GPL-2"
54 -SLOT="0/$(ver_cut 1-2)"
55 -WEBAPP_MANUAL_SLOT="yes"
56 -KEYWORDS="amd64 x86"
57 -IUSE="+agent +agent2 curl frontend gnutls ipv6 java ldap libxml2 mysql odbc openipmi +openssl oracle +postgres proxy server snmp sqlite ssh static"
58 -REQUIRED_USE="|| ( agent agent2 frontend proxy server )
59 - ?? ( gnutls openssl )
60 - proxy? ( ^^ ( mysql oracle postgres sqlite ) )
61 - server? ( ^^ ( mysql oracle postgres ) !sqlite )
62 - static? ( !oracle !snmp )"
63 -
64 -COMMON_DEPEND="
65 - curl? ( net-misc/curl )
66 - gnutls? ( net-libs/gnutls:0= )
67 - java? ( >=virtual/jdk-1.8:* )
68 - ldap? (
69 - =dev-libs/cyrus-sasl-2*
70 - net-libs/gnutls:=
71 - net-nds/openldap:=
72 - )
73 - libxml2? ( dev-libs/libxml2 )
74 - mysql? ( dev-db/mysql-connector-c:= )
75 - odbc? ( dev-db/unixODBC )
76 - openipmi? ( sys-libs/openipmi )
77 - openssl? ( dev-libs/openssl:=[-bindist(-)] )
78 - oracle? ( dev-db/oracle-instantclient[odbc,sdk] )
79 - postgres? ( dev-db/postgresql:* )
80 - proxy? ( sys-libs/zlib )
81 - server? (
82 - dev-libs/libevent:=
83 - sys-libs/zlib
84 - )
85 - snmp? ( net-analyzer/net-snmp:= )
86 - sqlite? ( dev-db/sqlite )
87 - ssh? ( net-libs/libssh2 )
88 -"
89 -
90 -RDEPEND="${COMMON_DEPEND}
91 - acct-group/zabbix
92 - acct-user/zabbix
93 - java? ( >=virtual/jre-1.8:* )
94 - mysql? ( virtual/mysql )
95 - proxy? ( net-analyzer/fping[suid] )
96 - server? (
97 - app-admin/webapp-config
98 - dev-libs/libevent
99 - dev-libs/libpcre
100 - net-analyzer/fping[suid]
101 - )
102 - frontend? (
103 - app-admin/webapp-config
104 - dev-lang/php:*[bcmath,ctype,sockets,gd,truetype,xml,session,xmlreader,xmlwriter,nls,sysvipc,unicode]
105 - media-libs/gd[png]
106 - virtual/httpd-php:*
107 - mysql? ( dev-lang/php[mysqli] )
108 - odbc? ( dev-lang/php[odbc] )
109 - oracle? ( dev-lang/php[oci8-instant-client] )
110 - postgres? ( dev-lang/php[postgres] )
111 - sqlite? ( dev-lang/php[sqlite] )
112 - )
113 -"
114 -DEPEND="${COMMON_DEPEND}
115 - static? (
116 - curl? ( net-misc/curl[static-libs] )
117 - ldap? (
118 - =dev-libs/cyrus-sasl-2*[static-libs]
119 - net-libs/gnutls[static-libs]
120 - net-nds/openldap[static-libs]
121 - )
122 - libxml2? ( dev-libs/libxml2[static-libs] )
123 - mysql? ( dev-db/mysql-connector-c[static-libs] )
124 - odbc? ( dev-db/unixODBC[static-libs] )
125 - postgres? ( dev-db/postgresql:*[static-libs] )
126 - sqlite? ( dev-db/sqlite[static-libs] )
127 - ssh? ( net-libs/libssh2 )
128 - )
129 -"
130 -BDEPEND="
131 - virtual/pkgconfig
132 - agent2? (
133 - >=dev-lang/go-1.12
134 - app-arch/unzip
135 - )
136 -"
137 -
138 -# upstream tests fail for agent2
139 -RESTRICT="test"
140 -
141 -PATCHES=(
142 - "${FILESDIR}/${PN}-4.0.18-modulepathfix.patch"
143 - "${FILESDIR}/${PN}-3.0.30-security-disable-PidFile.patch"
144 - "${FILESDIR}/${PN}-5.4.12-system.sw.packages.patch"
145 -)
146 -
147 -S=${WORKDIR}/${MY_P}
148 -
149 -ZABBIXJAVA_BASE="opt/zabbix_java"
150 -
151 -pkg_setup() {
152 - if use oracle; then
153 - if [ -z "${ORACLE_HOME}" ]; then
154 - eerror
155 - eerror "The environment variable ORACLE_HOME must be set"
156 - eerror "and point to the correct location."
157 - eerror "It looks like you don't have Oracle installed."
158 - eerror
159 - die "Environment variable ORACLE_HOME is not set"
160 - fi
161 - fi
162 -
163 - if use frontend; then
164 - webapp_pkg_setup
165 - fi
166 -
167 - java-pkg-opt-2_pkg_setup
168 -}
169 -
170 -src_prepare() {
171 - default
172 -}
173 -
174 -src_configure() {
175 - econf \
176 - "$(use_enable agent)" \
177 - "$(use_enable agent2)" \
178 - "$(use_enable ipv6)" \
179 - "$(use_enable java)" \
180 - "$(use_enable proxy)" \
181 - "$(use_enable server)" \
182 - "$(use_enable static)" \
183 - "$(use_with curl libcurl)" \
184 - "$(use_with gnutls)" \
185 - "$(use_with ldap)" \
186 - "$(use_with libxml2)" \
187 - "$(use_with mysql)" \
188 - "$(use_with odbc unixodbc)" \
189 - "$(use_with openipmi openipmi)" \
190 - "$(use_with openssl)" \
191 - "$(use_with oracle)" \
192 - "$(use_with postgres postgresql)" \
193 - "$(use_with snmp net-snmp)" \
194 - "$(use_with sqlite sqlite3)" \
195 - "$(use_with ssh ssh2)"
196 -}
197 -
198 -src_compile() {
199 - if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
200 - emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
201 - fi
202 -}
203 -
204 -src_install() {
205 - local dirs=(
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 -
215 - for dir in "${dirs[@]}"; do
216 - dodir "${dir}"
217 - keepdir "${dir}"
218 - done
219 -
220 - if use server; then
221 - insinto /etc/zabbix
222 - doins "${S}"/conf/zabbix_server.conf
223 - fperms 0640 /etc/zabbix/zabbix_server.conf
224 - fowners root:zabbix /etc/zabbix/zabbix_server.conf
225 -
226 - newinitd "${FILESDIR}"/zabbix-server-r1.init zabbix-server
227 -
228 - dosbin src/zabbix_server/zabbix_server
229 -
230 - insinto /usr/share/zabbix
231 - doins -r "${S}"/database/
232 -
233 - systemd_dounit "${FILESDIR}"/zabbix-server.service
234 - newtmpfiles "${FILESDIR}"/zabbix-server.tmpfiles zabbix-server.conf
235 - fi
236 -
237 - if use proxy; then
238 - insinto /etc/zabbix
239 - doins "${S}"/conf/zabbix_proxy.conf
240 - fperms 0640 /etc/zabbix/zabbix_proxy.conf
241 - fowners root:zabbix /etc/zabbix/zabbix_proxy.conf
242 -
243 - newinitd "${FILESDIR}"/zabbix-proxy.init zabbix-proxy
244 -
245 - dosbin src/zabbix_proxy/zabbix_proxy
246 -
247 - insinto /usr/share/zabbix
248 - doins -r "${S}"/database/
249 -
250 - systemd_dounit "${FILESDIR}"/zabbix-proxy.service
251 - newtmpfiles "${FILESDIR}"/zabbix-proxy.tmpfiles zabbix-proxy.conf
252 - fi
253 -
254 - if use agent; then
255 - insinto /etc/zabbix
256 - doins "${S}"/conf/zabbix_agentd.conf
257 - fperms 0640 /etc/zabbix/zabbix_agentd.conf
258 - fowners root:zabbix /etc/zabbix/zabbix_agentd.conf
259 -
260 - newinitd "${FILESDIR}"/zabbix-agentd.init zabbix-agentd
261 -
262 - dosbin src/zabbix_agent/zabbix_agentd
263 - dobin \
264 - src/zabbix_sender/zabbix_sender \
265 - src/zabbix_get/zabbix_get
266 -
267 - systemd_dounit "${FILESDIR}"/zabbix-agentd.service
268 - newtmpfiles "${FILESDIR}"/zabbix-agentd.tmpfiles zabbix-agentd.conf
269 - fi
270 - if use agent2; then
271 - insinto /etc/zabbix
272 - doins "${S}"/src/go/conf/zabbix_agent2.conf
273 - fperms 0640 /etc/zabbix/zabbix_agent2.conf
274 - fowners root:zabbix /etc/zabbix/zabbix_agent2.conf
275 -
276 - newinitd "${FILESDIR}"/zabbix-agent2.init zabbix-agent2
277 -
278 - dosbin src/go/bin/zabbix_agent2
279 -
280 - systemd_dounit "${FILESDIR}"/zabbix-agent2.service
281 - newtmpfiles "${FILESDIR}"/zabbix-agent2.tmpfiles zabbix-agent2.conf
282 - fi
283 -
284 - fowners root:zabbix /etc/zabbix
285 - fowners zabbix:zabbix \
286 - /var/lib/zabbix \
287 - /var/lib/zabbix/home \
288 - /var/lib/zabbix/scripts \
289 - /var/lib/zabbix/alertscripts \
290 - /var/lib/zabbix/externalscripts \
291 - /var/log/zabbix
292 - fperms 0750 \
293 - /etc/zabbix \
294 - /var/lib/zabbix \
295 - /var/lib/zabbix/home \
296 - /var/lib/zabbix/scripts \
297 - /var/lib/zabbix/alertscripts \
298 - /var/lib/zabbix/externalscripts \
299 - /var/log/zabbix
300 -
301 - dodoc README INSTALL NEWS ChangeLog \
302 - conf/zabbix_agentd.conf \
303 - conf/zabbix_proxy.conf \
304 - conf/zabbix_agentd/userparameter_examples.conf \
305 - conf/zabbix_agentd/userparameter_mysql.conf \
306 - conf/zabbix_server.conf
307 -
308 - if use frontend; then
309 - webapp_src_preinst
310 - cp -R ui/* "${D}/${MY_HTDOCSDIR}"
311 - webapp_configfile \
312 - "${MY_HTDOCSDIR}"/include/db.inc.php \
313 - "${MY_HTDOCSDIR}"/include/config.inc.php
314 - webapp_src_install
315 - fi
316 -
317 - if use java; then
318 - dodir \
319 - /${ZABBIXJAVA_BASE} \
320 - /${ZABBIXJAVA_BASE}/bin \
321 - /${ZABBIXJAVA_BASE}/lib
322 - keepdir /${ZABBIXJAVA_BASE}
323 - exeinto /${ZABBIXJAVA_BASE}/bin
324 - doexe src/zabbix_java/bin/zabbix-java-gateway-"${MY_PV}".jar
325 - exeinto /${ZABBIXJAVA_BASE}/lib
326 - doexe \
327 - src/zabbix_java/lib/logback-classic-1.2.9.jar \
328 - src/zabbix_java/lib/logback-console.xml \
329 - src/zabbix_java/lib/logback-core-1.2.9.jar \
330 - src/zabbix_java/lib/logback.xml \
331 - src/zabbix_java/lib/android-json-4.3_r3.1.jar \
332 - src/zabbix_java/lib/slf4j-api-1.7.32.jar
333 - newinitd "${FILESDIR}"/zabbix-jmx-proxy.init zabbix-jmx-proxy
334 - newconfd "${FILESDIR}"/zabbix-jmx-proxy.conf zabbix-jmx-proxy
335 - fi
336 -}
337 -
338 -pkg_postinst() {
339 - if use server || use proxy ; then
340 - elog
341 - elog "You may need to configure your database for Zabbix"
342 - elog "if you have not already done so."
343 - elog
344 -
345 - zabbix_homedir=$(egethome zabbix)
346 - if [ -n "${zabbix_homedir}" ] && \
347 - [ "${zabbix_homedir}" != "/var/lib/zabbix/home" ]; then
348 - ewarn
349 - ewarn "The user 'zabbix' should have his homedir changed"
350 - ewarn "to /var/lib/zabbix/home if you want to use"
351 - ewarn "custom alert scripts."
352 - ewarn
353 - ewarn "A real homedir might be needed for configfiles"
354 - ewarn "for custom alert scripts."
355 - ewarn
356 - ewarn "To change the homedir use:"
357 - ewarn " usermod -d /var/lib/zabbix/home zabbix"
358 - ewarn
359 - fi
360 - fi
361 -
362 - if use server; then
363 - tmpfiles_process zabbix-server.conf
364 -
365 - elog
366 - elog "For distributed monitoring you have to run:"
367 - elog
368 - elog "zabbix_server -n <nodeid>"
369 - elog
370 - elog "This will convert database data for use with Node ID"
371 - elog "and also adds a local node."
372 - elog
373 - fi
374 -
375 - if use proxy; then
376 - tmpfiles_process zabbix-proxy.conf
377 - fi
378 -
379 - if use agent; then
380 - tmpfiles_process zabbix-agentd.conf
381 - fi
382 -
383 - if use agent2; then
384 - tmpfiles_process zabbix-agent2.conf
385 - fi
386 -
387 - elog "--"
388 - elog
389 - elog "You may need to add these lines to /etc/services:"
390 - elog
391 - elog "zabbix-agent 10050/tcp Zabbix Agent"
392 - elog "zabbix-agent 10050/udp Zabbix Agent"
393 - elog "zabbix-trapper 10051/tcp Zabbix Trapper"
394 - elog "zabbix-trapper 10051/udp Zabbix Trapper"
395 - elog
396 -
397 - if use server || use proxy ; then
398 - # check for fping
399 - fping_perms=$(stat -c %a /usr/sbin/fping 2>/dev/null)
400 - case "${fping_perms}" in
401 - 4[157][157][157])
402 - ;;
403 - *)
404 - ewarn
405 - ewarn "If you want to use the checks 'icmpping' and 'icmppingsec',"
406 - ewarn "you have to make /usr/sbin/fping setuid root and executable"
407 - ewarn "by everyone. Run the following command to fix it:"
408 - ewarn
409 - ewarn " chmod u=rwsx,g=rx,o=rx /usr/sbin/fping"
410 - ewarn
411 - ewarn "Please be aware that this might impose a security risk,"
412 - ewarn "depending on the code quality of fping."
413 - ewarn
414 - ;;
415 - esac
416 - fi
417 -}
418 -
419 -pkg_prerm() {
420 - (use frontend || use server) && webapp_pkg_prerm
421 -}