diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2008-02-02 20:51:17 +0000 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2008-02-02 20:51:17 +0000 |
commit | fb8a639bdd03da1569e01f8b05ba204044d46c03 (patch) | |
tree | 2b6a1f56a6d9edcb9bac7a4f6f163606c1f1de7a /media-plugins/vdr-filebrowser/files | |
parent | Add openrc capable start-scripts. Based on code by Uberlord, Bug #208245. Thi... (diff) | |
download | historical-fb8a639bdd03da1569e01f8b05ba204044d46c03.tar.gz historical-fb8a639bdd03da1569e01f8b05ba204044d46c03.tar.bz2 historical-fb8a639bdd03da1569e01f8b05ba204044d46c03.zip |
initial ebuild, taken from vdr testing overlay; also thanks to E.O'Donnell on bug 208210
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'media-plugins/vdr-filebrowser/files')
6 files changed, 234 insertions, 0 deletions
diff --git a/media-plugins/vdr-filebrowser/files/commands.conf b/media-plugins/vdr-filebrowser/files/commands.conf new file mode 100644 index 000000000000..72a96c869e59 --- /dev/null +++ b/media-plugins/vdr-filebrowser/files/commands.conf @@ -0,0 +1,37 @@ +# * commands.conf * +# A file defining commands to be run on files, roughly based on vdr's original commands.conf syntax: +# Columns are separated by colons, first column is the name of the command. +# When it ends with a question mark, you will be asked whether you really want to execute this command. +# +# The second column contains a filename pattern, that you only see commands useful in current context. +# If this starts with an exclamation mark, it will be treated as a shell script that returns 0 +# if it matches and anything other if it doesn't. %f is replaced with the filename to be checked +# (escape sequences from below apply, %! analogue). As this results in loading your shell and running +# a command for every file and defined command, consider using othercommands.conf (see below) +# to move away seldom used commands. +# +# The third column contains the command to be executed, where following expansions are made: +# %f: current file +# %d: if available, a destination file must be choosed, which is inserted +# here +# %D: if available, a destination file must be choosed, with the possibility +# to create a new one +# %m: expands to currently marked files, separated by a space. If no file is +# marked, current file is used +# %M: the same as %m, but this will change some time - don't use it +# %%: % +# %:: : +# +# The fourth (facultative) column contains flags. +# Following are recognized at the moment: +# b: Don't switch to the output of this command (it is available via "Threads"-command) +# s: Execute command synchronously - beware, this may yield to a non-responsive osd for a while! +# r: Remove thread from list automaticially if it had no errors +# +# The fifth (facultative) column may contain an access code, only numbers are supported! +# +# Examples: +# Remove?:*:rm -rf %m:s:12345 +# Move:*.c:mv %m %D:br +# Recode:+(*.ogg|*.mp3):recode %d %M + diff --git a/media-plugins/vdr-filebrowser/files/order.conf b/media-plugins/vdr-filebrowser/files/order.conf new file mode 100644 index 000000000000..676eb2386596 --- /dev/null +++ b/media-plugins/vdr-filebrowser/files/order.conf @@ -0,0 +1,19 @@ +# * order.conf * +# A file to reorder commands. Usually you will see internal commands first, then commands from commands.conf +# and then a command to show the thread list. +# To reorder, just insert the names of the commands in this file, one per line. +# To remove a certain command prefix its name with a minus sign (-). +# Attention: Internal command names are localized, so your order.conf needs to be changed when you switch from +# english to french, and again when you switch from french to german. +# Attention2: For custom commands, remove the question mark and escaped colons. +# Commands not mentioned in order.conf are appended to ordered commands. +# +# Example (uses commands.conf-snippet from above): +# Remove #shows remove first +# Threads #an internal command to see currently executing commands +# Mark #an internal command +# -Unmark #Hide an internal command +# %--- #Reorder the command "---", escape first minus sign +# +# Please note that those comments aren't supported in order.conf at the time! + diff --git a/media-plugins/vdr-filebrowser/files/othercommands.conf b/media-plugins/vdr-filebrowser/files/othercommands.conf new file mode 100644 index 000000000000..9ac671974354 --- /dev/null +++ b/media-plugins/vdr-filebrowser/files/othercommands.conf @@ -0,0 +1,15 @@ +# * othercommands.conf * +# You have the possibility to move commands into their own submenu. +# Apart from reducing the need to "scroll" with the color keys, it keeps cost of command-matching low +# (especially with shell-matched commands) for they are checked not until you open this menu. +# Syntax is like in order.conf, you still define your commands in commands.conf, this file determines +# which (named) commands are moved to the menu. +# Both Attention and Attention2 from above apply. +# +# Example +# Mark all # move this commands to the menu +# Threads +# Sources +# +# Please note that those comments aren't supported in othersources.conf at the time! + diff --git a/media-plugins/vdr-filebrowser/files/sources.conf b/media-plugins/vdr-filebrowser/files/sources.conf new file mode 100644 index 000000000000..d5760c387b4b --- /dev/null +++ b/media-plugins/vdr-filebrowser/files/sources.conf @@ -0,0 +1,10 @@ +# * sources.conf * +# Define sources in the style of many other plugins to switch your virtual root at runtime. +# First field specifies source's name, second the path. Escaping rules from above apply. +# The third (facultative) field specifies a file filter. +# +# Example +# All%: (note the escaped colon!):/ +# Home:/home:*.doc +# Temp:/tmp + diff --git a/media-plugins/vdr-filebrowser/files/vdr-filebrowser-0.0.6b-typofix.diff b/media-plugins/vdr-filebrowser/files/vdr-filebrowser-0.0.6b-typofix.diff new file mode 100644 index 000000000000..9f304aeebadd --- /dev/null +++ b/media-plugins/vdr-filebrowser/files/vdr-filebrowser-0.0.6b-typofix.diff @@ -0,0 +1,27 @@ +fix some compile probs, depend on typos + +Joerg Bornkessel <hd_brummy@gentoo.org> 02 Fev 2008 +diff -Naur filebrowser-0.0.6b.orig/po/cs_CZ.po filebrowser-0.0.6b/po/cs_CZ.po +--- filebrowser-0.0.6b.orig/po/cs_CZ.po 2008-02-02 19:59:43.960349841 +0100 ++++ filebrowser-0.0.6b/po/cs_CZ.po 2008-02-02 20:00:19.293265014 +0100 +@@ -85,7 +85,7 @@ + + #: menu-filebrowser.c:107 menu-filebrowser.c:226 menu-filebrowser.c:228 + msgid "Filebrowser" +-msgstr { ++msgstr "" + + #: menu-filebrowser.c:234 menu-filebrowser.c:443 + msgid "Select Destination" +diff -Naur filebrowser-0.0.6b.orig/po/tr_TR.po filebrowser-0.0.6b/po/tr_TR.po +--- filebrowser-0.0.6b.orig/po/tr_TR.po 2008-02-02 19:59:43.960349841 +0100 ++++ filebrowser-0.0.6b/po/tr_TR.po 2008-02-02 20:00:41.088291684 +0100 +@@ -85,7 +85,7 @@ + + #: menu-filebrowser.c:107 menu-filebrowser.c:226 menu-filebrowser.c:228 + msgid "Filebrowser" +-msgstr NULL ++msgstr "" + + #: menu-filebrowser.c:234 menu-filebrowser.c:443 + msgid "Select Destination" diff --git a/media-plugins/vdr-filebrowser/files/vdr-filebrowser-0.0.6b_vdr-1.5.diff b/media-plugins/vdr-filebrowser/files/vdr-filebrowser-0.0.6b_vdr-1.5.diff new file mode 100644 index 000000000000..b417ff031ecb --- /dev/null +++ b/media-plugins/vdr-filebrowser/files/vdr-filebrowser-0.0.6b_vdr-1.5.diff @@ -0,0 +1,126 @@ +diff -Nur filebrowser-old/statebag.c filebrowser/statebag.c +--- filebrowser-old/statebag.c 2006-12-04 22:13:24.000000000 +0100 ++++ filebrowser/statebag.c 2007-06-18 20:20:21.000000000 +0200 +@@ -27,10 +27,10 @@ + #ifdef FILEBROWSER_PLUGIN_BUILD + Threads=new cThreadList(); + #endif +- SelectedFiles=new cStringList(); ++ SelectedFiles=new cStringContainerList(); + Commands=new cFilebrowserCommands(); + BaseDir[0]='\0'; +- CurrentFiles=new cStringList(); ++ CurrentFiles=new cStringContainerList(); + } + + cFilebrowserStatebag::~cFilebrowserStatebag() +diff -Nur filebrowser-old/statebag.h filebrowser/statebag.h +--- filebrowser-old/statebag.h 2006-12-04 22:13:24.000000000 +0100 ++++ filebrowser/statebag.h 2007-06-18 20:21:46.000000000 +0200 +@@ -22,7 +22,7 @@ + #include <vdr/plugin.h> + + //Forward declarations for used classes +-class cStringList; ++class cStringContainerList; + #ifdef FILEBROWSER_PLUGIN_BUILD + class cThreadList; + #endif +@@ -31,7 +31,7 @@ + class cFilebrowserStatebag + { + protected: +- cStringList* SelectedFiles; ++ cStringContainerList* SelectedFiles; + #ifdef FILEBROWSER_PLUGIN_BUILD + cThreadList* Threads; + #endif +@@ -41,7 +41,7 @@ + cFilebrowserStatebag(); + ~cFilebrowserStatebag(); + +- cStringList* GetSelectedFiles() { return SelectedFiles; }; ++ cStringContainerList* GetSelectedFiles() { return SelectedFiles; }; + #ifdef FILEBROWSER_PLUGIN_BUILD + cThreadList* GetThreads() { return Threads; }; + #endif +@@ -54,7 +54,7 @@ + cString Filter; + cString CurrentDirectory; + cString ConfigDirectory; +- cStringList* CurrentFiles; ++ cStringContainerList* CurrentFiles; + + #ifdef FILEBROWSER_PLUGIN_BUILD + /* +diff -Nur filebrowser-old/threads.c filebrowser/threads.c +--- filebrowser-old/threads.c 2006-12-07 20:19:48.000000000 +0100 ++++ filebrowser/threads.c 2007-06-18 20:20:21.000000000 +0200 +@@ -35,7 +35,7 @@ + this->CurrentFile=CurrentFile ? strdup(CurrentFile) : NULL; + this->Statebag=Statebag; + //deep copy of Selected files +- SelectedFiles=new cStringList(); ++ SelectedFiles=new cStringContainerList(); + for(int i=0; i<Statebag->GetSelectedFiles()->Count(); i++) + { + SelectedFiles->Add(new cStringContainer(strdup((char*)Statebag->GetSelectedFiles()->Get(i)->GetObject()))); +@@ -317,7 +317,7 @@ + + char* cConfigCommandThread::SelectedFilesHandler(const char* OrgString, const char* CurrentPos, const cCommandParser::cHandlerParameters* Params) + { +- cStringList* SelectedFiles=(cStringList*)Params->Data; ++ cStringContainerList* SelectedFiles=(cStringContainerList*)Params->Data; + char* Text=NULL; + int TextLength=0; + +diff -Nur filebrowser-old/threads.h filebrowser/threads.h +--- filebrowser-old/threads.h 2006-12-04 22:13:24.000000000 +0100 ++++ filebrowser/threads.h 2007-06-18 20:20:21.000000000 +0200 +@@ -41,7 +41,7 @@ + char* DestinationFile; + char* CurrentFile; + char* Description; +- cStringList* SelectedFiles; ++ cStringContainerList* SelectedFiles; + ThreadState State; + bool RemoveRequested; + public: +diff -Nur filebrowser-old/tools.c filebrowser/tools.c +--- filebrowser-old/tools.c 2007-02-03 18:57:13.000000000 +0100 ++++ filebrowser/tools.c 2007-06-18 20:20:21.000000000 +0200 +@@ -20,10 +20,10 @@ + #include "tools.h" + + /* +- Implementation cStringList ++ Implementation cStringContainerList + */ + +-bool cStringList::Contains(const char* String) ++bool cStringContainerList::Contains(const char* String) + { + for(cStringContainer *i = First(); i; i=Next(i)) + { +@@ -35,7 +35,7 @@ + return false; + } + +-void cStringList::Remove(const char* String) ++void cStringContainerList::Remove(const char* String) + { + for(cStringContainer *i = First(); i!=NULL; i=Next(i)) + { +diff -Nur filebrowser-old/tools.h filebrowser/tools.h +--- filebrowser-old/tools.h 2007-02-03 18:57:13.000000000 +0100 ++++ filebrowser/tools.h 2007-06-18 20:20:21.000000000 +0200 +@@ -55,7 +55,7 @@ + ~cStringContainer() {}; + }; + +-class cStringList : public cList<cStringContainer> ++class cStringContainerList : public cList<cStringContainer> + { + public: + bool Contains(const char* String); + |