summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Bornkessel <hd_brummy@gentoo.org>2014-01-12 21:33:10 +0000
committerJörg Bornkessel <hd_brummy@gentoo.org>2014-01-12 21:33:10 +0000
commit0a691f3e312c0426b935832192a1ed9ebb1455f5 (patch)
treefeb02bda65b413f94601679d530924de08eae75d /media-plugins
parentversion bump (diff)
downloadgentoo-2-0a691f3e312c0426b935832192a1ed9ebb1455f5.tar.gz
gentoo-2-0a691f3e312c0426b935832192a1ed9ebb1455f5.tar.bz2
gentoo-2-0a691f3e312c0426b935832192a1ed9ebb1455f5.zip
fixed sudo handling, reported by L.Muresan
(Portage version: 2.2.1/cvs/Linux i686, signed Manifest commit with key 34C2808A)
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/vdr-osdteletext/ChangeLog6
-rw-r--r--media-plugins/vdr-osdteletext/files/rc-addon-v3.sh39
-rw-r--r--media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.4-r1.ebuild4
3 files changed, 46 insertions, 3 deletions
diff --git a/media-plugins/vdr-osdteletext/ChangeLog b/media-plugins/vdr-osdteletext/ChangeLog
index 92e7105d4867..4d29e0613f3b 100644
--- a/media-plugins/vdr-osdteletext/ChangeLog
+++ b/media-plugins/vdr-osdteletext/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-plugins/vdr-osdteletext
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-osdteletext/ChangeLog,v 1.27 2014/01/06 22:56:18 hd_brummy Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-osdteletext/ChangeLog,v 1.28 2014/01/12 21:33:10 hd_brummy Exp $
+
+ 12 Jan 2014; Joerg Bornkessel <hd_brummy@gentoo.org> +files/rc-addon-v3.sh,
+ vdr-osdteletext-0.9.4-r1.ebuild:
+ fixed sudo handling, reported by L.Muresan
*vdr-osdteletext-0.9.4-r1 (06 Jan 2014)
diff --git a/media-plugins/vdr-osdteletext/files/rc-addon-v3.sh b/media-plugins/vdr-osdteletext/files/rc-addon-v3.sh
new file mode 100644
index 000000000000..fce83e346398
--- /dev/null
+++ b/media-plugins/vdr-osdteletext/files/rc-addon-v3.sh
@@ -0,0 +1,39 @@
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-osdteletext/files/rc-addon-v3.sh,v 1.1 2014/01/12 21:33:10 hd_brummy Exp $
+#
+# rc-addon-script for plugin osdteletext
+#
+# Joerg Bornkessel <hd_brummy@gentoo.org>
+# Matthias Schwarzott <zzam@gentoo.org>
+
+: ${OSDTELETEXT_TMPFS:=yes}
+: ${OSDTELETEXT_SIZE:=20}
+: ${OSDTELETEXT_DIR:=/var/cache/vdr/osdteletext}
+: ${OSDTELETEXT_STORETOPTEXT:=no}
+
+plugin_pre_vdr_start() {
+ add_plugin_param "-d ${OSDTELETEXT_DIR}"
+ add_plugin_param "-n ${OSDTELETEXT_SIZE}"
+
+ if [ "${OSDTELETEXT_STORETOPTEXT}" = "yes" ]; then
+ add_plugin_param "-t"
+ fi
+
+ if [ "${OSDTELETEXT_TMPFS}" = "yes" ]; then
+ ## test on mountet TMPFS
+ if /bin/mount | /bin/grep -q ${OSDTELETEXT_DIR} ; then
+ :
+ else
+ einfo_level2 mounting videotext dir ${OSDTELETEXT_DIR}
+ sudo /bin/mount -t tmpfs -o size=${OSDTELETEXT_SIZE}m,uid=vdr,gid=vdr tmpfs ${OSDTELETEXT_DIR}
+ fi
+ fi
+}
+
+plugin_post_vdr_stop() {
+ if [ "${OSDTELETEXT_TMPFS}" = "yes" ]; then
+ if /bin/mount | /bin/grep -q ${OSDTELETEXT_DIR} ; then
+ einfo_level2 unmounting videotext dir ${OSDTELETEXT_DIR}
+ sudo /bin/umount ${OSDTELETEXT_DIR}
+ fi
+ fi
+}
diff --git a/media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.4-r1.ebuild b/media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.4-r1.ebuild
index d351e27feeca..23ca3c9be2d6 100644
--- a/media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.4-r1.ebuild
+++ b/media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.4-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.4-r1.ebuild,v 1.1 2014/01/06 22:56:18 hd_brummy Exp ${VDRPLUGIN}/vdr-${VDRPLUGIN}-0.3.1.ebuild,v 1.1 2003/05/13 09:39:19 fow0ryl Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.4-r1.ebuild,v 1.2 2014/01/12 21:33:10 hd_brummy Exp ${VDRPLUGIN}/vdr-${VDRPLUGIN}-0.3.1.ebuild,v 1.1 2003/05/13 09:39:19 fow0ryl Exp $
EAPI=5
@@ -20,7 +20,7 @@ IUSE=""
DEPEND=">=media-video/vdr-1.7.39"
RDEPEND="${DEPEND}"
-VDR_RCADDON_FILE="${FILESDIR}/rc-addon-v2.sh"
+VDR_RCADDON_FILE="${FILESDIR}/rc-addon-v3.sh"
VDR_CONFD_FILE="${FILESDIR}/confd-v2"
src_install() {