Changes of Revision 15
[-] | Changed | blocksshd.spec |
x 1
2 %patch1 -p1 3 %endif 4 5 -%if 0%{?centos_version} || 0%{?fedora_version} 6 +%if 0%{?centos_version} || 0%{?fedora_version} | 0%{?rhel_version} 7 %patch2 -p1 8 %patch3 -p1 9 %endif 10
11 * Fri Sep 05 2008 Carsten Schoene <cs@linux-administrator.com> 12 - update to blocksshd version 1.3 13 - removed IPv6 support 14 -- reworked config & init patches 15 +- reworked config & init patches, added RHEL support 16 17 * Tue Jan 22 2008 Carsten Schoene <cs@linux-administrator.com> 18 - added more requirements 19 |
||
[+] | Changed | blocksshd-redhat-init.diff ^ |
@@ -1,6 +1,35 @@ --- blocksshd-1.3/init/blocksshd.orig 2007-08-08 15:25:42.000000000 +0200 -+++ blocksshd-1.3/init/blocksshd 2008-09-05 11:46:23.000000000 +0200 -@@ -47,7 +47,7 @@ ++++ blocksshd-1.3/init/blocksshd 2008-09-05 12:00:57.000000000 +0200 +@@ -19,6 +19,12 @@ + + [ -f /etc/blocksshd.conf ] || exit 0 + ++if [ -f /etc/sysconfig/blocksshd ] ; then ++ . /etc/sysconfig/blocksshd ++else ++ exit 0 ++fi ++ + DAEMON=blocksshd + + start() { +@@ -28,6 +34,7 @@ + echo + [ $RETVAL = 0 ] && touch /var/lock/subsys/blocksshd + return $RETVAL ++ $STARTCMD + } + + stop() { +@@ -37,6 +44,7 @@ + RETVAL=$? + echo + [ $RETVAL = 0 ] && rm -f /var/lock/subsys/blocksshd ++ $STOPCMD + } + + # See how we were called. +@@ -47,7 +55,7 @@ stop) stop ;; @@ -9,7 +38,7 @@ $0 stop $0 start exit $? -@@ -57,7 +57,7 @@ +@@ -57,7 +65,7 @@ echo ;; *) |