1 |
%define version 0.1.18 |
%define version 0.1.18 |
2 |
%define release 4 |
%define release 9 |
3 |
%define name smeserver-fail2ban |
%define name smeserver-fail2ban |
4 |
|
|
5 |
|
|
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 |
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 |
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 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
23 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
24 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
26 |
Requires: e-smith-base >= 5.2.0 |
Requires: e-smith-base >= 5.2.0 |
27 |
Requires: fail2ban |
Requires: fail2ban |
28 |
|
|
29 |
|
|
30 |
%description |
%description |
31 |
Configure fail2ban on SME Server |
Configure fail2ban on SME Server |
32 |
|
|
33 |
%changelog |
%changelog |
34 |
|
* Wed Oct 16 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-9.sme |
35 |
|
- propagate configuration changes to fail2ban after submiting changes [SME: 10817] |
36 |
|
|
37 |
|
* Wed Oct 16 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-8.sme |
38 |
|
- fix blocked hosts list not displaying unless smeserver-denyhosts also installed [SME: 10814] |
39 |
|
|
40 |
|
* Fri Jul 19 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-7.sme |
41 |
|
- prevent fail2ban failure if sogo not installed while a backup restored db entries [SME: 9669] |
42 |
|
|
43 |
|
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-6.sme |
44 |
|
- fix incorrect permissions on sfail2ban [SME: 10775] |
45 |
|
|
46 |
|
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-5.sme |
47 |
|
- fix wordpress fragment error preventing jail.conf to be updated [SME: 10776] |
48 |
|
|
49 |
* Tue May 14 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-4.sme |
* Tue May 14 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-4.sme |
50 |
- fix missing sfail2ban exec [SME: 10775] |
- fix missing sfail2ban exec [SME: 10775] |
51 |
- Apply locals |
- Apply locals |
126 |
%patch1 -p1 |
%patch1 -p1 |
127 |
%patch2 -p1 |
%patch2 -p1 |
128 |
%patch3 -p1 |
%patch3 -p1 |
129 |
|
%patch4 -p1 |
130 |
|
%patch5 -p1 |
131 |
|
%patch6 -p1 |
132 |
|
%patch7 -p1 |
133 |
|
|
134 |
%build |
%build |
135 |
%{__mkdir_p} root/var/log/fail2ban |
%{__mkdir_p} root/var/log/fail2ban |
144 |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
145 |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
146 |
--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)' \ |
147 |
|
--file /usr/bin/sfail2ban 'attr(0755,root,root)' \ |
148 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
149 |
|
|
150 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |