- Fix init script
This commit is contained in:
parent
343458c40c
commit
3c4870785a
65
mcstrans-0.3.1-init.patch
Normal file
65
mcstrans-0.3.1-init.patch
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
--- mcstrans-0.3.1/src/mcstrans.init~ 2009-09-16 11:01:17.646738932 +0200
|
||||||
|
+++ mcstrans-0.3.1/src/mcstrans.init 2009-09-16 11:23:47.605763983 +0200
|
||||||
|
@@ -20,6 +20,7 @@
|
||||||
|
|
||||||
|
PATH=/sbin:/bin:/usr/bin:/usr/sbin
|
||||||
|
prog="mcstransd"
|
||||||
|
+lockfile=/var/lock/subsys/$prog
|
||||||
|
|
||||||
|
# Source function library.
|
||||||
|
. /etc/init.d/functions
|
||||||
|
@@ -54,7 +55,7 @@
|
||||||
|
RETVAL=$?
|
||||||
|
echo
|
||||||
|
if test $RETVAL = 0 ; then
|
||||||
|
- touch /var/lock/subsys/mcstrans
|
||||||
|
+ touch $lockfile
|
||||||
|
fi
|
||||||
|
return $RETVAL
|
||||||
|
}
|
||||||
|
@@ -64,15 +65,7 @@
|
||||||
|
killproc $prog
|
||||||
|
RETVAL=$?
|
||||||
|
echo
|
||||||
|
- rm -f /var/lock/subsys/mcstrans
|
||||||
|
- return $RETVAL
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
-reload(){
|
||||||
|
- echo -n $"Reloading configuration: "
|
||||||
|
- killproc $prog -HUP
|
||||||
|
- RETVAL=$?
|
||||||
|
- echo
|
||||||
|
+ rm -f $lockfile
|
||||||
|
return $RETVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -82,7 +75,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
condrestart(){
|
||||||
|
- [ -e /var/lock/subsys/mcstrans ] && restart
|
||||||
|
+ [ -e $lockfile ] && restart
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -95,17 +88,14 @@
|
||||||
|
stop)
|
||||||
|
stop
|
||||||
|
;;
|
||||||
|
- restart)
|
||||||
|
+ restart|force-reload)
|
||||||
|
restart
|
||||||
|
;;
|
||||||
|
- reload)
|
||||||
|
- reload
|
||||||
|
- ;;
|
||||||
|
condrestart)
|
||||||
|
condrestart
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
- echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|rotate}"
|
||||||
|
+ echo $"Usage: $0 {start|stop|status|restart|force-reload|condrestart}"
|
||||||
|
RETVAL=3
|
||||||
|
esac
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
Summary: SELinux Translation Daemon
|
Summary: SELinux Translation Daemon
|
||||||
Name: mcstrans
|
Name: mcstrans
|
||||||
Version: 0.3.1
|
Version: 0.3.1
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL+
|
License: GPL+
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source: http://fedora.redhat.com/projects/%{name}-%{version}.tgz
|
Source: http://fedora.redhat.com/projects/%{name}-%{version}.tgz
|
||||||
@ -13,6 +13,7 @@ Requires(pre): /sbin/chkconfig /sbin/service
|
|||||||
Requires(post):/sbin/chkconfig /sbin/service
|
Requires(post):/sbin/chkconfig /sbin/service
|
||||||
Provides: setransd
|
Provides: setransd
|
||||||
Provides: libsetrans
|
Provides: libsetrans
|
||||||
|
Patch: mcstrans-0.3.1-init.patch
|
||||||
Obsoletes: libsetrans
|
Obsoletes: libsetrans
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -31,6 +32,7 @@ from internal representations to user defined representation.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make clean
|
make clean
|
||||||
@ -53,8 +55,8 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
%post
|
%post
|
||||||
chkconfig --add mcstrans
|
chkconfig --add mcstrans
|
||||||
if [ -f /var/lock/subsys/mcstransd ]; then
|
if [ -f /var/lock/subsys/mcstrans ]; then
|
||||||
mv /var/lock/subsys/mcstransd /var/lock/subsys/mcstrans
|
mv /var/lock/subsys/mcstrans /var/lock/subsys/mcstransd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
@ -86,6 +88,9 @@ fi
|
|||||||
%{_usr}/share/mcstrans/util/*
|
%{_usr}/share/mcstrans/util/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Sep 17 2009 Miroslav Grepl <mgrepl@redhat.com> 0.3.1-3
|
||||||
|
- Fix init script
|
||||||
|
|
||||||
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user