/[smecontribs]/rpms/smeserver-denyhosts/contribs7/smeserver-denyhosts.spec
ViewVC logotype

Annotation of /rpms/smeserver-denyhosts/contribs7/smeserver-denyhosts.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Tue Apr 22 02:07:45 2008 UTC (16 years, 1 month ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-denyhosts-2_6-0_5_el4_sme
Changes since 1.1: +26 -2 lines
whitelist bug correction SME[4200]

1 unnilennium 1.2 # $Id: smeserver-denyhosts.spec,v 1.1 2008/04/21 17:25:59 slords Exp $
2 slords 1.1 # Authority: unnilennium
3     # Name: Jean-Philippe Pialasse
4    
5     Summary: smeserver-denyhosts
6     %define name smeserver-denyhosts
7    
8     # Variable representing installation directories:
9     %define installdir_denyhosts /etc/e-smith/web/functions
10     %define installdir_denyhosts_python /usr/lib/python2.3/site-packages/DenyHosts
11    
12     Name: %{name}
13     %define version 2.6
14 unnilennium 1.2 %define release 0.5
15 slords 1.1 Version: %{version}
16     Release: %{release}%{?dist}
17     License: GPL
18     Group: Applications/System
19     Source: %{name}-%{version}.tgz
20     Url: http://smeserver.pialasse.com/
21     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
22     BuildArch: noarch
23 unnilennium 1.2 Patch1: smeserver-denyhosts-2.6-patch1.patch
24 slords 1.1 BuildRequires: e-smith-devtools >= 1.13.1-03
25     Requires: smeserver-release >= 7.0
26    
27     %description
28     DenyHosts is a Python script that analyzes the sshd server log
29     messages to determine which hosts are attempting to hack into your
30     system. It also determines what user accounts are being targeted. It
31     keeps track of the frequency of attempts from each host and, upon
32     discovering a repeated attack host, updates the /etc/hosts.deny file
33     to prevent future break-in attempts from that host. Email reports can
34     be sent to a system admin. http://denyhosts.sourceforge.net/
35    
36     %prep
37     %setup
38    
39 unnilennium 1.2 %patch1 -p1
40    
41     %build
42     perl createlinks
43    
44     mkdir -p root/share/denyhosts/data
45     mkdir -p root/etc/e-smith/db/configuration/defaults/denyhosts
46     echo "service" > root/etc/e-smith/db/configuration/defaults/denyhosts/type
47     echo "disabled" > root/etc/e-smith/db/configuration/defaults/denyhosts/status
48    
49    
50 slords 1.1 %install
51     /bin/rm -rf $RPM_BUILD_ROOT
52     (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
53     /bin/rm -f %{name}-%{version}-filelist
54     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
55    
56     %files -f %{name}-%{version}-filelist
57     %defattr(-,root,root,-)
58 unnilennium 1.2 %defattr(-,root,root)
59     %attr(0644,root,root) %config(noreplace) /etc/hosts.evil
60     %attr(0644,root,root) %config(noreplace) /usr/share/denyhosts/data/allowed-hosts
61 slords 1.1 %{installdir_denyhosts}/denyhosts
62    
63     %clean
64     rm -rf $RPM_BUILD_ROOT
65    
66 unnilennium 1.2
67 slords 1.1 %changelog
68 unnilennium 1.2 * Mon Apr 21 2008 JP PIALASSE tests@pialasse.com 2.6-05
69     - corrections to be added on contribs.org
70     - bug for whiteliste, file is moved to /usr/share/denyhosts/data/ [SME 4200]
71     - HTML bug corrected in the server-manager
72    
73     * Wed Apr 02 2008 JP PIALASSE tests@pialasse.com 2.6-04
74     - minor bug changes
75    
76 slords 1.1 * Mon Mar 31 2008 JP PIALASSE tests@pialasse.com 2.6-0.3
77     - bug in install scriptlet corrected
78     - bug about XML error on install corrected
79    
80     * Sun Mar 30 2008 JP PIALASSE tests@pialasse.com 2.6-0.2
81     - incorrect template name for hosts.allow corrected
82    
83     * Sat Mar 29 2008 JP PIALASSE tests@pialasse.com 2.6-0.1
84     - first package for SME from denyhosts src rpm for fedora core 4
85     - panel for server-manager

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed