diff options
author | Jörg Bornkessel <hd_brummy@gentoo.org> | 2012-04-18 17:33:35 +0000 |
---|---|---|
committer | Jörg Bornkessel <hd_brummy@gentoo.org> | 2012-04-18 17:33:35 +0000 |
commit | ec410b8d4a459660e7a41e984cb50352a2b4b6c7 (patch) | |
tree | a6c1a1b3196c9353e2d214eccd998dbaecd16141 /media-plugins/vdr-osdteletext | |
parent | Initial commit, bug 331177. (diff) | |
download | gentoo-2-ec410b8d4a459660e7a41e984cb50352a2b4b6c7.tar.gz gentoo-2-ec410b8d4a459660e7a41e984cb50352a2b4b6c7.tar.bz2 gentoo-2-ec410b8d4a459660e7a41e984cb50352a2b4b6c7.zip |
version bump; thx to M.Dummer
(Portage version: 2.1.10.11/cvs/Linux i686)
Diffstat (limited to 'media-plugins/vdr-osdteletext')
-rw-r--r-- | media-plugins/vdr-osdteletext/ChangeLog | 8 | ||||
-rw-r--r-- | media-plugins/vdr-osdteletext/files/confd-v2 | 38 | ||||
-rw-r--r-- | media-plugins/vdr-osdteletext/files/rc-addon-v2.sh | 39 | ||||
-rw-r--r-- | media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.3.ebuild | 32 |
4 files changed, 116 insertions, 1 deletions
diff --git a/media-plugins/vdr-osdteletext/ChangeLog b/media-plugins/vdr-osdteletext/ChangeLog index 3f7165e92ccd..70264147f594 100644 --- a/media-plugins/vdr-osdteletext/ChangeLog +++ b/media-plugins/vdr-osdteletext/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-plugins/vdr-osdteletext # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-osdteletext/ChangeLog,v 1.20 2012/02/07 01:11:59 hd_brummy Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-osdteletext/ChangeLog,v 1.21 2012/04/18 17:33:35 hd_brummy Exp $ + +*vdr-osdteletext-0.9.3 (18 Apr 2012) + + 18 Apr 2012; Joerg Bornkessel <hd_brummy@gentoo.org> +files/confd-v2, + +files/rc-addon-v2.sh, +vdr-osdteletext-0.9.3.ebuild: + version bump; thx to M.Dummer 07 Feb 2012; Joerg Bornkessel <hd_brummy@gentoo.org> -vdr-osdteletext-0.8.3.ebuild, -vdr-osdteletext-0.9.0.ebuild, diff --git a/media-plugins/vdr-osdteletext/files/confd-v2 b/media-plugins/vdr-osdteletext/files/confd-v2 new file mode 100644 index 000000000000..12bb31f794ff --- /dev/null +++ b/media-plugins/vdr-osdteletext/files/confd-v2 @@ -0,0 +1,38 @@ +# /etc/conf.d/vdr.osdteletext +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-osdteletext/files/confd-v2,v 1.1 2012/04/18 17:33:35 hd_brummy Exp $ + +# ################################################ +# +# for minimal activity on your Harddisc +# store the vtx files in a temp filesystem +# allowed values: yes no +# default: yes +#OSDTELETEXT_TMPFS=yes + + +# ######### Expert Functions ################### +# +# set the size of the videotext store +# (when using TMPFS this is taken from RAM) +# allowed values: size in megabyte +# default: 20 # used 20 Mb for videotext +#OSDTELETEXT_SIZE=20 + +# set the dir of the tmpfs +# allowed values: directory names +# default: /var/cache/osdteletext +#OSDTELETEXT_DIR=/var/cache/osdteletext + +# store top text pages at cache. (unviewable pages) +# allowed values: yes no +# default: no +#OSDTELETEXT_STORETOPTEXT=no + +# ######## NOTE! ################################ +# +# User with an old install have an entry like +# +# tmpfs /vtx tmpfs size=20M 0 0 +# +# in the /etc/fstab +# you can remove the entry, not needed anymore. diff --git a/media-plugins/vdr-osdteletext/files/rc-addon-v2.sh b/media-plugins/vdr-osdteletext/files/rc-addon-v2.sh new file mode 100644 index 000000000000..2bc0662bc45f --- /dev/null +++ b/media-plugins/vdr-osdteletext/files/rc-addon-v2.sh @@ -0,0 +1,39 @@ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-osdteletext/files/rc-addon-v2.sh,v 1.1 2012/04/18 17:33:35 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/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} + /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} + /bin/umount ${OSDTELETEXT_DIR} + fi + fi +} diff --git a/media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.3.ebuild b/media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.3.ebuild new file mode 100644 index 000000000000..0c3fc27dfdc0 --- /dev/null +++ b/media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.3.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2012 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.3.ebuild,v 1.1 2012/04/18 17:33:35 hd_brummy Exp ${VDRPLUGIN}/vdr-${VDRPLUGIN}-0.3.1.ebuild,v 1.1 2003/05/13 09:39:19 fow0ryl Exp $ + +EAPI="4" + +inherit vdr-plugin + +VERSION="685" # every bump, new version + +DESCRIPTION="VDR Plugin: Osd-Teletext displays the teletext on the OSD" +HOMEPAGE="http://projects.vdr-developer.org/projects/show/plg-osdteletext" +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}" + +VDR_RCADDON_FILE="${FILESDIR}/rc-addon-v2.sh" +VDR_CONFD_FILE="${FILESDIR}/confd-v2" + +src_install() { + vdr-plugin_src_install + + # create the teletext directory + diropts -m755 -ovdr -gvdr + keepdir /var/cache/${VDRPLUGIN} +} |