diff options
author | Martin Dummer <martin.dummer@gmx.net> | 2021-02-28 15:53:38 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-03-06 17:12:52 +0200 |
commit | 1bab7d7d07952e022a3eb3846eece0cbc32d3b88 (patch) | |
tree | fde64e42f30d6a523d1fdd50173ce51ee0b94d66 /media-plugins | |
parent | dev-qt/qtwebengine: x86 stable (bug #773040) (diff) | |
download | gentoo-1bab7d7d07952e022a3eb3846eece0cbc32d3b88.tar.gz gentoo-1bab7d7d07952e022a3eb3846eece0cbc32d3b88.tar.bz2 gentoo-1bab7d7d07952e022a3eb3846eece0cbc32d3b88.zip |
media-plugins/vdr-osdteletext: version bump to 0.9.8
new SRC_URI, new version
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/19712
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-plugins')
-rw-r--r-- | media-plugins/vdr-osdteletext/Manifest | 1 | ||||
-rw-r--r-- | media-plugins/vdr-osdteletext/files/confd | 37 | ||||
-rw-r--r-- | media-plugins/vdr-osdteletext/files/rc-addon.sh | 44 | ||||
-rw-r--r-- | media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.8.ebuild | 46 |
4 files changed, 128 insertions, 0 deletions
diff --git a/media-plugins/vdr-osdteletext/Manifest b/media-plugins/vdr-osdteletext/Manifest index a03df11d80fe..fd26f1e228b2 100644 --- a/media-plugins/vdr-osdteletext/Manifest +++ b/media-plugins/vdr-osdteletext/Manifest @@ -1 +1,2 @@ DIST vdr-osdteletext-0.9.7.tgz 101400 BLAKE2B 52cabda446701ce4898705487e47e5ca5146e58b42b47814f3835326c72118c62212ab81cad036f147e23b0c330b08bd2b2ba82bb7cc41f1bfcbd2525dbfe179 SHA512 d7ebd74ba5411bc8c7596b4f5f30eba7bc71e09d137a10650e78761c58045a96f804468f87fbf0c27e8fa161b64b06035878e5fac9940f75ea728646e92e6c76 +DIST vdr-osdteletext-0.9.8.tar.gz 100954 BLAKE2B def803093a3726a7c9b1905e04e5790ad3959d8d66664ccc3b0147cf4ed5ff37389525cbc1504fed7e8da782c5c9e58128e35c6adaa1f4ab04ad15cc3e2ae8ba SHA512 48196382fba247ac3d0140d028e23a3474e9a3b440c33b7a27e6127abfa949b1a7ab6748416d3430b68a80830bfbff1831de9d7e902ff9701b9dfd2d873a1f58 diff --git a/media-plugins/vdr-osdteletext/files/confd b/media-plugins/vdr-osdteletext/files/confd new file mode 100644 index 000000000000..a54934d2e047 --- /dev/null +++ b/media-plugins/vdr-osdteletext/files/confd @@ -0,0 +1,37 @@ +# /etc/conf.d/vdr.osdteletext + +# ################################################ +# +# 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/vdr/osdteletext +#OSDTELETEXT_DIR=/var/cache/vdr/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.sh b/media-plugins/vdr-osdteletext/files/rc-addon.sh new file mode 100644 index 000000000000..f9ccd119d019 --- /dev/null +++ b/media-plugins/vdr-osdteletext/files/rc-addon.sh @@ -0,0 +1,44 @@ +# +# 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() { + # depends on QA, create paths in /var/cache on the fly at runtime as needed + if [ ! -d "${OSDTELETEXT_DIR}" ]; then + mkdir -p ${OSDTELETEXT_DIR} + chown vdr:vdr ${OSDTELETEXT_DIR} + fi + + 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.8.ebuild b/media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.8.ebuild new file mode 100644 index 000000000000..58ca915916a6 --- /dev/null +++ b/media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.8.ebuild @@ -0,0 +1,46 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit user-info vdr-plugin-2 + +MY_P="vdr-plugin-osdteletext-${PV}" + +DESCRIPTION="VDR Plugin: Osd-Teletext displays the teletext/videotext on the OSD" +HOMEPAGE="https://projects.vdr-developer.org/projects/plg-osdteletext https://github.com/vdr-projects/vdr-plugin-osdteletext/" +SRC_URI="https://github.com/vdr-projects/vdr-plugin-osdteletext/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2+ public-domain" #teletext2.ttf, not copyrightable +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="media-video/vdr" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +QA_FLAGS_IGNORED=" + usr/lib/vdr/plugins/libvdr-.* + usr/lib64/vdr/plugins/libvdr-.*" + +src_install() { + vdr-plugin-2_src_install + + insinto /etc/sudoers.d + insopts -m440 + newins "${FILESDIR}/vdr-osdteletext.sudo" vdr-osdteletext + + local vdr_user_home=$(egethome vdr) + insinto "${vdr_user_home}/.local/share/fonts/" + insopts -m444 + doins teletext2.ttf + fowners -R vdr:vdr "${vdr_user_home}/.local" +} + +pkg_postinst() { + elog "This ebuild has installed a special teletext font" + elog "named \"teletext2\"" + elog "You may go to the plugin's setup menu and select" + elog "the font." +} |