diff options
Diffstat (limited to 'net-firewall/ufw/ufw-0.36.ebuild')
-rw-r--r-- | net-firewall/ufw/ufw-0.36.ebuild | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/net-firewall/ufw/ufw-0.36.ebuild b/net-firewall/ufw/ufw-0.36.ebuild index ca3e55bb0fef..ed4a7029034c 100644 --- a/net-firewall/ufw/ufw-0.36.ebuild +++ b/net-firewall/ufw/ufw-0.36.ebuild @@ -166,8 +166,29 @@ pkg_postinst() { local print_check_req_warn print_check_req_warn=false + local found=() + local apps=( "net-firewall/arno-iptables-firewall" + "net-firewall/ferm" + "net-firewall/firehol" + "net-firewall/firewalld" + "net-firewall/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 + echo "" elog "To enable ufw, add it to boot sequence and activate it:" elog "-- # rc-update add ufw boot" elog "-- # /etc/init.d/ufw start" |