]> git.pld-linux.org Git - packages/DenyHosts.git/blobdiff - DenyHosts.spec
- rel. 2 for rebuild with python 2.5
[packages/DenyHosts.git] / DenyHosts.spec
index e17ef0f843562baf28e24cfab37dd09aea2845d5..0e39047ccdbaf17219ac62c32547f0b3e48aca24 100644 (file)
@@ -1,20 +1,23 @@
 Summary:       Script to help thwart SSH server attacks
 Summary(pl):   Skrypt do blokowania ataków na serwery SSH
 Name:          DenyHosts
-Version:       1.0.1
-Release:       1
-License:       GPL
+Version:       2.5
+Release:       2
+License:       GPL v2
 Group:         Applications/System
 Source0:       http://dl.sourceforge.net/denyhosts/%{name}-%{version}.tar.gz
-# Source0-md5: 4ba9a956499cc440f594d84c80e7b7f6
+# Source0-md5: b33f0cdae6448ae559c5f22dbffe59f2
 Source1:       %{name}.cron
 Source2:       %{name}.cfg
 Source3:       %{name}.init
-URL:           http://denyhosts.sourceforge.net/
+URL:           http://www.denyhosts.net/
 BuildRequires: python-devel
 BuildRequires: python-modules
 BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
 Requires:      python
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -64,17 +67,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add %{name}
-if [ -r /var/lock/subsys/DenyHosts ]; then
-       /etc/rc.d/init.d/DenyHosts restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/DenyHosts start\" to start DenyHosts."
-fi
+%service DenyHosts restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -r /var/lock/subsys/DenyHosts ]; then
-               /etc/rc.d/init.d/DenyHosts stop >&2
-       fi
+       %service DenyHosts stop
        /sbin/chkconfig --del %{name}
 fi
 
@@ -82,11 +79,11 @@ fi
 %defattr(644,root,root,755)
 %doc README.txt CHANGELOG.txt
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.cfg
-%config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
+%config(noreplace,missingok) %verify(not md5 mtime size) /etc/cron.d/%{name}
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) %{_sbindir}/*
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
 %dir /var/lib/%{name}
-/var/lib/%{name}/allowed-hosts
+%config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/allowed-hosts
 %dir %{py_sitescriptdir}/%{name}
 %{py_sitescriptdir}/%{name}/*.py[co]
This page took 0.062857 seconds and 4 git commands to generate.