--- rpms/smeserver-denyhosts/contribs7/smeserver-denyhosts.spec 2008/04/22 05:19:37 1.3 +++ rpms/smeserver-denyhosts/contribs7/smeserver-denyhosts.spec 2008/04/22 18:11:58 1.4 @@ -1,17 +1,12 @@ -# $Id: smeserver-denyhosts.spec,v 1.2 2008/04/22 02:07:45 unnilennium Exp $ +# $Id: smeserver-denyhosts.spec,v 1.1 2008/04/21 17:25:59 slords Exp $ # Authority: unnilennium # Name: Jean-Philippe Pialasse Summary: 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} %define version 2.6 -%define release 0.6 +%define release 4 +Name: %{name} Version: %{version} Release: %{release}%{?dist} License: GPL @@ -20,34 +15,18 @@ Source: %{name}-%{version}.tgz Url: http://smeserver.pialasse.com/ BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArch: noarch -Patch1: smeserver-denyhosts-2.6-patch1.patch -Patch2: smeserver-denyhosts-2.6-patch2.patch BuildRequires: e-smith-devtools >= 1.13.1-03 Requires: smeserver-release >= 7.0 +Requires: denyhosts >= 2.6 %description -DenyHosts is a Python script that analyzes the sshd server log -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/ +Integration package to mesh denyhosts with SME Server. %prep %setup -%patch1 -p1 -%patch2 -p1 - %build -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 - +/usr/bin/perl createlinks %install /bin/rm -rf $RPM_BUILD_ROOT @@ -57,27 +36,16 @@ echo "disabled" > root/etc/e-smith/db/c %files -f %{name}-%{version}-filelist %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 %clean rm -rf $RPM_BUILD_ROOT - %changelog -* Tue Apr 22 2008 JP PIALASSE tests@pialasse.com 2.6-06 -- tranlsation of comments into server-manager fucntion -- correction of expand template /usr/share/denyhosts/data/ [SME 4200] - -* Mon Apr 21 2008 JP PIALASSE tests@pialasse.com 2.6-05 -- corrections to be added on contribs.org -- bug for whiteliste, file is moved to /usr/share/denyhosts/data/ [SME 4200] -- HTML bug corrected in the server-manager - -* Wed Apr 02 2008 JP PIALASSE tests@pialasse.com 2.6-04 -- minor bug changes +* Tue Apr 22 2008 Shad L. Lords 2.6-4.sme +- Pull out all denyhosts stuff +- Template needed files +- Add database defaults +- Split panel to use correct FormMagick style * Mon Mar 31 2008 JP PIALASSE tests@pialasse.com 2.6-0.3 - bug in install scriptlet corrected