1 |
%define version 0.1.18 |
%define version 0.1.18 |
2 |
%define release 3 |
%define release 10 |
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 |
|
Patch7: smeserver-fail2ban-0.1.18-bz10817-configure.patch |
22 |
|
Patch8: smeserver-fail2ban-0.1.18.bz10839.patch |
23 |
|
Patch9: smeserver-fail2ban-0.1.18.bz10370.patch |
24 |
|
|
25 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
26 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
27 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
29 |
Requires: e-smith-base >= 5.2.0 |
Requires: e-smith-base >= 5.2.0 |
30 |
Requires: fail2ban |
Requires: fail2ban |
31 |
|
|
32 |
|
|
33 |
%description |
%description |
34 |
Configure fail2ban on SME Server |
Configure fail2ban on SME Server |
35 |
|
|
36 |
%changelog |
%changelog |
37 |
|
* Wed Nov 27 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-10.sme |
38 |
|
- fix wordpress template error [SME: 10839] |
39 |
|
- rewrite rule for [SME: 9719] |
40 |
|
- add configurable values for recidive jail [SME: 10370] |
41 |
|
|
42 |
|
* Wed Oct 16 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-9.sme |
43 |
|
- propagate configuration changes to fail2ban after submiting changes [SME: 10817] |
44 |
|
|
45 |
|
* Wed Oct 16 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-8.sme |
46 |
|
- fix blocked hosts list not displaying unless smeserver-denyhosts also installed [SME: 10814] |
47 |
|
|
48 |
|
* Fri Jul 19 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-7.sme |
49 |
|
- prevent fail2ban failure if sogo not installed while a backup restored db entries [SME: 9669] |
50 |
|
|
51 |
|
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-6.sme |
52 |
|
- fix incorrect permissions on sfail2ban [SME: 10775] |
53 |
|
|
54 |
|
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-5.sme |
55 |
|
- fix wordpress fragment error preventing jail.conf to be updated [SME: 10776] |
56 |
|
|
57 |
|
* Tue May 14 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-4.sme |
58 |
|
- fix missing sfail2ban exec [SME: 10775] |
59 |
|
- Apply locals |
60 |
|
|
61 |
* 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 |
62 |
- add admin panel [SME: 10767] |
- add admin panel [SME: 10767] |
63 |
- add wordpress jails and filters [SME: 9709] |
- add wordpress jails and filters [SME: 9709] |
132 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
133 |
%patch0 -p1 |
%patch0 -p1 |
134 |
%patch1 -p1 |
%patch1 -p1 |
135 |
|
%patch2 -p1 |
136 |
|
%patch3 -p1 |
137 |
|
%patch4 -p1 |
138 |
|
%patch5 -p1 |
139 |
|
%patch6 -p1 |
140 |
|
%patch7 -p1 |
141 |
|
%patch8 -p1 |
142 |
|
%patch9 -p1 |
143 |
|
|
144 |
%build |
%build |
145 |
%{__mkdir_p} root/var/log/fail2ban |
%{__mkdir_p} root/var/log/fail2ban |
154 |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
155 |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
156 |
--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)' \ |
157 |
|
--file /usr/bin/sfail2ban 'attr(0755,root,root)' \ |
158 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
159 |
|
|
160 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |