summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2006-02-05 15:57:23 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2006-02-05 15:57:23 +0000
commite4970b2997ec1e37e726c98b81dbff0a909bc5db (patch)
treecfde6adc458cabc475eae0ee391407138cd5df98
parentimported ebuild from gentoo.de (diff)
downloadgentoo-2-e4970b2997ec1e37e726c98b81dbff0a909bc5db.tar.gz
gentoo-2-e4970b2997ec1e37e726c98b81dbff0a909bc5db.tar.bz2
gentoo-2-e4970b2997ec1e37e726c98b81dbff0a909bc5db.zip
initial ebuild, written by zzam and myself
(Portage version: 2.0.54)
-rw-r--r--media-plugins/vdr-setup/ChangeLog11
-rw-r--r--media-plugins/vdr-setup/Manifest6
-rw-r--r--media-plugins/vdr-setup/files/digest-vdr-setup-0.2.31
-rw-r--r--media-plugins/vdr-setup/files/vdr-setup-0.2.3-gentoo.diff182
-rw-r--r--media-plugins/vdr-setup/files/vdr-setup.xml128
-rw-r--r--media-plugins/vdr-setup/metadata.xml16
-rw-r--r--media-plugins/vdr-setup/vdr-setup-0.2.3.ebuild71
7 files changed, 415 insertions, 0 deletions
diff --git a/media-plugins/vdr-setup/ChangeLog b/media-plugins/vdr-setup/ChangeLog
new file mode 100644
index 000000000000..073ef0594d95
--- /dev/null
+++ b/media-plugins/vdr-setup/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-plugins/vdr-setup
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-setup/ChangeLog,v 1.1 2006/02/05 15:57:23 hd_brummy Exp $
+
+*vdr-setup-0.2.3 (05 Feb 2006)
+
+ 05 Feb 2006; Joerg Bornkessel <hd_brummy@gentoo.org>
+ +files/vdr-setup-0.2.3-gentoo.diff, +files/vdr-setup.xml, +metadata.xml,
+ +vdr-setup-0.2.3.ebuild:
+ initial ebuild, written by zzam and myself
+
diff --git a/media-plugins/vdr-setup/Manifest b/media-plugins/vdr-setup/Manifest
new file mode 100644
index 000000000000..682b455e6b45
--- /dev/null
+++ b/media-plugins/vdr-setup/Manifest
@@ -0,0 +1,6 @@
+MD5 d23c49b76490748138418999eaab1fdb ChangeLog 359
+MD5 7e7798b807c8766b6331d33684ac3b98 files/digest-vdr-setup-0.2.3 63
+MD5 4dd1e551d51e11df975e6743ea2ead01 files/vdr-setup-0.2.3-gentoo.diff 6713
+MD5 2ce67b2d428954f9b4a08684cadd5a19 files/vdr-setup.xml 8128
+MD5 b76f00a750adf92ee7defa4febc4b88d metadata.xml 544
+MD5 11b5f933eeadf0d0afed77299e60005e vdr-setup-0.2.3.ebuild 1587
diff --git a/media-plugins/vdr-setup/files/digest-vdr-setup-0.2.3 b/media-plugins/vdr-setup/files/digest-vdr-setup-0.2.3
new file mode 100644
index 000000000000..0b9b9d5f2b3a
--- /dev/null
+++ b/media-plugins/vdr-setup/files/digest-vdr-setup-0.2.3
@@ -0,0 +1 @@
+MD5 39cd6002b80fcd153bc57a1dc487af23 vdr-setup-0.2.3.tgz 88483
diff --git a/media-plugins/vdr-setup/files/vdr-setup-0.2.3-gentoo.diff b/media-plugins/vdr-setup/files/vdr-setup-0.2.3-gentoo.diff
new file mode 100644
index 000000000000..5b24d00c14b1
--- /dev/null
+++ b/media-plugins/vdr-setup/files/vdr-setup-0.2.3-gentoo.diff
@@ -0,0 +1,182 @@
+diff -Naur setup-0.2.3-orig/config.cpp setup-0.2.3/config.cpp
+--- setup-0.2.3-orig/config.cpp 2006-02-05 02:59:19.079869000 +0100
++++ setup-0.2.3/config.cpp 2006-02-05 03:11:40.962233750 +0100
+@@ -13,7 +13,7 @@
+ #include <sys/types.h>
+ #include <dirent.h>
+ #include "vdr/plugin.h"
+-#include "tinystr.h"
++#include "vdr/tinystr.h"
+ #include "config.h"
+ #include "sysconfig.h"
+ #include "plugins.h"
+@@ -148,7 +148,7 @@
+ - bootLinux=\"/sbin/reboot\" \n\
+ - VDRlibDir=\"/usr/lib/vdr/plugins\" \n\
+ - <plugins sysconfig=\"PLUGINLIST\">\n\
+-- <plugin name=\"setup\" info=\"Minivdr-Setup\" active=\"yes\" />\n\
++- <plugin name=\"setup\" info=\"Gento-VDR-Setup\" active=\"yes\" />\n\
+ - <plugin name=\"vdrcd\" param=\"-c /dev/dvd -c /media/dvd -c /media/cdfs\" info=\"VDR CD\"/>\n\
+ - ...\n\
+ - </plugin>\n\
+diff -Naur setup-0.2.3-orig/config.h setup-0.2.3/config.h
+--- setup-0.2.3-orig/config.h 2006-02-05 02:59:19.079869000 +0100
++++ setup-0.2.3/config.h 2006-02-05 03:00:02.974612250 +0100
+@@ -11,7 +11,7 @@
+
+ #ifndef CONFIG_H
+ #define CONFIG_H
+-#include "tinystr.h"
++#include "vdr/tinystr.h"
+ #include "plugins.h"
+ #include "sysconfig.h"
+ #include "menus.h"
+diff -Naur setup-0.2.3-orig/debug.h setup-0.2.3/debug.h
+--- setup-0.2.3-orig/debug.h 2006-02-05 02:59:19.075868750 +0100
++++ setup-0.2.3/debug.h 2006-02-05 03:00:34.840603750 +0100
+@@ -31,6 +31,6 @@
+ #define DEBUG7(p1, p2, p3, p4, p5, p6, p7) esyslog(p1, p2, p3, p4, p5, p6, p7)
+
+ #endif
+-#define DBG_PREFIX "ERROR: Minivdr-Setup"
++#define DBG_PREFIX "ERROR: Gentoo-VDR-Setup"
+
+ #endif /* DEBUG_H */
+diff -Naur setup-0.2.3-orig/getVdrSetupMenu.pl setup-0.2.3/getVdrSetupMenu.pl
+--- setup-0.2.3-orig/getVdrSetupMenu.pl 2006-02-05 02:59:19.079869000 +0100
++++ setup-0.2.3/getVdrSetupMenu.pl 2006-02-05 03:01:23.675655750 +0100
+@@ -35,6 +35,7 @@
+ if (/^\s*#include/)
+ {
+ #printf(OUTPUT $_);
++ s-"(.*)"-<vdr/\1>-;
+ push @headers, $_;
+ }
+ if (/^\s*class\s+\w+MenuSetupBase/)
+diff -Naur setup-0.2.3-orig/i18n.cpp setup-0.2.3/i18n.cpp
+--- setup-0.2.3-orig/i18n.cpp 2006-02-05 02:59:19.079869000 +0100
++++ setup-0.2.3/i18n.cpp 2006-02-05 03:03:07.782162000 +0100
+@@ -12,8 +12,8 @@
+
+ const tI18nPhrase Phrases[] = {
+ {
+- "Setup - designed for minivdr.de",
+- "Setup - designed for minivdr.de",
++ "Setup - VDR",
++ "Setup - VDR",
+ "",
+ "",
+ "",
+@@ -643,8 +643,8 @@
+ },
+
+ {
+- "missing channels/*.conf",
+- "keine channels/*.conf vorhanden",
++ "missing channels.d/*.conf",
++ "keine channels.d/*.conf vorhanden",
+ "",
+ "",
+ "",
+diff -Naur setup-0.2.3-orig/Makefile setup-0.2.3/Makefile
+--- setup-0.2.3-orig/Makefile 2006-02-05 02:59:19.087869500 +0100
++++ setup-0.2.3/Makefile 2006-02-05 03:03:50.140809250 +0100
+@@ -84,9 +84,9 @@
+ $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@
+ @cp $@ $(LIBDIR)/$@.$(VDRVERSION)
+
+-setupsystemmenu.cpp: ../../../menu.c
++setupsystemmenu.cpp: /usr/share/vdr/setup/menu.c
+ @echo "Extracting class definitions from VDR's menu.c for standard Setup"
+- @./getVdrSetupMenu.pl ../../../menu.c
++ @./getVdrSetupMenu.pl /usr/share/vdr/setup/menu.c
+
+
+ dist: clean
+diff -Naur setup-0.2.3-orig/MANUAL.DE setup-0.2.3/MANUAL.DE
+--- setup-0.2.3-orig/MANUAL.DE 2006-02-05 02:59:19.087869500 +0100
++++ setup-0.2.3/MANUAL.DE 2006-02-05 03:05:04.145434250 +0100
+@@ -206,7 +206,7 @@
+ werden in Form von "*" angezeigt.
+ channellist
+ setup Erlaubt die Auswahl von vordefinierten Kanallisten. Die
+- Kanallisten müssen in den Verzeichnis <vdrdir>/plugins/channels
++ Kanallisten müssen in den Verzeichnis <vdrdir>/plugins/channels.d
+ mit der Endung *.conf abgelegt werden. Das Setup-Plugin linkt
+ dann die ausgewählte Kanalliste nach <vdrdir>/channels.conf
+ networkdriver"
+diff -Naur setup-0.2.3-orig/menus.cpp setup-0.2.3/menus.cpp
+--- setup-0.2.3-orig/menus.cpp 2006-02-05 02:59:19.079869000 +0100
++++ setup-0.2.3/menus.cpp 2006-02-05 03:05:45.816038500 +0100
+@@ -840,7 +840,7 @@
+ *tmp = '\0';
+
+ asprintf(&channelFile, "%s/channels.conf",channelDir);
+- asprintf(&channelDir, "%s/channels",channelDir);
++ asprintf(&channelDir, "%s/channels.d",channelDir);
+
+
+ if( (dirFP = opendir(channelDir))!= NULL)
+@@ -1446,7 +1446,7 @@
+ *tmp = '\0';
+
+ asprintf(&channelFile, "%s/channels.conf",channelDir);
+- asprintf(&channelDir, "%s/channels",channelDir);
++ asprintf(&channelDir, "%s/channels.d",channelDir);
+ asprintf(&newChannelFile, "%s/%s.conf", channelDir, GetSelectedValue());
+
+
+diff -Naur setup-0.2.3-orig/menus.h setup-0.2.3/menus.h
+--- setup-0.2.3-orig/menus.h 2006-02-05 02:59:19.079869000 +0100
++++ setup-0.2.3/menus.h 2006-02-05 03:06:06.825351500 +0100
+@@ -13,7 +13,7 @@
+ #define MENUS_H
+ #include <vdr/tools.h>
+ #include "util.h"
+-#include "tinystr.h"
++#include "vdr/tinystr.h"
+ #include "sysconfig.h"
+
+
+diff -Naur setup-0.2.3-orig/setup.cpp setup-0.2.3/setup.cpp
+--- setup-0.2.3-orig/setup.cpp 2006-02-05 02:59:19.083869250 +0100
++++ setup-0.2.3/setup.cpp 2006-02-05 03:06:58.224563750 +0100
+@@ -15,8 +15,8 @@
+ #include "i18n.h"
+
+ static const char *VERSION = "0.2.3";
+-static const char *DESCRIPTION = "Minivdr-Setup";
+-static const char *MAINMENUENTRY = "Minivdr-Setup";
++static const char *DESCRIPTION = "Gentoo-VDR-Setup";
++static const char *MAINMENUENTRY = "Gentoo-VDR-Setup";
+
+ //holds setup configuration
+ cSetupSetup setupSetup;
+diff -Naur setup-0.2.3-orig/setupmenu.cpp setup-0.2.3/setupmenu.cpp
+--- setup-0.2.3-orig/setupmenu.cpp 2006-02-05 02:59:19.083869250 +0100
++++ setup-0.2.3/setupmenu.cpp 2006-02-05 03:08:42.435076500 +0100
+@@ -537,7 +537,7 @@
+ if( e->GetNrOfSelectionValues() == 0 )
+ {
+ char *txt=NULL;
+- asprintf(&txt, "%s:\t%s", nohk(e->GetName()),tr("missing channels/*.conf"));
++ asprintf(&txt, "%s:\t%s", nohk(e->GetName()),tr("missing channels.d/*.conf"));
+ Add(new cOsdItem (txt));
+ free(txt);
+ }
+@@ -699,13 +699,13 @@
+ //#############################################################################################
+
+
+-cSetupMenu::cSetupMenu() : cOsdMenu(tr("Setup - designed for minivdr.de (c)"))
++cSetupMenu::cSetupMenu() : cOsdMenu(tr("Setup - Gentoo-VDR"))
+ {
+ char *configFile=NULL;
+
+ SetCols(20);
+
+- asprintf(&configFile, "%s/setup/minivdr-setup.xml", cPlugin::ConfigDirectory());
++ asprintf(&configFile, "%s/setup/vdr-setup.xml", cPlugin::ConfigDirectory());
+ _config = new Config( configFile );
+ free(configFile);
+
diff --git a/media-plugins/vdr-setup/files/vdr-setup.xml b/media-plugins/vdr-setup/files/vdr-setup.xml
new file mode 100644
index 000000000000..a7bb57ee8b75
--- /dev/null
+++ b/media-plugins/vdr-setup/files/vdr-setup.xml
@@ -0,0 +1,128 @@
+<!--
+ - Mini-VDR Configuration File
+ - (c) Ralf Dotzert
+ -
+ -
+ - Example:
+ -
+ - <setup sysconfigFile="/etc/sysconfig">
+ - bootLinux="/sbin/reboot"
+ - VDRlibDir="/usr/lib/vdr/plugins"
+ - <plugins sysconfig="PLUGINLIST">
+ - <plugin name="setup" info="Minivdr-Setup" active="yes" />
+ - <plugin name="vdrcd" param="-c /dev/dvd -c /media/dvd -c /media/cdfs" info="VDR CD"/>
+ - ...
+ - </plugin>
+ - <menus>
+ - <menu name="VDR-Einstellungen">
+ - <menu name="Edit VDR-Menü" system="VDRMenu" help1="VDR Menü bearbeiten" />
+ - <menu name="OSD" system="OSD" help1="Einstellungen zum On Screen Display" />
+ - <menu name="EPG" system="EPG" />
+ - <menu name="DVB" system="DVB" />
+ - <menu name="LNB" system="LNB" />
+ - <menu name="CICAM" system="CICAM" />
+ - <menu name="Aufnahme" system="Record" />
+ - <menu name="Wiedergabe" system="Replay" />
+ - <menu name="Sonstiges" system="Misc" />
+ - <menu name="Plugins-Setup" system="Plugins" />
+ - <menu name="Aktiviere Plugins" system="ActPlugins" />
+ - <menu name="BigPatch-Setup" system="BigPatch" /> -- Wenn der Bigpatch angwendet wurde --
+ - <menu name="LiveBuffer-Setup" system="LiveBuffer" /> -- Wenn der LiveBuffer-Patch angewendet wurde --
+ - </menu>
+ - <menu name="Netzwerk" help1="Netzwerkeinstellungen" command="/etc/init.d/network restart">
+ - <entry name="Benutze DHCP" sysconfig="USE_DHCP" type="bool" value="true" command="/etc/init.d/network restart/>
+ - <entry name="IP-Adresse" sysconfig="IP" type="text" value="192.168.0.111" />
+ - ...
+ - </menu>
+ - <menu name="Sonstiges">
+ - <entry name="Ramddisk im MB" sysconfig="RAMDISK" type="number" value="16" />
+ - <menu name="SubMenu">
+ - <entry ... />
+ - </menu>
+ - </menu>
+ - </menus>
+ -</setup>
+-->
+<setup sysconfigFile="/var/vdr/sysconfig-setup" bootLinux="/sbin/reboot" VDRlibDir="/usr/lib/vdr/plugins">
+ <plugins sysconfig="PLUGINLIST">
+ <plugin name="alcd" info="Activy300 LCD Display" active="no" />
+ <plugin name="lcdproc" info="Alphanummerische Displays" active="no" />
+ <plugin name="vbox" info="Anrufbeantworter Plugin" active="yes" />
+ <plugin name="rotor" info="Ansteuerung Rotor" active="yes" />
+ <plugin name="femon" info="Anzeige Signalstärke/Qualität" active="yes" />
+ <plugin name="vdrcd" param="-c /dev/dvd -c /media/dvd -c /media/cdfs" info="AutoPlay Funktion" active="yes" />
+ <plugin name="autotimeredit" param="-f /etc/vdradmin/vdradmind.at -p" info="Autotimer-Edit" active="yes" />
+ <plugin name="prefermenu" info="Bevorzugte Kanäle" active="yes" />
+ <plugin name="osdpip" info="Bild in Bild" active="yes" />
+ <plugin name="image" param="-C /usr/bin/imageplugin.sh -m /usr/bin/mount.sh" info="Bildbetrachter Plugin" active="yes" />
+ <plugin name="osdimage" param="--directory /video0/media/photos/vdr" info="Bildern über OSD" active="yes" />
+ <plugin name="burn" param="-D /dev/sr0 -d /video0 -i /video0/convert/dvd/" info="Brennt Filme auf DVD" active="yes" />
+ <plugin name="remote" info="DVB Karten Fernbedienung" active="no" protected="yes" />
+ <plugin name="dvdselect" info="DVD Laufwerke einhängen" active="yes" />
+ <plugin name="dvd" info="DVD Spieler Plugin" active="yes" />
+ <plugin name="freecell" info="Das Kartenspiel Freecell" active="yes" />
+ <plugin name="osddemo" info="Demo On-Screen-Display" active="no" />
+ <plugin name="tvonscreen" param="-v /etc/vdradmin/vdradmind.at" info="EPG Programmzeitschrift" active="yes" />
+ <plugin name="epgsearch" info="EPG zeigt Wiederholungen" active="yes" />
+ <plugin name="hello" info="Ein &apos;hello&apos; Plugin" active="no" />
+ <plugin name="screenshot" info="Erstellt Screenshots" active="yes" />
+ <plugin name="graphlcd" param="-d ks0108" info="GraphLCD" active="yes" />
+ <plugin name="graphtft" param="-d /dev/fb0" info="GraphTFT" active="no" />
+ <plugin name="radio" info="Hintergrundbild für Radiosender" active="yes" />
+ <plugin name="chanorg" info="Kanäle sortieren" active="yes" />
+ <plugin name="solitaire" info="Kartenspiel Solitaire" active="yes" />
+ <plugin name="vdrc" info="Linux Commander OSD" active="yes" />
+ <plugin name="setup" info="Minivdr-Setup" active="yes" protected="yes" />
+ <plugin name="sky" info="Mpeg2 Encoder Plugin" active="yes" />
+ <plugin name="newsticker" info="Newsticker" active="yes" />
+ <plugin name="status" info="Osd-Status" active="no" />
+ <plugin name="pim" info="PIM-Kalender Plugin" active="yes" />
+ <plugin name="channelscan" info="Sender Suchlauf" active="yes" />
+ <plugin name="taste" info="Sendungen-Keywords sperren" active="yes" />
+ <plugin name="sleeptimer" info="Shutdown" active="yes" />
+ <plugin name="mlcd" info="Siemens Multitainer LC-Display" active="no" />
+ <plugin name="text2skin" info="Skin-Plugin für VDR" active="yes" />
+ <plugin name="mp3" info="Spielt MP3-Dateien ab" active="yes" />
+ <plugin name="mplayer" info="Spielt diverse Videoformate" active="yes" />
+ <plugin name="streamdev-client" info="Streaming Client" active="no" />
+ <plugin name="streamdev-server" info="Streaming Server" active="yes" />
+ <plugin name="sysinfo" info="Systeminformationen" active="yes" />
+ <plugin name="osdteletext" info="Teletext Dekoder für das OSD" active="yes" />
+ <plugin name="console" info="Textkonsole auf dem Fernseher" active="yes" />
+ <plugin name="tvtv" info="TvTv im OSD" active="yes" />
+ <plugin name="clock" info="Uhr" active="yes" />
+ <plugin name="skincurses" info="VDR-Skin für Konsole" active="yes" />
+ <plugin name="games" info="Verschiedene Spiele" active="yes" />
+ <plugin name="playlist" info="Verw.von Playlisten" active="yes" />
+ <plugin name="vcd" param="--vcd=/dev/dvd" info="VideoCD Plugin" active="yes" />
+ <plugin name="yaepg" info="Weitere EPG-Ansicht" active="yes" />
+ <plugin name="undelete" info="Wiederh. gelöschter Aufnahmen" active="yes" />
+ <plugin name="pilot" info="Zapping Co-Pilot" active="yes" />
+ <plugin name="director" info="Zeigt Multifeed Kanäle" active="yes" />
+ <plugin name="timeline" info="Zeitleiste" active="yes" />
+ <plugin name="admin" info="admin" active="no" />
+ <plugin name="wapd" info="wapd" active="yes" />
+ </plugins>
+ <menus>
+ <menu name="VDR-Einstellungen">
+ <menu name="OSD" system="OSD" help1="Einstellungen zum On Screen Display" help2="setup_osd.hlp"/>
+ <menu name="EPG" system="EPG" help1="Einstellungen zum Electronic Prgramming Guide" help2="setup_epg.hlp"/>
+ <menu name="DVB" system="DVB" help1="Einstellungen zur DVB-Karte" help2="setup_dvb.hlp"/>
+ <menu name="LNB" system="LNB" help2="setup_lnb.hlp"/>
+ <menu name="CICAM" system="CICAM" help2="setup_cicam.hlp"/>
+ <menu name="Aufnahme" system="Record" help2="setup_record.hlp"/>
+ <menu name="Wiedergabe" system="Replay" help2="setup_replay.hlp"/>
+ <menu name="Sonstiges" system="Misc" help2="setup_misc.hlp"/>
+ <menu name="Plugins-Setup" system="Plugins" help1="Plugins konfigurieren"/>
+ <menu name="LiveBuffer" system="LiveBuffer" />
+ <menu name="BigPatch" system="BigPatch" />
+ </menu>
+ <menu name="Sonstiges">
+ <menu name="Edit VDR-Menü" system="VDRMenu" help1="VDR Menü bearbeiten" help2="setup_editmenu.hlp"/>
+ <entry name="Kanalliste" sysconfig="CHANNELLIST" type="selection" setup="channellist" value="DVB-s_MiniVDR" />
+ </menu>
+ <menu name="Kindersicherung">
+ <entry name="Geheimcode (0000=AUS)" sysconfig="CHILDLOCK" type="numtext" setup="childlock" value="0000" />
+ </menu>
+ </menus>
+</setup>
diff --git a/media-plugins/vdr-setup/metadata.xml b/media-plugins/vdr-setup/metadata.xml
new file mode 100644
index 000000000000..58745a63a0da
--- /dev/null
+++ b/media-plugins/vdr-setup/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>media-tv</herd>
+ <maintainer>
+ <email>hd_brummy@gentoo.org</email>
+ <name>Joerg Bornkessel</name>
+ <description>
+ Please contacts maintainer before you something change.
+ </description>
+ </maintainer>
+ <longdescription lang="en">
+ The "Setup Plugin" can be used to to setup all or most configuration parameters
+ of VDR distributions via the OSD.
+ </longdescription>
+</pkgmetadata>
diff --git a/media-plugins/vdr-setup/vdr-setup-0.2.3.ebuild b/media-plugins/vdr-setup/vdr-setup-0.2.3.ebuild
new file mode 100644
index 000000000000..5c0259619a21
--- /dev/null
+++ b/media-plugins/vdr-setup/vdr-setup-0.2.3.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-setup/vdr-setup-0.2.3.ebuild,v 1.1 2006/02/05 15:57:23 hd_brummy Exp $
+
+inherit vdr-plugin
+
+DESCRIPTION="Video Disk Recorder Plugin - Create Submenus, Configure VDR on OSD"
+HOMEPAGE="http://www.vdrtools.de/vdrsetup.html"
+SRC_URI="http://www.vdrtools.de/download/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.3.36-r3"
+
+S=${WORKDIR}/setup-${PV}
+
+PATCHES="${FILESDIR}/${P}-gentoo.diff"
+
+pkg_setup() {
+ vdr-plugin_pkg_setup
+
+ if [[ ! -f /usr/include/vdr/submenu.h ]] || [[ ! -f /usr/share/vdr/setup/menu.c ]]; then
+ echo
+ eerror "Patched VDR needed"
+ echo
+ einfo "reemerge VDR with USE=\"setup-plugin\" " && die "unpack failed, patched VDR needed"
+ fi
+}
+
+src_install() {
+ vdr-plugin_src_install
+
+ keepdir /etc/vdr/channels.d
+
+ insinto /var/vdr
+ newins ${S}/Examples/sysconfig sysconfig-setup
+ fowners vdr:vdr /var/vdr/sysconfig-setup
+
+ insinto /etc/vdr/plugins/setup
+ doins ${FILESDIR}/vdr-setup.xml
+
+ insinto /etc/vdr/plugins/setup/help
+ doins ${S}/Examples/help/*.hlp
+
+ chown -R vdr:vdr ${D}/etc/vdr
+
+ dodoc MANUAL.DE Examples/*.xml
+}
+
+pkg_postinst() {
+ vdr-plugin_pkg_postinst
+
+ echo
+ einfo "Edit /etc/vdr/plugins/setup/*"
+
+ if [[ ! -L /etc/vdr/channels.conf ]]; then
+ cp ${ROOT}/etc/vdr/channels.conf ${ROOT}/etc/vdr/channels.d/channels.conf.bak
+ cp ${ROOT}/etc/vdr/channels.conf ${ROOT}/etc/vdr/channels.d/channels.conf
+ echo
+ ewarn "Setup-Plugin will change the path of your channels.conf"
+ einfo "You will find a backup copy on /etc/vdr/channels/channels.conf.bak"
+ echo
+ fi
+}
+
+
+
+