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 |