diff options
author | Joerg Bornkessel <hd_brummy@gentoo.org> | 2006-01-29 21:36:07 +0000 |
---|---|---|
committer | Joerg Bornkessel <hd_brummy@gentoo.org> | 2006-01-29 21:36:07 +0000 |
commit | da5a60add66da0b9b9979fe0b8b353f7229c0b4f (patch) | |
tree | 40793ba58a7442f43fd707ee951fbb7e8f0e65fa /media-plugins/vdr-vdrcd | |
parent | 2.7 version bump. (diff) | |
download | historical-da5a60add66da0b9b9979fe0b8b353f7229c0b4f.tar.gz historical-da5a60add66da0b9b9979fe0b8b353f7229c0b4f.tar.bz2 historical-da5a60add66da0b9b9979fe0b8b353f7229c0b4f.zip |
initial import, thanks to theonlychriss for testing,debugging
Package-Manager: portage-2.0.54
Diffstat (limited to 'media-plugins/vdr-vdrcd')
-rw-r--r-- | media-plugins/vdr-vdrcd/ChangeLog | 12 | ||||
-rw-r--r-- | media-plugins/vdr-vdrcd/Manifest | 20 | ||||
-rw-r--r-- | media-plugins/vdr-vdrcd/files/commands.vdrcd.conf | 2 | ||||
-rw-r--r-- | media-plugins/vdr-vdrcd/files/confd | 25 | ||||
-rw-r--r-- | media-plugins/vdr-vdrcd/files/digest-vdr-vdrcd-0.0.10.1-r1 | 1 | ||||
-rwxr-xr-x | media-plugins/vdr-vdrcd/files/mount-vdrcd.sh | 34 | ||||
-rw-r--r-- | media-plugins/vdr-vdrcd/files/rc-addon.sh | 25 | ||||
-rw-r--r-- | media-plugins/vdr-vdrcd/files/vdr-vdrcd-0.0.10.1-mp3ng.diff | 39 | ||||
-rw-r--r-- | media-plugins/vdr-vdrcd/metadata.xml | 15 | ||||
-rw-r--r-- | media-plugins/vdr-vdrcd/vdr-vdrcd-0.0.10.1-r1.ebuild | 44 |
10 files changed, 217 insertions, 0 deletions
diff --git a/media-plugins/vdr-vdrcd/ChangeLog b/media-plugins/vdr-vdrcd/ChangeLog new file mode 100644 index 000000000000..2c6a6dfb2844 --- /dev/null +++ b/media-plugins/vdr-vdrcd/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for media-plugins/vdr-vdrcd +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrcd/ChangeLog,v 1.1 2006/01/29 21:36:07 hd_brummy Exp $ + +*vdr-vdrcd-0.0.10.1-r1 (29 Jan 2006) + + 29 Jan 2006; Joerg Bornkessel <hd_brummy@gentoo.org> + +files/vdr-vdrcd-0.0.10.1-mp3ng.diff, +files/commands.vdrcd.conf, + +files/confd, +files/mount-vdrcd.sh, +files/rc-addon.sh, +metadata.xml, + +vdr-vdrcd-0.0.10.1-r1.ebuild: + initial import, thanks to theonlychriss for testing,debugging + diff --git a/media-plugins/vdr-vdrcd/Manifest b/media-plugins/vdr-vdrcd/Manifest new file mode 100644 index 000000000000..02e7051b2946 --- /dev/null +++ b/media-plugins/vdr-vdrcd/Manifest @@ -0,0 +1,20 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 82da904a4d4acc2919f5eea4a93e5ba6 ChangeLog 555 +MD5 cd4973c2eda5a962079fd4a06a0f2b1b files/commands.vdrcd.conf 110 +MD5 9f2c7160eae352daf6f5ff6040af7358 files/confd 883 +MD5 ea6d03a7a2f1cca291463458de9c7a31 files/digest-vdr-vdrcd-0.0.10.1-r1 66 +MD5 065cc64a616b3976439edcc270609889 files/mount-vdrcd.sh 748 +MD5 bf1c6f97e7f1c41c3740d04742f55126 files/rc-addon.sh 521 +MD5 8247c85e3fd8392da185369624cc075d files/vdr-vdrcd-0.0.10.1-mp3ng.diff 1650 +MD5 68f72b0a67abb943bf9183e3be23bbc0 metadata.xml 480 +MD5 36df7906e3561361b9ea500e347b100f vdr-vdrcd-0.0.10.1-r1.ebuild 917 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.2 (GNU/Linux) +Comment: no further Information + +iD8DBQFD3TVYdn07HTTCgIoRAgY1AJsF8vzm3NxTCMv5rm+MKEvME4XtPACghKaK +2xzj932RFtw/FflX5IDdoUc= +=VonO +-----END PGP SIGNATURE----- diff --git a/media-plugins/vdr-vdrcd/files/commands.vdrcd.conf b/media-plugins/vdr-vdrcd/files/commands.vdrcd.conf new file mode 100644 index 000000000000..7201c6b96a10 --- /dev/null +++ b/media-plugins/vdr-vdrcd/files/commands.vdrcd.conf @@ -0,0 +1,2 @@ +~~~~~~~~~ : echo "no function" +Eject CD : mount-vdrcd.sh unmount /dev/cdrom ; mount-vdrcd.sh eject /dev/cdrom diff --git a/media-plugins/vdr-vdrcd/files/confd b/media-plugins/vdr-vdrcd/files/confd new file mode 100644 index 000000000000..f67d1776ca54 --- /dev/null +++ b/media-plugins/vdr-vdrcd/files/confd @@ -0,0 +1,25 @@ +# /etc/conf.d/vdr.vdrcd: +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrcd/files/confd,v 1.1 2006/01/29 21:36:07 hd_brummy Exp $ + +# Global config file for vdr rc-scripts + +# By default VDR expects the CDR drive to be located at +# /dev/cdrom (which typically is a symbolic link to the +# actual device, for instance /dev/hdc). +# You can add here multiple Devices, seperated by a space. +# +# allowed values: device names +# default: /dev/cdrom +#VDRCD_DRIVE="/dev/cdrom" + +#Note that for the latter to work, all drives you specify on the PlugIn's +##VDRCD_DRIVE=" " command line must be specified in mp3ngsources as well. + +# +# This option allows to override the set of mount scripts +# coming with this installation. Use with care! +# (This overwrites all settings in this file). +# allowed values: name of an executable +# default: use supplied scripts +#VDRCD_PLUGIN_MOUNT="" + diff --git a/media-plugins/vdr-vdrcd/files/digest-vdr-vdrcd-0.0.10.1-r1 b/media-plugins/vdr-vdrcd/files/digest-vdr-vdrcd-0.0.10.1-r1 new file mode 100644 index 000000000000..37922e57f3a3 --- /dev/null +++ b/media-plugins/vdr-vdrcd/files/digest-vdr-vdrcd-0.0.10.1-r1 @@ -0,0 +1 @@ +MD5 0e679c4a91a7afd78b1d154a50e737cb vdr-vdrcd-0.0.10.1.tgz 15459 diff --git a/media-plugins/vdr-vdrcd/files/mount-vdrcd.sh b/media-plugins/vdr-vdrcd/files/mount-vdrcd.sh new file mode 100755 index 000000000000..b69214317f54 --- /dev/null +++ b/media-plugins/vdr-vdrcd/files/mount-vdrcd.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# +# This script is called from VDR to mount/unmount/eject +# the sources for MP3 play. +# +# argument 1: wanted action, one of mount,unmount,eject,status +# argument 2: mountpoint to act on +# +# mount,unmount,eject must return 0 if succeeded, 1 if failed +# status must return 0 if device is mounted, 1 if not +# + +action="$1" +path="$2" + +case "$action" in +mount) + eject -t "$path" || exit 1 # close the tray + mount "$path" || exit 1 # mount it + ;; +unmount) + umount "$path" || exit 1 # unmount it + ;; +eject) + eject "$path" || exit 1 # eject disk + ;; +status) + cat /proc/mounts | grep -q "$path" # check if mounted + if [ $? -ne 0 ]; then # not mounted ... + exit 1 + fi +esac + +exit 0 diff --git a/media-plugins/vdr-vdrcd/files/rc-addon.sh b/media-plugins/vdr-vdrcd/files/rc-addon.sh new file mode 100644 index 000000000000..b17e39fd15a4 --- /dev/null +++ b/media-plugins/vdr-vdrcd/files/rc-addon.sh @@ -0,0 +1,25 @@ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrcd/files/rc-addon.sh,v 1.1 2006/01/29 21:36:07 hd_brummy Exp $ +# +# rc-addon plugin-startup-skript for vdr-vdrcd +# + +: ${VDRCD_PLUGIN_MOUNT:=/usr/bin/mount-vdrcd.sh} +: ${VDRCD_DRIVE:=/dev/cdrom} + +plugin_pre_vdr_start() { + + local VDRCD_DRV + + for VDRCD_DRV in ${VDRCD_DRIVE}; do + add_plugin_param "-c ${VDRCD_DRV}" + done + + add_plugin_param "-m ${VDRCD_PLUGIN_MOUNT}" + +} + + +# for compatibility + if [[ ${SCRIPT_API:-1} -lt 2 ]]; then + plugin_pre_vdr_start + fi diff --git a/media-plugins/vdr-vdrcd/files/vdr-vdrcd-0.0.10.1-mp3ng.diff b/media-plugins/vdr-vdrcd/files/vdr-vdrcd-0.0.10.1-mp3ng.diff new file mode 100644 index 000000000000..a47b5031adea --- /dev/null +++ b/media-plugins/vdr-vdrcd/files/vdr-vdrcd-0.0.10.1-mp3ng.diff @@ -0,0 +1,39 @@ +--- vdrcd.c 2006-01-10 14:55:32.000000000 +0100 ++++ vdrcd.c_with_mp3ng 2006-01-10 14:55:21.000000000 +0100 +@@ -50,9 +50,9 @@ + { "photo_cd", "pcd", false, State, true }, + { "001.vdr", NULL, true, State, false }, + { "001.vdr", NULL, false, Find, false }, +- { "*.mp3", "mp3", false, Find, false }, +- { "*.ogg", "mp3", false, Find, false }, +- { "*.wav", "mp3", false, Find, false }, ++ { "*.mp3", "mp3ng", false, Find, false }, ++ { "*.ogg", "mp3ng", false, Find, false }, ++ { "*.wav", "mp3ng", false, Find, false }, + { "*.avi", "mplayer", false, Find, false }, + { "*.avi-????", "mplayer", false, Find, false }, + { "*.mpg", "mplayer", false, Find, false }, +@@ -364,7 +364,7 @@ + Skins.Message(mtError, tr("Drive not present in mplayersources.conf!")); + #endif + } +- } else if (strcmp(Typelist[type].PlugIn, "mp3") == 0) { ++ } else if (strcmp(Typelist[type].PlugIn, "mp3ng") == 0) { + const char *wanted = trP("MP3", type); + + // Switch to Browse Mode if not already done... + +--- vdrcd.c 2006-01-10 20:19:23.995886750 +0100 ++++ vdrcd-gentoo.c 2006-01-10 20:26:33.378721500 +0100 +@@ -397,9 +397,9 @@ + + if (last == status->Current()) + #if VDRVERSNUM < 10307 +- Interface->Error(tr("Drive not present in mp3sources.conf!")); ++ Interface->Error(tr("Drive not present in mp3ng/mp3ngsources!")); + #else +- Skins.Message(mtError, tr("Drive not present in mp3sources.conf!")); ++ Skins.Message(mtError, tr("Drive not present in mp3ng/mp3ngsources!")); + #endif + + } diff --git a/media-plugins/vdr-vdrcd/metadata.xml b/media-plugins/vdr-vdrcd/metadata.xml new file mode 100644 index 000000000000..9622832e0ff3 --- /dev/null +++ b/media-plugins/vdr-vdrcd/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>media-tv</herd> + <maintainer> + <email>hd_brummy@gentoo.org</email> + <name>Joerg Bornkessel</name> + <description> + Please contacts maintainer before you something change. + </description> + </maintainer> + <longdescription lang="en"> + Video Disk Recorder Media Detection Plugin + </longdescription> +</pkgmetadata> diff --git a/media-plugins/vdr-vdrcd/vdr-vdrcd-0.0.10.1-r1.ebuild b/media-plugins/vdr-vdrcd/vdr-vdrcd-0.0.10.1-r1.ebuild new file mode 100644 index 000000000000..9e263b16a5ef --- /dev/null +++ b/media-plugins/vdr-vdrcd/vdr-vdrcd-0.0.10.1-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-vdrcd/vdr-vdrcd-0.0.10.1-r1.ebuild,v 1.1 2006/01/29 21:36:07 hd_brummy Exp $ + +inherit vdr-plugin + +DESCRIPTION="Video Disk Recorder Media Detection Plugin" +HOMEPAGE="http://www.magoa.net/linux" +SRC_URI="http://www.magoa.net/linux/files/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND=">=media-video/vdr-1.3.22" + +src_unpack() { + + vdr-plugin_src_unpack + + epatch ${FILESDIR}/${P}-mp3ng.diff +} + +src_install() { + + vdr-plugin_src_install + + insinto /etc/vdr/commands/ + doins "${FILESDIR}/commands.${VDRPLUGIN}.conf" + + dobin ${FILESDIR}/mount-vdrcd.sh +} + + +pkg_postinst() { + + vdr-plugin_pkg_postinst + + if ! has_version ">media-plugins/vdr-mp3ng-0.9.12"; then + echo + einfo "For full mp3 support 'emerge media-plugins/vdr-mp3ng -pv'" + fi +} |