summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2005-12-30 01:13:22 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2005-12-30 01:13:22 +0000
commit06ce49d225eeed2c0e59644b8047b395f86f1dde (patch)
tree8dad6c1794b1d1368586642ccf864596fd22c6d8 /media-video/vdr/files
parentFixing java screwup (diff)
downloadgentoo-2-06ce49d225eeed2c0e59644b8047b395f86f1dde.tar.gz
gentoo-2-06ce49d225eeed2c0e59644b8047b395f86f1dde.tar.bz2
gentoo-2-06ce49d225eeed2c0e59644b8047b395f86f1dde.zip
Added new patch which enables scripts to trigger auto-shutdown.
(Portage version: 2.1_pre2)
Diffstat (limited to 'media-video/vdr/files')
-rw-r--r--media-video/vdr/files/digest-vdr-1.3.36-r25
-rw-r--r--media-video/vdr/files/vdr-add-svdrp-down-0.1.diff71
2 files changed, 76 insertions, 0 deletions
diff --git a/media-video/vdr/files/digest-vdr-1.3.36-r2 b/media-video/vdr/files/digest-vdr-1.3.36-r2
new file mode 100644
index 000000000000..ef46a95242b5
--- /dev/null
+++ b/media-video/vdr/files/digest-vdr-1.3.36-r2
@@ -0,0 +1,5 @@
+MD5 c64d982f9fe110e6cdc0ce023301a36c configurableLNBshare-VDR_1.3.36.patch 20066
+MD5 006d29b6d95c36b57a9d0be0e365e1d7 vdr-1.3.36-bigpatch-test1.tar.bz2 140154
+MD5 f83f881f2f7f906dd1980c1fa8280ec2 vdr-1.3.36-enAIO-2.7.diff.gz 11475
+MD5 43fd33cdc3980773543f83017f747148 vdr-1.3.36.tar.bz2 513639
+MD5 3b276851190bac5dc03ab81ba55ac193 vdr-jumpplay-0.6-1.3.29.diff 18904
diff --git a/media-video/vdr/files/vdr-add-svdrp-down-0.1.diff b/media-video/vdr/files/vdr-add-svdrp-down-0.1.diff
new file mode 100644
index 000000000000..0a992e16bcb4
--- /dev/null
+++ b/media-video/vdr/files/vdr-add-svdrp-down-0.1.diff
@@ -0,0 +1,71 @@
+diff -ru --exclude='*.o' vdr-1.3.36-orig/svdrp.c vdr-1.3.36/svdrp.c
+--- vdr-1.3.36-orig/svdrp.c 2005-12-29 00:02:26.000000000 +0100
++++ vdr-1.3.36/svdrp.c 2005-12-29 00:18:45.000000000 +0100
+@@ -293,6 +293,9 @@
+ " Updates a timer. Settings must be in the same format as returned\n"
+ " by the LSTT command. If a timer with the same channel, day, start\n"
+ " and stop time does not yet exists, it will be created.",
++ "DOWN [ <minutes> ]\n"
++ " Starts an automatic shutdown (with 5 minutes waiting time) in given\n"
++ " minutes or now if no number was given.",
+ "VOLU [ <number> | + | - | mute ]\n"
+ " Set the audio volume to the given number (which is limited to the range\n"
+ " 0...255). If the special options '+' or '-' are given, the volume will\n"
+@@ -1342,6 +1345,16 @@
+ Reply(501, "Missing timer settings");
+ }
+
++extern time_t LastActivity;
++void cSVDRP::CmdDOWN(const char *Option)
++{
++ if (isnumber(Option))
++ LastActivity = time(NULL) - Setup.MinUserInactivity*60 + strtol(Option, NULL, 10)*60;
++ else
++ LastActivity = time(NULL) - Setup.MinUserInactivity*60;
++ Reply(250, "Automatic shutdown triggered");
++}
++
+ void cSVDRP::CmdVOLU(const char *Option)
+ {
+ if (*Option) {
+@@ -1413,6 +1426,7 @@
+ else if (CMD("STAT")) CmdSTAT(s);
+ else if (CMD("UPDT")) CmdUPDT(s);
+ else if (CMD("VOLU")) CmdVOLU(s);
++ else if (CMD("DOWN")) CmdDOWN(s);
+ else if (CMD("QUIT")) Close();
+ else Reply(500, "Command unrecognized: \"%s\"", Cmd);
+ }
+diff -ru --exclude='*.o' vdr-1.3.36-orig/svdrp.h vdr-1.3.36/svdrp.h
+--- vdr-1.3.36-orig/svdrp.h 2005-12-29 00:02:26.000000000 +0100
++++ vdr-1.3.36/svdrp.h 2005-12-29 00:20:27.000000000 +0100
+@@ -81,6 +81,7 @@
+ void CmdSCAN(const char *Option);
+ void CmdSTAT(const char *Option);
+ void CmdUPDT(const char *Option);
++ void CmdDOWN(const char *Option);
+ void CmdVOLU(const char *Option);
+ void Execute(char *Cmd);
+ public:
+Nur in vdr-1.3.36: vdr.
+diff -ru --exclude='*.o' vdr-1.3.36-orig/vdr.c vdr-1.3.36/vdr.c
+--- vdr-1.3.36-orig/vdr.c 2005-12-29 00:02:26.000000000 +0100
++++ vdr-1.3.36/vdr.c 2005-12-29 00:09:49.000000000 +0100
+@@ -89,6 +89,8 @@
+ exit(1);
+ }
+
++time_t LastActivity;
++
+ int main(int argc, char *argv[])
+ {
+ // Save terminal settings:
+@@ -395,7 +397,7 @@
+ int PreviousChannel[2] = { 1, 1 };
+ int PreviousChannelIndex = 0;
+ time_t LastChannelChanged = time(NULL);
+- time_t LastActivity = 0;
++ LastActivity = 0; // now being a global variable
+ time_t LastCamMenu = 0;
+ int MaxLatencyTime = 0;
+ bool ForceShutdown = false;