1 |
commit: 99d096c75cc5a13e96a8a3438df6fd93412ce06a |
2 |
Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 2 21:32:11 2018 +0000 |
4 |
Commit: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 2 21:32:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99d096c7 |
7 |
|
8 |
media-video/vdr: cleanup old |
9 |
|
10 |
Package-Manager: Portage-2.3.48, Repoman-2.3.10 |
11 |
|
12 |
media-video/vdr/Manifest | 3 - |
13 |
media-video/vdr/files/vdr-2.0.6_gentoo.patch | 68 ---- |
14 |
.../vdr/files/vdr-2.0.7_systemd_argsdir.patch | 438 --------------------- |
15 |
.../files/vdr-2.0.7_systemd_argsdir_vanilla.patch | 438 --------------------- |
16 |
media-video/vdr/metadata.xml | 9 - |
17 |
media-video/vdr/vdr-2.0.6-r1.ebuild | 277 ------------- |
18 |
media-video/vdr/vdr-2.0.7.ebuild | 288 -------------- |
19 |
7 files changed, 1521 deletions(-) |
20 |
|
21 |
diff --git a/media-video/vdr/Manifest b/media-video/vdr/Manifest |
22 |
index 671820be372..dac0f69a4e8 100644 |
23 |
--- a/media-video/vdr/Manifest |
24 |
+++ b/media-video/vdr/Manifest |
25 |
@@ -1,5 +1,2 @@ |
26 |
-DIST extpng-vdr-2.0.6-gentoo-edition-v6.patch.bz2 69472 BLAKE2B 60669e9c20b2bd573eb05733bbf9548d2e643b36693be8b15a377b38470708a71b29e2a16baf7ed378132265f814ec9d35dae749ccf6ae204cd9beb787dc8f57 SHA512 f4ecb786ec5a026fa75fcf539518e80273bf43fc325c13a380c70eb85351910efa991b3ee71ca477e597bc2b4598a18620b6cf00fc02714acfcc4e6112d84b6c |
27 |
DIST extpng-vdr-2.2.0-gentoo-edition-v1.patch.bz2 34664 BLAKE2B 81b68ebe0ef4588c3676f0b7a2c766d8d4d4f754a987b3be5868f3c6eff9158d4cea8e492ca81df535e637dbdc5baff638d1fafb4163e9d9a2d0125aba17e2e1 SHA512 16d6fbb8201f003dfe653b6a49424b794d7e697e27ad6f2383dbe17b76712ea5a3da88a676900b84d75ff7425bf3eb9084d60a89a4598758f482dc1f013f7b3e |
28 |
-DIST vdr-2.0.6.tar.bz2 839575 BLAKE2B 40de46d8465b7008bc29c7e2c1c241d4114aa3d62aa6a0acd81636133c295cd87c2fc618e725885c98f47445220e897c23188373457a96b51cf832ca417c9842 SHA512 070ebbfb85478887088567872a71744305dbf9c75de8b095a8fe46d883b0b4fe140539caeb2243715f42793a45790a127542655f549f7ea3cb71c4f9912fa07d |
29 |
-DIST vdr-2.0.7.tar.bz2 841511 BLAKE2B bde06dd038ea2ebfa8768742c02bc7046448ade29032a90130f721af1c4c5d2301ff52065a04c51b31f14250d8ae252d796d93e3012ea1057f2359b1ef9c327c SHA512 cba35f62162cd681179872915023890f492e95cc94d65aadd3cb4d03d7e3c7e2f197e7f35149cdf872169af35c2b841e1042e054f28164860b7cea8367793ce0 |
30 |
DIST vdr-2.2.0.tar.bz2 922708 BLAKE2B 975e07d6d4c5bd13ee92be5d6a1826d6404b0c59e20fa2e30689b185a61e02d54782ad528e6a4f15e0d36806b30bcf48aa336d63adb3604e78056ff318e0fd2c SHA512 183f58133915c6c0fe8ec2b88becbcb2a36418210e6dcf7931053d3771d727c3581593f9eb5c9693abf39e22e728f7b41c42079cd704610c3636ec05134ea93d |
31 |
|
32 |
diff --git a/media-video/vdr/files/vdr-2.0.6_gentoo.patch b/media-video/vdr/files/vdr-2.0.6_gentoo.patch |
33 |
deleted file mode 100644 |
34 |
index 1641fc8e2ee..00000000000 |
35 |
--- a/media-video/vdr/files/vdr-2.0.6_gentoo.patch |
36 |
+++ /dev/null |
37 |
@@ -1,68 +0,0 @@ |
38 |
-diff -Naur vdr-2.0.6.orig/Makefile vdr-2.0.6/Makefile |
39 |
---- vdr-2.0.6.orig/Makefile 2014-09-22 22:17:23.000000000 +0200 |
40 |
-+++ vdr-2.0.6/Makefile 2014-09-24 15:22:43.000000000 +0200 |
41 |
-@@ -109,7 +109,7 @@ |
42 |
- VDRVERSION = $(shell sed -ne '/define VDRVERSION/s/^.*"\(.*\)".*$$/\1/p' config.h) |
43 |
- APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' config.h) |
44 |
- |
45 |
--all: vdr i18n plugins |
46 |
-+all: vdr i18n |
47 |
- |
48 |
- # Implicit rules: |
49 |
- |
50 |
-@@ -162,7 +162,7 @@ |
51 |
- |
52 |
- PODIR = po |
53 |
- LOCALEDIR = locale |
54 |
--I18Npo = $(wildcard $(PODIR)/*.po) |
55 |
-+I18Npo = $(foreach dir,$(LINGUAS),$(wildcard $(PODIR)/$(dir)*.po)) |
56 |
- I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file)))) |
57 |
- I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr.mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) |
58 |
- I18Npot = $(PODIR)/vdr.pot |
59 |
-@@ -185,7 +185,7 @@ |
60 |
- |
61 |
- install-i18n: i18n |
62 |
- @mkdir -p $(DESTDIR)$(LOCDIR) |
63 |
-- cp -r $(LOCALEDIR)/* $(DESTDIR)$(LOCDIR) |
64 |
-+ @(cd $(LOCALEDIR); for linguas in $(LINGUAS); do [ "$$linguas" = "en" ] && continue; cp -r --parents $$linguas* $(DESTDIR)$(LOCDIR); done) |
65 |
- |
66 |
- # The 'include' directory (for plugins): |
67 |
- |
68 |
-@@ -247,7 +247,7 @@ |
69 |
- |
70 |
- # Install the files (note that 'install-pc' must be first!): |
71 |
- |
72 |
--install: install-pc install-bin install-dirs install-conf install-doc install-plugins install-i18n install-includes |
73 |
-+install: install-pc install-bin install-dirs install-conf install-doc install-i18n install-includes |
74 |
- |
75 |
- # VDR binary: |
76 |
- |
77 |
-@@ -259,11 +259,12 @@ |
78 |
- |
79 |
- install-dirs: |
80 |
- @mkdir -p $(DESTDIR)$(VIDEODIR) |
81 |
-- @mkdir -p $(DESTDIR)$(CONFDIR) |
82 |
-- @mkdir -p $(DESTDIR)$(CACHEDIR) |
83 |
-+# @mkdir -p $(DESTDIR)$(CONFDIR) |
84 |
-+# @mkdir -p $(DESTDIR)$(CACHEDIR) |
85 |
- @mkdir -p $(DESTDIR)$(RESDIR) |
86 |
- |
87 |
- install-conf: |
88 |
-+ @mkdir -p $(DESTDIR)$(CONFDIR) |
89 |
- @cp -pn *.conf $(DESTDIR)$(CONFDIR) |
90 |
- |
91 |
- # Documentation: |
92 |
-@@ -290,8 +291,11 @@ |
93 |
- # Includes: |
94 |
- |
95 |
- install-includes: include-dir |
96 |
-- @mkdir -p $(DESTDIR)$(INCDIR) |
97 |
-- @cp -pLR include/vdr include/libsi $(DESTDIR)$(INCDIR) |
98 |
-+# @mkdir -p $(DESTDIR)$(INCDIR) |
99 |
-+# @cp -pLR include/vdr include/libsi $(DESTDIR)$(INCDIR) |
100 |
-+ @mkdir -p $(DESTDIR)$(INCDIR)/vdr $(DESTDIR)$(INCDIR)/vdr/libsi |
101 |
-+ @cp -pLR include/vdr $(DESTDIR)$(INCDIR) |
102 |
-+ @cp -pLR include/libsi Make.config $(DESTDIR)$(INCDIR)/vdr |
103 |
- |
104 |
- # pkg-config file: |
105 |
- |
106 |
|
107 |
diff --git a/media-video/vdr/files/vdr-2.0.7_systemd_argsdir.patch b/media-video/vdr/files/vdr-2.0.7_systemd_argsdir.patch |
108 |
deleted file mode 100644 |
109 |
index de9f4b90163..00000000000 |
110 |
--- a/media-video/vdr/files/vdr-2.0.7_systemd_argsdir.patch |
111 |
+++ /dev/null |
112 |
@@ -1,438 +0,0 @@ |
113 |
-diff -Naur vdr-2.0.7.orig/HISTORY vdr-2.0.7/HISTORY |
114 |
---- vdr-2.0.7.orig/HISTORY 2015-01-23 09:16:13.735620000 +0100 |
115 |
-+++ vdr-2.0.7/HISTORY 2015-01-23 09:17:29.038614491 +0100 |
116 |
-@@ -7916,6 +7916,16 @@ |
117 |
- - The APIVERSION has been increased to 2.0.6 due to the changes to pat.h, sdt.h and |
118 |
- the functional modification to cFont::CreateFont(). |
119 |
- |
120 |
-+2015-01-18: Version 2.0.6 + backport of systemd support from versions 2.1.6 and 2.1.7 |
121 |
-+ |
122 |
-+- Added support for systemd (thanks to Christopher Reimer). To activate this you |
123 |
-+ need to add "SDNOTIFY=1" to the 'make' call. |
124 |
-+ |
125 |
-+2015-01-18: Version 2.0.6 + backport of reading command line arguments from files, from version 2.1$ |
126 |
-+ |
127 |
-+- VDR now reads command line options from *.conf files in /etc/vdr/conf.d (thanks |
128 |
-+ to Lars Hanisch). See vdr.1 and vdr.5 for details. |
129 |
-+ |
130 |
- 2015-01-20: Version 2.0.7 |
131 |
- |
132 |
- - Fixed a possible division by zero in frame rate detection. |
133 |
-diff -Naur vdr-2.0.7.orig/Make.config.template vdr-2.0.7/Make.config.template |
134 |
---- vdr-2.0.7.orig/Make.config.template 2015-01-23 09:16:13.736620000 +0100 |
135 |
-+++ vdr-2.0.7/Make.config.template 2015-01-23 09:16:34.199618503 +0100 |
136 |
-@@ -38,6 +38,7 @@ |
137 |
- |
138 |
- #VIDEODIR = /srv/vdr/video |
139 |
- #CONFDIR = /var/lib/vdr |
140 |
-+#ARGSDIR = /etc/vdr/conf.d |
141 |
- #CACHEDIR = /var/cache/vdr |
142 |
- |
143 |
- # Overrides for preset/legacy configurations: |
144 |
-diff -Naur vdr-2.0.7.orig/Makefile vdr-2.0.7/Makefile |
145 |
---- vdr-2.0.7.orig/Makefile 2015-01-23 09:16:13.724620001 +0100 |
146 |
-+++ vdr-2.0.7/Makefile 2015-01-23 09:17:58.588612330 +0100 |
147 |
-@@ -31,6 +31,7 @@ |
148 |
- DESTDIR ?= |
149 |
- VIDEODIR ?= /srv/vdr/video |
150 |
- CONFDIR ?= /var/lib/vdr |
151 |
-+ARGSDIR ?= /etc/vdr/conf.d |
152 |
- CACHEDIR ?= /var/cache/vdr |
153 |
- |
154 |
- PREFIX ?= /usr/local |
155 |
-@@ -66,7 +67,7 @@ |
156 |
- |
157 |
- SILIB = $(LSIDIR)/libsi.a |
158 |
- |
159 |
--OBJS = audio.o channels.o ci.o config.o cutter.o device.o diseqc.o dvbdevice.o dvbci.o\ |
160 |
-+OBJS = args.o audio.o channels.o ci.o config.o cutter.o device.o diseqc.o dvbdevice.o dvbci.o\ |
161 |
- dvbplayer.o dvbspu.o dvbsubtitle.o eit.o eitscan.o epg.o filter.o font.o i18n.o interface.o keys.o\ |
162 |
- lirc.o menu.o menuitems.o nit.o osdbase.o osd.o pat.o player.o plugin.o\ |
163 |
- receiver.o recorder.o recording.o remote.o remux.o ringbuffer.o sdt.o sections.o shutdown.o\ |
164 |
-@@ -111,12 +112,18 @@ |
165 |
- DEFINES += -DBIDI |
166 |
- LIBS += $(shell pkg-config --libs fribidi) |
167 |
- endif |
168 |
-+ifdef SDNOTIFY |
169 |
-+INCLUDES += $(shell pkg-config --cflags libsystemd-daemon) |
170 |
-+DEFINES += -DSDNOTIFY |
171 |
-+LIBS += $(shell pkg-config --libs libsystemd-daemon) |
172 |
-+endif |
173 |
- |
174 |
- LIRC_DEVICE ?= /var/run/lirc/lircd |
175 |
- |
176 |
- DEFINES += -DLIRC_DEVICE=\"$(LIRC_DEVICE)\" |
177 |
- DEFINES += -DVIDEODIR=\"$(VIDEODIR)\" |
178 |
- DEFINES += -DCONFDIR=\"$(CONFDIR)\" |
179 |
-+DEFINES += -DARGSDIR=\"$(ARGSDIR)\" |
180 |
- DEFINES += -DCACHEDIR=\"$(CACHEDIR)\" |
181 |
- DEFINES += -DRESDIR=\"$(RESDIR)\" |
182 |
- DEFINES += -DPLUGINDIR=\"$(LIBDIR)\" |
183 |
-@@ -161,6 +168,7 @@ |
184 |
- @echo "mandir=$(MANDIR)" >> $@ |
185 |
- @echo "configdir=$(CONFDIR)" >> $@ |
186 |
- @echo "videodir=$(VIDEODIR)" >> $@ |
187 |
-+ @echo "argsdir=$(ARGSDIR)" >> $@ |
188 |
- @echo "cachedir=$(CACHEDIR)" >> $@ |
189 |
- @echo "resdir=$(RESDIR)" >> $@ |
190 |
- @echo "libdir=$(LIBDIR)" >> $@ |
191 |
-@@ -278,6 +286,7 @@ |
192 |
- install-dirs: |
193 |
- @mkdir -p $(DESTDIR)$(VIDEODIR) |
194 |
- # @mkdir -p $(DESTDIR)$(CONFDIR) |
195 |
-+ @mkdir -p $(DESTDIR)$(ARGSDIR) |
196 |
- # @mkdir -p $(DESTDIR)$(CACHEDIR) |
197 |
- @mkdir -p $(DESTDIR)$(RESDIR) |
198 |
- |
199 |
-diff -Naur vdr-2.0.7.orig/args.c vdr-2.0.7/args.c |
200 |
---- vdr-2.0.7.orig/args.c 1970-01-01 01:00:00.000000000 +0100 |
201 |
-+++ vdr-2.0.7/args.c 2015-01-23 09:16:34.199618503 +0100 |
202 |
-@@ -0,0 +1,129 @@ |
203 |
-+/* |
204 |
-+ * args.c: Read arguments from files |
205 |
-+ * |
206 |
-+ * See the main source file 'vdr.c' for copyright information and |
207 |
-+ * how to reach the author. |
208 |
-+ * |
209 |
-+ * Original version written by Lars Hanisch <dvb@×××××××××××.de>. |
210 |
-+ * |
211 |
-+ * $Id$ |
212 |
-+ */ |
213 |
-+ |
214 |
-+#include "args.h" |
215 |
-+#include <unistd.h> |
216 |
-+ |
217 |
-+cArgs::cArgs(const char *Argv0) |
218 |
-+{ |
219 |
-+ argv0 = Argv0; |
220 |
-+ argc = 0; |
221 |
-+ argv = NULL; |
222 |
-+} |
223 |
-+ |
224 |
-+cArgs::~cArgs(void) |
225 |
-+{ |
226 |
-+ if (argv != NULL) |
227 |
-+ delete [] argv; |
228 |
-+} |
229 |
-+ |
230 |
-+bool cArgs::AddArg(const char *s) |
231 |
-+{ |
232 |
-+ if (inVdrSection) |
233 |
-+ args.Append(strdup(s)); |
234 |
-+ else if (*lastArg == NULL) |
235 |
-+ return false; |
236 |
-+ else |
237 |
-+ lastArg = cString::sprintf("%s %s", *lastArg, s); |
238 |
-+ return true; |
239 |
-+} |
240 |
-+ |
241 |
-+bool cArgs::ReadDirectory(const char *Directory) |
242 |
-+{ |
243 |
-+ if (argv != NULL) |
244 |
-+ delete [] argv; |
245 |
-+ argc = 0; |
246 |
-+ argv = NULL; |
247 |
-+ args.Clear(); |
248 |
-+ lastArg = NULL; |
249 |
-+ inVdrSection = false; |
250 |
-+ cFileNameList files(Directory, false); |
251 |
-+ if (files.Size() == 0) |
252 |
-+ return false; |
253 |
-+ for (int i = 0; i < files.Size(); i++) { |
254 |
-+ const char *fileName = files.At(i); |
255 |
-+ if (startswith(fileName, ".") || !endswith(fileName, ".conf")) |
256 |
-+ continue; |
257 |
-+ cString fullFileName = AddDirectory(Directory, fileName); |
258 |
-+ struct stat fs; |
259 |
-+ if ((access(*fullFileName, F_OK) != 0) || (stat(*fullFileName, &fs) != 0) || S_ISDIR(fs.st_mode)) |
260 |
-+ continue; |
261 |
-+ bool ok = true; |
262 |
-+ int line = 0; |
263 |
-+ FILE *f = fopen(*fullFileName, "r"); |
264 |
-+ if (f) { |
265 |
-+ char *s; |
266 |
-+ cReadLine ReadLine; |
267 |
-+ while ((s = ReadLine.Read(f)) != NULL) { |
268 |
-+ line++; |
269 |
-+ s = stripspace(skipspace(s)); |
270 |
-+ if (!isempty(s) && (s[0] != '#')) { |
271 |
-+ if (startswith(s, "[") && endswith(s, "]")) { |
272 |
-+ s[strlen(s) - 1] = 0; |
273 |
-+ s++; |
274 |
-+ if (*lastArg) { |
275 |
-+ args.Append(strdup(*lastArg)); |
276 |
-+ lastArg = NULL; |
277 |
-+ } |
278 |
-+ if (strcmp(s, "vdr") == 0) |
279 |
-+ inVdrSection = true; |
280 |
-+ else { |
281 |
-+ inVdrSection = false; |
282 |
-+ lastArg = cString::sprintf("--plugin=%s", s); |
283 |
-+ } |
284 |
-+ } |
285 |
-+ else { |
286 |
-+ if ((strlen(s) > 2) && (s[0] == '-') && (s[1] != '-')) { // short option, split at first space |
287 |
-+ char *p = strchr(s, ' '); |
288 |
-+ if (p == NULL) { |
289 |
-+ ok = AddArg(s); |
290 |
-+ if (!ok) |
291 |
-+ break; |
292 |
-+ } |
293 |
-+ else { |
294 |
-+ *p = 0; |
295 |
-+ p++; |
296 |
-+ ok = AddArg(s); |
297 |
-+ if (!ok) |
298 |
-+ break; |
299 |
-+ ok = AddArg(p); |
300 |
-+ if (!ok) |
301 |
-+ break; |
302 |
-+ } |
303 |
-+ } |
304 |
-+ else { |
305 |
-+ ok = AddArg(s); |
306 |
-+ if (!ok) |
307 |
-+ break; |
308 |
-+ } |
309 |
-+ } |
310 |
-+ } |
311 |
-+ } |
312 |
-+ fclose(f); |
313 |
-+ } |
314 |
-+ if (!ok) { |
315 |
-+ esyslog("ERROR: args file %s, line %d", *fullFileName, line); |
316 |
-+ return false; |
317 |
-+ } |
318 |
-+ } |
319 |
-+ if (*lastArg) { |
320 |
-+ args.Append(strdup(*lastArg)); |
321 |
-+ lastArg = NULL; |
322 |
-+ } |
323 |
-+ argv = new char*[args.Size() + 1]; |
324 |
-+ argv[0] = strdup(*argv0); |
325 |
-+ argc = 1; |
326 |
-+ for (int i = 0; i < args.Size(); i++) { |
327 |
-+ argv[argc] = args.At(i); |
328 |
-+ argc++; |
329 |
-+ } |
330 |
-+ return true; |
331 |
-+} |
332 |
-diff -Naur vdr-2.0.7.orig/args.h vdr-2.0.7/args.h |
333 |
---- vdr-2.0.7.orig/args.h 1970-01-01 01:00:00.000000000 +0100 |
334 |
-+++ vdr-2.0.7/args.h 2015-01-23 09:16:34.199618503 +0100 |
335 |
-@@ -0,0 +1,34 @@ |
336 |
-+/* |
337 |
-+ * args.h: Read arguments from files |
338 |
-+ * |
339 |
-+ * See the main source file 'vdr.c' for copyright information and |
340 |
-+ * how to reach the author. |
341 |
-+ * |
342 |
-+ * Original version written by Lars Hanisch <dvb@×××××××××××.de>. |
343 |
-+ * |
344 |
-+ * $Id$ |
345 |
-+ */ |
346 |
-+ |
347 |
-+#ifndef __ARGS_H |
348 |
-+#define __ARGS_H |
349 |
-+ |
350 |
-+#include "tools.h" |
351 |
-+ |
352 |
-+class cArgs { |
353 |
-+private: |
354 |
-+ cString argv0; |
355 |
-+ cStringList args; |
356 |
-+ cString lastArg; |
357 |
-+ bool inVdrSection; |
358 |
-+ int argc; |
359 |
-+ char **argv; |
360 |
-+ bool AddArg(const char *s); |
361 |
-+public: |
362 |
-+ cArgs(const char *Argv0); |
363 |
-+ ~cArgs(void); |
364 |
-+ bool ReadDirectory(const char *Directory); |
365 |
-+ int GetArgc(void) const { return argc; }; |
366 |
-+ char **GetArgv(void) const { return argv; }; |
367 |
-+ }; |
368 |
-+ |
369 |
-+#endif //__ARGS_H |
370 |
-diff -Naur vdr-2.0.7.orig/interface.c vdr-2.0.7/interface.c |
371 |
---- vdr-2.0.7.orig/interface.c 2015-01-23 09:16:13.725620001 +0100 |
372 |
-+++ vdr-2.0.7/interface.c 2015-01-23 09:16:34.199618503 +0100 |
373 |
-@@ -10,6 +10,9 @@ |
374 |
- #include "interface.h" |
375 |
- #include <ctype.h> |
376 |
- #include <stdlib.h> |
377 |
-+#ifdef SDNOTIFY |
378 |
-+#include <systemd/sd-daemon.h> |
379 |
-+#endif |
380 |
- #include <unistd.h> |
381 |
- #include "i18n.h" |
382 |
- #include "status.h" |
383 |
-@@ -159,6 +162,9 @@ |
384 |
- bool known = Keys.KnowsRemote(Remote->Name()); |
385 |
- dsyslog("remote control %s - %s", Remote->Name(), known ? "keys known" : "learning keys"); |
386 |
- if (!known) { |
387 |
-+#ifdef SDNOTIFY |
388 |
-+ sd_notify(0, "READY=1\nSTATUS=Learning keys..."); |
389 |
-+#endif |
390 |
- cSkinDisplayMenu *DisplayMenu = Skins.Current()->DisplayMenu(); |
391 |
- DisplayMenu->SetMenuCategory(mcUnknown); |
392 |
- char Headline[256]; |
393 |
-diff -Naur vdr-2.0.7.orig/vdr.1 vdr-2.0.7/vdr.1 |
394 |
---- vdr-2.0.7.orig/vdr.1 2015-01-23 09:16:13.730620000 +0100 |
395 |
-+++ vdr-2.0.7/vdr.1 2015-01-23 09:16:34.200618503 +0100 |
396 |
-@@ -178,6 +178,10 @@ |
397 |
- Read resource files from \fIdir\fR |
398 |
- (default is to read them from the config directory). |
399 |
- .TP |
400 |
-+.BI \-\-showargs[= dir ] |
401 |
-+Read command line arguments from \fIdir\fR (default is \fI/etc/vdr/conf.d\fR), |
402 |
-+display them to the console and exit. |
403 |
-+.TP |
404 |
- .BI \-s\ cmd ,\ \-\-shutdown= cmd |
405 |
- Call \fIcmd\fR to shutdown the computer. See the file \fIINSTALL\fR for more |
406 |
- information. |
407 |
-@@ -213,6 +217,10 @@ |
408 |
- .BI \-w\ sec ,\ \-\-watchdog= sec |
409 |
- Activate the watchdog timer with a timeout of \fIsec\fR seconds. |
410 |
- A value of \fB0\fR (default) disables the watchdog. |
411 |
-+.P |
412 |
-+If started without any options, vdr tries to read command line options |
413 |
-+from files named '*.conf' in the directory /etc/vdr/conf.d. Files are |
414 |
-+read in alphabetical order. See vdr(5) for details. |
415 |
- .SH SIGNALS |
416 |
- .TP |
417 |
- .B SIGINT, SIGTERM |
418 |
-diff -Naur vdr-2.0.7.orig/vdr.5 vdr-2.0.7/vdr.5 |
419 |
---- vdr-2.0.7.orig/vdr.5 2015-01-23 09:16:13.732620000 +0100 |
420 |
-+++ vdr-2.0.7/vdr.5 2015-01-23 09:16:34.200618503 +0100 |
421 |
-@@ -895,6 +895,33 @@ |
422 |
- just 16 bit wide. The internal representation in VDR allows for 32 bit to |
423 |
- be used, so that external tools can generate EPG data that is guaranteed |
424 |
- not to collide with the ids of existing data. |
425 |
-+.SS COMMANDLINE OPTIONS |
426 |
-+If started without any options, vdr tries to read any files in the directory |
427 |
-+/etc/vdr/conf.d with names that do not begin with a '.' and that end with '.conf'. |
428 |
-+These files are read in alphabetical order. The format of these files is |
429 |
-+ |
430 |
-+# comment |
431 |
-+.br |
432 |
-+[name] |
433 |
-+.br |
434 |
-+-a |
435 |
-+.br |
436 |
-+-b 123 |
437 |
-+.br |
438 |
-+--long |
439 |
-+.br |
440 |
-+--longarg=123 |
441 |
-+.br |
442 |
-+ |
443 |
-+Any lines that begin with '#' as the first non-whitespace character are considered |
444 |
-+comments and are ignored. |
445 |
-+A command line option file consists of one or more sections, indicated by '[name]', |
446 |
-+where 'name' is either the fixed word 'vdr' (if this section contains options for |
447 |
-+the main VDR program) or the name of the plugin this section applies to. |
448 |
-+Each option must be written on a separate line, including the leading '-' (for |
449 |
-+a short option) or '--' (for a long option). If the option has additional arguments, |
450 |
-+they have to be written on the same line as the option itself, separated from the |
451 |
-+option with a blank (short option) or equal sign (long option). |
452 |
- .SH SEE ALSO |
453 |
- .BR vdr (1) |
454 |
- .SH AUTHOR |
455 |
-diff -Naur vdr-2.0.7.orig/vdr.c vdr-2.0.7/vdr.c |
456 |
---- vdr-2.0.7.orig/vdr.c 2015-01-23 09:16:13.732620000 +0100 |
457 |
-+++ vdr-2.0.7/vdr.c 2015-01-23 09:16:34.200618503 +0100 |
458 |
-@@ -34,8 +34,12 @@ |
459 |
- #include <stdlib.h> |
460 |
- #include <sys/capability.h> |
461 |
- #include <sys/prctl.h> |
462 |
-+#ifdef SDNOTIFY |
463 |
-+#include <systemd/sd-daemon.h> |
464 |
-+#endif |
465 |
- #include <termios.h> |
466 |
- #include <unistd.h> |
467 |
-+#include "args.h" |
468 |
- #include "audio.h" |
469 |
- #include "channels.h" |
470 |
- #include "config.h" |
471 |
-@@ -192,6 +196,7 @@ |
472 |
- #define DEFAULTWATCHDOG 0 // seconds |
473 |
- #define DEFAULTVIDEODIR VIDEODIR |
474 |
- #define DEFAULTCONFDIR dd(CONFDIR, VideoDirectory) |
475 |
-+#define DEFAULTARGSDIR dd(ARGSDIR, "/etc/vdr/conf.d") |
476 |
- #define DEFAULTCACHEDIR dd(CACHEDIR, VideoDirectory) |
477 |
- #define DEFAULTRESDIR dd(RESDIR, ConfigDirectory) |
478 |
- #define DEFAULTPLUGINDIR PLUGINDIR |
479 |
-@@ -229,6 +234,15 @@ |
480 |
- VdrUser = VDR_USER; |
481 |
- #endif |
482 |
- |
483 |
-+ cArgs *Args = NULL; |
484 |
-+ if (argc == 1) { |
485 |
-+ Args = new cArgs(argv[0]); |
486 |
-+ if (Args->ReadDirectory(DEFAULTARGSDIR)) { |
487 |
-+ argc = Args->GetArgc(); |
488 |
-+ argv = Args->GetArgv(); |
489 |
-+ } |
490 |
-+ } |
491 |
-+ |
492 |
- SetVideoDirectory(VideoDirectory); |
493 |
- cPluginManager PluginManager(DEFAULTPLUGINDIR); |
494 |
- |
495 |
-@@ -256,6 +270,7 @@ |
496 |
- { "port", required_argument, NULL, 'p' }, |
497 |
- { "record", required_argument, NULL, 'r' }, |
498 |
- { "resdir", required_argument, NULL, 'r' | 0x100 }, |
499 |
-+ { "showargs", optional_argument, NULL, 's' | 0x200 }, |
500 |
- { "shutdown", required_argument, NULL, 's' }, |
501 |
- { "split", no_argument, NULL, 's' | 0x100 }, |
502 |
- { "terminal", required_argument, NULL, 't' }, |
503 |
-@@ -428,6 +443,19 @@ |
504 |
- case 's' | 0x100: |
505 |
- Setup.SplitEditedFiles = 1; |
506 |
- break; |
507 |
-+ case 's' | 0x200: { |
508 |
-+ const char *ArgsDir = optarg ? optarg : DEFAULTARGSDIR; |
509 |
-+ cArgs Args(argv[0]); |
510 |
-+ if (!Args.ReadDirectory(ArgsDir)) { |
511 |
-+ fprintf(stderr, "vdr: can't read arguments from directory: %s\n", ArgsDir); |
512 |
-+ return 2; |
513 |
-+ } |
514 |
-+ int c = Args.GetArgc(); |
515 |
-+ char **v = Args.GetArgv(); |
516 |
-+ for (int i = 1; i < c; i++) |
517 |
-+ printf("%s\n", v[i]); |
518 |
-+ return 0; |
519 |
-+ } |
520 |
- case 't': Terminal = optarg; |
521 |
- if (access(Terminal, R_OK | W_OK) < 0) { |
522 |
- fprintf(stderr, "vdr: can't access terminal: %s\n", Terminal); |
523 |
-@@ -541,6 +569,8 @@ |
524 |
- " -s CMD, --shutdown=CMD call CMD to shutdown the computer\n" |
525 |
- " --split split edited files at the editing marks (only\n" |
526 |
- " useful in conjunction with --edit)\n" |
527 |
-+ " --showargs[=DIR] print the arguments read from DIR and exit\n" |
528 |
-+ " (default: %s)\n" |
529 |
- " -t TTY, --terminal=TTY controlling tty\n" |
530 |
- " -u USER, --user=USER run as user USER; only applicable if started as\n" |
531 |
- " root\n" |
532 |
-@@ -563,6 +593,7 @@ |
533 |
- DEFAULTLOCDIR, |
534 |
- DEFAULTSVDRPPORT, |
535 |
- DEFAULTRESDIR, |
536 |
-+ DEFAULTARGSDIR, |
537 |
- DEFAULTVIDEODIR, |
538 |
- DEFAULTWATCHDOG |
539 |
- ); |
540 |
-@@ -848,6 +879,10 @@ |
541 |
- alarm(WatchdogTimeout); // Initial watchdog timer start |
542 |
- } |
543 |
- |
544 |
-+#ifdef SDNOTIFY |
545 |
-+ sd_notify(0, "READY=1\nSTATUS=Ready"); |
546 |
-+#endif |
547 |
-+ |
548 |
- // Main program loop: |
549 |
- |
550 |
- #define DELETE_MENU ((IsInfoMenu &= (Menu == NULL)), delete Menu, Menu = NULL) |
551 |
|
552 |
diff --git a/media-video/vdr/files/vdr-2.0.7_systemd_argsdir_vanilla.patch b/media-video/vdr/files/vdr-2.0.7_systemd_argsdir_vanilla.patch |
553 |
deleted file mode 100644 |
554 |
index f7bae16fdd4..00000000000 |
555 |
--- a/media-video/vdr/files/vdr-2.0.7_systemd_argsdir_vanilla.patch |
556 |
+++ /dev/null |
557 |
@@ -1,438 +0,0 @@ |
558 |
-diff -Naur vdr-2.0.7.orig/HISTORY vdr-2.0.7/HISTORY |
559 |
---- vdr-2.0.7.orig/HISTORY 2015-01-23 09:07:52.777656645 +0100 |
560 |
-+++ vdr-2.0.7/HISTORY 2015-01-23 09:09:57.798647500 +0100 |
561 |
-@@ -7916,6 +7916,16 @@ |
562 |
- - The APIVERSION has been increased to 2.0.6 due to the changes to pat.h, sdt.h and |
563 |
- the functional modification to cFont::CreateFont(). |
564 |
- |
565 |
-+2015-01-18: Version 2.0.6 + backport of systemd support from versions 2.1.6 and 2.1.7 |
566 |
-+ |
567 |
-+- Added support for systemd (thanks to Christopher Reimer). To activate this you |
568 |
-+ need to add "SDNOTIFY=1" to the 'make' call. |
569 |
-+ |
570 |
-+2015-01-18: Version 2.0.6 + backport of reading command line arguments from files, from version 2.1$ |
571 |
-+ |
572 |
-+- VDR now reads command line options from *.conf files in /etc/vdr/conf.d (thanks |
573 |
-+ to Lars Hanisch). See vdr.1 and vdr.5 for details. |
574 |
-+ |
575 |
- 2015-01-20: Version 2.0.7 |
576 |
- |
577 |
- - Fixed a possible division by zero in frame rate detection. |
578 |
-diff -Naur vdr-2.0.7.orig/Make.config.template vdr-2.0.7/Make.config.template |
579 |
---- vdr-2.0.7.orig/Make.config.template 2015-01-23 09:07:52.765656646 +0100 |
580 |
-+++ vdr-2.0.7/Make.config.template 2015-01-23 09:08:15.775654963 +0100 |
581 |
-@@ -38,6 +38,7 @@ |
582 |
- |
583 |
- #VIDEODIR = /srv/vdr/video |
584 |
- #CONFDIR = /var/lib/vdr |
585 |
-+#ARGSDIR = /etc/vdr/conf.d |
586 |
- #CACHEDIR = /var/cache/vdr |
587 |
- |
588 |
- # Overrides for preset/legacy configurations: |
589 |
-diff -Naur vdr-2.0.7.orig/Makefile vdr-2.0.7/Makefile |
590 |
---- vdr-2.0.7.orig/Makefile 2015-01-23 09:07:52.778656645 +0100 |
591 |
-+++ vdr-2.0.7/Makefile 2015-01-23 09:11:11.158642134 +0100 |
592 |
-@@ -31,6 +31,7 @@ |
593 |
- DESTDIR ?= |
594 |
- VIDEODIR ?= /srv/vdr/video |
595 |
- CONFDIR ?= /var/lib/vdr |
596 |
-+ARGSDIR ?= /etc/vdr/conf.d |
597 |
- CACHEDIR ?= /var/cache/vdr |
598 |
- |
599 |
- PREFIX ?= /usr/local |
600 |
-@@ -66,7 +67,7 @@ |
601 |
- |
602 |
- SILIB = $(LSIDIR)/libsi.a |
603 |
- |
604 |
--OBJS = audio.o channels.o ci.o config.o cutter.o device.o diseqc.o dvbdevice.o dvbci.o\ |
605 |
-+OBJS = args.o audio.o channels.o ci.o config.o cutter.o device.o diseqc.o dvbdevice.o dvbci.o\ |
606 |
- dvbplayer.o dvbspu.o dvbsubtitle.o eit.o eitscan.o epg.o filter.o font.o i18n.o interface.o keys.o\ |
607 |
- lirc.o menu.o menuitems.o nit.o osdbase.o osd.o pat.o player.o plugin.o\ |
608 |
- receiver.o recorder.o recording.o remote.o remux.o ringbuffer.o sdt.o sections.o shutdown.o\ |
609 |
-@@ -93,12 +94,18 @@ |
610 |
- DEFINES += -DBIDI |
611 |
- LIBS += $(shell pkg-config --libs fribidi) |
612 |
- endif |
613 |
-+ifdef SDNOTIFY |
614 |
-+INCLUDES += $(shell pkg-config --cflags libsystemd-daemon) |
615 |
-+DEFINES += -DSDNOTIFY |
616 |
-+LIBS += $(shell pkg-config --libs libsystemd-daemon) |
617 |
-+endif |
618 |
- |
619 |
- LIRC_DEVICE ?= /var/run/lirc/lircd |
620 |
- |
621 |
- DEFINES += -DLIRC_DEVICE=\"$(LIRC_DEVICE)\" |
622 |
- DEFINES += -DVIDEODIR=\"$(VIDEODIR)\" |
623 |
- DEFINES += -DCONFDIR=\"$(CONFDIR)\" |
624 |
-+DEFINES += -DARGSDIR=\"$(ARGSDIR)\" |
625 |
- DEFINES += -DCACHEDIR=\"$(CACHEDIR)\" |
626 |
- DEFINES += -DRESDIR=\"$(RESDIR)\" |
627 |
- DEFINES += -DPLUGINDIR=\"$(LIBDIR)\" |
628 |
-@@ -143,6 +150,7 @@ |
629 |
- @echo "mandir=$(MANDIR)" >> $@ |
630 |
- @echo "configdir=$(CONFDIR)" >> $@ |
631 |
- @echo "videodir=$(VIDEODIR)" >> $@ |
632 |
-+ @echo "argsdir=$(ARGSDIR)" >> $@ |
633 |
- @echo "cachedir=$(CACHEDIR)" >> $@ |
634 |
- @echo "resdir=$(RESDIR)" >> $@ |
635 |
- @echo "libdir=$(LIBDIR)" >> $@ |
636 |
-@@ -260,6 +268,7 @@ |
637 |
- install-dirs: |
638 |
- @mkdir -p $(DESTDIR)$(VIDEODIR) |
639 |
- # @mkdir -p $(DESTDIR)$(CONFDIR) |
640 |
-+ @mkdir -p $(DESTDIR)$(ARGSDIR) |
641 |
- # @mkdir -p $(DESTDIR)$(CACHEDIR) |
642 |
- @mkdir -p $(DESTDIR)$(RESDIR) |
643 |
- |
644 |
-diff -Naur vdr-2.0.7.orig/args.c vdr-2.0.7/args.c |
645 |
---- vdr-2.0.7.orig/args.c 1970-01-01 01:00:00.000000000 +0100 |
646 |
-+++ vdr-2.0.7/args.c 2015-01-23 09:08:15.775654963 +0100 |
647 |
-@@ -0,0 +1,129 @@ |
648 |
-+/* |
649 |
-+ * args.c: Read arguments from files |
650 |
-+ * |
651 |
-+ * See the main source file 'vdr.c' for copyright information and |
652 |
-+ * how to reach the author. |
653 |
-+ * |
654 |
-+ * Original version written by Lars Hanisch <dvb@×××××××××××.de>. |
655 |
-+ * |
656 |
-+ * $Id$ |
657 |
-+ */ |
658 |
-+ |
659 |
-+#include "args.h" |
660 |
-+#include <unistd.h> |
661 |
-+ |
662 |
-+cArgs::cArgs(const char *Argv0) |
663 |
-+{ |
664 |
-+ argv0 = Argv0; |
665 |
-+ argc = 0; |
666 |
-+ argv = NULL; |
667 |
-+} |
668 |
-+ |
669 |
-+cArgs::~cArgs(void) |
670 |
-+{ |
671 |
-+ if (argv != NULL) |
672 |
-+ delete [] argv; |
673 |
-+} |
674 |
-+ |
675 |
-+bool cArgs::AddArg(const char *s) |
676 |
-+{ |
677 |
-+ if (inVdrSection) |
678 |
-+ args.Append(strdup(s)); |
679 |
-+ else if (*lastArg == NULL) |
680 |
-+ return false; |
681 |
-+ else |
682 |
-+ lastArg = cString::sprintf("%s %s", *lastArg, s); |
683 |
-+ return true; |
684 |
-+} |
685 |
-+ |
686 |
-+bool cArgs::ReadDirectory(const char *Directory) |
687 |
-+{ |
688 |
-+ if (argv != NULL) |
689 |
-+ delete [] argv; |
690 |
-+ argc = 0; |
691 |
-+ argv = NULL; |
692 |
-+ args.Clear(); |
693 |
-+ lastArg = NULL; |
694 |
-+ inVdrSection = false; |
695 |
-+ cFileNameList files(Directory, false); |
696 |
-+ if (files.Size() == 0) |
697 |
-+ return false; |
698 |
-+ for (int i = 0; i < files.Size(); i++) { |
699 |
-+ const char *fileName = files.At(i); |
700 |
-+ if (startswith(fileName, ".") || !endswith(fileName, ".conf")) |
701 |
-+ continue; |
702 |
-+ cString fullFileName = AddDirectory(Directory, fileName); |
703 |
-+ struct stat fs; |
704 |
-+ if ((access(*fullFileName, F_OK) != 0) || (stat(*fullFileName, &fs) != 0) || S_ISDIR(fs.st_mode)) |
705 |
-+ continue; |
706 |
-+ bool ok = true; |
707 |
-+ int line = 0; |
708 |
-+ FILE *f = fopen(*fullFileName, "r"); |
709 |
-+ if (f) { |
710 |
-+ char *s; |
711 |
-+ cReadLine ReadLine; |
712 |
-+ while ((s = ReadLine.Read(f)) != NULL) { |
713 |
-+ line++; |
714 |
-+ s = stripspace(skipspace(s)); |
715 |
-+ if (!isempty(s) && (s[0] != '#')) { |
716 |
-+ if (startswith(s, "[") && endswith(s, "]")) { |
717 |
-+ s[strlen(s) - 1] = 0; |
718 |
-+ s++; |
719 |
-+ if (*lastArg) { |
720 |
-+ args.Append(strdup(*lastArg)); |
721 |
-+ lastArg = NULL; |
722 |
-+ } |
723 |
-+ if (strcmp(s, "vdr") == 0) |
724 |
-+ inVdrSection = true; |
725 |
-+ else { |
726 |
-+ inVdrSection = false; |
727 |
-+ lastArg = cString::sprintf("--plugin=%s", s); |
728 |
-+ } |
729 |
-+ } |
730 |
-+ else { |
731 |
-+ if ((strlen(s) > 2) && (s[0] == '-') && (s[1] != '-')) { // short option, split at first space |
732 |
-+ char *p = strchr(s, ' '); |
733 |
-+ if (p == NULL) { |
734 |
-+ ok = AddArg(s); |
735 |
-+ if (!ok) |
736 |
-+ break; |
737 |
-+ } |
738 |
-+ else { |
739 |
-+ *p = 0; |
740 |
-+ p++; |
741 |
-+ ok = AddArg(s); |
742 |
-+ if (!ok) |
743 |
-+ break; |
744 |
-+ ok = AddArg(p); |
745 |
-+ if (!ok) |
746 |
-+ break; |
747 |
-+ } |
748 |
-+ } |
749 |
-+ else { |
750 |
-+ ok = AddArg(s); |
751 |
-+ if (!ok) |
752 |
-+ break; |
753 |
-+ } |
754 |
-+ } |
755 |
-+ } |
756 |
-+ } |
757 |
-+ fclose(f); |
758 |
-+ } |
759 |
-+ if (!ok) { |
760 |
-+ esyslog("ERROR: args file %s, line %d", *fullFileName, line); |
761 |
-+ return false; |
762 |
-+ } |
763 |
-+ } |
764 |
-+ if (*lastArg) { |
765 |
-+ args.Append(strdup(*lastArg)); |
766 |
-+ lastArg = NULL; |
767 |
-+ } |
768 |
-+ argv = new char*[args.Size() + 1]; |
769 |
-+ argv[0] = strdup(*argv0); |
770 |
-+ argc = 1; |
771 |
-+ for (int i = 0; i < args.Size(); i++) { |
772 |
-+ argv[argc] = args.At(i); |
773 |
-+ argc++; |
774 |
-+ } |
775 |
-+ return true; |
776 |
-+} |
777 |
-diff -Naur vdr-2.0.7.orig/args.h vdr-2.0.7/args.h |
778 |
---- vdr-2.0.7.orig/args.h 1970-01-01 01:00:00.000000000 +0100 |
779 |
-+++ vdr-2.0.7/args.h 2015-01-23 09:08:15.775654963 +0100 |
780 |
-@@ -0,0 +1,34 @@ |
781 |
-+/* |
782 |
-+ * args.h: Read arguments from files |
783 |
-+ * |
784 |
-+ * See the main source file 'vdr.c' for copyright information and |
785 |
-+ * how to reach the author. |
786 |
-+ * |
787 |
-+ * Original version written by Lars Hanisch <dvb@×××××××××××.de>. |
788 |
-+ * |
789 |
-+ * $Id$ |
790 |
-+ */ |
791 |
-+ |
792 |
-+#ifndef __ARGS_H |
793 |
-+#define __ARGS_H |
794 |
-+ |
795 |
-+#include "tools.h" |
796 |
-+ |
797 |
-+class cArgs { |
798 |
-+private: |
799 |
-+ cString argv0; |
800 |
-+ cStringList args; |
801 |
-+ cString lastArg; |
802 |
-+ bool inVdrSection; |
803 |
-+ int argc; |
804 |
-+ char **argv; |
805 |
-+ bool AddArg(const char *s); |
806 |
-+public: |
807 |
-+ cArgs(const char *Argv0); |
808 |
-+ ~cArgs(void); |
809 |
-+ bool ReadDirectory(const char *Directory); |
810 |
-+ int GetArgc(void) const { return argc; }; |
811 |
-+ char **GetArgv(void) const { return argv; }; |
812 |
-+ }; |
813 |
-+ |
814 |
-+#endif //__ARGS_H |
815 |
-diff -Naur vdr-2.0.7.orig/interface.c vdr-2.0.7/interface.c |
816 |
---- vdr-2.0.7.orig/interface.c 2015-01-23 09:07:52.765656646 +0100 |
817 |
-+++ vdr-2.0.7/interface.c 2015-01-23 09:08:15.775654963 +0100 |
818 |
-@@ -10,6 +10,9 @@ |
819 |
- #include "interface.h" |
820 |
- #include <ctype.h> |
821 |
- #include <stdlib.h> |
822 |
-+#ifdef SDNOTIFY |
823 |
-+#include <systemd/sd-daemon.h> |
824 |
-+#endif |
825 |
- #include <unistd.h> |
826 |
- #include "i18n.h" |
827 |
- #include "status.h" |
828 |
-@@ -159,6 +162,9 @@ |
829 |
- bool known = Keys.KnowsRemote(Remote->Name()); |
830 |
- dsyslog("remote control %s - %s", Remote->Name(), known ? "keys known" : "learning keys"); |
831 |
- if (!known) { |
832 |
-+#ifdef SDNOTIFY |
833 |
-+ sd_notify(0, "READY=1\nSTATUS=Learning keys..."); |
834 |
-+#endif |
835 |
- cSkinDisplayMenu *DisplayMenu = Skins.Current()->DisplayMenu(); |
836 |
- DisplayMenu->SetMenuCategory(mcUnknown); |
837 |
- char Headline[256]; |
838 |
-diff -Naur vdr-2.0.7.orig/vdr.1 vdr-2.0.7/vdr.1 |
839 |
---- vdr-2.0.7.orig/vdr.1 2015-01-23 09:07:52.770656646 +0100 |
840 |
-+++ vdr-2.0.7/vdr.1 2015-01-23 09:08:15.776654963 +0100 |
841 |
-@@ -178,6 +178,10 @@ |
842 |
- Read resource files from \fIdir\fR |
843 |
- (default is to read them from the config directory). |
844 |
- .TP |
845 |
-+.BI \-\-showargs[= dir ] |
846 |
-+Read command line arguments from \fIdir\fR (default is \fI/etc/vdr/conf.d\fR), |
847 |
-+display them to the console and exit. |
848 |
-+.TP |
849 |
- .BI \-s\ cmd ,\ \-\-shutdown= cmd |
850 |
- Call \fIcmd\fR to shutdown the computer. See the file \fIINSTALL\fR for more |
851 |
- information. |
852 |
-@@ -213,6 +217,10 @@ |
853 |
- .BI \-w\ sec ,\ \-\-watchdog= sec |
854 |
- Activate the watchdog timer with a timeout of \fIsec\fR seconds. |
855 |
- A value of \fB0\fR (default) disables the watchdog. |
856 |
-+.P |
857 |
-+If started without any options, vdr tries to read command line options |
858 |
-+from files named '*.conf' in the directory /etc/vdr/conf.d. Files are |
859 |
-+read in alphabetical order. See vdr(5) for details. |
860 |
- .SH SIGNALS |
861 |
- .TP |
862 |
- .B SIGINT, SIGTERM |
863 |
-diff -Naur vdr-2.0.7.orig/vdr.5 vdr-2.0.7/vdr.5 |
864 |
---- vdr-2.0.7.orig/vdr.5 2015-01-23 09:07:52.772656646 +0100 |
865 |
-+++ vdr-2.0.7/vdr.5 2015-01-23 09:08:15.776654963 +0100 |
866 |
-@@ -889,6 +889,33 @@ |
867 |
- just 16 bit wide. The internal representation in VDR allows for 32 bit to |
868 |
- be used, so that external tools can generate EPG data that is guaranteed |
869 |
- not to collide with the ids of existing data. |
870 |
-+.SS COMMANDLINE OPTIONS |
871 |
-+If started without any options, vdr tries to read any files in the directory |
872 |
-+/etc/vdr/conf.d with names that do not begin with a '.' and that end with '.conf'. |
873 |
-+These files are read in alphabetical order. The format of these files is |
874 |
-+ |
875 |
-+# comment |
876 |
-+.br |
877 |
-+[name] |
878 |
-+.br |
879 |
-+-a |
880 |
-+.br |
881 |
-+-b 123 |
882 |
-+.br |
883 |
-+--long |
884 |
-+.br |
885 |
-+--longarg=123 |
886 |
-+.br |
887 |
-+ |
888 |
-+Any lines that begin with '#' as the first non-whitespace character are considered |
889 |
-+comments and are ignored. |
890 |
-+A command line option file consists of one or more sections, indicated by '[name]', |
891 |
-+where 'name' is either the fixed word 'vdr' (if this section contains options for |
892 |
-+the main VDR program) or the name of the plugin this section applies to. |
893 |
-+Each option must be written on a separate line, including the leading '-' (for |
894 |
-+a short option) or '--' (for a long option). If the option has additional arguments, |
895 |
-+they have to be written on the same line as the option itself, separated from the |
896 |
-+option with a blank (short option) or equal sign (long option). |
897 |
- .SH SEE ALSO |
898 |
- .BR vdr (1) |
899 |
- .SH AUTHOR |
900 |
-diff -Naur vdr-2.0.7.orig/vdr.c vdr-2.0.7/vdr.c |
901 |
---- vdr-2.0.7.orig/vdr.c 2015-01-23 09:07:52.772656646 +0100 |
902 |
-+++ vdr-2.0.7/vdr.c 2015-01-23 09:08:15.776654963 +0100 |
903 |
-@@ -34,8 +34,12 @@ |
904 |
- #include <stdlib.h> |
905 |
- #include <sys/capability.h> |
906 |
- #include <sys/prctl.h> |
907 |
-+#ifdef SDNOTIFY |
908 |
-+#include <systemd/sd-daemon.h> |
909 |
-+#endif |
910 |
- #include <termios.h> |
911 |
- #include <unistd.h> |
912 |
-+#include "args.h" |
913 |
- #include "audio.h" |
914 |
- #include "channels.h" |
915 |
- #include "config.h" |
916 |
-@@ -186,6 +190,7 @@ |
917 |
- #define DEFAULTWATCHDOG 0 // seconds |
918 |
- #define DEFAULTVIDEODIR VIDEODIR |
919 |
- #define DEFAULTCONFDIR dd(CONFDIR, VideoDirectory) |
920 |
-+#define DEFAULTARGSDIR dd(ARGSDIR, "/etc/vdr/conf.d") |
921 |
- #define DEFAULTCACHEDIR dd(CACHEDIR, VideoDirectory) |
922 |
- #define DEFAULTRESDIR dd(RESDIR, ConfigDirectory) |
923 |
- #define DEFAULTPLUGINDIR PLUGINDIR |
924 |
-@@ -223,6 +228,15 @@ |
925 |
- VdrUser = VDR_USER; |
926 |
- #endif |
927 |
- |
928 |
-+ cArgs *Args = NULL; |
929 |
-+ if (argc == 1) { |
930 |
-+ Args = new cArgs(argv[0]); |
931 |
-+ if (Args->ReadDirectory(DEFAULTARGSDIR)) { |
932 |
-+ argc = Args->GetArgc(); |
933 |
-+ argv = Args->GetArgv(); |
934 |
-+ } |
935 |
-+ } |
936 |
-+ |
937 |
- SetVideoDirectory(VideoDirectory); |
938 |
- cPluginManager PluginManager(DEFAULTPLUGINDIR); |
939 |
- |
940 |
-@@ -250,6 +264,7 @@ |
941 |
- { "port", required_argument, NULL, 'p' }, |
942 |
- { "record", required_argument, NULL, 'r' }, |
943 |
- { "resdir", required_argument, NULL, 'r' | 0x100 }, |
944 |
-+ { "showargs", optional_argument, NULL, 's' | 0x200 }, |
945 |
- { "shutdown", required_argument, NULL, 's' }, |
946 |
- { "split", no_argument, NULL, 's' | 0x100 }, |
947 |
- { "terminal", required_argument, NULL, 't' }, |
948 |
-@@ -422,6 +437,19 @@ |
949 |
- case 's' | 0x100: |
950 |
- Setup.SplitEditedFiles = 1; |
951 |
- break; |
952 |
-+ case 's' | 0x200: { |
953 |
-+ const char *ArgsDir = optarg ? optarg : DEFAULTARGSDIR; |
954 |
-+ cArgs Args(argv[0]); |
955 |
-+ if (!Args.ReadDirectory(ArgsDir)) { |
956 |
-+ fprintf(stderr, "vdr: can't read arguments from directory: %s\n", ArgsDir); |
957 |
-+ return 2; |
958 |
-+ } |
959 |
-+ int c = Args.GetArgc(); |
960 |
-+ char **v = Args.GetArgv(); |
961 |
-+ for (int i = 1; i < c; i++) |
962 |
-+ printf("%s\n", v[i]); |
963 |
-+ return 0; |
964 |
-+ } |
965 |
- case 't': Terminal = optarg; |
966 |
- if (access(Terminal, R_OK | W_OK) < 0) { |
967 |
- fprintf(stderr, "vdr: can't access terminal: %s\n", Terminal); |
968 |
-@@ -535,6 +563,8 @@ |
969 |
- " -s CMD, --shutdown=CMD call CMD to shutdown the computer\n" |
970 |
- " --split split edited files at the editing marks (only\n" |
971 |
- " useful in conjunction with --edit)\n" |
972 |
-+ " --showargs[=DIR] print the arguments read from DIR and exit\n" |
973 |
-+ " (default: %s)\n" |
974 |
- " -t TTY, --terminal=TTY controlling tty\n" |
975 |
- " -u USER, --user=USER run as user USER; only applicable if started as\n" |
976 |
- " root\n" |
977 |
-@@ -557,6 +587,7 @@ |
978 |
- DEFAULTLOCDIR, |
979 |
- DEFAULTSVDRPPORT, |
980 |
- DEFAULTRESDIR, |
981 |
-+ DEFAULTARGSDIR, |
982 |
- DEFAULTVIDEODIR, |
983 |
- DEFAULTWATCHDOG |
984 |
- ); |
985 |
-@@ -837,6 +868,10 @@ |
986 |
- alarm(WatchdogTimeout); // Initial watchdog timer start |
987 |
- } |
988 |
- |
989 |
-+#ifdef SDNOTIFY |
990 |
-+ sd_notify(0, "READY=1\nSTATUS=Ready"); |
991 |
-+#endif |
992 |
-+ |
993 |
- // Main program loop: |
994 |
- |
995 |
- #define DELETE_MENU ((IsInfoMenu &= (Menu == NULL)), delete Menu, Menu = NULL) |
996 |
|
997 |
diff --git a/media-video/vdr/metadata.xml b/media-video/vdr/metadata.xml |
998 |
index 62b1c32b1a8..f9813be524f 100644 |
999 |
--- a/media-video/vdr/metadata.xml |
1000 |
+++ b/media-video/vdr/metadata.xml |
1001 |
@@ -8,25 +8,16 @@ |
1002 |
<use> |
1003 |
<flag name="alternatechannel">Use alternate channel on record</flag> |
1004 |
<flag name="bidi">fribidi support, for languages, written from right to left</flag> |
1005 |
- <flag name="ddepgentry">remove duplicate EPG entries</flag> |
1006 |
- <flag name="dvlvidprefer">controls video-dir choice on recording</flag> |
1007 |
<flag name="graphtft">support for vdr-graphtft plugin up from version 0.1.7</flag> |
1008 |
<flag name="html">Install HTML documentation</flag> |
1009 |
- <flag name="jumpplay">Enables automatic jumping over cut marks while watching a recording</flag> |
1010 |
- <flag name="jumpingseconds">skip seconds in played records</flag> |
1011 |
<flag name="kbd">enable keyboard support as remote device</flag> |
1012 |
<flag name="mainmenuhooks">Allows to replace main menu entries by some special plugins (like epgsearch, extrecmenu, ...)</flag> |
1013 |
<flag name="menuorg">Enables support for the <pkg>media-plugins/vdr-menuorg</pkg></flag> |
1014 |
<flag name="menuselection">adds support for menu hotkeys of double digits</flag> |
1015 |
<flag name="naludump">Removes NALU fill data from h.264-Streams of TS files</flag> |
1016 |
- <flag name="permashift">permanent timeshift by recording live TV on hard disk, need plugin <pkg>media-plugins/vdr-permashift</pkg></flag> |
1017 |
<flag name="permashift_v1">permanent timeshift by recording live TV on RAM, need plugin >=mediaplugins/vdr-permashift-1</flag> |
1018 |
<flag name="pinplugin">Support for <pkg>media-plugins/vdr-pin</pkg></flag> |
1019 |
<flag name="resumereset">rreset resume of EOF</flag> |
1020 |
- <flag name="rotor">Enable support for plugin <pkg>media-plugins/vdr-rotor</pkg> for dish-positioner.</flag> |
1021 |
<flag name="ttxtsubs">support for <pkg>media-plugins/vdr-ttxtsubs</pkg></flag> |
1022 |
- <flag name="vasarajanauloja">replacement for the liemikuutio patch, adds some nice must haves features</flag> |
1023 |
- <flag name="wareagleicon">Replace original icon set in menu</flag> |
1024 |
- <flag name="yaepg">Enables support for the vdr-yaepg plugin</flag> |
1025 |
</use> |
1026 |
</pkgmetadata> |
1027 |
|
1028 |
diff --git a/media-video/vdr/vdr-2.0.6-r1.ebuild b/media-video/vdr/vdr-2.0.6-r1.ebuild |
1029 |
deleted file mode 100644 |
1030 |
index 63de150c12f..00000000000 |
1031 |
--- a/media-video/vdr/vdr-2.0.6-r1.ebuild |
1032 |
+++ /dev/null |
1033 |
@@ -1,277 +0,0 @@ |
1034 |
-# Copyright 1999-2015 Gentoo Foundation |
1035 |
-# Distributed under the terms of the GNU General Public License v2 |
1036 |
- |
1037 |
-EAPI=5 |
1038 |
- |
1039 |
-inherit eutils flag-o-matic multilib toolchain-funcs |
1040 |
- |
1041 |
-# Switches supported by extensions-patch |
1042 |
-EXT_PATCH_FLAGS="alternatechannel ddepgentry dvlvidprefer graphtft |
1043 |
- jumpplay jumpingseconds mainmenuhooks menuorg naludump permashift permashift_v1 |
1044 |
- pinplugin rotor ttxtsubs vasarajanauloja wareagleicon yaepg" |
1045 |
- |
1046 |
-# names of the use-flags |
1047 |
-EXT_PATCH_FLAGS_RENAMED="" |
1048 |
- |
1049 |
-# names ext-patch uses internally, here only used for maintainer checks |
1050 |
-EXT_PATCH_FLAGS_RENAMED_EXT_NAME="" |
1051 |
- |
1052 |
-IUSE="bidi debug html vanilla ${EXT_PATCH_FLAGS} ${EXT_PATCH_FLAGS_RENAMED}" |
1053 |
- |
1054 |
-MY_PV="${PV%_p*}" |
1055 |
-MY_P="${PN}-${MY_PV}" |
1056 |
-S="${WORKDIR}/${MY_P}" |
1057 |
- |
1058 |
-EXT_P="extpng-${P}-gentoo-edition-v6" |
1059 |
- |
1060 |
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB" |
1061 |
-HOMEPAGE="http://www.tvdr.de/" |
1062 |
-SRC_URI="ftp://ftp.tvdr.de/vdr/${MY_P}.tar.bz2 |
1063 |
- https://dev.gentoo.org/~hd_brummy/distfiles/${EXT_P}.patch.bz2" |
1064 |
- |
1065 |
-KEYWORDS="amd64 ~arm ~ppc x86" |
1066 |
-SLOT="0" |
1067 |
-LICENSE="GPL-2" |
1068 |
- |
1069 |
-REQUIRED_USE=" |
1070 |
- permashift? ( !permashift_v1 ) |
1071 |
- permashift_v1? ( !permashift )" |
1072 |
- |
1073 |
-COMMON_DEPEND="virtual/jpeg:* |
1074 |
- sys-libs/libcap |
1075 |
- >=media-libs/fontconfig-2.4.2 |
1076 |
- >=media-libs/freetype-2" |
1077 |
- |
1078 |
-DEPEND="${COMMON_DEPEND} |
1079 |
- >=virtual/linuxtv-dvb-headers-5.3 |
1080 |
- sys-devel/gettext" |
1081 |
- |
1082 |
-RDEPEND="${COMMON_DEPEND} |
1083 |
- dev-lang/perl |
1084 |
- >=media-tv/gentoo-vdr-scripts-2.5_rc1 |
1085 |
- media-fonts/corefonts |
1086 |
- bidi? ( dev-libs/fribidi )" |
1087 |
- |
1088 |
-CONF_DIR=/etc/vdr |
1089 |
-CAP_FILE=${S}/capabilities.sh |
1090 |
-CAPS="# Capabilities of the vdr-executable for use by startscript etc." |
1091 |
- |
1092 |
-pkg_setup() { |
1093 |
- use debug && append-flags -g |
1094 |
- |
1095 |
- PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins" |
1096 |
- |
1097 |
- tc-export CC CXX AR |
1098 |
-} |
1099 |
- |
1100 |
-add_cap() { |
1101 |
- local arg |
1102 |
- for arg; do |
1103 |
- CAPS="${CAPS}\n${arg}=1" |
1104 |
- done |
1105 |
-} |
1106 |
- |
1107 |
-enable_patch() { |
1108 |
- local arg ARG_UPPER |
1109 |
- for arg; do |
1110 |
- ARG_UPPER=$(echo $arg|tr '[:lower:]' '[:upper:]') |
1111 |
- echo "${ARG_UPPER} = 1" >> Make.config |
1112 |
- |
1113 |
- # codesnippet to bring the extpng defines into the vdr.pc CXXFLAGS CFLAGS |
1114 |
- echo "-DUSE_${ARG_UPPER}" >> "${T}"/defines.tmp |
1115 |
- cat "${T}"/defines.tmp | tr \\\012 ' ' > "${T}"/defines.IUSE |
1116 |
- export DEFINES_IUSE=$( cat ${T}/defines.IUSE ) |
1117 |
- done |
1118 |
-} |
1119 |
- |
1120 |
-extensions_add_make_conf() |
1121 |
-{ |
1122 |
- # copy all ifdef for extensions-patch to Make.config |
1123 |
- sed -e '1,/need to touch the following:/d' \ |
1124 |
- -e '/need to touch the following/,/^$/d' \ |
1125 |
- Make.config.template >> Make.config |
1126 |
-} |
1127 |
- |
1128 |
-extensions_all_defines() { |
1129 |
- # extract all possible settings for extensions-patch |
1130 |
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \ |
1131 |
- Make.config.template \ |
1132 |
- | sort \ |
1133 |
- | tr '[:upper:]' '[:lower:]' |
1134 |
-} |
1135 |
- |
1136 |
-lang_po() { |
1137 |
- LING_PO=$( ls ${S}/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' ) |
1138 |
-} |
1139 |
- |
1140 |
-src_prepare() { |
1141 |
- # apply maintainace-patches |
1142 |
- ebegin "Changing paths for gentoo" |
1143 |
- |
1144 |
- local DVBDIR=/usr/include |
1145 |
- local i |
1146 |
- for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do |
1147 |
- [[ -d ${i} ]] || continue |
1148 |
- if [[ -f ${i}/linux/dvb/dmx.h ]]; then |
1149 |
- einfo "Found DVB header files in ${i}" |
1150 |
- DVBDIR=${i} |
1151 |
- break |
1152 |
- fi |
1153 |
- done |
1154 |
- |
1155 |
- # checking for s2api headers |
1156 |
- local api_version |
1157 |
- api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
1158 |
- api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
1159 |
- |
1160 |
- if [[ ${api_version:-0} -lt 5*3 ]]; then |
1161 |
- eerror "DVB header files do not contain s2api support or too old for ${P}" |
1162 |
- eerror "You cannot compile VDR against old dvb-header" |
1163 |
- die "DVB headers too old" |
1164 |
- fi |
1165 |
- |
1166 |
- cat > Make.config <<-EOT |
1167 |
- # |
1168 |
- # Generated by ebuild ${PF} |
1169 |
- # |
1170 |
- PREFIX = /usr |
1171 |
- DVBDIR = ${DVBDIR} |
1172 |
- PLUGINLIBDIR = ${PLUGIN_LIBDIR} |
1173 |
- CONFDIR = ${CONF_DIR} |
1174 |
- VIDEODIR = /var/vdr/video |
1175 |
- LOCDIR = \$(PREFIX)/share/locale |
1176 |
- INCDIR = \$(PREFIX)/include |
1177 |
- |
1178 |
- DEFINES += -DCONFDIR=\"\$(CONFDIR)\" |
1179 |
- INCLUDES += -I\$(DVBDIR) |
1180 |
- |
1181 |
- # >=vdr-1.7.36-r1; parameter only used for compiletime on vdr |
1182 |
- # PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new) |
1183 |
- LIBDIR = ${PLUGIN_LIBDIR} |
1184 |
- PCDIR = /usr/$(get_libdir)/pkgconfig |
1185 |
- EOT |
1186 |
- eend 0 |
1187 |
- |
1188 |
- # support languages, written from right to left |
1189 |
- BUILD_PARAMS+=" BIDI=$(usex bidi 1 0)" |
1190 |
- |
1191 |
- epatch "${FILESDIR}/${PN}-2.0.6_gentoo.patch" |
1192 |
- |
1193 |
- if ! use vanilla; then |
1194 |
- |
1195 |
- # Now apply extensions patch |
1196 |
- epatch "${WORKDIR}/${EXT_P}.patch" |
1197 |
- |
1198 |
- # This allows us to start even if some plugin does not exist |
1199 |
- # or is not loadable. |
1200 |
- enable_patch PLUGINMISSING |
1201 |
- enable_patch CHANNELBIND |
1202 |
- |
1203 |
- if [[ -n ${VDR_MAINTAINER_MODE} ]]; then |
1204 |
- einfo "Doing maintainer checks:" |
1205 |
- |
1206 |
- # we do not support these patches |
1207 |
- # (or have them already hard enabled) |
1208 |
- local IGNORE_PATCHES="pluginmissing channelbind" |
1209 |
- |
1210 |
- extensions_all_defines > "${T}"/new.IUSE |
1211 |
- echo $EXT_PATCH_FLAGS $EXT_PATCH_FLAGS_RENAMED_EXT_NAME \ |
1212 |
- $IGNORE_PATCHES | \ |
1213 |
- tr ' ' '\n' |sort > "${T}"/old.IUSE |
1214 |
- local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]') |
1215 |
- if [[ -z ${DIFFS} ]]; then |
1216 |
- einfo "EXT_PATCH_FLAGS is up to date." |
1217 |
- else |
1218 |
- ewarn "IUSE differences!" |
1219 |
- local diff |
1220 |
- for diff in $DIFFS; do |
1221 |
- ewarn "$diff" |
1222 |
- done |
1223 |
- fi |
1224 |
- fi |
1225 |
- |
1226 |
- ebegin "Enabling selected patches" |
1227 |
- local flag |
1228 |
- for flag in $EXT_PATCH_FLAGS; do |
1229 |
- use $flag && enable_patch ${flag} |
1230 |
- done |
1231 |
- |
1232 |
- eend 0 |
1233 |
- |
1234 |
- extensions_add_make_conf |
1235 |
- |
1236 |
- # add defined use-flags compile options to vdr.pc |
1237 |
- sed -e "s:\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR):\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR) \$(DEFINES_IUSE):" \ |
1238 |
- -i Makefile |
1239 |
- |
1240 |
- ebegin "Make depend" |
1241 |
- emake .dependencies >/dev/null |
1242 |
- eend $? "make depend failed" |
1243 |
- fi |
1244 |
- |
1245 |
- epatch_user |
1246 |
- |
1247 |
- add_cap CAP_UTF8 |
1248 |
- |
1249 |
- add_cap CAP_IRCTRL_RUNTIME_PARAM \ |
1250 |
- CAP_VFAT_RUNTIME_PARAM \ |
1251 |
- CAP_CHUID \ |
1252 |
- CAP_SHUTDOWN_AUTO_RETRY |
1253 |
- |
1254 |
- echo -e ${CAPS} > "${CAP_FILE}" |
1255 |
- |
1256 |
- # LINGUAS support |
1257 |
- einfo "\n \t VDR supports the LINGUAS values" |
1258 |
- |
1259 |
- lang_po |
1260 |
- |
1261 |
- einfo "\t Please set one of this values in your sytem make.conf" |
1262 |
- einfo "\t LINGUAS=\"${LING_PO}\"\n" |
1263 |
- |
1264 |
- if [[ -z ${LINGUAS} ]]; then |
1265 |
- einfo "\n \t No values in LINGUAS=" |
1266 |
- einfo "\t You will get only english text on OSD \n" |
1267 |
- fi |
1268 |
- |
1269 |
- strip-linguas ${LING_PO} en |
1270 |
-} |
1271 |
- |
1272 |
-src_install() { |
1273 |
-# # trick makefile not to create a videodir by supplying it with an existing |
1274 |
-# # directory |
1275 |
- emake \ |
1276 |
- VIDEODIR="/" \ |
1277 |
- DESTDIR="${D}" install || die "emake install failed" |
1278 |
- |
1279 |
- keepdir "${PLUGIN_LIBDIR}" |
1280 |
- |
1281 |
- keepdir "${CONF_DIR}"/plugins |
1282 |
- keepdir "${CONF_DIR}"/themes |
1283 |
- |
1284 |
- if use html; then |
1285 |
- dohtml *.html |
1286 |
- fi |
1287 |
- |
1288 |
- dodoc MANUAL INSTALL README* HISTORY CONTRIBUTORS |
1289 |
- |
1290 |
- insinto /usr/share/vdr |
1291 |
- doins "${CAP_FILE}" |
1292 |
- |
1293 |
- if use alternatechannel; then |
1294 |
- insinto /etc/vdr |
1295 |
- doins "${FILESDIR}"/channel_alternative.conf |
1296 |
- fi |
1297 |
- |
1298 |
- chown -R vdr:vdr "${D}/${CONF_DIR}" |
1299 |
-} |
1300 |
- |
1301 |
-pkg_postinst() { |
1302 |
- elog "It is a good idea to run vdrplugin-rebuild now." |
1303 |
- |
1304 |
- elog "To get nice symbols in OSD we recommend to install" |
1305 |
- elog "\t1. emerge media-fonts/vdrsymbols-ttf" |
1306 |
- elog "\t2. select font VDRSymbolsSans in Setup" |
1307 |
- elog "" |
1308 |
- elog "To get an idea how to proceed now, have a look at our vdr-guide:" |
1309 |
- elog "\thttps://wiki.gentoo.org/wiki/VDR" |
1310 |
-} |
1311 |
|
1312 |
diff --git a/media-video/vdr/vdr-2.0.7.ebuild b/media-video/vdr/vdr-2.0.7.ebuild |
1313 |
deleted file mode 100644 |
1314 |
index f5d9d5ed815..00000000000 |
1315 |
--- a/media-video/vdr/vdr-2.0.7.ebuild |
1316 |
+++ /dev/null |
1317 |
@@ -1,288 +0,0 @@ |
1318 |
-# Copyright 1999-2015 Gentoo Foundation |
1319 |
-# Distributed under the terms of the GNU General Public License v2 |
1320 |
- |
1321 |
-EAPI=5 |
1322 |
- |
1323 |
-inherit eutils flag-o-matic multilib toolchain-funcs |
1324 |
- |
1325 |
-# Switches supported by extensions-patch |
1326 |
-EXT_PATCH_FLAGS="alternatechannel ddepgentry dvlvidprefer graphtft |
1327 |
- jumpplay jumpingseconds mainmenuhooks menuorg naludump permashift permashift_v1 |
1328 |
- pinplugin rotor ttxtsubs vasarajanauloja wareagleicon yaepg" |
1329 |
- |
1330 |
-# names of the use-flags |
1331 |
-EXT_PATCH_FLAGS_RENAMED="" |
1332 |
- |
1333 |
-# names ext-patch uses internally, here only used for maintainer checks |
1334 |
-EXT_PATCH_FLAGS_RENAMED_EXT_NAME="" |
1335 |
- |
1336 |
-IUSE="bidi debug html systemd vanilla ${EXT_PATCH_FLAGS} ${EXT_PATCH_FLAGS_RENAMED}" |
1337 |
- |
1338 |
-MY_PV="${PV%_p*}" |
1339 |
-MY_P="${PN}-${MY_PV}" |
1340 |
-S="${WORKDIR}/${MY_P}" |
1341 |
- |
1342 |
-EXT_P="extpng-${PN}-2.0.6-gentoo-edition-v6" |
1343 |
- |
1344 |
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB" |
1345 |
-HOMEPAGE="http://www.tvdr.de/" |
1346 |
-SRC_URI="ftp://ftp.tvdr.de/vdr/${MY_P}.tar.bz2 |
1347 |
- https://dev.gentoo.org/~hd_brummy/distfiles/${EXT_P}.patch.bz2" |
1348 |
- |
1349 |
-KEYWORDS="~arm ~amd64 ~ppc ~x86" |
1350 |
-SLOT="0" |
1351 |
-LICENSE="GPL-2" |
1352 |
- |
1353 |
-REQUIRED_USE=" |
1354 |
- permashift? ( !permashift_v1 ) |
1355 |
- permashift_v1? ( !permashift )" |
1356 |
- |
1357 |
-COMMON_DEPEND="virtual/jpeg:* |
1358 |
- sys-libs/libcap |
1359 |
- >=media-libs/fontconfig-2.4.2 |
1360 |
- >=media-libs/freetype-2" |
1361 |
- |
1362 |
-DEPEND="${COMMON_DEPEND} |
1363 |
- >=virtual/linuxtv-dvb-headers-5.3 |
1364 |
- sys-devel/gettext" |
1365 |
- |
1366 |
-RDEPEND="${COMMON_DEPEND} |
1367 |
- dev-lang/perl |
1368 |
- >=media-tv/gentoo-vdr-scripts-2.5 |
1369 |
- media-fonts/corefonts |
1370 |
- bidi? ( dev-libs/fribidi ) |
1371 |
- systemd? ( sys-apps/systemd )" |
1372 |
- |
1373 |
-CONF_DIR=/etc/vdr |
1374 |
-CAP_FILE=${S}/capabilities.sh |
1375 |
-CAPS="# Capabilities of the vdr-executable for use by startscript etc." |
1376 |
- |
1377 |
-pkg_setup() { |
1378 |
- use debug && append-flags -g |
1379 |
- |
1380 |
- PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins" |
1381 |
- |
1382 |
- tc-export CC CXX AR |
1383 |
-} |
1384 |
- |
1385 |
-add_cap() { |
1386 |
- local arg |
1387 |
- for arg; do |
1388 |
- CAPS="${CAPS}\n${arg}=1" |
1389 |
- done |
1390 |
-} |
1391 |
- |
1392 |
-enable_patch() { |
1393 |
- local arg ARG_UPPER |
1394 |
- for arg; do |
1395 |
- ARG_UPPER=$(echo $arg|tr '[:lower:]' '[:upper:]') |
1396 |
- echo "${ARG_UPPER} = 1" >> Make.config |
1397 |
- |
1398 |
- # codesnippet to bring the extpng defines into the vdr.pc CXXFLAGS CFLAGS |
1399 |
- echo "-DUSE_${ARG_UPPER}" >> "${T}"/defines.tmp |
1400 |
- cat "${T}"/defines.tmp | tr \\\012 ' ' > "${T}"/defines.IUSE |
1401 |
- export DEFINES_IUSE=$( cat ${T}/defines.IUSE ) |
1402 |
- done |
1403 |
-} |
1404 |
- |
1405 |
-extensions_add_make_conf() |
1406 |
-{ |
1407 |
- # copy all ifdef for extensions-patch to Make.config |
1408 |
- sed -e '1,/need to touch the following:/d' \ |
1409 |
- -e '/need to touch the following/,/^$/d' \ |
1410 |
- Make.config.template >> Make.config |
1411 |
-} |
1412 |
- |
1413 |
-extensions_all_defines() { |
1414 |
- # extract all possible settings for extensions-patch |
1415 |
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \ |
1416 |
- Make.config.template \ |
1417 |
- | sort \ |
1418 |
- | tr '[:upper:]' '[:lower:]' |
1419 |
-} |
1420 |
- |
1421 |
-lang_po() { |
1422 |
- LING_PO=$( ls ${S}/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' ) |
1423 |
-} |
1424 |
- |
1425 |
-src_prepare() { |
1426 |
- # apply maintainace-patches |
1427 |
- ebegin "Changing paths for gentoo" |
1428 |
- |
1429 |
- local DVBDIR=/usr/include |
1430 |
- local i |
1431 |
- for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do |
1432 |
- [[ -d ${i} ]] || continue |
1433 |
- if [[ -f ${i}/linux/dvb/dmx.h ]]; then |
1434 |
- einfo "Found DVB header files in ${i}" |
1435 |
- DVBDIR=${i} |
1436 |
- break |
1437 |
- fi |
1438 |
- done |
1439 |
- |
1440 |
- # checking for s2api headers |
1441 |
- local api_version |
1442 |
- api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
1443 |
- api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
1444 |
- |
1445 |
- if [[ ${api_version:-0} -lt 5*3 ]]; then |
1446 |
- eerror "DVB header files do not contain s2api support or too old for ${P}" |
1447 |
- eerror "You cannot compile VDR against old dvb-header" |
1448 |
- die "DVB headers too old" |
1449 |
- fi |
1450 |
- |
1451 |
- cat > Make.config <<-EOT |
1452 |
- # |
1453 |
- # Generated by ebuild ${PF} |
1454 |
- # |
1455 |
- PREFIX = /usr |
1456 |
- DVBDIR = ${DVBDIR} |
1457 |
- PLUGINLIBDIR = ${PLUGIN_LIBDIR} |
1458 |
- CONFDIR = ${CONF_DIR} |
1459 |
- VIDEODIR = /var/vdr/video |
1460 |
- LOCDIR = \$(PREFIX)/share/locale |
1461 |
- INCDIR = \$(PREFIX)/include |
1462 |
- |
1463 |
- DEFINES += -DCONFDIR=\"\$(CONFDIR)\" |
1464 |
- INCLUDES += -I\$(DVBDIR) |
1465 |
- |
1466 |
- # >=vdr-1.7.36-r1; parameter only used for compiletime on vdr |
1467 |
- # PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new) |
1468 |
- LIBDIR = ${PLUGIN_LIBDIR} |
1469 |
- PCDIR = /usr/$(get_libdir)/pkgconfig |
1470 |
- EOT |
1471 |
- eend 0 |
1472 |
- |
1473 |
- # support languages, written from right to left |
1474 |
- BUILD_PARAMS+=" BIDI=$(usex bidi 1 0)" |
1475 |
- |
1476 |
- # systemd support |
1477 |
- use systemd && BUILD_PARAMS+=" SDNOTIFY=$(usex systemd 1 0)" |
1478 |
- |
1479 |
- if ! use vanilla; then |
1480 |
- |
1481 |
- # Now apply extensions patch |
1482 |
- epatch "${WORKDIR}/${EXT_P}.patch" |
1483 |
- |
1484 |
- # This allows us to start even if some plugin does not exist |
1485 |
- # or is not loadable. |
1486 |
- enable_patch PLUGINMISSING |
1487 |
- enable_patch CHANNELBIND |
1488 |
- |
1489 |
- if [[ -n ${VDR_MAINTAINER_MODE} ]]; then |
1490 |
- einfo "Doing maintainer checks:" |
1491 |
- |
1492 |
- # we do not support these patches |
1493 |
- # (or have them already hard enabled) |
1494 |
- local IGNORE_PATCHES="pluginmissing channelbind" |
1495 |
- |
1496 |
- extensions_all_defines > "${T}"/new.IUSE |
1497 |
- echo $EXT_PATCH_FLAGS $EXT_PATCH_FLAGS_RENAMED_EXT_NAME \ |
1498 |
- $IGNORE_PATCHES | \ |
1499 |
- tr ' ' '\n' |sort > "${T}"/old.IUSE |
1500 |
- local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]') |
1501 |
- if [[ -z ${DIFFS} ]]; then |
1502 |
- einfo "EXT_PATCH_FLAGS is up to date." |
1503 |
- else |
1504 |
- ewarn "IUSE differences!" |
1505 |
- local diff |
1506 |
- for diff in $DIFFS; do |
1507 |
- ewarn "$diff" |
1508 |
- done |
1509 |
- fi |
1510 |
- fi |
1511 |
- |
1512 |
- ebegin "Enabling selected patches" |
1513 |
- local flag |
1514 |
- for flag in $EXT_PATCH_FLAGS; do |
1515 |
- use $flag && enable_patch ${flag} |
1516 |
- done |
1517 |
- |
1518 |
- eend 0 |
1519 |
- |
1520 |
- extensions_add_make_conf |
1521 |
- |
1522 |
- # add defined use-flags compile options to vdr.pc |
1523 |
- sed -e "s:\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR):\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR) \$(DEFINES_IUSE):" \ |
1524 |
- -i Makefile |
1525 |
- |
1526 |
- ebegin "Make depend" |
1527 |
- emake .dependencies >/dev/null |
1528 |
- eend $? "make depend failed" |
1529 |
- fi |
1530 |
- |
1531 |
- epatch "${FILESDIR}/${PN}-2.0.6-r2_gentoo.patch" |
1532 |
- |
1533 |
- # backport from vdr-2.1.7 for better systemd support |
1534 |
- if use vanilla; then |
1535 |
- epatch "${FILESDIR}/${P}_systemd_argsdir_vanilla.patch" |
1536 |
- else |
1537 |
- epatch "${FILESDIR}/${P}_systemd_argsdir.patch" |
1538 |
- fi |
1539 |
- |
1540 |
- epatch_user |
1541 |
- |
1542 |
- add_cap CAP_UTF8 |
1543 |
- |
1544 |
- add_cap CAP_IRCTRL_RUNTIME_PARAM \ |
1545 |
- CAP_VFAT_RUNTIME_PARAM \ |
1546 |
- CAP_CHUID \ |
1547 |
- CAP_SHUTDOWN_AUTO_RETRY |
1548 |
- |
1549 |
- echo -e ${CAPS} > "${CAP_FILE}" |
1550 |
- |
1551 |
- # LINGUAS support |
1552 |
- einfo "\n \t VDR supports the LINGUAS values" |
1553 |
- |
1554 |
- lang_po |
1555 |
- |
1556 |
- einfo "\t Please set one of this values in your sytem make.conf" |
1557 |
- einfo "\t LINGUAS=\"${LING_PO}\"\n" |
1558 |
- |
1559 |
- if [[ -z ${LINGUAS} ]]; then |
1560 |
- einfo "\n \t No values in LINGUAS=" |
1561 |
- einfo "\t You will get only english text on OSD \n" |
1562 |
- fi |
1563 |
- |
1564 |
- strip-linguas ${LING_PO} en |
1565 |
-} |
1566 |
- |
1567 |
-src_install() { |
1568 |
-# # trick makefile not to create a videodir by supplying it with an existing |
1569 |
-# # directory |
1570 |
- emake \ |
1571 |
- VIDEODIR="/" \ |
1572 |
- DESTDIR="${D}" install || die "emake install failed" |
1573 |
- |
1574 |
- keepdir "${PLUGIN_LIBDIR}" |
1575 |
- |
1576 |
- # backup for plugins they don't be able to create this dir |
1577 |
- keepdir "${CONF_DIR}"/plugins |
1578 |
- |
1579 |
- if use html; then |
1580 |
- dohtml *.html |
1581 |
- fi |
1582 |
- |
1583 |
- dodoc MANUAL INSTALL README* HISTORY CONTRIBUTORS |
1584 |
- |
1585 |
- insinto /usr/share/vdr |
1586 |
- doins "${CAP_FILE}" |
1587 |
- |
1588 |
- if use alternatechannel; then |
1589 |
- insinto /etc/vdr |
1590 |
- doins "${FILESDIR}"/channel_alternative.conf |
1591 |
- fi |
1592 |
- |
1593 |
- chown -R vdr:vdr "${D}/${CONF_DIR}" |
1594 |
-} |
1595 |
- |
1596 |
-pkg_postinst() { |
1597 |
- elog "It is a good idea to run vdrplugin-rebuild now." |
1598 |
- |
1599 |
- elog "To get nice symbols in OSD we recommend to install" |
1600 |
- elog "\t1. emerge media-fonts/vdrsymbols-ttf" |
1601 |
- elog "\t2. select font VDRSymbolsSans in Setup" |
1602 |
- elog "" |
1603 |
- elog "To get an idea how to proceed now, have a look at our vdr-guide:" |
1604 |
- elog "\thttps://wiki.gentoo.org/wiki/VDR" |
1605 |
-} |