forked from pool/fail2ban
Accepting request 176913 from home:weberho:branches:security
Included logrotate configuration for fail2ban OBS-URL: https://build.opensuse.org/request/show/176913 OBS-URL: https://build.opensuse.org/package/show/security/fail2ban?expand=0&rev=31
This commit is contained in:
parent
e9789d8f70
commit
50e6c9be87
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 28 06:46:54 UTC 2013 - jweberhofer@weberhofer.at
|
||||||
|
|
||||||
|
- Included logrotate configuration for fail2ban
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 14 10:06:35 UTC 2013 - jweberhofer@weberhofer.at
|
Tue May 14 10:06:35 UTC 2013 - jweberhofer@weberhofer.at
|
||||||
|
|
||||||
|
13
fail2ban.logrotate
Normal file
13
fail2ban.logrotate
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
/var/log/fail2ban.log {
|
||||||
|
compress
|
||||||
|
dateext
|
||||||
|
maxage 365
|
||||||
|
rotate 99
|
||||||
|
size=+4096k
|
||||||
|
notifempty
|
||||||
|
missingok
|
||||||
|
create 644 root root
|
||||||
|
postrotate
|
||||||
|
fail2ban-client set logtarget /var/log/fail2ban.log 1>/dev/null || true
|
||||||
|
endscript
|
||||||
|
}
|
@ -28,6 +28,7 @@ Requires: python-pyinotify
|
|||||||
%if 0%{?suse_version} >= 1220
|
%if 0%{?suse_version} >= 1220
|
||||||
Requires: python-gamin
|
Requires: python-gamin
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: logrotate
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
PreReq: %fillup_prereq
|
PreReq: %fillup_prereq
|
||||||
Version: 0.8.9
|
Version: 0.8.9
|
||||||
@ -42,6 +43,7 @@ Group: Productivity/Networking/Security
|
|||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
Source1: %{name}.init
|
Source1: %{name}.init
|
||||||
Source2: %{name}.sysconfig
|
Source2: %{name}.sysconfig
|
||||||
|
Source3: %{name}.logrotate
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Fail2ban scans log files like /var/log/messages and bans IP addresses
|
Fail2ban scans log files like /var/log/messages and bans IP addresses
|
||||||
@ -75,6 +77,9 @@ ln -sf %{_initrddir}/%{name} ${RPM_BUILD_ROOT}%{_sbindir}/rc%{name}
|
|||||||
install -d -m755 $RPM_BUILD_ROOT/var/adm/fillup-templates
|
install -d -m755 $RPM_BUILD_ROOT/var/adm/fillup-templates
|
||||||
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.%{name}
|
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.%{name}
|
||||||
|
|
||||||
|
install -d -m755 $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d
|
||||||
|
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT/%{_sysconfdir}/logrotate.d/fail2ban
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{fillup_only}
|
%{fillup_only}
|
||||||
|
|
||||||
@ -93,6 +98,7 @@ install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.%{n
|
|||||||
%config(noreplace) %{_sysconfdir}/%{name}/*.conf
|
%config(noreplace) %{_sysconfdir}/%{name}/*.conf
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/action.d/*.conf
|
%config(noreplace) %{_sysconfdir}/%{name}/action.d/*.conf
|
||||||
%config(noreplace) %{_sysconfdir}/%{name}/filter.d/*.conf
|
%config(noreplace) %{_sysconfdir}/%{name}/filter.d/*.conf
|
||||||
|
%config %{_sysconfdir}/logrotate.d/fail2ban
|
||||||
%{_initrddir}/%{name}
|
%{_initrddir}/%{name}
|
||||||
%{_bindir}/%{name}*
|
%{_bindir}/%{name}*
|
||||||
%{_sbindir}/rc%{name}
|
%{_sbindir}/rc%{name}
|
||||||
|
Loading…
Reference in New Issue
Block a user