--- rpms/smeserver-denyhosts/contribs7/smeserver-denyhosts.spec 2008/04/22 05:19:37 1.3 +++ rpms/smeserver-denyhosts/contribs7/smeserver-denyhosts.spec 2008/06/25 19:58:54 1.13 @@ -1,53 +1,49 @@ -# $Id: smeserver-denyhosts.spec,v 1.2 2008/04/22 02:07:45 unnilennium Exp $ +# $Id: smeserver-denyhosts.spec,v 1.12 2008/05/21 20:07:27 snetram 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 11 +Name: %{name} Version: %{version} Release: %{release}%{?dist} License: GPL Group: Applications/System Source: %{name}-%{version}.tgz +Patch0: smeserver-denyhosts-2.6-locale-2008-04-22.patch +Patch1: smeserver-denyhosts-2.6-locale-2008-04-23.patch +Patch2: smeserver-denyhosts-2.6-patch2.patch +Patch3: smeserver-denyhosts-2.6-patch3.patch +Patch4: smeserver-denyhosts-2.6-add2general.patch +Patch5: smeserver-denyhosts-2.6-locale-2008-05-05.patch +Patch6: smeserver-denyhosts-2.6-locale-2008-05-21.patch +Patch7: smeserver-denyhosts-2.6-locale-2008-06-25.patch 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 +Requires: e-smith-formmagick >= 1.4.0-12 %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 - +%patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -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 +53,45 @@ 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 +%post +touch /etc/hosts.deny_ssh %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 Jun 25 2008 Jonathan Martens 2.6-11 +- Actually apply 25 Jun 2008 locale patch, forgot to commit patch + +* Thu May 21 2008 Jonathan Martens 2.6-10 +- Apply 21 May 2008 locale patch + +* Mon May 5 2008 Jonathan Martens 2.6-9 +- Apply 5 May 2008 locale patch -* Wed Apr 02 2008 JP PIALASSE tests@pialasse.com 2.6-04 -- minor bug changes +* Sun Apr 27 2008 Jonathan Martens 2.6-8 +- Add common tags to e-smith-formmagick's general +- Fix referrals to the SME Server Bug Tracker + +* Tue Apr 24 2008 JP PIALASSE 2.6-7 +- stop when disable service [SME: 4528] +- adding local + +* Wed Apr 23 2008 JP PIALASSE 2.6-6 +- Added 23 APril 2008 local patch +- changed fragment SMTP_FROM to add domain name +- changed fragment ADMIN_EMAIL +- added some FM in local to translate + +* Tue Apr 22 2008 Jonathan Martens 2.6-5 +- Added 22 April 2008 locale patch + +* 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