1 |
%define version 0.1.18 |
%define version 0.1.18 |
2 |
%define release 5 |
%define release 10 |
3 |
%define name smeserver-fail2ban |
%define name smeserver-fail2ban |
4 |
|
|
5 |
|
|
16 |
Patch2: smeserver-fail2ban-0.1.18.bz10775-sfail2ban.patch |
Patch2: smeserver-fail2ban-0.1.18.bz10775-sfail2ban.patch |
17 |
Patch3: smeserver-fail2ban-0.1.18-locale-2019-05-15.patch |
Patch3: smeserver-fail2ban-0.1.18-locale-2019-05-15.patch |
18 |
Patch4: smeserver-fail2ban-0.1.18-bz10776-wordpress.patch |
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 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
24 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
25 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
27 |
Requires: e-smith-base >= 5.2.0 |
Requires: e-smith-base >= 5.2.0 |
28 |
Requires: fail2ban |
Requires: fail2ban |
29 |
|
|
30 |
|
|
31 |
%description |
%description |
32 |
Configure fail2ban on SME Server |
Configure fail2ban on SME Server |
33 |
|
|
34 |
%changelog |
%changelog |
35 |
|
* Wed Nov 27 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-10.sme |
36 |
|
- fix wordpress template error [SME: 10839] |
37 |
|
- rewrite rule for [SME: 9719] |
38 |
|
|
39 |
|
* Wed Oct 16 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-9.sme |
40 |
|
- propagate configuration changes to fail2ban after submiting changes [SME: 10817] |
41 |
|
|
42 |
|
* Wed Oct 16 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-8.sme |
43 |
|
- fix blocked hosts list not displaying unless smeserver-denyhosts also installed [SME: 10814] |
44 |
|
|
45 |
|
* Fri Jul 19 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-7.sme |
46 |
|
- prevent fail2ban failure if sogo not installed while a backup restored db entries [SME: 9669] |
47 |
|
|
48 |
|
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-6.sme |
49 |
|
- fix incorrect permissions on sfail2ban [SME: 10775] |
50 |
|
|
51 |
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-5.sme |
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-5.sme |
52 |
- fix wordpress fragment error preventing jail.conf to be updated [SME: 10776] |
- fix wordpress fragment error preventing jail.conf to be updated [SME: 10776] |
53 |
|
|
132 |
%patch2 -p1 |
%patch2 -p1 |
133 |
%patch3 -p1 |
%patch3 -p1 |
134 |
%patch4 -p1 |
%patch4 -p1 |
135 |
|
%patch5 -p1 |
136 |
|
%patch6 -p1 |
137 |
|
%patch7 -p1 |
138 |
|
%patch8 -p1 |
139 |
|
|
140 |
%build |
%build |
141 |
%{__mkdir_p} root/var/log/fail2ban |
%{__mkdir_p} root/var/log/fail2ban |
150 |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
151 |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
152 |
--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)' \ |
153 |
|
--file /usr/bin/sfail2ban 'attr(0755,root,root)' \ |
154 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
155 |
|
|
156 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |