package created using the webbuild interface [release 0.10.4-1mamba;Tue Feb 05 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 22:12:44 +01:00
parent 212826b7d7
commit 023b956a8e
3 changed files with 144 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# fail2ban
Daemon to ban hosts that cause multiple authentication errors.

View File

@ -0,0 +1,42 @@
# openmamba
[INCLUDES]
before = paths-common.conf
after = paths-overrides.local
[DEFAULT]
syslog_mail = /var/log/maillog
syslog_mail_warn = /var/log/maillog
syslog_authpriv = /var/log/secure
apache_error_log = /var/log/httpd/*error_log
apache_access_log = /var/log/httpd/*access_log
# /etc/proftpd/proftpd.conf (ExtendedLog for Anonymous)
# proftpd_log = /var/log/proftpd/auth.log
# Tested and it worked out in /var/log/messages so assuming syslog_ftp for now.
exim_main_log = /var/log/exim/main.log
mysql_log = /var/log/mariadb/mariadb.log
/var/log/mysqld.log
roundcube_errors_log = /var/log/roundcubemail/errors
# These services will log to the journal via syslog, so use the journal by
# default.
syslog_backend = systemd
sshd_backend = systemd
dropbear_backend = systemd
proftpd_backend = systemd
pureftpd_backend = systemd
wuftpd_backend = systemd
postfix_backend = systemd
dovecot_backend = systemd

100
fail2ban.spec Normal file
View File

@ -0,0 +1,100 @@
Name: fail2ban
Version: 0.10.4
Release: 1mamba
Summary: Daemon to ban hosts that cause multiple authentication errors
Group: Applications/Security
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.fail2ban.org
## GITSOURCE https://github.com/fail2ban/fail2ban.git 0.10.4
Source: https://github.com/fail2ban/fail2ban.git/%{version}/fail2ban-%{version}.tar.bz2
Source1: fail2ban-paths-openmamba.conf
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: libpython36-devel
Requires: python36 >= %python36_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Daemon to ban hosts that cause multiple authentication errors.
%debug_package
%prep
%setup -q
sed -i "s|/var/run/|/run/|" files/fail2ban.service.in \
files/fail2ban-tmpfiles.conf fail2ban/server/*.py \
config/action.d/*.conf fail2ban/client/*.py
%build
./fail2ban-2to3
CFLAGS="%{optflags}" %{__python36} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python36} setup.py install \
--skip-build \
--optimize=1 \
--root="%{buildroot}" \
--install-headers=%{python36_inc} \
--install-lib=%{python36_sitearch} \
--record=%{name}.filelist
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
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
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%systemd_post fail2ban
:
%preun
%systemd_preun fail2ban
:
%postun
%systemd_postun fail2ban
:
%files -f %{name}.filelist
%defattr(-,root,root)
%{_sysconfdir}/logrotate.d/fail2ban
%{_sysconfdir}/fail2ban/paths-openmamba.conf
%{_bindir}/fail2ban-python
%{_unitdir}/fail2ban.service
%{_tmpfilesdir}/fail2ban.conf
%{_datadir}/bash-completion/completions/fail2ban
%{_mandir}/man1/fail2ban-client.1*
%{_mandir}/man1/fail2ban-regex.1*
%{_mandir}/man1/fail2ban-server.1*
%{_mandir}/man1/fail2ban.1*
%{_mandir}/man5/jail.conf.5*
%doc COPYING THANKS
%changelog
* Tue Feb 05 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.4-1mamba
- package created using the webbuild interface