1 |
%define version 0.1.18 |
%define version 0.1.18 |
2 |
%define release 3 |
%define release 8 |
3 |
%define name smeserver-fail2ban |
%define name smeserver-fail2ban |
4 |
|
|
5 |
|
|
13 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
14 |
Patch0:smeserver-fail2ban-0.1.18.bz10767-adminpanel.patch |
Patch0:smeserver-fail2ban-0.1.18.bz10767-adminpanel.patch |
15 |
Patch1: smeserver-fail2ban-0.1.18.bz9709-wordpress.patch |
Patch1: smeserver-fail2ban-0.1.18.bz9709-wordpress.patch |
16 |
|
Patch2: smeserver-fail2ban-0.1.18.bz10775-sfail2ban.patch |
17 |
|
Patch3: smeserver-fail2ban-0.1.18-locale-2019-05-15.patch |
18 |
|
Patch4: smeserver-fail2ban-0.1.18-bz10776-wordpress.patch |
19 |
|
Patch5: smeserver-fail2ban-0.1.18-bz9669-sogo.patch |
20 |
|
Patch6: smeserver-fail2ban-0.1.18-bz10814-denylist-display.patch |
21 |
|
|
22 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
23 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
30 |
Configure fail2ban on SME Server |
Configure fail2ban on SME Server |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
|
* Wed Oct 16 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-8.sme |
34 |
|
- fix blocked hosts list not displaying unless smeserver-denyhosts also installed [SME: 10814] |
35 |
|
|
36 |
|
* Fri Jul 19 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-7.sme |
37 |
|
- prevent fail2ban failure if sogo not installed while a backup restored db entries [SME: 9669] |
38 |
|
|
39 |
|
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-6.sme |
40 |
|
- fix incorrect permissions on sfail2ban [SME: 10775] |
41 |
|
|
42 |
|
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-5.sme |
43 |
|
- fix wordpress fragment error preventing jail.conf to be updated [SME: 10776] |
44 |
|
|
45 |
|
* Tue May 14 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-4.sme |
46 |
|
- fix missing sfail2ban exec [SME: 10775] |
47 |
|
- Apply locals |
48 |
|
|
49 |
* Tue Apr 09 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-3.sme |
* Tue Apr 09 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-3.sme |
50 |
- add admin panel [SME: 10767] |
- add admin panel [SME: 10767] |
51 |
- add wordpress jails and filters [SME: 9709] |
- add wordpress jails and filters [SME: 9709] |
120 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
121 |
%patch0 -p1 |
%patch0 -p1 |
122 |
%patch1 -p1 |
%patch1 -p1 |
123 |
|
%patch2 -p1 |
124 |
|
%patch3 -p1 |
125 |
|
%patch4 -p1 |
126 |
|
%patch5 -p1 |
127 |
|
%patch6 -p1 |
128 |
|
|
129 |
%build |
%build |
130 |
%{__mkdir_p} root/var/log/fail2ban |
%{__mkdir_p} root/var/log/fail2ban |
139 |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
140 |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
141 |
--file /etc/fail2ban/filter.d/apache-auth.local 'config(noreplace) %attr(0644,root,root)' \ |
--file /etc/fail2ban/filter.d/apache-auth.local 'config(noreplace) %attr(0644,root,root)' \ |
142 |
|
--file /usr/bin/sfail2ban 'attr(0755,root,root)' \ |
143 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
144 |
|
|
145 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |