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