Changes of Revision 21
[-] | Changed | blocksshd.spec |
x 1
2 Summary: Blocks brute force SSH attacks using iptables 3 Name: blocksshd 4 Version: 1.3 5 -Release: 3 6 +Release: 4 7 License: GPL 8 -Group: Applications/Internet 9 +Group: Productivity/Networking/SSH 10 URL: http://sourceforge.net/projects/blocksshd/ 11 BuildArch: noarch 12 Source: http://downloads.sourgeforge.net/blocksshd/blocksshd-%{version}.tar.bz2 13
14 15 %if 0%{?suse_version} 16 install -D -m 755 -d %{buildroot}/etc/init.d/ 17 -install -D -m 755 -d %{buildroot}/etc/sysconfig/ 18 +install -D -m 755 -d %{buildroot}/var/adm/fillup-templates 19 install -D -m 755 -d %{buildroot}/usr/sbin 20 cd %{buildroot}/usr/sbin 21 ln -s ../../etc/init.d/blocksshd rcblocksshd 22 install -m 755 %{S:1} %{buildroot}/etc/init.d/blocksshd 23 -install -m 644 %{S:2} %{buildroot}/etc/sysconfig/blocksshd 24 +install -m 644 %{S:2} %{buildroot}/var/adm/fillup-templates/sysconfig.blocksshd 25 %else 26 %{__make} init DESTDIR="%{buildroot}" \ 27 INITRDDIR="%{_initrddir}" 28
29 %{_mandir}/man1/blocksshd.1* 30 %{_initrddir}/blocksshd 31 %config(noreplace) %{_sysconfdir}/blocksshd.conf 32 +%if 0%{?suse_version} 33 +/var/adm/fillup-templates/sysconfig.blocksshd 34 +%else 35 %config(noreplace) %{_sysconfdir}/sysconfig/blocksshd 36 +%endif 37 38 %post 39 /sbin/chkconfig --add blocksshd 40 +%if 0%{?suse_version} 41 +%fillup_and_insserv 42 +%endif 43 44 %preun 45 /sbin/chkconfig --del blocksshd 46 |
||
[+] | Changed | blocksshd-suse.init ^ |
@@ -6,10 +6,8 @@ # ### BEGIN INIT INFO # Provides: blocksshd -# Required-Start: $network -# Should-Start: $network +# Required-Start: $network $remote_fs $local_fs # Required-Stop: $null -# Should-Stop: $network # Default-Start: 3 5 # Default-Stop: # Short-Description: blocksshd |