1 |
%define version 0.1.18 |
%define version 0.1.18 |
2 |
%define release 2 |
%define release 6 |
3 |
%define name smeserver-fail2ban |
%define name smeserver-fail2ban |
4 |
|
|
5 |
|
|
12 |
Group: Networking/Daemons |
Group: Networking/Daemons |
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 |
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 |
|
|
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
28 |
Configure fail2ban on SME Server |
Configure fail2ban on SME Server |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
* Tue Apr 09 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-2.sme |
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-6.sme |
32 |
|
- fix incorrect permissions on sfail2ban [SME: 10775] |
33 |
|
|
34 |
|
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-5.sme |
35 |
|
- fix wordpress fragment error preventing jail.conf to be updated [SME: 10776] |
36 |
|
|
37 |
|
* Tue May 14 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-4.sme |
38 |
|
- fix missing sfail2ban exec [SME: 10775] |
39 |
|
- Apply locals |
40 |
|
|
41 |
|
* Tue Apr 09 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-3.sme |
42 |
- add admin panel [SME: 10767] |
- add admin panel [SME: 10767] |
43 |
- TODO: add wordpress jails and filters [SME: 9709] |
- add wordpress jails and filters [SME: 9709] |
44 |
|
|
45 |
* Fri Oct 27 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.1.18-1.sme |
* Fri Oct 27 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.1.18-1.sme |
46 |
- Ignore greylisting, from Michael McCarn [SME: 10447] |
- Ignore greylisting, from Michael McCarn [SME: 10447] |
111 |
%prep |
%prep |
112 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
113 |
%patch0 -p1 |
%patch0 -p1 |
114 |
|
%patch1 -p1 |
115 |
|
%patch2 -p1 |
116 |
|
%patch3 -p1 |
117 |
|
%patch4 -p1 |
118 |
|
|
119 |
%build |
%build |
120 |
%{__mkdir_p} root/var/log/fail2ban |
%{__mkdir_p} root/var/log/fail2ban |
129 |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
130 |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
131 |
--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)' \ |
132 |
|
--file /usr/bin/sfail2ban 'attr(0755,root,root)' \ |
133 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
134 |
|
|
135 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |