summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/vdr-cdplayer')
-rw-r--r--media-plugins/vdr-cdplayer/Manifest3
-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
-rw-r--r--media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.1.ebuild41
-rw-r--r--media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.2.ebuild28
7 files changed, 199 insertions, 0 deletions
diff --git a/media-plugins/vdr-cdplayer/Manifest b/media-plugins/vdr-cdplayer/Manifest
new file mode 100644
index 000000000000..635e21affd8c
--- /dev/null
+++ b/media-plugins/vdr-cdplayer/Manifest
@@ -0,0 +1,3 @@
+DIST vdr-cdplayer-1.2.0.tgz 175851 SHA256 20303ceb1cc8c64ea2c3cd9e8ab7e39e3edbb64fad9c238ed92baa45615de351 SHA512 03dda4389347a43bf20fa15ef4b754aa15c7af965dbc56b7cf054ff0c7d8eb987d77dbec3e8cc513ab7b4a773e0848a58fa72664016d8f6cce9c3aa3fe25674c WHIRLPOOL 06462ac2445aa2344f3181994ecdc7c3cbd21763d8b39e75b8ce59441690d43b998fc18a93270672aa551cb18d72b1129098be9a583e70d063be81ea62ce948f
+DIST vdr-cdplayer-1.2.1.tgz 180240 SHA256 f6b6c2828404bf1519d1adb3434a370393d7b0ab4bea145dc0d296f4656f6a8e SHA512 64b502a7f07d977c95e10a86353bc45351a43b178e8edcbfa783fcc6a5ae985e405b4f86ac783bc15d8795c8b77d59955570f4ab2e89a426f28c343216dc7768 WHIRLPOOL 8227df6fb47bd5a9da5004c3e12364c9d6ed484705e8868a7e034f65c916e304b56dc7b0bd88391745bf6bc6d98f141982fbd67dab514e788e76869b5fc730b6
+DIST vdr-cdplayer-1.2.2.tgz 180369 SHA256 94b330645bc51dab057ee594650f5bdde3c34d6c13add934e2d992446dae049b SHA512 783f675f874798f4578b550abb6f0bcf3439d3b4cbcdc8e6abebe2c6f0bd83b7e7a73ef81e48b7b3d34bde80fcef79c5c13a8687caa5a6aa711c38473224a290 WHIRLPOOL fdb7324d2f1186c0bea8048b0a3ea1dcde92372a8c37b7337670d938c4881126d2832055636aae4da4849c8ac190c8efff4393c5ff94537ff88ba5ee12213e90
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..0eb97e419056
--- /dev/null
+++ b/media-plugins/vdr-cdplayer/files/rc-addon.sh
@@ -0,0 +1,44 @@
+#
+# rc-addon-script for plugin cdplayer
+#
+# $Id$
+
+. /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.mpg"
+
+ 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..ccfb5c2dcad5
--- /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
+# $Id$
+
+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
+}
diff --git a/media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.1.ebuild b/media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.1.ebuild
new file mode 100644
index 000000000000..d1cdee7cdd17
--- /dev/null
+++ b/media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+ >=dev-libs/libcdio-0.8.0
+ >=media-libs/libcddb-1.3.0
+ cdparanoia? ( >=dev-libs/libcdio-paranoia-0.90 )"
+RDEPEND="${DEPEND}"
+
+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
+}
diff --git a/media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.2.ebuild b/media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.2.ebuild
new file mode 100644
index 000000000000..a7c0e73b06f4
--- /dev/null
+++ b/media-plugins/vdr-cdplayer/vdr-cdplayer-1.2.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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-2
+ >=dev-libs/libcdio-0.8.0
+ >=media-libs/libcddb-1.3.0
+ cdparanoia? ( >=dev-libs/libcdio-paranoia-0.90 )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ vdr-plugin-2_src_prepare
+
+ use cdparanoia || BUILD_PARAMS="NOPARANOIA=1"
+}