diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/vdr-exec |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/vdr-exec')
-rw-r--r-- | media-plugins/vdr-exec/Manifest | 6 | ||||
-rw-r--r-- | media-plugins/vdr-exec/files/vdr-exec-0.0.3_compile-warnings.diff | 266 | ||||
-rw-r--r-- | media-plugins/vdr-exec/metadata.xml | 8 | ||||
-rw-r--r-- | media-plugins/vdr-exec/vdr-exec-0.0.3.ebuild | 20 |
4 files changed, 300 insertions, 0 deletions
diff --git a/media-plugins/vdr-exec/Manifest b/media-plugins/vdr-exec/Manifest new file mode 100644 index 000000000000..7df14043873e --- /dev/null +++ b/media-plugins/vdr-exec/Manifest @@ -0,0 +1,6 @@ +AUX vdr-exec-0.0.3_compile-warnings.diff 8483 SHA256 f65f33bfa13d609736ed936d40dea2de1eb52056713d0a562bc173543b9a0caa SHA512 708058c10972be4da33de6565c405b9bfa9ad285082b1522ca8b0338f0a702ee7bc1e2dc743fd7794d5b15cc1aebbca6711cf03e4fbe1e043a951345e7195e7e WHIRLPOOL 713e076776802da77912d87474721092ae68183d941f72ed4cc3789a823297129f66ce32cd5eed00cb6bb282e2d4d87ea197e37caf9b7f431bc9185bbda6caee +DIST vdr-exec-0.0.3.tgz 34537 SHA256 35c67f28ec13d705ac2a70ed619be191bfe98ad38eaa5f35dd5daa3320bdb276 SHA512 c08b89908f8ea33a0ae95f8981dc4d2117926468bc4772124cec61daa274cd5ce05421853c8c75bce9647d08ac4eb81b1958313b0550ff0328be6a812aabd29a WHIRLPOOL 9b6aff0cc6cbfde59fadc25e409f796a6a4762d20d489b7a30740c624900f5c0f018381379985880fe6bed89ec980545141e7de5826742a7837ff603e0a61cda +EBUILD vdr-exec-0.0.3.ebuild 480 SHA256 e061df16bcef744d393f2904ed0a84ca98421cb3bf072f4e881bb2817dae2cf8 SHA512 49368d35284b1ec0744a91f6730f09da0a378430a2047bc947f3f2bf2547ae317cd6c52755a3d7a77ae5f05eabb0939de9eb8c9e0f40264d1c387e3b2f4b9641 WHIRLPOOL 532c3e83277e5bcd98dd8141ac81f23c5cd4b3d68cb9279b0e8bf1768acc9969c17eece10919e4d3d6d475b6dc242fbe8a198352d69456ab3c8c6d8ce2ecb0e2 +MISC ChangeLog 2875 SHA256 b41e0f010689ba2653c88146c0dd66202cfdd44539b3fd7d41e0f8e2cb055495 SHA512 bab37e048a98305a2d63b3ae2c22a8dc7aa047f0aa28736673c81525e3548f062a07e13fb5108a7a1e31ae88f9a8222745c200dd41b65cc4d9ed0b13a6cb413a WHIRLPOOL b07e3c17c20b93520a9c5f525f78c779dea45762f93ecdc580218e8096d24067c675ab46e741dc052ca29806b644f2b021b850e74b75c961d091e94f1abd164e +MISC ChangeLog-2015 947 SHA256 55165b9ae3263fc11c4452e78ad3f4758345ab407ea7f0b9c5362313b48fd50a SHA512 2ac2ef51879542f0a639dc9dacf1b5cc26d6f366576c67d255c8740b96ec45c92be4980f754bdfb756a2d0aa1dae02c9c1004e5fcd70df269d9ecb7f9df65cc3 WHIRLPOOL 85dc3bc47439e24fb8c0f8eb6e5194d4c9ca377cc913278308cd3649a3e846e30883929144ef99f392925604da98eb6b505191339b69c70d30f5ab4bfc0fa164 +MISC metadata.xml 243 SHA256 161359b6e9eddec137a431eea66785e070bbc25fab3ae1b57f900e411fc37fe7 SHA512 f7d6e467a5a96c0afdd42df3c0f3866240defc5bbea5ccddf4c0b1a3c004225af5d46dab67d45a5ac34535391584f3b3727fe79ef6cef1a11413636bbc35cf06 WHIRLPOOL ebf59815181c251040396bb44206b875f6d996abcff030fdbf8355b47d6ea8c4f2669847ea1af194112de469258d7ca09ed77b682924ca495958a65f957dbf39 diff --git a/media-plugins/vdr-exec/files/vdr-exec-0.0.3_compile-warnings.diff b/media-plugins/vdr-exec/files/vdr-exec-0.0.3_compile-warnings.diff new file mode 100644 index 000000000000..d0ffcc572b95 --- /dev/null +++ b/media-plugins/vdr-exec/files/vdr-exec-0.0.3_compile-warnings.diff @@ -0,0 +1,266 @@ +fix compile warnings depend on asprintf + +Signed-of-by: Joerg Bornkessel <hd_brummy@gentoo.or> (28 Jan 2011) + +diff -Naur exec-0.0.3.orig/compat.c exec-0.0.3/compat.c +--- exec-0.0.3.orig/compat.c 2011-01-28 21:51:24.000000000 +0100 ++++ exec-0.0.3/compat.c 2011-01-28 21:56:00.000000000 +0100 +@@ -76,7 +76,7 @@ + char res[1024]; /* have to fix this later! Risk */ + + memset(res,0,sizeof(res)); +- asprintf(&buf, "%s; echo $?", Command); ++ (0 < asprintf(&buf, "%s; echo $?", Command)); + if(pipe.Open(buf,"r")) { + while (fscanf (pipe,"%s",res) != EOF) { + /* searching for last arg only. */ +diff -Naur exec-0.0.3.orig/exec.c exec-0.0.3/exec.c +--- exec-0.0.3.orig/exec.c 2011-01-28 21:51:24.000000000 +0100 ++++ exec-0.0.3/exec.c 2011-01-28 21:58:18.000000000 +0100 +@@ -100,7 +100,7 @@ + bool cPluginExec::Start(void) + { + // Start any background activities the plugin shall perform. +- asprintf(&confdir, ConfigDirectory()); ++ (0 < asprintf(&confdir, ConfigDirectory())); + ExecTimers.Load(AddDirectory(confdir, "exectimers.conf")); + ExecTimers.Modified(myState); /* sync myState to ExecTimers.state */ + ExecLog.Load("/var/log/exec.log"); +@@ -236,7 +236,7 @@ + ReplyCode=501; /* syntax err */ + return "invalid timer"; + } +- asprintf(&buf, "%s\n",*et->ToSVDRDescr()); ++ (0 < asprintf(&buf, "%s\n",*et->ToSVDRDescr())); + ReplyCode=250; /* success */ + return cString(buf, true); + } +@@ -248,9 +248,9 @@ + cExecTimer *et = ExecTimers.Get(index); + if (et) { + if (! buf) +- asprintf(&buf,"%s\n", *et->ToSVDRDescr()); ++ (0 < asprintf(&buf,"%s\n", *et->ToSVDRDescr())); + else +- asprintf(&buf,"%s%s\n", buf, *et->ToSVDRDescr()); ++ (0 < asprintf(&buf,"%s%s\n", buf, *et->ToSVDRDescr())); + } + else { /* should never happen. */ + log(0, "cPluginExec::SVDRPCommand(%s, %s)", Command, Option); +@@ -317,9 +317,9 @@ + cExecTimer *et = ExecTimers.GetNextActiveTimer(); + ReplyCode=250; + if (et) +- asprintf(&buf,"next active timer %s", *et->ToSVDRDescr()); ++ (0 < asprintf(&buf,"next active timer %s", *et->ToSVDRDescr())); + else +- asprintf(&buf,"no active timers."); ++ (0 < asprintf(&buf,"no active timers.")); + return buf; + } + +@@ -328,9 +328,9 @@ + cExecTimer *et = ExecTimers.GetNextWakeupTimer(); + ReplyCode=250; + if (et) +- asprintf(&buf,"next wakeup timer %s", *et->ToSVDRDescr()); ++ (0 < asprintf(&buf,"next wakeup timer %s", *et->ToSVDRDescr())); + else +- asprintf(&buf,"no wakeup timers."); ++ (0 < asprintf(&buf,"no wakeup timers.")); + return buf; + } + +diff -Naur exec-0.0.3.orig/exectimer.c exec-0.0.3/exectimer.c +--- exec-0.0.3.orig/exectimer.c 2011-01-28 21:51:24.000000000 +0100 ++++ exec-0.0.3/exectimer.c 2011-01-28 22:02:28.000000000 +0100 +@@ -66,8 +66,8 @@ + + cExecTimer::cExecTimer(time_t StartTime, const char * Command, int TimeOut) { + startTime=StartTime; +- asprintf(&command,Command); +- asprintf(&wd_str,"AAAAAAA"); ++ (0 < asprintf(&command,Command)); ++ (0 < asprintf(&wd_str,"AAAAAAA")); + timeout = TimeOut; + active = true; + running = false; +@@ -146,47 +146,47 @@ + case ET_WARNING : Action=4; break; + default: Action=1; + } +- asprintf(&buffer,"%s:%s:%d:%d:%d:%d:%d:%s ", ++ (0 < asprintf(&buffer,"%s:%s:%d:%d:%d:%d:%d:%s ", + *PrintWeekdays(), *PrintTime(false), timeout, active?1:0, + Action, (flags & ET_WAKEUP)?1:0, (flags & ET_BACKGROUND)?1:0, +- command); ++ command)); + return cString(buffer, true); + } + + cString cExecTimer::PrintWeekdays() const { + char *buffer; + if (weekdays == WD_IGNORED) +- asprintf(&buffer, "%s", *PrintDay()); ++ (0 < asprintf(&buffer, "%s", *PrintDay())); + else +- asprintf(&buffer, "%s%s%s%s%s%s%s", ++ (0 < asprintf(&buffer, "%s%s%s%s%s%s%s", + (weekdays & WD_MONDAY)? "M":"-", + (weekdays & WD_TUESDAY)? "T":"-", + (weekdays & WD_WEDNESDAY)? "W":"-", + (weekdays & WD_THURSDAY)? "T":"-", + (weekdays & WD_FRIDAY)? "F":"-", + (weekdays & WD_SATURDAY)? "S":"-", +- (weekdays & WD_SUNDAY)? "S":"-"); ++ (weekdays & WD_SUNDAY)? "S":"-")); + return cString(buffer, true); + } + + cString cExecTimer::PrintDay() const { + char *buffer; + if (weekdays == WD_IGNORED) +- asprintf(&buffer, "%04d-%02d-%02d", ++ (0 < asprintf(&buffer, "%04d-%02d-%02d", + Day / 10000, + (Day % 10000) / 100, +- (Day % 10000) % 100); ++ (Day % 10000) % 100)); + else +- asprintf(&buffer, "----:--:--"); ++ (0 < asprintf(&buffer, "----:--:--")); + return cString(buffer, true); + } + + cString cExecTimer::PrintTime(bool colon) const { + char *buffer; +- asprintf(&buffer, "%02d%s%02d", ++ (0 < asprintf(&buffer, "%02d%s%02d", + Time / 100, + colon?":":"", +- Time % 100); ++ Time % 100)); + return cString(buffer, true); + } + +@@ -202,7 +202,7 @@ + + cString cExecTimer::Command() const { + char *buffer; +- asprintf(&buffer, "%s", command); ++ (0 < asprintf(&buffer, "%s", command)); + return cString(buffer, true); + } + +@@ -276,7 +276,7 @@ + return false; + } + if (command) free(command); +- asprintf(&command,"%s", CmdStr); ++ (0 < asprintf(&command,"%s", CmdStr)); + weekdays = WD_IGNORED; + switch (strlen(DayStr)) { + case 10: /* YYYY-MM-DD */ +@@ -466,7 +466,7 @@ + *****************************************************************************/ + + cExecLogLine::cExecLogLine(const char * Str) { +- asprintf(&str,Str); ++ (0 < asprintf(&str,Str)); + } + + cExecLogLine::~cExecLogLine() { +@@ -475,13 +475,13 @@ + + cString cExecLogLine::Text(void) const { + char *buffer; +- asprintf(&buffer, "%s", str); ++ (0 < asprintf(&buffer, "%s", str)); + return cString(buffer, true); + } + + bool cExecLogLine::Parse(const char * s) { + if (str) free(str); +- asprintf(&str,"%s", s); ++ (0 < asprintf(&str,"%s", s)); + return true; + } + +diff -Naur exec-0.0.3.orig/exectimer.h exec-0.0.3/exectimer.h +--- exec-0.0.3.orig/exectimer.h 2011-01-28 21:51:24.000000000 +0100 ++++ exec-0.0.3/exectimer.h 2011-01-28 22:03:35.000000000 +0100 +@@ -127,7 +127,7 @@ + cString PrintTime (bool colon = false) const; + cString Command () const; + void SetCommand (const char *cmd) +- { asprintf(&command,"%s",cmd); }; ++ { (0 < asprintf(&command,"%s",cmd)); }; + bool Execute (); + }; + +diff -Naur exec-0.0.3.orig/menu.c exec-0.0.3/menu.c +--- exec-0.0.3.orig/menu.c 2011-01-28 21:51:24.000000000 +0100 ++++ exec-0.0.3/menu.c 2011-01-28 22:05:23.000000000 +0100 +@@ -46,7 +46,7 @@ + } + if (toLog) { + char *msg; +- asprintf(&msg, "%s %s", timeStr, t); ++ (0 < asprintf(&msg, "%s %s", timeStr, t)); + ExecLog.AddToLog(msg); + free(msg); + } +@@ -102,7 +102,7 @@ + + void cMenuExecAbout::AddText(const char * s, const char * t) { + char * buf=NULL; +- asprintf(&buf, "%s %s", s, t); ++ (0 < asprintf(&buf, "%s %s", s, t)); + cOsdItem * osditem = new cOsdItem(buf); + Add(osditem); + free(buf); +@@ -111,7 +111,7 @@ + cMenuExecAbout::cMenuExecAbout() { + char * buf=NULL; + +- asprintf(&buf, "%s-%s", "exec", ExecVersion()); ++ (0 < asprintf(&buf, "%s-%s", "exec", ExecVersion())); + AddText(tr("Plugin:") , buf); + free(buf); + AddText(tr("Author:") , "Winfried Koehler"); +@@ -140,7 +140,7 @@ + + void cMenuExecLog::AddText(const char * s) { + char * buf=NULL; +- asprintf(&buf, "%s", s); ++ (0 < asprintf(&buf, "%s", s)); + cOsdItem * osditem = new cOsdItem(buf); + Add(osditem); + free(buf); +@@ -149,7 +149,7 @@ + cMenuExecLog::cMenuExecLog() { + char * buf=NULL; + for (cExecLogLine *line = ExecLog.First(); line; line = ExecLog.Next(line)) { +- asprintf(&buf, line->Text()); ++ (0 < asprintf(&buf, line->Text())); + AddText(buf); + free(buf); + } +@@ -239,7 +239,7 @@ + + void cMenuExecTimerItem::Set(void) { + char *buffer = NULL; +- asprintf(&buffer, "%c\t%s\t%s\t%s\t%s", ++ (0 < asprintf(&buffer, "%c\t%s\t%s\t%s\t%s", + ! et->isActive()?' ':et->isRunning()?'#':'>', + *et->PrintWeekdays(), + *et->PrintTime(), +@@ -247,7 +247,7 @@ + (et->Flags() & ET_SHUTDOWN)?"shutdown": + (et->Flags() & ET_MESSAGE)?"message": + (et->Flags() & ET_WARNING)?"warning":"unknown", +- *et->Command()); ++ *et->Command())); + SetText(buffer, false); + } + diff --git a/media-plugins/vdr-exec/metadata.xml b/media-plugins/vdr-exec/metadata.xml new file mode 100644 index 000000000000..27f419c289c3 --- /dev/null +++ b/media-plugins/vdr-exec/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> +<email>vdr@gentoo.org</email> +<name>Gentoo VDR Project</name> +</maintainer> +</pkgmetadata> diff --git a/media-plugins/vdr-exec/vdr-exec-0.0.3.ebuild b/media-plugins/vdr-exec/vdr-exec-0.0.3.ebuild new file mode 100644 index 000000000000..b975996f850d --- /dev/null +++ b/media-plugins/vdr-exec/vdr-exec-0.0.3.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit vdr-plugin-2 + +DESCRIPTION="VDR plugin: Exec commands like timers at defined times" +HOMEPAGE="http://wirbel.htpc-forum.de/exec/index2.html" +SRC_URI="http://wirbel.htpc-forum.de/exec/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND=">=media-video/vdr-1.6.0" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}/${P}_compile-warnings.diff" ) |