1 |
# $Id: smeserver-denyhosts.spec,v 1.2 2008/04/22 02:07:45 unnilennium Exp $ |
# $Id: smeserver-denyhosts.spec,v 1.6 2008/04/22 19:52:12 snetram Exp $ |
2 |
# Authority: unnilennium |
# Authority: unnilennium |
3 |
# Name: Jean-Philippe Pialasse |
# Name: Jean-Philippe Pialasse |
4 |
|
|
5 |
Summary: smeserver-denyhosts |
Summary: smeserver-denyhosts |
6 |
%define name smeserver-denyhosts |
%define name smeserver-denyhosts |
|
|
|
|
# Variable representing installation directories: |
|
|
%define installdir_denyhosts /etc/e-smith/web/functions |
|
|
%define installdir_denyhosts_python /usr/lib/python2.3/site-packages/DenyHosts |
|
|
|
|
|
Name: %{name} |
|
7 |
%define version 2.6 |
%define version 2.6 |
8 |
%define release 0.6 |
%define release 6 |
9 |
|
Name: %{name} |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
13 |
Group: Applications/System |
Group: Applications/System |
14 |
Source: %{name}-%{version}.tgz |
Source: %{name}-%{version}.tgz |
15 |
|
Patch0: smeserver-denyhosts-2.6-locale-2008-04-22.patch |
16 |
|
Patch1: smeserver-denyhosts-2.6-locale-2008-04-23.patch |
17 |
|
Patch2: smeserver-denyhosts-2.6-patch2.patch |
18 |
Url: http://smeserver.pialasse.com/ |
Url: http://smeserver.pialasse.com/ |
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildArch: noarch |
BuildArch: noarch |
|
Patch1: smeserver-denyhosts-2.6-patch1.patch |
|
|
Patch2: smeserver-denyhosts-2.6-patch2.patch |
|
21 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
22 |
Requires: smeserver-release >= 7.0 |
Requires: smeserver-release >= 7.0 |
23 |
|
Requires: denyhosts >= 2.6 |
24 |
|
|
25 |
%description |
%description |
26 |
DenyHosts is a Python script that analyzes the sshd server log |
Integration package to mesh denyhosts with SME Server. |
|
messages to determine which hosts are attempting to hack into your |
|
|
system. It also determines what user accounts are being targeted. It |
|
|
keeps track of the frequency of attempts from each host and, upon |
|
|
discovering a repeated attack host, updates the /etc/hosts.deny file |
|
|
to prevent future break-in attempts from that host. Email reports can |
|
|
be sent to a system admin. http://denyhosts.sourceforge.net/ |
|
27 |
|
|
28 |
%prep |
%prep |
29 |
%setup |
%setup |
30 |
|
%patch0 -p1 |
31 |
%patch1 -p1 |
%patch1 -p1 |
32 |
%patch2 -p1 |
%patch2 -p1 |
33 |
|
|
34 |
%build |
%build |
35 |
perl createlinks |
/usr/bin/perl createlinks |
|
|
|
|
mkdir -p root/share/denyhosts/data |
|
|
mkdir -p root/etc/e-smith/db/configuration/defaults/denyhosts |
|
|
echo "service" > root/etc/e-smith/db/configuration/defaults/denyhosts/type |
|
|
echo "disabled" > root/etc/e-smith/db/configuration/defaults/denyhosts/status |
|
|
|
|
36 |
|
|
37 |
%install |
%install |
38 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
42 |
|
|
43 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
44 |
%defattr(-,root,root,-) |
%defattr(-,root,root,-) |
|
%defattr(-,root,root) |
|
|
%attr(0644,root,root) %config(noreplace) /etc/hosts.evil |
|
|
%attr(0644,root,root) %config(noreplace) /usr/share/denyhosts/data/allowed-hosts |
|
|
%{installdir_denyhosts}/denyhosts |
|
45 |
|
|
46 |
%clean |
%clean |
47 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
48 |
|
|
49 |
|
%post |
50 |
|
touch /etc/hosts.deny_ssh |
51 |
|
|
52 |
%changelog |
%changelog |
53 |
* Tue Apr 22 2008 JP PIALASSE tests@pialasse.com 2.6-06 |
* Wed Apr 23 2008 JP PIALASSE <tests@pialasse.com> 2.6-6 |
54 |
- tranlsation of comments into server-manager fucntion |
- Added 23 APril 2008 local patch |
55 |
- correction of expand template /usr/share/denyhosts/data/ [SME 4200] |
- changed fragment SMTP_FROM to add domain name |
56 |
|
- changed fragment ADMIN_EMAIL |
57 |
* Mon Apr 21 2008 JP PIALASSE tests@pialasse.com 2.6-05 |
- added some FM in local to translate |
58 |
- corrections to be added on contribs.org |
|
59 |
- bug for whiteliste, file is moved to /usr/share/denyhosts/data/ [SME 4200] |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 2.6-5 |
60 |
- HTML bug corrected in the server-manager |
- Added 22 April 2008 locale patch |
61 |
|
|
62 |
* Wed Apr 02 2008 JP PIALASSE tests@pialasse.com 2.6-04 |
* Tue Apr 22 2008 Shad L. Lords <slords@mail.com> 2.6-4.sme |
63 |
- minor bug changes |
- Pull out all denyhosts stuff |
64 |
|
- Template needed files |
65 |
|
- Add database defaults |
66 |
|
- Split panel to use correct FormMagick style |
67 |
|
|
68 |
* Mon Mar 31 2008 JP PIALASSE tests@pialasse.com 2.6-0.3 |
* Mon Mar 31 2008 JP PIALASSE tests@pialasse.com 2.6-0.3 |
69 |
- bug in install scriptlet corrected |
- bug in install scriptlet corrected |