]> git.pld-linux.org Git - packages/DenyHosts.git/blob - DenyHosts.spec
- not needed anymore
[packages/DenyHosts.git] / DenyHosts.spec
1 Summary:        Script to help thwart SSH server attacks
2 Summary(pl):    Skrypt do blokowania ataków na serwery SSH
3 Name:           DenyHosts
4 Version:        0.6.0
5 Release:        1
6 License:        GPL
7 Group:          Applications/System
8 Source0:        http://dl.sourceforge.net/denyhosts/%{name}-%{version}.tar.gz
9 # Source0-md5:  6d65457ed9c31c548160e2aa74e5a80e
10 Source1:        %{name}.cron
11 Source2:        %{name}.cfg
12 Patch0:         %{name}-kodos.patch
13 URL:            http://denyhosts.sourceforge.net/
14 BuildRequires:  python
15 BuildRequires:  python-devel
16 Requires:       python
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 DenyHosts is a script intended to be run by Linux system
21 administrators to help thwart SSH server attacks.
22
23 If you've ever looked at your SSH log (/var/log/secure on Redhat,
24 /var/log/auth.log on Mandrake, etc...) you may be alarmed to see how
25 many hackers attempted to gain access to your server. Hopefully, none
26 of them were successful (but then again, how would you know?).
27 Wouldn't it be better to automatically prevent that attacker from
28 continuing to gain entry into your system?
29
30 %description -l pl
31 DenyHosts jest skryptem dla administratorów systemów Linux, którego
32 zadaniem jest odparcie ataków na serwery SSH.
33
34 W logach SSH mo¿na znale¼æ wiele informacji o próbach uzyskania
35 dostêpu do serwera poprzez us³ugê SSH. Dobrze jest zapobiec kolejnym
36 próbom w³amania przez odciêcie w³amywaczom dostêpu do serwera.
37
38 %prep
39 %setup -q
40 %patch0 -p1
41
42 %build
43 echo 'VERSION="%{version}"' > version.py
44 python setup.py build
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/cron.d}
49
50 python setup.py install \
51         --root=$RPM_BUILD_ROOT \
52         --optimize=2
53
54 sed -i 's@CONFIG_FILE = \"denyhosts.cfg\"@CONFIG_FILE = \"/etc/DenyHosts.cfg\"@' $RPM_BUILD_ROOT%{_bindir}/denyhosts.py
55
56 install %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/%{name}
57 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc README.txt
65 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.cfg
66 %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
67 %attr(755,root,root) %{_bindir}/*
This page took 0.183552 seconds and 3 git commands to generate.