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

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

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


Revision 1.3 - (show annotations) (download)
Tue Apr 22 05:19:37 2008 UTC (16 years, 1 month ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-denyhosts-2_6-0_6_el4_sme
Changes since 1.2: +8 -2 lines
panel correction expand template

1 # $Id: smeserver-denyhosts.spec,v 1.2 2008/04/22 02:07:45 unnilennium Exp $
2 # 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 %define release 0.6
15 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 Patch1: smeserver-denyhosts-2.6-patch1.patch
24 Patch2: smeserver-denyhosts-2.6-patch2.patch
25 BuildRequires: e-smith-devtools >= 1.13.1-03
26 Requires: smeserver-release >= 7.0
27
28 %description
29 DenyHosts is a Python script that analyzes the sshd server log
30 messages to determine which hosts are attempting to hack into your
31 system. It also determines what user accounts are being targeted. It
32 keeps track of the frequency of attempts from each host and, upon
33 discovering a repeated attack host, updates the /etc/hosts.deny file
34 to prevent future break-in attempts from that host. Email reports can
35 be sent to a system admin. http://denyhosts.sourceforge.net/
36
37 %prep
38 %setup
39
40 %patch1 -p1
41 %patch2 -p1
42
43 %build
44 perl createlinks
45
46 mkdir -p root/share/denyhosts/data
47 mkdir -p root/etc/e-smith/db/configuration/defaults/denyhosts
48 echo "service" > root/etc/e-smith/db/configuration/defaults/denyhosts/type
49 echo "disabled" > root/etc/e-smith/db/configuration/defaults/denyhosts/status
50
51
52 %install
53 /bin/rm -rf $RPM_BUILD_ROOT
54 (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
55 /bin/rm -f %{name}-%{version}-filelist
56 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
57
58 %files -f %{name}-%{version}-filelist
59 %defattr(-,root,root,-)
60 %defattr(-,root,root)
61 %attr(0644,root,root) %config(noreplace) /etc/hosts.evil
62 %attr(0644,root,root) %config(noreplace) /usr/share/denyhosts/data/allowed-hosts
63 %{installdir_denyhosts}/denyhosts
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68
69 %changelog
70 * Tue Apr 22 2008 JP PIALASSE tests@pialasse.com 2.6-06
71 - tranlsation of comments into server-manager fucntion
72 - correction of expand template /usr/share/denyhosts/data/ [SME 4200]
73
74 * Mon Apr 21 2008 JP PIALASSE tests@pialasse.com 2.6-05
75 - corrections to be added on contribs.org
76 - bug for whiteliste, file is moved to /usr/share/denyhosts/data/ [SME 4200]
77 - HTML bug corrected in the server-manager
78
79 * Wed Apr 02 2008 JP PIALASSE tests@pialasse.com 2.6-04
80 - minor bug changes
81
82 * Mon Mar 31 2008 JP PIALASSE tests@pialasse.com 2.6-0.3
83 - bug in install scriptlet corrected
84 - bug about XML error on install corrected
85
86 * Sun Mar 30 2008 JP PIALASSE tests@pialasse.com 2.6-0.2
87 - incorrect template name for hosts.allow corrected
88
89 * Sat Mar 29 2008 JP PIALASSE tests@pialasse.com 2.6-0.1
90 - first package for SME from denyhosts src rpm for fedora core 4
91 - panel for server-manager

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