rendered paste bodySummary: DenyHosts is a utility to help sys admins thwart ssh hackers
Name: DenyHosts
Version: 2.6
Release: 1.caos
License: GPL v2
Group: Development/Libraries
URL: http://denyhosts.sourceforge.net
Source0: %{name}-%{version}.tar.gz
Vendor: Phil Schwartz <phil_schwartz@users.sourceforge.net>
Prefix: %{_prefix}
BuildArchitectures: noarch
BuildRoot: %{_tmppath}/%{name}-buildroot
%description
DenyHosts is a python program that automatically blocks ssh attacks by adding entries to
/etc/hosts.deny. DenyHosts will also inform Linux administrators about offending hosts, attacked
users and suspicious logins.
%prep
%setup
%build
python setup.py build
%install
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%{__install} -m 0600 $RPM_BUILD_ROOT/usr/share/denyhosts/denyhosts.cfg-dist $RPM_BUILD_ROOT/usr/share/denyhosts/denyhosts.cfg
%{__install} -m 0700 $RPM_BUILD_ROOT/usr/share/denyhosts/daemon-control-dist $RPM_BUILD_ROOT/usr/share/denyhosts/daemon-control
%{__ln_s} /usr/share/denyhosts/daemon-control $RPM_BUILD_ROOT/etc/init.d/denyhosts
%post
chkconfig --add denyhosts
chkconfig denyhosts on
service denyhosts start
%clean
rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES
%defattr(-,root,root)
/usr/lib/python*/site-packages/DenyHosts
/usr/share/denyhosts