From b1da6768d7e4021d87d33d7c18b7efb8ffb1b293 Mon Sep 17 00:00:00 2001
From: Matthias Schwarzott <zzam@gentoo.org>
Date: Tue, 24 Apr 2007 18:11:44 +0000
Subject: Fixed shutdown problems of version 0.3.9. Package-Manager:
 portage-2.1.2.4

---
 .../files/digest-gentoo-vdr-scripts-0.3.9          |  3 -
 .../files/digest-gentoo-vdr-scripts-0.3.9-r1       |  3 +
 .../gentoo-vdr-scripts-0.3.9-fix-shutdown.diff     | 79 ++++++++++++++++++++++
 3 files changed, 82 insertions(+), 3 deletions(-)
 delete mode 100644 media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9
 create mode 100644 media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9-r1
 create mode 100644 media-tv/gentoo-vdr-scripts/files/gentoo-vdr-scripts-0.3.9-fix-shutdown.diff

(limited to 'media-tv/gentoo-vdr-scripts/files')

diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9
deleted file mode 100644
index 68f683dea5bd..000000000000
--- a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 260af5d2052c15929f552b87132e768c gentoo-vdr-scripts-0.3.9.tar.bz2 26395
-RMD160 b7577c30b240f55862318bdb220995196f03c4c2 gentoo-vdr-scripts-0.3.9.tar.bz2 26395
-SHA256 3d8c2aa3c579b5869c5afc7398275fe9dc2439d49ef105bb4fcbcd4702d8ed03 gentoo-vdr-scripts-0.3.9.tar.bz2 26395
diff --git a/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9-r1 b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9-r1
new file mode 100644
index 000000000000..68f683dea5bd
--- /dev/null
+++ b/media-tv/gentoo-vdr-scripts/files/digest-gentoo-vdr-scripts-0.3.9-r1
@@ -0,0 +1,3 @@
+MD5 260af5d2052c15929f552b87132e768c gentoo-vdr-scripts-0.3.9.tar.bz2 26395
+RMD160 b7577c30b240f55862318bdb220995196f03c4c2 gentoo-vdr-scripts-0.3.9.tar.bz2 26395
+SHA256 3d8c2aa3c579b5869c5afc7398275fe9dc2439d49ef105bb4fcbcd4702d8ed03 gentoo-vdr-scripts-0.3.9.tar.bz2 26395
diff --git a/media-tv/gentoo-vdr-scripts/files/gentoo-vdr-scripts-0.3.9-fix-shutdown.diff b/media-tv/gentoo-vdr-scripts/files/gentoo-vdr-scripts-0.3.9-fix-shutdown.diff
new file mode 100644
index 000000000000..db85843cf4de
--- /dev/null
+++ b/media-tv/gentoo-vdr-scripts/files/gentoo-vdr-scripts-0.3.9-fix-shutdown.diff
@@ -0,0 +1,79 @@
+diff -ru --ignore-matching-lines=Id --exclude=.svn tags/0.3.9/ChangeLog trunk/ChangeLog
+--- tags/0.3.9/ChangeLog	2007-04-23 15:54:12.000000000 +0200
++++ trunk/ChangeLog	2007-04-24 12:59:14.000000000 +0200
+@@ -1,5 +1,13 @@
+ # ChangeLog for gentoo-vdr-scripts
+-# $Id: ChangeLog 446 2007-04-23 13:54:12Z zzam $
++# $Id: ChangeLog 448 2007-04-24 10:59:13Z zzam $
++
++  24 Apr 2007; Matthias Schwarzott <zzam@gentoo.org>
++  usr/share/vdr/bin/vdrshutdown-gate.sh:
++  Added better check for usable pre-shutdown hook.
++
++  24 Apr 2007; Matthias Schwarzott <zzam@gentoo.org>
++  usr/share/vdr/bin/vdrshutdown-gate.sh:
++  Fixed quoting of the queued commands in shutdown-gate.
+ 
+ *gentoo-vdr-scripts-0.3.9 (23 Apr 2007)
+ 
+Nur in tags/0.3.9/: gentoo-vdr-scripts-0.3.9.tar.bz2.
+diff -ru --ignore-matching-lines=Id --exclude=.svn tags/0.3.9/usr/share/vdr/bin/vdrshutdown-gate.sh trunk/usr/share/vdr/bin/vdrshutdown-gate.sh
+--- tags/0.3.9/usr/share/vdr/bin/vdrshutdown-gate.sh	2007-04-23 15:54:12.000000000 +0200
++++ trunk/usr/share/vdr/bin/vdrshutdown-gate.sh	2007-04-24 13:02:58.000000000 +0200
+@@ -53,14 +53,14 @@
+ 
+ queue_add_wait() {
+ 	: ${qindex:=1}
+-	eval svdrpqueue_${qindex}="sleep $1"
++	eval svdrpqueue_${qindex}="\"sleep $1\""
+ 	qindex=$((qindex+1))
+ }
+ 
+ svdrp_add_queue() {
+ 	: ${qindex:=1}
+ 	logger "vdrshutdown-gate sending per svdrp: $1"
+-	eval svdrpqueue_${qindex}="${SVDRPCMD} $1"
++	eval svdrpqueue_${qindex}="\"${SVDRPCMD} $1\""
+ 	qindex=$((qindex+1))
+ }
+ 
+@@ -136,14 +136,14 @@
+ 	fi
+ }
+ 
+-shutdown_common() {
++shutdown_abort_common() {
+ 	ABORT_MESSAGE="${1}"
+ 	SHUTDOWN_ABORT="1"
+-	set_try_again "${SHUTDOWN_DEFAULT_RETRY_TIME}"
++	set_retry_time "${SHUTDOWN_DEFAULT_RETRY_TIME}"
+ }
+ 
+ shutdown_abort() {
+-	shutdown_common "${1}"
++	shutdown_abort_common "${1}"
+ 	disable_forced_shutdown
+ }
+ 
+@@ -153,7 +153,7 @@
+ 		echo FORCED: ${1}
+ 		SHUTDOWN_FORCE_COUNT=$((SHUTDOWN_FORCE_COUNT+1))
+ 	else
+-		shutdown_common "${1}"
++		shutdown_abort_common "${1}"
+ 	fi
+ }
+ 
+@@ -222,9 +222,9 @@
+ execute_hooks() {
+ 	local HOOK
+ 	for HOOK in $HOOKDIR/pre-shutdown-*.sh; do
+-		if [ -f "${HOOK}" ]; then
+-			. "${HOOK}"
+-		fi
++		[ -r "${HOOK}" ] || continue
++		sh -n "${HOOK}" || continue
++		. "${HOOK}"
+ 	done
+ }
+ 
-- 
cgit v1.2.3-65-gdbad