2024-01-05 22:12:44 +01:00
|
|
|
Name: fail2ban
|
2024-04-30 09:54:58 +02:00
|
|
|
Version: 1.1.0
|
|
|
|
Release: 1mamba
|
2024-01-05 22:12:44 +01:00
|
|
|
Summary: Daemon to ban hosts that cause multiple authentication errors
|
|
|
|
Group: Applications/Security
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 22:12:44 +01:00
|
|
|
URL: https://github.com/fail2ban/fail2ban
|
2024-01-05 22:12:44 +01:00
|
|
|
Source: https://github.com/fail2ban/fail2ban.git/%{version}/fail2ban-%{version}.tar.bz2
|
|
|
|
Source1: fail2ban-paths-openmamba.conf
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 22:12:44 +01:00
|
|
|
BuildRequires: libpython311-devel
|
2024-01-05 22:12:44 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 22:12:44 +01:00
|
|
|
Requires: python3 >= 3.11
|
2024-01-05 22:12:44 +01:00
|
|
|
Requires: python-systemd-py3
|
2024-01-05 22:12:44 +01:00
|
|
|
Requires: python-pyinotify-py3
|
2024-01-05 22:12:44 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Daemon to ban hosts that cause multiple authentication errors.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
sed -i "s|/var/run/|/run/|" files/fail2ban.service.in \
|
|
|
|
files/fail2ban-tmpfiles.conf fail2ban/server/*.py \
|
2024-01-05 22:12:44 +01:00
|
|
|
config/action.d/*.conf fail2ban/client/*.py \
|
|
|
|
config/*.conf
|
|
|
|
|
|
|
|
sed -i "s|paths-debian.conf|paths-openmamba.conf|" config/jail.conf
|
2024-01-05 22:12:44 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 22:12:44 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
2024-01-05 22:12:44 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 22:12:44 +01:00
|
|
|
%{__python3} setup.py install \
|
2024-01-05 22:12:44 +01:00
|
|
|
--skip-build \
|
|
|
|
--optimize=1 \
|
|
|
|
--root="%{buildroot}" \
|
2024-01-05 22:12:44 +01:00
|
|
|
--install-headers=%{python3_inc} \
|
|
|
|
--install-lib=%{python3_sitearch} \
|
2024-01-05 22:12:44 +01:00
|
|
|
--record=%{name}.filelist
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-05 22:12:44 +01:00
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
sed -i "/fail2ban\/tests\//d" %{name}.filelist
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
install -D -m644 build/fail2ban.service \
|
|
|
|
%{buildroot}%{_unitdir}/fail2ban.service
|
|
|
|
install -D -m644 files/fail2ban-tmpfiles.conf \
|
|
|
|
%{buildroot}%{_tmpfilesdir}/fail2ban.conf
|
|
|
|
install -Dm644 files/fail2ban-logrotate \
|
|
|
|
%{buildroot}%{_sysconfdir}/logrotate.d/fail2ban
|
|
|
|
install -Dm644 files/bash-completion \
|
|
|
|
%{buildroot}%{_datadir}/bash-completion/completions/fail2ban
|
|
|
|
|
|
|
|
install -D -m644 man/fail2ban.1 %{buildroot}%{_mandir}/man1/fail2ban.1
|
|
|
|
install -D -m644 man/fail2ban-client.1 \
|
|
|
|
%{buildroot}%{_mandir}/man1/fail2ban-client.1
|
|
|
|
install -D -m644 man/fail2ban-regex.1 \
|
|
|
|
%{buildroot}%{_mandir}/man1/fail2ban-regex.1
|
|
|
|
install -D -m644 man/fail2ban-server.1 \
|
|
|
|
%{buildroot}%{_mandir}/man1/fail2ban-server.1
|
|
|
|
install -D -m644 man/jail.conf.5 \
|
|
|
|
%{buildroot}%{_mandir}/man5/jail.conf.5
|
|
|
|
|
|
|
|
install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/fail2ban/paths-openmamba.conf
|
2024-01-05 22:12:44 +01:00
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
rm -f %{buildroot}%{_sysconfdir}/paths-{arch,debian,fedora,freebsd,opensuse,osx}.conf
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post fail2ban
|
|
|
|
:
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun fail2ban
|
|
|
|
:
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun fail2ban
|
|
|
|
:
|
|
|
|
|
|
|
|
%files -f %{name}.filelist
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 22:12:44 +01:00
|
|
|
%dir %{_sysconfdir}/fail2ban
|
|
|
|
%dir %{_sysconfdir}/fail2ban/action.d
|
|
|
|
%dir %{_sysconfdir}/fail2ban/filter.d
|
|
|
|
%dir %{_sysconfdir}/fail2ban/filter.d/ignorecommands
|
|
|
|
%dir %{_sysconfdir}/fail2ban/jail.d
|
|
|
|
%dir %{_sysconfdir}/fail2ban/fail2ban.d
|
2024-01-05 22:12:44 +01:00
|
|
|
%{_sysconfdir}/fail2ban/paths-openmamba.conf
|
2024-01-05 22:12:44 +01:00
|
|
|
%{_sysconfdir}/logrotate.d/fail2ban
|
2024-01-05 22:12:44 +01:00
|
|
|
%{_bindir}/fail2ban-python
|
|
|
|
%{_unitdir}/fail2ban.service
|
|
|
|
%{_tmpfilesdir}/fail2ban.conf
|
|
|
|
%{_datadir}/bash-completion/completions/fail2ban
|
2024-01-05 22:12:44 +01:00
|
|
|
%dir %{_localstatedir}/lib/fail2ban
|
2024-01-05 22:12:44 +01:00
|
|
|
%{_mandir}/man1/fail2ban-client.1*
|
|
|
|
%{_mandir}/man1/fail2ban-regex.1*
|
|
|
|
%{_mandir}/man1/fail2ban-server.1*
|
|
|
|
%{_mandir}/man1/fail2ban.1*
|
|
|
|
%{_mandir}/man5/jail.conf.5*
|
2024-01-05 22:12:44 +01:00
|
|
|
%dir %{python3_sitearch}/fail2ban
|
|
|
|
%{python3_sitearch}/fail2ban/*
|
2024-01-05 22:12:44 +01:00
|
|
|
%dir %{python3_sitearch}/fail2ban-%{version}-py*.egg-info
|
|
|
|
%{python3_sitearch}/fail2ban-%{version}-py*.egg-info/*
|
2024-01-05 22:12:44 +01:00
|
|
|
%doc COPYING THANKS
|
|
|
|
|
|
|
|
%changelog
|
2024-04-30 09:54:58 +02:00
|
|
|
* Tue Apr 30 2024 Automatic Build System <autodist@openmamba.org> 1.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
* Mon Oct 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-2mamba
|
|
|
|
- rebuilt with python3 == 3.11
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
* Thu Nov 17 2022 Automatic Build System <autodist@mambasoft.it> 1.0.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
* Sat May 29 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11.2-3mamba
|
|
|
|
- added upstream patches to fix ipv6 support with ufw (see https://github.com/fail2ban/fail2ban/issues/2331 )
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
* Mon Mar 15 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11.2-2mamba
|
|
|
|
- update paths-openmamba.conf and remove other distro configurations
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
* Fri Dec 18 2020 Automatic Build System <autodist@mambasoft.it> 0.11.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
* Wed Nov 18 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.11.1-2mamba
|
|
|
|
- rebuilt with python3
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
* Tue Feb 25 2020 Automatic Build System <autodist@mambasoft.it> 0.11.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
* Sun Jan 12 2020 Automatic Build System <autodist@mambasoft.it> 0.10.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
* Wed Feb 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.4-3mamba
|
|
|
|
- require python-systemd-py36
|
|
|
|
|
|
|
|
* Wed Feb 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.4-2mamba
|
|
|
|
- fix rundir in configuration file and provide /var/lib/fail2ban directory
|
|
|
|
|
2024-01-05 22:12:44 +01:00
|
|
|
* Tue Feb 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.4-1mamba
|
|
|
|
- package created using the webbuild interface
|