Gentoo Archives: gentoo-proxy-maint

From: "Hasan ÇALIŞIR" <hasan.calisir@×××××××.com>
To: gentoo-proxy-maint@l.g.o
Subject: [gentoo-proxy-maint] [PATCH] net-firewall/ufw: warn about possible conflicts
Date: Thu, 12 Aug 2021 23:25:44
Message-Id: 20210812232526.244894-1-hasan.calisir@psauxit.com
1 Warn about applications that may interfere with ufw.
2
3 Package-Manager: Portage-3.0.20, Repoman-3.0.2
4 Signed-off-by: Hasan ÇALIŞIR <hasan.calisir@×××××××.com>
5 ---
6 net-firewall/ufw/ufw-0.36.ebuild | 21 +++++++++++++++++++++
7 1 file changed, 21 insertions(+)
8
9 diff --git a/net-firewall/ufw/ufw-0.36.ebuild b/net-firewall/ufw/ufw-0.36.ebuild
10 index ca3e55bb0fe..0da5a40cfa5 100644
11 --- a/net-firewall/ufw/ufw-0.36.ebuild
12 +++ b/net-firewall/ufw/ufw-0.36.ebuild
13 @@ -166,6 +166,27 @@ pkg_postinst() {
14 local print_check_req_warn
15 print_check_req_warn=false
16
17 + local found=()
18 + local apps=("${CATEGORY}/arno-iptables-firewall"
19 + "${CATEGORY}/ferm"
20 + "${CATEGORY}/firehol"
21 + "${CATEGORY}/firewalld"
22 + "${CATEGORY}/ipkungfu")
23 +
24 + for exe in "${apps[@]}"
25 + do
26 + if has_version ''"${exe}"''; then
27 + found+=( "${exe}" )
28 + fi
29 + done
30 +
31 + if [ -n "$found" ]; then
32 + echo
33 + ewarn "WARNING: Detected other firewall applications:"
34 + ewarn "${found[@]}"
35 + ewarn "If enabled, these applications may interfere with ufw!"
36 + fi
37 +
38 if [[ -z "${REPLACING_VERSIONS}" ]]; then
39 echo
40 elog "To enable ufw, add it to boot sequence and activate it:"
41 --
42 2.31.1

Replies