From 32ea62c0acb3a955d00c7fb2b1931776accca940 Mon Sep 17 00:00:00 2001 From: Hasan ÇALIŞIR Date: Mon, 16 Aug 2021 09:02:05 +0300 Subject: net-firewall/ufw: warn about possible conflicts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Warn about applications that may interfere with ufw. Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Hasan ÇALIŞIR Signed-off-by: Joonas Niilola --- net-firewall/ufw/ufw-0.36.ebuild | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'net-firewall') diff --git a/net-firewall/ufw/ufw-0.36.ebuild b/net-firewall/ufw/ufw-0.36.ebuild index ca3e55bb0fef..0da5a40cfa58 100644 --- a/net-firewall/ufw/ufw-0.36.ebuild +++ b/net-firewall/ufw/ufw-0.36.ebuild @@ -166,6 +166,27 @@ pkg_postinst() { local print_check_req_warn print_check_req_warn=false + local found=() + local apps=("${CATEGORY}/arno-iptables-firewall" + "${CATEGORY}/ferm" + "${CATEGORY}/firehol" + "${CATEGORY}/firewalld" + "${CATEGORY}/ipkungfu") + + for exe in "${apps[@]}" + do + if has_version ''"${exe}"''; then + found+=( "${exe}" ) + fi + done + + if [ -n "$found" ]; then + echo + ewarn "WARNING: Detected other firewall applications:" + ewarn "${found[@]}" + ewarn "If enabled, these applications may interfere with ufw!" + fi + if [[ -z "${REPLACING_VERSIONS}" ]]; then echo elog "To enable ufw, add it to boot sequence and activate it:" -- cgit v1.2.3-65-gdbad