summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-plugins/vdr-undelete
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-plugins/vdr-undelete')
-rw-r--r--media-plugins/vdr-undelete/Manifest1
-rw-r--r--media-plugins/vdr-undelete/files/undelete-0.0.6-info.diff25
-rw-r--r--media-plugins/vdr-undelete/files/undelete-0.0.6-vdr-1.5.7.diff14
-rw-r--r--media-plugins/vdr-undelete/files/vdr-undelete-0.0.6-glibc-2.10.patch12
-rw-r--r--media-plugins/vdr-undelete/files/vdr-undelete-0.0.6_vdr-1.7.3.diff76
-rw-r--r--media-plugins/vdr-undelete/metadata.xml9
-rw-r--r--media-plugins/vdr-undelete/vdr-undelete-0.0.7-r1.ebuild39
-rw-r--r--media-plugins/vdr-undelete/vdr-undelete-0.0.7.ebuild21
8 files changed, 197 insertions, 0 deletions
diff --git a/media-plugins/vdr-undelete/Manifest b/media-plugins/vdr-undelete/Manifest
new file mode 100644
index 000000000000..a328889d8714
--- /dev/null
+++ b/media-plugins/vdr-undelete/Manifest
@@ -0,0 +1 @@
+DIST vdr-undelete-0.0.7.tgz 34655 SHA256 f77e2eaa298d005c475ab37cba1efc71b04888af4061d4b8edf29938e2e9a991 SHA512 c4d634580d91c3d3601767bb29cfe12e0bd13f9d8fd5bab31a3388db1f8724544b371b4ba333cd524aa5243554015517f487f6e8f2de31bd747f1094ba1c84ff WHIRLPOOL 884e1b19836d021ca6c922997e8cee466e513ae9acdd7527274e8d831a3a13aefe92281477d2fc0207b19fa503f3a1234686381dde0c71b655b07b6767997b32
diff --git a/media-plugins/vdr-undelete/files/undelete-0.0.6-info.diff b/media-plugins/vdr-undelete/files/undelete-0.0.6-info.diff
new file mode 100644
index 000000000000..af4314706c30
--- /dev/null
+++ b/media-plugins/vdr-undelete/files/undelete-0.0.6-info.diff
@@ -0,0 +1,25 @@
+--- undelete-0.0.6/menuundelete.c.orig 2006-03-22 01:18:57.000000000 -0800
++++ undelete-0.0.6/menuundelete.c 2006-03-22 01:19:54.000000000 -0800
+@@ -422,7 +422,7 @@
+ case 7: recording = GetRecording(item);
+ #if VDRVERSNUM >= 10325
+ if (recording && recording->Info() && recording->Info()->Description() && *recording->Info()->Description())
+- state = AddSubMenu(new cMenuText(tr("Summary"), recording->Info()->Description()));
++ state = AddSubMenu(new cMenuText(tr("Info"), recording->Info()->Description()));
+ #else
+ if (recording && recording->Summary() && *recording->Summary())
+ state = AddSubMenu(new cMenuText(tr("Summary"), recording->Summary()));
+--- undelete-0.0.6/undelete.c.orig 2006-03-22 01:20:06.000000000 -0800
++++ undelete-0.0.6/undelete.c 2006-03-22 01:23:58.000000000 -0800
+@@ -282,7 +282,11 @@
+ FunctionHotKey[4] = tr("Display$purge all");
+ FunctionHotKey[5] = tr("Display$salvage all");
+ FunctionHotKey[6] = tr("Open");
++#if VDRVERSNUM >= 10325
++ FunctionHotKey[7] = tr("Info");
++#else
+ FunctionHotKey[7] = tr("Summary");
++#endif
+ FunctionHotKey[8] = tr("Display$<--1");
+ FunctionHotKey[9] = tr("Display$2-->");
+ FunctionHotKey[10] = tr("Display$disp. keys");
diff --git a/media-plugins/vdr-undelete/files/undelete-0.0.6-vdr-1.5.7.diff b/media-plugins/vdr-undelete/files/undelete-0.0.6-vdr-1.5.7.diff
new file mode 100644
index 000000000000..91f69f6dc96e
--- /dev/null
+++ b/media-plugins/vdr-undelete/files/undelete-0.0.6-vdr-1.5.7.diff
@@ -0,0 +1,14 @@
+--- undelete-0.0.6/undelete.c.orig 2007-08-13 06:46:16.000000000 -0700
++++ undelete-0.0.6/undelete.c 2007-08-13 06:59:10.000000000 -0700
+@@ -198,7 +198,11 @@
+ private:
+ // Add any member variables or functions you may need here.
+ void FreeKeyNames(void);
++#if VDRVERSNUM >= 10507
++ char* OSDLanguage;
++#else
+ int OSDLanguage;
++#endif
+ void TestAndSetOSDLanguage(void);
+ bool ProcessArg(int argc, char *argv[]);
+ #ifdef UND_Debug
diff --git a/media-plugins/vdr-undelete/files/vdr-undelete-0.0.6-glibc-2.10.patch b/media-plugins/vdr-undelete/files/vdr-undelete-0.0.6-glibc-2.10.patch
new file mode 100644
index 000000000000..5a87bd23f009
--- /dev/null
+++ b/media-plugins/vdr-undelete/files/vdr-undelete-0.0.6-glibc-2.10.patch
@@ -0,0 +1,12 @@
+diff -ur undelete-0.0.6.orig/undelete.c undelete-0.0.6/undelete.c
+--- undelete-0.0.6.orig/undelete.c 2006-03-15 23:12:06.000000000 +0200
++++ undelete-0.0.6/undelete.c 2009-08-09 22:08:26.000000000 +0300
+@@ -934,7 +934,7 @@
+ if (verbose.u)
+ isyslog("%s: undelete recording (%s)", plugin_name, recording->FileName());
+ cString NewName = recording->FileName();
+- char *ext = strrchr(NewName, '.');
++ char *ext = const_cast<char*> (strrchr(NewName, '.'));
+ if (!strcmp(ext, DELEXT))
+ {
+ strncpy(ext, RECEXT, strlen(ext));
diff --git a/media-plugins/vdr-undelete/files/vdr-undelete-0.0.6_vdr-1.7.3.diff b/media-plugins/vdr-undelete/files/vdr-undelete-0.0.6_vdr-1.7.3.diff
new file mode 100644
index 000000000000..fc5941d4fbdc
--- /dev/null
+++ b/media-plugins/vdr-undelete/files/vdr-undelete-0.0.6_vdr-1.7.3.diff
@@ -0,0 +1,76 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 92_undelete-0.0.6-1.7.3.dpatch by Thomas Günther <tom@toms-cafe.de>
+## http://toms-cafe.de/vdr/download/undelete-0.0.6-1.7.3.diff
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Changes for VDR >= 1.7.3.
+
+@DPATCH@
+--- undelete-0.0.6/menuundelete.c
++++ undelete-0.0.6/menuundelete.c
+@@ -672,11 +672,20 @@ eOSState cMenuUndelete::ProcessKey(eKeys
+ processerror = true;
+ }
+ SalvageRecording = true;
++#if VDRVERSNUM >= 10703
++ cIndexFile *index = new cIndexFile(NewName, false, recording->IsPesRecording());
++#else
+ cIndexFile *index = new cIndexFile(NewName, false);
++#endif
+ int LastFrame = index->Last() - 1;
+ if (LastFrame > 0) {
++#if VDRVERSNUM >= 10703
++ uint16_t FileNumber = 0;
++ off_t FileOffset = 0;
++#else
+ uchar FileNumber = 0;
+ int FileOffset = 0;
++#endif
+ index->Get(LastFrame, &FileNumber, &FileOffset);
+ delete index;
+ if (FileNumber == 0) {
+@@ -686,7 +695,11 @@ eOSState cMenuUndelete::ProcessKey(eKeys
+ } else {
+ for (int i = 1; i <= FileNumber; i++) {
+ char *temp;
++#if VDRVERSNUM >= 10703
++ asprintf(&temp, recording->IsPesRecording() ? "%s/%03d.vdr" : "%s/%05d.ts", (const char *)NewName, i);
++#else
+ asprintf(&temp, "%s/%03d.vdr", (const char *)NewName, i);
++#endif
+ if (access(temp, R_OK) != 0) {
+ i = FileNumber;
+ if (verbose.u)
+--- undelete-0.0.6/undelete.c
++++ undelete-0.0.6/undelete.c
+@@ -956,17 +956,30 @@ cString cPluginUndelete::SVDRPCommand(co
+ asprintf(&temp, "%sS#%d#", SVDRP_Process ? SVDRP_Process : "", recnumber);
+ free(SVDRP_Process);
+ SVDRP_Process = temp;
++#if VDRVERSNUM >= 10703
++ cIndexFile *index = new cIndexFile(NewName, false, recording->IsPesRecording());
++#else
+ cIndexFile *index = new cIndexFile(NewName, false);
++#endif
+ int LastFrame = index->Last() - 1;
+ if (LastFrame > 0) {
++#if VDRVERSNUM >= 10703
++ uint16_t FileNumber = 0;
++ off_t FileOffset = 0;
++#else
+ uchar FileNumber = 0;
+ int FileOffset = 0;
++#endif
+ index->Get(LastFrame, &FileNumber, &FileOffset);
+ delete index;
+ if (FileNumber == 0)
+ return cString::sprintf("error while read last filenumber for \"%s\" [%s]", Option, recording->Title());
+ for (int i = 1; i <= FileNumber; i++) {
++#if VDRVERSNUM >= 10703
++ asprintf(&temp, recording->IsPesRecording() ? "%s/%03d.vdr" : "%s/%05d.ts", (const char *)NewName, i);
++#else
+ asprintf(&temp, "%s/%03d.vdr", (const char *)NewName, i);
++#endif
+ if (access(temp, R_OK) != 0) {
+ free(temp);
+ return cString::sprintf("error accessing vdrfile %03d for \"%s\" [%s]", i, Option, recording->Title());
diff --git a/media-plugins/vdr-undelete/metadata.xml b/media-plugins/vdr-undelete/metadata.xml
new file mode 100644
index 000000000000..7b718b6f9765
--- /dev/null
+++ b/media-plugins/vdr-undelete/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>media-tv</herd>
+ <maintainer>
+ <email>vdr@gentoo.org</email>
+ <name>Gentoo VDR Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-plugins/vdr-undelete/vdr-undelete-0.0.7-r1.ebuild b/media-plugins/vdr-undelete/vdr-undelete-0.0.7-r1.ebuild
new file mode 100644
index 000000000000..d252452bb5bb
--- /dev/null
+++ b/media-plugins/vdr-undelete/vdr-undelete-0.0.7-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+VERSION="1060" # every bump, new version!
+
+DESCRIPTION="VDR Plugin: Recover deleted recordings of VDR"
+HOMEPAGE="http://projects.vdr-developer.org/projects/plg-undelete"
+SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.5.7"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ vdr-plugin-2_src_prepare
+
+ if has_version ">=media-video/vdr-2.1.2"; then
+ sed -e "s#VideoDirectory#cVideoDirectory::Name\(\)#" \
+ -i menuundelete.c
+
+ sed -e "s#RemoveVideoFile#cVideoDirectory::RemoveVideoFile#" \
+ -i undelete.c menuundelete.c
+
+ sed -e "s#RenameVideoFile#cVideoDirectory::RenameVideoFile#" \
+ -i undelete.c menuundelete.c
+
+ sed -e "s#RemoveEmptyVideoDirectories#cVideoDirectory::RemoveEmptyVideoDirectories#" \
+ -i undelete.c
+ fi
+}
diff --git a/media-plugins/vdr-undelete/vdr-undelete-0.0.7.ebuild b/media-plugins/vdr-undelete/vdr-undelete-0.0.7.ebuild
new file mode 100644
index 000000000000..08abb4d1be7c
--- /dev/null
+++ b/media-plugins/vdr-undelete/vdr-undelete-0.0.7.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="4"
+
+inherit vdr-plugin-2
+
+VERSION="1060" # every bump, new version!
+
+DESCRIPTION="VDR Plugin: Recover deleted recordings of VDR"
+HOMEPAGE="http://projects.vdr-developer.org/projects/plg-undelete"
+SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+DEPEND=">=media-video/vdr-1.5.7"
+RDEPEND="${DEPEND}"