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