1 |
%define version 0.1.18 |
%define version 0.1.18 |
2 |
%define release 2 |
%define release 7 |
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 |
|
|
21 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
29 |
Configure fail2ban on SME Server |
Configure fail2ban on SME Server |
30 |
|
|
31 |
%changelog |
%changelog |
32 |
* Tue Apr 09 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-2.sme |
* Fri Jul 19 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-7.sme |
33 |
|
- prevent fail2ban failure if sogo not installed while a backup restored db entries [SME: 9669] |
34 |
|
|
35 |
|
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-6.sme |
36 |
|
- fix incorrect permissions on sfail2ban [SME: 10775] |
37 |
|
|
38 |
|
* Mon Jun 03 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-5.sme |
39 |
|
- fix wordpress fragment error preventing jail.conf to be updated [SME: 10776] |
40 |
|
|
41 |
|
* Tue May 14 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-4.sme |
42 |
|
- fix missing sfail2ban exec [SME: 10775] |
43 |
|
- Apply locals |
44 |
|
|
45 |
|
* Tue Apr 09 2019 Jean-Philipe Pialasse <tests@pialasse.com> 0.1.18-3.sme |
46 |
- add admin panel [SME: 10767] |
- add admin panel [SME: 10767] |
47 |
- add wordpress jails and filters [SME: 9709] |
- add wordpress jails and filters [SME: 9709] |
48 |
|
|
116 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
117 |
%patch0 -p1 |
%patch0 -p1 |
118 |
%patch1 -p1 |
%patch1 -p1 |
119 |
|
%patch2 -p1 |
120 |
|
%patch3 -p1 |
121 |
|
%patch4 -p1 |
122 |
|
%patch5 -p1 |
123 |
|
|
124 |
%build |
%build |
125 |
%{__mkdir_p} root/var/log/fail2ban |
%{__mkdir_p} root/var/log/fail2ban |
134 |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
--file /var/log/fail2ban/daemon.log 'config(noreplace) %attr(0600,root,root)' \ |
135 |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
--file /etc/cron.daily/cleanup_fail2ban 'attr(0755,root,root)' \ |
136 |
--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)' \ |
137 |
|
--file /usr/bin/sfail2ban 'attr(0755,root,root)' \ |
138 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
139 |
|
|
140 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |