Description: init script patches
 All changes related to init scripts
Author: Russell Coker <russell@coker.com.au>

---
Last-Update: 2012-02-28

--- policycoreutils-2.1.10.orig/scripts/fixfiles
+++ policycoreutils-2.1.10/scripts/fixfiles
@@ -207,12 +207,12 @@ if [ ! -z "$PREFC" ]; then
 fi
 if [ ! -z "$RPMFILES" ]; then
     for i in `echo "$RPMFILES" | sed 's/,/ /g'`; do
-	rpmlist $i | ${RESTORECON} ${FORCEFLAG} $* -R -i -f - 2>&1 | cat >> $LOGFILE
+	rpmlist $i | ${RESTORECON} -p ${FORCEFLAG} $* -R -i -f - 2>&1 | cat >> $LOGFILE
     done
     exit $?
 fi
 if [ ! -z "$FILEPATH" ]; then
-    ${RESTORECON} ${FORCEFLAG} -R $* $FILEPATH 2>&1 | cat >> $LOGFILE
+    ${RESTORECON} -p ${FORCEFLAG} -R $* $FILEPATH 2>&1 | cat >> $LOGFILE
     return
 fi
 [ -x /usr/sbin/genhomedircon ] && /usr/sbin/genhomedircon
--- policycoreutils-2.1.10.orig/sandbox/sandbox.config
+++ policycoreutils-2.1.10/sandbox/sandbox.config
@@ -1,2 +1,4 @@
 # Space separate list of homedirs
 HOMEDIRS="/home"
+# Comment out the following line to enable the sandbox
+RUN=NO
--- policycoreutils-2.1.10.orig/sandbox/Makefile
+++ policycoreutils-2.1.10/sandbox/Makefile
@@ -1,7 +1,7 @@
 # Installation directories.
 PREFIX ?= $(DESTDIR)/usr
-INITDIR ?= $(DESTDIR)/etc/rc.d/init.d/
-SYSCONFDIR ?= $(DESTDIR)/etc/sysconfig
+INITDIR ?= $(DESTDIR)/etc/init.d/
+SYSCONFDIR ?= $(DESTDIR)/etc/default
 LIBDIR ?= $(PREFIX)/lib
 BINDIR ?= $(PREFIX)/bin
 SBINDIR ?= $(PREFIX)/sbin
--- policycoreutils-2.1.10.orig/restorecond/Makefile
+++ policycoreutils-2.1.10/restorecond/Makefile
@@ -7,7 +7,7 @@ AUTOSTARTDIR = $(DESTDIR)/etc/xdg/autost
 DBUSSERVICEDIR = $(DESTDIR)/usr/share/dbus-1/services
 
 autostart_DATA = sealertauto.desktop
-INITDIR = $(DESTDIR)/etc/rc.d/init.d
+INITDIR = $(DESTDIR)/etc/init.d
 SELINUXDIR = $(DESTDIR)/etc/selinux
 
 DBUSFLAGS = -DHAVE_DBUS -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/lib/dbus-1.0/include
@@ -31,7 +31,6 @@ install: all
 	install -m 755 restorecond $(SBINDIR)
 	install -m 644 restorecond.8 $(MANDIR)/man8
 	-mkdir -p $(INITDIR)
-	install -m 755 restorecond.init $(INITDIR)/restorecond
 	-mkdir -p $(SELINUXDIR)
 	install -m 644 restorecond.conf $(SELINUXDIR)/restorecond.conf
 	install -m 644 restorecond_user.conf $(SELINUXDIR)/restorecond_user.conf
--- policycoreutils-2.1.10.orig/restorecond/restorecond.init
+++ policycoreutils-2.1.10/restorecond/restorecond.init
@@ -1,16 +1,16 @@
 #!/bin/sh
-#
-# restorecond:		Daemon used to maintain path file context
-#
-# chkconfig:	- 12 87
-# description:	restorecond uses inotify to look for creation of new files \
-# listed in the /etc/selinux/restorecond.conf file, and restores the \
-# correct security context.
-#
-# processname: /usr/sbin/restorecond
-# config: /etc/selinux/restorecond.conf 
-# pidfile: /var/run/restorecond.pid
-#
+### BEGIN INIT INFO
+# Provides:          restorecond
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Start the Daemon used to maintain path file context
+# Description:       uses inotify to look for creation of new files
+#                    listed in the /etc/selinux/restorecond.conf file, 
+#                    and restores the correct security context.
+### END INIT INFO
+
 # Return values according to LSB for all commands but status:
 # 0 - success
 # 1 - generic or unspecified error
