summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2013-05-26 16:00:41 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2013-05-26 16:00:41 +0000
commit2466a1341cf05a31cdaaa5a576c285be83f2a6c1 (patch)
treee002cd7945531c38b995bd8ca8c13dd3e87afe8f /media-plugins/vdr-cdplayer
parentStable for x86, wrt bug #470490 (diff)
downloadgentoo-2-2466a1341cf05a31cdaaa5a576c285be83f2a6c1.tar.gz
gentoo-2-2466a1341cf05a31cdaaa5a576c285be83f2a6c1.tar.bz2
gentoo-2-2466a1341cf05a31cdaaa5a576c285be83f2a6c1.zip
initial ebuild, play CD's on VDR
(Portage version: 2.1.11.50/cvs/Linux i686, signed Manifest commit with key 34C2808A)
Diffstat (limited to 'media-plugins/vdr-cdplayer')
-rw-r--r--media-plugins/vdr-cdplayer/ChangeLog10
-rw-r--r--media-plugins/vdr-cdplayer/files/confd32
-rw-r--r--media-plugins/vdr-cdplayer/files/rc-addon.sh44
-rw-r--r--media-plugins/vdr-cdplayer/metadata.xml10
-rw-r--r--media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.0.ebuild41
5 files changed, 137 insertions, 0 deletions
diff --git a/media-plugins/vdr-cdplayer/ChangeLog b/media-plugins/vdr-cdplayer/ChangeLog
new file mode 100644
index 000000000000..a5cafa506cb4
--- /dev/null
+++ b/media-plugins/vdr-cdplayer/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-plugins/vdr-cdplayer
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-cdplayer/ChangeLog,v 1.1 2013/05/26 16:00:41 hd_brummy Exp $
+
+*vdr-cdplayer-1.2.0 (26 May 2013)
+
+ 26 May 2013; Joerg Bornkessel <hd_brummy@gentoo.org>
+ +vdr-cdplayer-1.2.0.ebuild, +files/confd, +files/rc-addon.sh, +metadata.xml:
+ initial ebuild, play CD's on VDR
+
diff --git a/media-plugins/vdr-cdplayer/files/confd b/media-plugins/vdr-cdplayer/files/confd
new file mode 100644
index 000000000000..5599aea565e0
--- /dev/null
+++ b/media-plugins/vdr-cdplayer/files/confd
@@ -0,0 +1,32 @@
+# /etc/conf.d/vdr.cdplayer
+
+
+# Set way to your CD Drive
+# allowed values: path to device
+# default: /dev/cdrom
+#
+#CDPLAYER_DEVICE=/dev/cdrom
+
+# Set URL to the CDDB databank
+# allowed values: URL to the databank
+# default: freedb.freedb.org
+#
+#CDPLAYER_CDDB_SERVER="freedb.freedb.org"
+
+# Enable cddb request to the given db on top
+# allowed values: yes no
+# default: yes
+#
+#CDPLAYER_CDDB_QUERY="no"
+
+# Enable cache of cddb data
+# allowed values: yes no
+# default: yes
+#
+#CDPLAYER_CDDB_CACHE="no"
+
+# Set path to the cddb data cache dir
+# allowed values: path to cache dir
+# default: /var/cache/vdr/cdplayer
+#
+#CDPLAYER_CACHE_DIR=
diff --git a/media-plugins/vdr-cdplayer/files/rc-addon.sh b/media-plugins/vdr-cdplayer/files/rc-addon.sh
new file mode 100644
index 000000000000..5c1c996be172
--- /dev/null
+++ b/media-plugins/vdr-cdplayer/files/rc-addon.sh
@@ -0,0 +1,44 @@
+#
+# rc-addon-script for plugin cdplayer
+#
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-cdplayer/files/rc-addon.sh,v 1.1 2013/05/26 16:00:41 hd_brummy Exp $
+
+. /etc/conf.d/vdr.cdplayer
+
+CDPLAYER_CACHE_DIR="${CDPLAYER_CACHE_DIR:=/var/cache/vdr/cdplayer}"
+
+make_cachedir() {
+ # check, is CDPLAYER_CACHE_DIR available
+ if [ ! -d "${CDPLAYER_CACHE_DIR}" ]; then
+ mkdir "${CDPLAYER_CACHE_DIR}"
+ chown -R vdr:vdr "${CDPLAYER_CACHE_DIR}"
+ fi
+}
+
+plugin_pre_vdr_start() {
+
+ # default values
+ add_plugin_param "-c cdplayer"
+ add_plugin_param "-s cd.pmg"
+
+ add_plugin_param "-d ${CDPLAYER_DEVICE:-/dev/cdrom}"
+
+ if yesno ${CDPLAYER_CDDB_QUERY:-yes}; then
+
+ add_plugin_param "-S ${CDPLAYER_CDDB_SERVER:=freedb.freedb.org}"
+
+ if yesno ${CDPLAYER_CDDB_CACHE:-yes}; then
+ # CDDB cache directory
+ make_cachedir
+ add_plugin_param "-C ${CDPLAYER_CACHE_DIR}"
+ else
+ # disable CDDB cache
+ add_plugin_param "-N"
+ fi
+
+ else
+ # disable CDDB request
+ add_plugin_param "-n"
+
+ fi
+}
diff --git a/media-plugins/vdr-cdplayer/metadata.xml b/media-plugins/vdr-cdplayer/metadata.xml
new file mode 100644
index 000000000000..5f9f14619db8
--- /dev/null
+++ b/media-plugins/vdr-cdplayer/metadata.xml
@@ -0,0 +1,10 @@
+<?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-cdplayer/vdr-cdplayer-1.2.0.ebuild b/media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.0.ebuild
new file mode 100644
index 000000000000..c0de99203f06
--- /dev/null
+++ b/media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.0.ebuild,v 1.1 2013/05/26 16:00:41 hd_brummy Exp $
+
+EAPI="5"
+
+inherit vdr-plugin-2
+
+DESCRIPTION="VDR Plugin: CD-PLAYER"
+HOMEPAGE="http://www.uli-eckhardt.de/vdr/cdplayer.en.shtml"
+SRC_URI="http://www.uli-eckhardt.de/vdr/download/${P}.tgz"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+IUSE="cdparanoia"
+
+DEPEND=">=media-video/vdr-1.6"
+RDEPEND="${DEPEND}
+ >=dev-libs/libcdio-0.8.0
+ >=dev-libs/libcdio-paranoia-0.90
+ >=media-libs/libcddb-1.3.0"
+
+src_prepare() {
+ if has_version "<media-video/vdr-1.7.27"; then
+ cp Makefile.old Makefile
+ fi
+
+ vdr-plugin-2_src_prepare
+
+ use cdparanoia || BUILD_PARAMS="NOPARANOIA=1"
+}
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ if has_version "<media-video/vdr-1.7.27"; then
+ insinto /etc/vdr/plugins/"${VDRPLUGIN}"
+ doins "${S}"/contrib/cd.mpg
+ fi
+}