mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
new package: add new package 'vdr' (testing)
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
8bdb3efd6f
commit
952d5c9b1a
47
packages/testing/multimedia/vdr/build
Executable file
47
packages/testing/multimedia/vdr/build
Executable file
@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2011 Anthony Nash (nash.ant@gmail.com)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
# vdr fails to build with LTO optimization
|
||||
strip_lto
|
||||
strip_gold
|
||||
|
||||
LDFLAGS=`echo $LDFLAGS | sed -e "s|-Wl,--as-needed||"`
|
||||
|
||||
cd $PKG_BUILD
|
||||
|
||||
cat > Make.config <<EOF
|
||||
PLUGINLIBDIR = /usr/lib/vdr
|
||||
VIDEODIR = /storage/videos
|
||||
CONFDIR = /storage/.config/vdr
|
||||
LOCDIR = /usr/share/locale
|
||||
LIBS += -liconv
|
||||
|
||||
NO_KBD=yes
|
||||
VDR_USER=root
|
||||
EOF
|
||||
|
||||
make
|
||||
make include-dir
|
||||
|
66
packages/testing/multimedia/vdr/config/channels.conf
Normal file
66
packages/testing/multimedia/vdr/config/channels.conf
Normal file
@ -0,0 +1,66 @@
|
||||
Das Erste HD;ARD:11362:hC23M5O35S1:S19.2E:22000:6010=27:6020=deu,6021=mis;6022=deu:6030:0:11100:1:1011:0
|
||||
ZDF HD;ZDFvision:11362:hC23M5O35S1:S19.2E:22000:6110=27:6120=deu,6121=mis,6123=qaa;6122=deu:6130:0:11110:1:1011:0
|
||||
SAT.1;ProSiebenSat.1:12544:hC56M2O0S0:S19.2E:22000:255=2:256=deu;259=deu:32:0:17500:1:1107:0
|
||||
RTL Television,RTL;RTL World:12188:hC34M2O0S0:S19.2E:27500:163=2:104=deu;106=deu:105:0:12003:1:1089:0
|
||||
RTL2;RTL World:12188:hC34M2O0S0:S19.2E:27500:166=2:128=deu:68:0:12020:1:1089:0
|
||||
kabel eins;ProSiebenSat.1:12544:hC56M2O0S0:S19.2E:22000:767=2:768=deu:34:0:17502:1:1107:0
|
||||
ProSieben;ProSiebenSat.1:12544:hC56M2O0S0:S19.2E:22000:511=2:512=deu;515=deu:33:0:17501:1:1107:0
|
||||
VOX;RTL World:12188:hC34M2O0S0:S19.2E:27500:167=2:136=deu:71:0:12060:1:1089:0
|
||||
3sat;ZDFvision:11954:hC34M2O0S0:S19.2E:27500:210=2:220=deu,221=mis;225=deu:230:0:28007:1:1079:0
|
||||
TELE 5;BetaDigital:12480:vC34M2O0S0:S19.2E:27500:1535=2:1536=deu:38:0:51:133:33:0
|
||||
DAS VIERTE,D VIERTE;BetaDigital:12460:hC34M2O0S0:S19.2E:27500:2047=2:2048=deu;2051=deu:36:0:1793:133:5:0
|
||||
DMAX;BetaDigital:12246:vC34M2O0S0:S19.2E:27500:511=2:512=deu:32:0:10101:1:1092:0
|
||||
KiKa;ZDFvision:11954:hC34M2O0S0:S19.2E:27500:310=2:320=deu:330:0:28008:1:1079:0
|
||||
NICK/COMEDY;MTV Networks Europe:11973:vC34M2O0S0:S19.2E:27500:4101+8190=2:4102=deu:4104:0:28680:1:1078:0
|
||||
Super RTL,S RTL;RTL World:12188:hC34M2O0S0:S19.2E:27500:165=2:120=deu:65:0:12040:1:1089:0
|
||||
n-tv;RTL World:12188:hC34M2O0S0:S19.2E:27500:169=2:73=deu:80:0:12090:1:1089:0
|
||||
N24;ProSiebenSat.1:12544:hC56M2O0S0:S19.2E:22000:1023=2:1024=deu:35:0:17503:1:1107:0
|
||||
Phoenix;ARD:10743:hC56M2O0S0:S19.2E:22000:501=2:502=deu:504:0:28725:1:1051:0
|
||||
arte HD;ZDFvision:11361:hC23M5O35S1:S19.2E:22000:6210=27:6221=deu,6222=fra;6220=deu:6230:0:11120:1:1011:0
|
||||
ANIXE HD;BetaDigital:11302:hC23M5O35S1:S19.2E:22000:255=27:0;259=deu:0:0:4900:1:1007:0
|
||||
ASTRA HD+;BetaDigital:11302:hC23M5O35S1:S19.2E:22000:511=27:0;515=deu:0:0:4901:1:1007:0
|
||||
EinsFestival HD;ARD:12422:hC34M2O0S0:S19.2E:27500:1601=27:1602=deu;1606=deu:1604:0:28396:1:1201:0
|
||||
Das Erste;ARD:11837:hC34M2O0S0:S19.2E:27500:101=2:102=deu,103=mis;106=deu:104:0:28106:1:1101:0
|
||||
ZDF;ZDFvision:11954:hC34M2O0S0:S19.2E:27500:110=2:120=deu,121=mis;125=deu:130:0:28006:1:1079:0
|
||||
EinsPlus-alt;ARD:12109:hC34M2O0S0:S19.2E:27500:301=2:302=deu:0:0:28203:1:1073:0
|
||||
BR-alpha*;ARD:11837:hC34M2O0S0:S19.2E:27500:701=2:702=deu;706=dd:704:0:28112:1:1101:0
|
||||
Bayerisches FS Süd;ARD:11837:hC34M2O0S0:S19.2E:27500:201=2:202=deu,203=mis;206=deu:204:0:28107:1:1101:0
|
||||
NDR FS NDS;ARD:12109:hC34M2O0S0:S19.2E:27500:2601=2:2602=deu,2603=mis:2604:0:28226:1:1073:0
|
||||
rbb Berlin;ARD:12109:hC34M2O0S0:S19.2E:27500:601=2:602=deu:604:0:28206:1:1073:0
|
||||
hr-fernsehen;ARD:11837:hC34M2O0S0:S19.2E:27500:301=2:302=deu,303=mis:304:0:28108:1:1101:0
|
||||
MDR S-Anhalt;ARD:12109:hC34M2O0S0:S19.2E:27500:2901=2:2902=deu,2903=mis:2904:0:28229:1:1073:0
|
||||
MDR Thüringen;ARD:12109:hC34M2O0S0:S19.2E:27500:2901=2:2902=deu,2903=mis:2904:0:28230:1:1073:0
|
||||
NDR FS HH+;ARD:12421:hC34M2O0S0:S19.2E:27500:2701=2:2702=deu:2704:0:28325:1:1201:0
|
||||
NDR FS HH;ARD:12109:hC34M2O0S0:S19.2E:27500:2601=2:2602=deu,2603=mis:2604:0:28225:1:1073:0
|
||||
NDR FS MV+;ARD:12421:hC34M2O0S0:S19.2E:27500:2701=2:2702=deu:2704:0:28326:1:1201:0
|
||||
NDR FS MV;ARD:12109:hC34M2O0S0:S19.2E:27500:2601=2:2602=deu,2603=mis:2604:0:28224:1:1073:0
|
||||
NDR FS SH+;ARD:12421:hC34M2O0S0:S19.2E:27500:2701=2:2702=deu:2704:0:28327:1:1201:0
|
||||
NDR FS SH;ARD:12109:hC34M2O0S0:S19.2E:27500:2601=2:2602=deu,2603=mis:2604:0:28227:1:1073:0
|
||||
Radio Bremen TV-alt;ARD:12265:hC34M2O0S0:S19.2E:27500:1201=2:1202=deu:1204:0:28485:1:1093:0
|
||||
rbb Brandenburg;ARD:12109:hC34M2O0S0:S19.2E:27500:601=2:602=deu:604:0:28205:1:1073:0
|
||||
SR Fernsehen;ARD:12265:hC34M2O0S0:S19.2E:27500:1301=2:1302=deu:1304:0:28486:1:1093:0
|
||||
SWR Fernsehen BW;ARD:11837:hC34M2O0S0:S19.2E:27500:801=2:802=deu,803=mis;806=deu:804:0:28113:1:1101:0
|
||||
SWR Fernsehen RP;ARD:12109:hC34M2O0S0:S19.2E:27500:3101=2:3102=deu,3103=mis;3106=deu:3104:0:28231:1:1073:0
|
||||
WDR Aachen;ARD:12421:hC34M2O0S0:S19.2E:27500:101=2:102=deu:104:0:28305:1:1201:0
|
||||
WDR Bielefeld;ARD:12421:hC34M2O0S0:S19.2E:27500:101=2:102=deu,103=mis:104:0:28306:1:1201:0
|
||||
WDR Dortmund;ARD:12421:hC34M2O0S0:S19.2E:27500:101=2:102=deu,103=mis:104:0:28307:1:1201:0
|
||||
WDR Düsseldorf;ARD:12421:hC34M2O0S0:S19.2E:27500:101=2:102=deu,103=mis:104:0:28308:1:1201:0
|
||||
WDR Essen;ARD:12421:hC34M2O0S0:S19.2E:27500:101=2:102=deu,103=mis:104:0:28309:1:1201:0
|
||||
WDR Köln;ARD:11837:hC34M2O0S0:S19.2E:27500:601=2:602=deu,603=mis:604:0:28111:1:1101:0
|
||||
WDR Münster;ARD:12421:hC34M2O0S0:S19.2E:27500:101=2:102=deu,103=mis:104:0:28310:1:1201:0
|
||||
WDR Siegen;ARD:12421:hC34M2O0S0:S19.2E:27500:101=2:102=deu,103=mis:104:0:28311:1:1201:0
|
||||
WDR Wuppertal;ARD:12421:hC34M2O0S0:S19.2E:27500:101=2:102=deu:104:0:28312:1:1201:0
|
||||
zdf_neo;ZDFvision:11954:hC34M2O0S0:S19.2E:27500:660=2:670=deu,671=mis:680:0:28014:1:1079:0
|
||||
ZDFinfokanal;ZDFvision:11954:hC34M2O0S0:S19.2E:27500:610=2:620=deu:630:0:28011:1:1079:0
|
||||
ZDFtheaterkanal;ZDFvision:11954:hC34M2O0S0:S19.2E:27500:1110=2:1120=deu,1121=mis:630:0:28016:1:1079:0
|
||||
Bayerisches FS Nord;ARD:11837:hC34M2O0S0:S19.2E:27500:201=2:202=deu,203=mis;206=deu:204:0:28110:1:1101:0
|
||||
Super RTL CH;RTL:12188:hC34M2O0S0:S19.2E:27500:172=2:145=deu:82:0:12041:1:1089:0
|
||||
VOX CH;RTL:12188:hC34M2O0S0:S19.2E:27500:173=2:146=deu:84:0:12061:1:1089:0
|
||||
9Live;ProSiebenSat.1:12544:hC56M2O0S0:S19.2E:22000:1279=2:1280=deu:36:0:17504:1:1107:0
|
||||
RTL2 Austria;RTL:12226:hC34M2O0S0:S19.2E:27500:401=2:402:403:0:28810:1:1091:0
|
||||
C+ DEPORTES;CPD2:10876:vC56I0M2O35S0:S19.2E:22000:172=2:128=esl,129=eng:0:1810,100:30621:1:1060:0
|
||||
C+ F?TBOL;CPD1:10876:vC56I0M2O35S0:S19.2E:22000:161=2:84=esl,85=eng:0:1810,100:30620:1:1060:0
|
||||
???:10876:vC56I0M2O35S0:S19.2E:22000:167=2:108=esl,109=por:0:1810,100:30602:1:1060:0
|
||||
???:10876:vC56I0M2O35S0:S19.2E:22000:165=2:100=esl:0:0:30604:1:1060:0
|
||||
???:10876:vC56I0M2O35S0:S19.2E:22000:168=2:112=eng:0:0:30611:1:1060:0
|
||||
???:10876:vC56I0M2O35S0:S19.2E:22000:165=2:100=esl:0:0:30600:1:1060:0
|
73
packages/testing/multimedia/vdr/config/diseqc.conf
Normal file
73
packages/testing/multimedia/vdr/config/diseqc.conf
Normal file
@ -0,0 +1,73 @@
|
||||
# DiSEqC configuration for VDR
|
||||
#
|
||||
# Format:
|
||||
#
|
||||
# satellite slof polarization lof command...
|
||||
#
|
||||
# satellite: one of the 'S' codes defined in sources.conf
|
||||
# slof: switch frequency of LNB; the first entry with
|
||||
# an slof greater than the actual transponder
|
||||
# frequency will be used
|
||||
# polarization: V = vertical, H = horizontal, L = Left circular, R = Right circular
|
||||
# lof: the local oscillator frequency to subtract from
|
||||
# the actual transponder frequency
|
||||
# command:
|
||||
# t tone off
|
||||
# T tone on
|
||||
# v voltage low (13V)
|
||||
# V voltage high (18V)
|
||||
# A mini A
|
||||
# B mini B
|
||||
# Wnn wait nn milliseconds (nn may be any positive integer number)
|
||||
# [xx ...] hex code sequence (max. 6)
|
||||
#
|
||||
# The 'command...' part is optional.
|
||||
#
|
||||
# Examples:
|
||||
|
||||
# Full DiSEqC sequence:
|
||||
|
||||
S19.2E 11700 V 9750 t v W15 [E0 10 38 F0] W15 A W15 t
|
||||
S19.2E 99999 V 10600 t v W15 [E0 10 38 F1] W15 A W15 T
|
||||
S19.2E 11700 H 9750 t V W15 [E0 10 38 F2] W15 A W15 t
|
||||
S19.2E 99999 H 10600 t V W15 [E0 10 38 F3] W15 A W15 T
|
||||
|
||||
S13.0E 11700 V 9750 t v W15 [E0 10 38 F4] W15 B W15 t
|
||||
S13.0E 99999 V 10600 t v W15 [E0 10 38 F5] W15 B W15 T
|
||||
S13.0E 11700 H 9750 t V W15 [E0 10 38 F6] W15 B W15 t
|
||||
S13.0E 99999 H 10600 t V W15 [E0 10 38 F7] W15 B W15 T
|
||||
|
||||
# Optimized for mini DiSEqC (aka toneburst):
|
||||
#
|
||||
# S19.2E 11700 V 9750 t v W15 A W15 t
|
||||
# S19.2E 99999 V 10600 t v W15 A W15 T
|
||||
# S19.2E 11700 H 9750 t V W15 A W15 t
|
||||
# S19.2E 99999 H 10600 t V W15 A W15 T
|
||||
#
|
||||
# S13.0E 11700 V 9750 t v W15 B W15 t
|
||||
# S13.0E 99999 V 10600 t v W15 B W15 T
|
||||
# S13.0E 11700 H 9750 t V W15 B W15 t
|
||||
# S13.0E 99999 H 10600 t V W15 B W15 T
|
||||
#
|
||||
# Optimized for full DiSEqC:
|
||||
#
|
||||
# S19.2E 11700 V 9750 [E0 10 38 F0]
|
||||
# S19.2E 99999 V 10600 [E0 10 38 F1]
|
||||
# S19.2E 11700 H 9750 [E0 10 38 F2]
|
||||
# S19.2E 99999 H 10600 [E0 10 38 F3]
|
||||
#
|
||||
# S13.0E 11700 V 9750 [E0 10 38 F4]
|
||||
# S13.0E 99999 V 10600 [E0 10 38 F5]
|
||||
# S13.0E 11700 H 9750 [E0 10 38 F6]
|
||||
# S13.0E 99999 H 10600 [E0 10 38 F7]
|
||||
#
|
||||
# DisiCon-4 Single Cable Network:
|
||||
#
|
||||
# horizontal: 11.704 - 12.205 GHz (1. IF: 1144 - 1645 MHz) - LOF 1 (10,56 GHz)
|
||||
# horizontal: 12.676 - 12.709 GHz (1. IF: 2116 - 2148 MHz) - LOF 1 (10,56 GHz)
|
||||
# vertical: 12.035 - 12.107 GHz (1. IF: 955 - 1027 MHz) - LOF 3 (11,08 GHz)
|
||||
# vertical: 12.464 - 12.716 GHz (1. IF: 1744 - 1996 MHz) - LOF 2 (10,72 GHz)
|
||||
#
|
||||
# S19.2E 99999 H 10560 t v
|
||||
# S19.2E 12110 V 11080 t v
|
||||
# S19.2E 99999 V 10720 t v
|
13
packages/testing/multimedia/vdr/config/keymacros.conf
Normal file
13
packages/testing/multimedia/vdr/config/keymacros.conf
Normal file
@ -0,0 +1,13 @@
|
||||
# Remote control key macros for VDR
|
||||
#
|
||||
# Format:
|
||||
#
|
||||
# macrokey key1 key2 key3...
|
||||
# macrokey @plugin key1 key2 key3...
|
||||
#
|
||||
# See man vdr(5)
|
||||
|
||||
Red Recordings
|
||||
Green Schedule
|
||||
Yellow Info
|
||||
Blue Timers
|
13
packages/testing/multimedia/vdr/config/svdrphosts.conf
Normal file
13
packages/testing/multimedia/vdr/config/svdrphosts.conf
Normal file
@ -0,0 +1,13 @@
|
||||
#
|
||||
# svdrphosts This file describes a number of host addresses that
|
||||
# are allowed to connect to the SVDRP port of the Video
|
||||
# Disk Recorder (VDR) running on this system.
|
||||
# Syntax:
|
||||
#
|
||||
# IP-Address[/Netmask]
|
||||
#
|
||||
|
||||
127.0.0.1 # always accept localhost
|
||||
#192.168.100.0/24 # any host on the local net
|
||||
#204.152.189.113 # a specific host
|
||||
#0.0.0.0/0 # any host on any net (USE THIS WITH CARE!)
|
12
packages/testing/multimedia/vdr/config/wakeup
Normal file
12
packages/testing/multimedia/vdr/config/wakeup
Normal file
@ -0,0 +1,12 @@
|
||||
# Enable wakeup support (no/nvram/acpi)
|
||||
|
||||
WAKEUP="no"
|
||||
|
||||
# Mainboard type (only for nvram); keep empty for autodetection. See the file
|
||||
# nvram-wakeup-boards.txt in the DOCS directory of the GeeXboX sources
|
||||
# for a list of the allowed values.
|
||||
BOARD_TYPE=
|
||||
|
||||
# Wakeup the system in regular intervals
|
||||
REGULAR_DAYS=0 # 0=disabled, 1=each day, 2=each 2'nd day, 3=...
|
||||
REGULAR_TIME=01:00 # HH:MM
|
38
packages/testing/multimedia/vdr/init.d/42_vdr
Executable file
38
packages/testing/multimedia/vdr/init.d/42_vdr
Executable file
@ -0,0 +1,38 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
(
|
||||
progress "### Starting VDR ###"
|
||||
|
||||
PLUGINS=""
|
||||
for file in /storage/.config/vdr/plugins.d/*; do
|
||||
PLUGIN=""
|
||||
OPTIONS=""
|
||||
INITCMD=""
|
||||
ENABLED=yes
|
||||
. $file
|
||||
[ "$ENABLED" = yes ] && PLUGINS="$PLUGINS -P'$PLUGIN $OPTIONS'"
|
||||
[ -n "$INITCMD" ] && eval $INITCMD
|
||||
done
|
||||
|
||||
VDRCMD="vdr -g /tmp -s /usr/bin/vdrshutdown --vfat --no-kbd $PLUGINS > /tmp/vdr.out 2>&1"
|
||||
|
||||
runvdr "$VDRCMD"
|
||||
)&
|
35
packages/testing/multimedia/vdr/install
Executable file
35
packages/testing/multimedia/vdr/install
Executable file
@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2011 Anthony Nash (nash.ant@gmail.com)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
. config/options $1
|
||||
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp -P $PKG_BUILD/vdr $INSTALL/usr/bin
|
||||
cp -P $PKG_DIR/scripts/* $INSTALL/usr/bin
|
||||
|
||||
mkdir -p $INSTALL/usr/lib/vdr
|
||||
mkdir -p $INSTALL/usr/config/vdr
|
||||
cp $PKG_BUILD/sources.conf $INSTALL/usr/config/vdr
|
||||
cp $PKG_BUILD/diseqc.conf $INSTALL/usr/config/vdr
|
||||
cp $PKG_DIR/config/*.conf $INSTALL/usr/config/vdr
|
||||
echo '0.0.0.0/0' >> $INSTALL/usr/config/vdr/svdrphosts.conf
|
37
packages/testing/multimedia/vdr/meta
Normal file
37
packages/testing/multimedia/vdr/meta
Normal file
@ -0,0 +1,37 @@
|
||||
################################################################################
|
||||
# This file is part of OpenELEC - http://www.openelec.tv
|
||||
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
|
||||
# Copyright (C) 2011 Anthony Nash (nash.ant@gmail.com)
|
||||
#
|
||||
# This Program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2, or (at your option)
|
||||
# any later version.
|
||||
#
|
||||
# This Program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OpenELEC.tv; see the file COPYING. If not, write to
|
||||
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
# http://www.gnu.org/copyleft/gpl.html
|
||||
################################################################################
|
||||
|
||||
PKG_NAME="vdr"
|
||||
PKG_VERSION="1.7.22"
|
||||
PKG_REV="1"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="http://www.tvdr.de"
|
||||
PKG_URL="ftp://ftp.tvdr.de/vdr/Developer/$PKG_NAME-$PKG_VERSION.tar.bz2"
|
||||
PKG_DEPENDS="fontconfig freetype fribidi libcap $LIBJPEG"
|
||||
PKG_BUILD_DEPENDS="toolchain gettext fontconfig freetype fribidi libcap $LIBJPEG"
|
||||
PKG_PRIORITY="optional"
|
||||
PKG_SECTION="multimedia"
|
||||
PKG_SHORTDESC="vdr: A powerful DVB TV application"
|
||||
PKG_LONGDESC="This project describes how to build your own digital satellite receiver and video disk recorder. It is based mainly on the DVB-S digital satellite receiver card, which used to be available from Fujitsu Siemens and the driver software developed by the LinuxTV project."
|
||||
|
||||
PKG_IS_ADDON="no"
|
||||
PKG_AUTORECONF="no"
|
12
packages/testing/multimedia/vdr/scripts/runvdr
Executable file
12
packages/testing/multimedia/vdr/scripts/runvdr
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
VDRCMD=$1
|
||||
|
||||
[ -r /etc/locale ] && export LANG=`cat /etc/locale`
|
||||
export DISPLAY=":0"
|
||||
|
||||
trap 'killall -q -TERM vdr; exit 0' 15
|
||||
|
||||
while true; do
|
||||
eval "$VDRCMD"
|
||||
done
|
66
packages/testing/multimedia/vdr/scripts/vdrshutdown
Executable file
66
packages/testing/multimedia/vdr/scripts/vdrshutdown
Executable file
@ -0,0 +1,66 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/wakeup
|
||||
|
||||
do_shutdown()
|
||||
{
|
||||
sleep 5
|
||||
}
|
||||
|
||||
do_reboot()
|
||||
{
|
||||
sleep 5
|
||||
# reboot
|
||||
}
|
||||
|
||||
osdmsg()
|
||||
{
|
||||
sleep 2
|
||||
echo "MESG $1" | nc localhost 2001
|
||||
}
|
||||
|
||||
grep -q LOCAL /etc/adjtime && HWCLOCK_LOCAL_TIME="-l"
|
||||
|
||||
TIMER=$1
|
||||
[ -z "$TIMER" ] && TIMER=`/usr/bin/getwakeup $HWCLOCK_LOCAL_TIME`
|
||||
[ -z "$TIMER" ] && TIMER=0
|
||||
|
||||
[ -z "$WAKEUP" -o "$WAKEUP" = no -o -z "$TIMER" ] && do_shutdown
|
||||
|
||||
if [ $REGULAR_DAYS -gt 0 ]; then
|
||||
REGULAR_TIMER=$((`date -d "$REGULAR_TIME" +%s` + $REGULAR_DAYS * 24 * 60 * 60))
|
||||
|
||||
# when no vdr timer is set or vdr timer starts later than regular timer:
|
||||
if [ $TIMER -eq 0 ] || [ $TIMER -gt 0 -a $REGULAR_TIMER -lt $TIMER ]; then
|
||||
TIMER=$REGULAR_TIMER
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$WAKEUP" = nvram -a -x /usr/bin/nvram-wakeup ]; then
|
||||
if [ -r /etc/nvram-wakeup.conf ]; then
|
||||
/usr/bin/nvram-wakeup -C /etc/nvram-wakeup.conf -ls $TIMER
|
||||
elif [ -n "$BOARD_TYPE" ]; then
|
||||
/usr/bin/nvram-wakeup -I $BOARD_TYPE -ls $TIMER
|
||||
else
|
||||
/usr/bin/nvram-wakeup -ls $TIMER
|
||||
fi
|
||||
case $? in
|
||||
0)
|
||||
do_shutdown
|
||||
;;
|
||||
1)
|
||||
do_reboot
|
||||
;;
|
||||
*)
|
||||
osdmsg "nvram-wakeup: cannot set time, shutdown aborted!"
|
||||
;;
|
||||
esac
|
||||
elif [ "$WAKEUP" = acpi -a -e /sys/class/rtc/rtc0/wakealarm ]; then
|
||||
echo 0 >/sys/class/rtc/rtc0/wakealarm
|
||||
echo $TIMER >/sys/class/rtc/rtc0/wakealarm
|
||||
echo $TIMER >/sys/class/rtc/rtc0/wakealarm
|
||||
do_shutdown
|
||||
else
|
||||
do_shutdown
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user