1 |
# $Id: smeserver-denyhosts.spec,v 1.11 2019/03/25 02:58:54 jpp Exp $ |
2 |
# Authority: unnilennium |
3 |
# Name: Jean-Philippe Pialasse |
4 |
|
5 |
Summary: smeserver-denyhosts |
6 |
%define name smeserver-denyhosts |
7 |
%define version 2.9 |
8 |
%define release 9 |
9 |
Name: %{name} |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Applications/System |
14 |
Source: %{name}-%{version}.tgz |
15 |
Patch0: smeserver-denyhosts-2.9-regexpatch.patch |
16 |
Patch1: smeserver-denyhosts-2.9-bz10076-wrongIPremovedfromWL.patch |
17 |
Patch2: smeserver-denyhosts-2.9-bz9458-ease_to_deban.patch |
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArch: noarch |
20 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
21 |
Requires: smeserver-release >= 8.0 |
22 |
Requires: denyhosts >= 2.6-20 |
23 |
Requires: e-smith-formmagick >= 1.4.0-12 |
24 |
|
25 |
%description |
26 |
Integration package to mesh denyhosts with SME Server. |
27 |
|
28 |
%prep |
29 |
%setup |
30 |
%patch0 -p1 |
31 |
%patch1 -p1 |
32 |
%patch2 -p1 |
33 |
|
34 |
%build |
35 |
/usr/bin/perl createlinks |
36 |
|
37 |
%install |
38 |
/bin/rm -rf $RPM_BUILD_ROOT |
39 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
40 |
/bin/rm -f %{name}-%{version}-filelist |
41 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
42 |
|
43 |
%files -f %{name}-%{version}-filelist |
44 |
%defattr(-,root,root,-) |
45 |
|
46 |
%clean |
47 |
rm -rf $RPM_BUILD_ROOT |
48 |
|
49 |
%post |
50 |
touch /etc/hosts.deny_ssh |
51 |
|
52 |
%changelog |
53 |
* Sun Mar 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.9-9.sme |
54 |
- ease unban [SME: 9458] |
55 |
|
56 |
* Mon Feb 06 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.9-7.sme |
57 |
- fix removing from whitelist does not remove the desired IP but a random one [SME: 10076] |
58 |
|
59 |
* Mon Mar 30 2015 JP Pialasse <tests@pialasse.com> 2.9-6.sme |
60 |
- fixed non working REGEX [SME: 8894] |
61 |
- fixed should isntall epel version not repoforge [SME: 8892] |
62 |
|
63 |
* Sun Mar 29 2015 JP Pialasse <tests@pialasse.com> 2.9-1.sme |
64 |
- fixed path to perl modules |
65 |
|
66 |
* Mon Jun 16 2014 JP Pialasse <tests@pialasse.com> 2.8-1.sme |
67 |
- initial import to SME9 contribs |
68 |
|
69 |
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 2.7-2.sme |
70 |
- apply locale 2013-07-14 patch |
71 |
|
72 |
* Sun Jun 3 2012 JP PIALASSE tests@pialasse.com 2.7-1.sme |
73 |
- Initial version |