public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fail2ban] f44: Add a build conditional for the hostsdeny subpackage, default on
@ 2026-11-11 1:35 Sai Harsha Suryadevara
0 siblings, 0 replies; only message in thread
From: Sai Harsha Suryadevara @ 2026-11-11 1:35 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fail2ban
Branch : f44
Commit : 7c98d3fd3ffbee7226c62c4de0b5de27c21e4eee
Author : Sai Harsha Suryadevara <ssuryad@amazon.com>
Date : 2026-11-02T01:02:42+00:00
Stats : +13/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/fail2ban/c/7c98d3fd3ffbee7226c62c4de0b5de27c21e4eee?branch=f44
Log:
Add a build conditional for the hostsdeny subpackage, default on
---
diff --git a/fail2ban.spec b/fail2ban.spec
index fe40ebe..fbfe23f 100644
--- a/fail2ban.spec
+++ b/fail2ban.spec
@@ -4,6 +4,9 @@
%bcond_without shorewall
%endif
+# The hostsdeny action needs tcp_wrappers
+%bcond_without tcpwrappers
+
# RHEL < 10 and Fedora < 40 use file context entries in /var/run
%if %{defined rhel} && 0%{?rhel} < 10
%define legacy_var_run 1
@@ -11,7 +14,7 @@
Name: fail2ban
Version: 1.1.0
-Release: 19%{?dist}
+Release: 20%{?dist}
Summary: Daemon to ban hosts that cause multiple authentication errors
License: GPL-2.0-or-later
@@ -140,7 +143,9 @@ installation and know what you are doing.
%package all
Summary: Install all Fail2Ban packages and dependencies
Requires: %{name}-firewalld = %{version}-%{release}
+%if %{with tcpwrappers}
Requires: %{name}-hostsdeny = %{version}-%{release}
+%endif
Requires: %{name}-mail = %{version}-%{release}
Requires: %{name}-sendmail = %{version}-%{release}
Requires: %{name}-server = %{version}-%{release}
@@ -165,6 +170,7 @@ This package enables support for manipulating firewalld rules. This is the
default firewall service in Fedora.
+%if %{with tcpwrappers}
%package hostsdeny
Summary: Hostsdeny (tcp_wrappers) support for Fail2Ban
Requires: %{name}-server = %{version}-%{release}
@@ -174,6 +180,7 @@ Requires: tcp_wrappers
%description hostsdeny
This package enables support for manipulating tcp_wrapper's /etc/hosts.deny
files.
+%endif
%package tests
@@ -400,8 +407,10 @@ fi
%files firewalld
%config(noreplace) %{_sysconfdir}/fail2ban/jail.d/00-firewalld.conf
+%if %{with tcpwrappers}
%files hostsdeny
%config(noreplace) %{_sysconfdir}/fail2ban/action.d/hostsdeny.conf
+%endif
%files tests
%{_bindir}/fail2ban-testcases
@@ -431,6 +440,9 @@ fi
%changelog
+* Sun Nov 01 2026 Sai Harsha Suryadevara <ssuryad@amazon.com> - 1.1.0-20
+- Add a build conditional for the hostsdeny subpackage, default on, for builds without tcp_wrappers
+
* Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-11 1:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-11 1:35 [rpms/fail2ban] f44: Add a build conditional for the hostsdeny subpackage, default on Sai Harsha Suryadevara
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox