File suse_python.diff of Package speechd

diff -ruN speechd-0.6.7/src/python/Makefile.in speechd-patch/src/python/Makefile.in
--- speechd-0.6.7/src/python/Makefile.in	2008-09-14 03:34:15.000000000 +0200
+++ speechd-patch/src/python/Makefile.in	2008-09-17 12:14:25.000000000 +0200
@@ -13,11 +13,15 @@
 
 install:
 	if test -x /usr/bin/python; then \
+	 if [ "$(DESTDIR)" == "" ]; then \
 		./setup.py install --prefix=${prefix}; \
+		else \
+		./setup.py install --root $(DESTDIR) --prefix=${prefix}; \
+	 fi \
 	else \
 		echo "Python not found, not installing speechd module nor spd-conf"; \
 	fi
-	cp speechd_config/test.wav @snddatadir@
+	cp speechd_config/test.wav $(DESTDIR)@snddatadir@
 
 uninstall:
 	rm -f @snddatadir@/test.wav
diff -ruN speechd-0.6.7/suse/speechd speechd-patch/suse/speechd
--- speechd-0.6.7/suse/speechd	1970-01-01 01:00:00.000000000 +0100
+++ speechd-patch/suse/speechd	2008-09-17 12:14:52.000000000 +0200
@@ -0,0 +1,56 @@
+#! /bin/sh
+# /etc/init.d/speechd
+# copyright (c) 2000, 2003 SuSE Linux AG, Nuernberg
+# Author: Marco Skambraks <marco@suse.de>
+### BEGIN INIT INFO
+# Provides: speechd
+# Required-Start: $remote_fs
+# Required-Stop: $remote_fs
+# Default-Start: 2 3 5
+# Default-Stop: 0 1 6
+# Short-Description:            speechd start
+# Description: Start speech-dispatcher
+### END INIT INFO
+
+
+. /etc/rc.status
+return=$rc_done
+case "$1" in
+    start)
+      echo -n "Starting speech-dispatcher"
+      
+      if !(test -d /var/log/speech-dispatcher)
+      then
+      mkdir -p /var/log/speech-dispatcher
+      fi
+      
+      if test -d /var/run/speech-dispatcher
+      then
+      mkdir -p /var/run/speech-dispatcher
+      fi
+
+      startproc /usr/bin/speech-dispatcher 2>/dev/null
+      rc_status -v
+    ;;
+    stop)
+     echo -n "Shutting down speech-dispatcher"
+     killproc -TERM /usr/bin/speech-dispatcher
+     rc_status -v
+    ;;
+    restart)
+     $0 stop && $0 start || return=$rc_failed
+    ;;
+    reload)
+     $0 stop && $0 start || return=$rc_failed
+    ;;
+    status)
+     echo -n "Checking for speech-dispatcher: "
+     checkproc /usr/bin/speech-dispatcher
+     rc_status -v
+    ;;
+    *)
+     echo "Usage: $0 {start|stop|status|restart}"
+     exit 1
+esac
+
+rc_exit
openSUSE Build Service is sponsored by