Installscript: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Links) |
||
(9 intermediate revisions by 6 users not shown) | |||
Line 43: | Line 43: | ||
|--+ [[installscript-vdr.conf|'''vdr.conf''']] |
|--+ [[installscript-vdr.conf|'''vdr.conf''']] |
||
===CMD(s)=== |
|||
+-- [[Image:Folder.png]] $DISDIR |
|||
+-- [[Image:Folder.png]] admin |
|||
+-- [[Image:Folder.png]] [[installscript-command-cmds|'''command-cmds''']] |
|||
|--+ *.conf |
|||
+-- [[Image:Folder.png]] [[installscript-plugin-cmds|'''plugin-cmds''']] |
|||
|--+ *.conf |
|||
+-- [[Image:Folder.png]] [[installscript-recording-cmds|'''recording-cmds''']] |
|||
|--+ *.run |
|||
+-- [[Image:Folder.png]] [[installscript-shutdown-cmds|'''shutdown-cmds''']] |
|||
|--+ *.run |
|||
+-- [[Image:Folder.png]] [[installscript-start-cmds|'''start-cmds''']] |
|||
|--+ [[Image:Folder.png]] rc |
|||
|--+ [[Image:Folder.png]] rc.d |
|||
|--+ [...] |
|||
===Structur=== |
|||
+-- [[Image:Folder.png]] /usr/local ("'''$INSTALLPREFIX'''") |
|||
+-- [[Image:Folder.png]] src |
|||
+-- [[Image:Folder.png]] VDR |
|||
+-- [[Image:Folder.png]] DVB |
|||
+-- [[Image:Folder.png]] stow |
|||
+-- [[Image:Folder.png]] package |
|||
+-- [[Image:Folder.png]] bin |
|||
+-- [[Image:Folder.png]] lib |
|||
+-- [[Image:Folder.png]] doc |
|||
+-- [[Image:Folder.png]] cache |
|||
+-- [[Image:Folder.png]] cddb |
|||
+-- [[Image:Folder.png]] gameboy |
|||
+-- [[Image:Folder.png]] infosatepg |
|||
+-- [[Image:Folder.png]] mp3 |
|||
+-- [[Image:Folder.png]] podcatcher |
|||
+-- [[Image:Folder.png]] mldonkey |
|||
+-- [[Image:Folder.png]] tvmovie2vdr |
|||
+-- [[Image:Folder.png]] epgimages |
|||
+-- [[Image:Folder.png]] downloadfiles |
|||
+-- [[Image:Folder.png]] downloadupdatefiles |
|||
+-- [[Image:Folder.png]] vtx |
|||
+-- [[Image:Folder.png]] etc |
|||
+-- [[Image:Folder.png]] graphlcd |
|||
|--+ graphlcd.conf |
|||
+-- [[Image:Folder.png]] igor |
|||
|--+ igor.conf |
|||
+-- [[Image:Folder.png]] lcdproc |
|||
|--+ LCDd.conf |
|||
+-- [[Image:Folder.png]] lirc |
|||
|--+ lircd.conf |
|||
|--+ lircrc |
|||
+-- [[Image:Folder.png]] nvram-wakeup |
|||
|--+ nvram-wakeup.conf |
|||
+-- [[Image:Folder.png]] sharemarks |
|||
|--+ marks2pts.conf |
|||
+-- [[Image:Folder.png]] tvmovie2vdr |
|||
|--+ channels.pl |
|||
|--+ channels_wanted.pl |
|||
|--+ config.pl |
|||
+-- [[Image:Folder.png]] vdr ("'''$DISDIR'''") |
|||
|--+ setup.conf |
|||
+-- [[Image:Folder.png]] vdradmin |
|||
|--+ vdradmind.{at,bl,conf,done} |
|||
===Module=== |
|||
====Add==== |
|||
<pre> |
|||
bash> ./vdr-install-script-<VERSION>.run -- --plgadd |
|||
bash> ./setup.sh --plgadd |
|||
</pre> |
|||
====Import==== |
|||
<pre> |
|||
bash> ./vdr-install-script-<VERSION>.run -- --add="<URL>/<MODUL>" |
|||
bash> ./setup.sh --add="<URL>/<MODUL>" |
|||
</pre> |
|||
====Remove==== |
|||
<pre> |
|||
bash> ./setup.sh --plgrm |
|||
</pre> |
|||
====Extend==== |
|||
<pre> |
|||
bash> sh setup.sh --ostype |
|||
==> real_os_type="Redhat Linux Desktop" |
|||
==> real_os_version="10.0" |
|||
</pre> |
|||
Modules extend. |
|||
<pre> |
|||
CallDepend() { |
|||
case $real_os_type in |
|||
"Arch Linux") |
|||
if ! pacman -Q libcap libjpeg ; then |
|||
pacman -S libcap libjpeg |
|||
fi |
|||
;; |
|||
"Crux Linux") |
|||
if ! prt-get isinst libcap libjpeg ; then |
|||
prt-get depinst libcap libjpeg |
|||
fi |
|||
;; |
|||
"Debian Linux") apt-get install libjpeg62-dev libcap-dev ;; |
|||
"Gentoo Linux") emerge jpeg libcap -n ;; |
|||
"SuSE Linux") |
|||
case $real_os_version in |
|||
7.3|8.0|8.1|8.2|9.0|9.1) |
|||
if ! rpm -q libjpeg libcap ; then |
|||
yast -i libjpeg libcap |
|||
fi |
|||
;; |
|||
*) |
|||
if ! rpm -q libjpeg libjpeg-devel libcap ; then |
|||
yast -i libjpeg libjpeg-devel libcap |
|||
fi |
|||
;; |
|||
esac |
|||
;; |
|||
+ "Redhat Linux Desktop") |
|||
+ if ! <TEST(S)> ; then |
|||
+ <INSTALLATIONS-COMMAND(S)> <PAKAGES> |
|||
+ fi |
|||
+ ;; |
|||
esac |
|||
} |
|||
</pre> |
|||
==Links== |
==Links== |
||
{| |
{| |
||
| [1] |
| [1] |
||
| ftp://ftp. |
| ftp://ftp.tvdr.de/vdr/Tools |
||
| VDR FTP |
| VDR FTP |
||
|- |
|- |
||
Line 67: | Line 194: | ||
|} |
|} |
||
[[Category: |
<!-- [[Category:Installscript]] --> |
||
{{i18n|Installscript}} |
|||
<!--Link to german wiki page --> |
|||
[[de:Installscript]] |
Latest revision as of 17:30, 7 December 2013
Description
The Installsscript is a tool that the handles the conventional installation steps with a collection of scripts.
Prerequirements
- Development environment
check needed requirements by this command:
bash> sh vdr-install-script-current.run -- --checkreq
On sarge it needs libncurses5-dev and others obvious (if you typed in previous command) packages.
Tutorial
First of all
- Linux knowledge is required
- It is useful to have experiences in compiling VDR and it's component manually
Scripts customisation
Unpack
bash> sh vdr-install-script-current.run --noexec --target /tmp/vdr bash> cd /tmp/vdr/setup
The following files should be adapted according to your needs.
+-- $DISDIR +-- setup +-- config |--+ setup.conf |--+ make.conf |--+ modules.conf |--+ sources.conf |--+ marks2pts.conf |--+ keymacros.conf +-- examples +-- plugins +-- mailbox |--+ accounts.conf +-- vdr |--+ vdr.conf
CMD(s)
+-- $DISDIR +-- admin +-- command-cmds |--+ *.conf +-- plugin-cmds |--+ *.conf +-- recording-cmds |--+ *.run +-- shutdown-cmds |--+ *.run +-- start-cmds |--+ rc |--+ rc.d |--+ [...]
Structur
+-- /usr/local ("$INSTALLPREFIX") +-- src +-- VDR +-- DVB +-- stow +-- package +-- bin +-- lib +-- doc +-- cache +-- cddb +-- gameboy +-- infosatepg +-- mp3 +-- podcatcher +-- mldonkey +-- tvmovie2vdr +-- epgimages +-- downloadfiles +-- downloadupdatefiles +-- vtx +-- etc +-- graphlcd |--+ graphlcd.conf +-- igor |--+ igor.conf +-- lcdproc |--+ LCDd.conf +-- lirc |--+ lircd.conf |--+ lircrc +-- nvram-wakeup |--+ nvram-wakeup.conf +-- sharemarks |--+ marks2pts.conf +-- tvmovie2vdr |--+ channels.pl |--+ channels_wanted.pl |--+ config.pl +-- vdr ("$DISDIR") |--+ setup.conf +-- vdradmin |--+ vdradmind.{at,bl,conf,done}
Module
Add
bash> ./vdr-install-script-<VERSION>.run -- --plgadd bash> ./setup.sh --plgadd
Import
bash> ./vdr-install-script-<VERSION>.run -- --add="<URL>/<MODUL>" bash> ./setup.sh --add="<URL>/<MODUL>"
Remove
bash> ./setup.sh --plgrm
Extend
bash> sh setup.sh --ostype ==> real_os_type="Redhat Linux Desktop" ==> real_os_version="10.0"
Modules extend.
CallDepend() { case $real_os_type in "Arch Linux") if ! pacman -Q libcap libjpeg ; then pacman -S libcap libjpeg fi ;; "Crux Linux") if ! prt-get isinst libcap libjpeg ; then prt-get depinst libcap libjpeg fi ;; "Debian Linux") apt-get install libjpeg62-dev libcap-dev ;; "Gentoo Linux") emerge jpeg libcap -n ;; "SuSE Linux") case $real_os_version in 7.3|8.0|8.1|8.2|9.0|9.1) if ! rpm -q libjpeg libcap ; then yast -i libjpeg libcap fi ;; *) if ! rpm -q libjpeg libjpeg-devel libcap ; then yast -i libjpeg libjpeg-devel libcap fi ;; esac ;; + "Redhat Linux Desktop") + if ! <TEST(S)> ; then + <INSTALLATIONS-COMMAND(S)> <PAKAGES> + fi + ;; esac }
Links
[1] | ftp://ftp.tvdr.de/vdr/Tools | VDR FTP |
[2] | http://linvdr.org/download/vdr/Tools | Download mirror |
[3] | http://savannah.gnu.org/projects/stow | GNU Stow project homepage |
[4] | http://www.inf.tu-dresden.de/~al10/stowES | Extensions to Stow |
[5] | http://linuxwiki.de/Stow | Stow Wiki |