Gentoo Archives: gentoo-proxy-maint

From: Joonas Niilola <juippis@g.o>
To: gentoo-proxy-maint@l.g.o
Subject: Re: [gentoo-proxy-maint] [PATCH] net-firewall/ufw: warn about possible conflicts
Date: Mon, 16 Aug 2021 20:48:02
Message-Id: adcd18e8-a3ac-0eba-c43c-b37273fb76c6@gentoo.org
In Reply to: [gentoo-proxy-maint] [PATCH] net-firewall/ufw: warn about possible conflicts by "Hasan ÇALIŞIR"
1 On 13.8.2021 2.25, Hasan ÇALIŞIR wrote:
2 > Warn about applications that may interfere with ufw.
3 >
4 > Package-Manager: Portage-3.0.20, Repoman-3.0.2
5 > Signed-off-by: Hasan ÇALIŞIR <hasan.calisir@×××××××.com>
6 > ---
7 > net-firewall/ufw/ufw-0.36.ebuild | 21 +++++++++++++++++++++
8 > 1 file changed, 21 insertions(+)
9 >
10 > diff --git a/net-firewall/ufw/ufw-0.36.ebuild b/net-firewall/ufw/ufw-0.36.ebuild
11 > index ca3e55bb0fe..0da5a40cfa5 100644
12 > --- a/net-firewall/ufw/ufw-0.36.ebuild
13 > +++ b/net-firewall/ufw/ufw-0.36.ebuild
14 > @@ -166,6 +166,27 @@ pkg_postinst() {
15 > local print_check_req_warn
16 > print_check_req_warn=false
17 >
18 > + local found=()
19 > + local apps=("${CATEGORY}/arno-iptables-firewall"
20 > + "${CATEGORY}/ferm"
21 > + "${CATEGORY}/firehol"
22 > + "${CATEGORY}/firewalld"
23 > + "${CATEGORY}/ipkungfu")
24 > +
25 > + for exe in "${apps[@]}"
26 > + do
27 > + if has_version ''"${exe}"''; then
28 > + found+=( "${exe}" )
29 > + fi
30 > + done
31 > +
32 > + if [ -n "$found" ]; then
33 > + echo
34 > + ewarn "WARNING: Detected other firewall applications:"
35 > + ewarn "${found[@]}"
36 > + ewarn "If enabled, these applications may interfere with ufw!"
37 > + fi
38 > +
39 > if [[ -z "${REPLACING_VERSIONS}" ]]; then
40 > echo
41 > elog "To enable ufw, add it to boot sequence and activate it:"
42 >
43 Merged, thanks! I bashified the function a bit in a separate commit.
44
45 I saw you had a Github PR for this too. You don't have to duplicate the
46 patches, we do get notifications from Github likewise.
47
48 -- juippis

Attachments

File name MIME type
OpenPGP_signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-proxy-maint] [PATCH] net-firewall/ufw: warn about possible conflicts "Hasan ÇALIŞIR" <hasan.calisir@×××××××.com>