summaryrefslogtreecommitdiff
path: root/media-plugins/vdr-osdteletext
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-03-12 21:55:15 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-03-12 21:55:15 +0000
commit7218e1b46bceac05841e90472501742d905fb3fc (patch)
tree56fae051db521b8fce8014cbc8b11484885b14b3 /media-plugins/vdr-osdteletext
parent6d691ad5b6239929063441bbd14c489e92e7396e (diff)
gentoo resync : 12.03.2021
Diffstat (limited to 'media-plugins/vdr-osdteletext')
-rw-r--r--media-plugins/vdr-osdteletext/Manifest4
-rw-r--r--media-plugins/vdr-osdteletext/files/confd37
-rw-r--r--media-plugins/vdr-osdteletext/files/rc-addon.sh44
-rw-r--r--media-plugins/vdr-osdteletext/vdr-osdteletext-0.9.8.ebuild46
4 files changed, 131 insertions, 0 deletions
diff --git a/media-plugins/vdr-osdteletext/Manifest b/media-plugins/vdr-osdteletext/Manifest
index 2121be573460..ca670c9c9361 100644
--- a/media-plugins/vdr-osdteletext/Manifest
+++ b/media-plugins/vdr-osdteletext/Manifest
@@ -1,6 +1,10 @@
+AUX confd 963 BLAKE2B 24697ddc9bea54bf7969541ac8b980e76e65f66b37b0bfb0b6bc7bcb8dd03d568aceb0270da20347b66a513080de894fb46c27c38f2eb165fe25dff05e70249a SHA512 1b46b07e67c345e6d00bab485438f4f387cff4d09d8e77f006ce19825f953bee96193cbf1cbb7ad5c6a34f24aac20492b00e3d59fcff3554ea709656bb6fb589
AUX confd-v2 963 BLAKE2B 7189cc8575586225b424a0bc513cb4c47031f68691c8816cac64efa5c7e37f9106e32e8f80d89f8d45966d02668286b45dcfe57d302d31ed464256326255343f SHA512 9690245ea6e822c4bec6bf6b9223cf162b3ac1b3fb742de1488c74bfd287698a6d67622951d69ee0ede515e17a727a077ecf6f0eba9c3e46e9393309925484c6
AUX rc-addon-v3.sh 1228 BLAKE2B 105480d839ac3aafb427b10561131bf0c5a19244cfac1a9872cd9dacc60d6b4db6453f627431ce3ea4ca4c047e772e17959f8463872152df0a30ddefdb6d7712 SHA512 ec139bda35653a186071a6199bf70ed5c667a6c6d76bf2e16ce142dc577eb3b8b3da8f716f06d2334af0bfed56fb27087d5b44752b19c4e2bc698cbab26c54f7
+AUX rc-addon.sh 1191 BLAKE2B d85ac441b2899b48188bbaa8c021c6ce858a5e93f29b947640684123279908a5707006408080f412140866c1cf06941c3457beba8dbb259b0c706daa60b8dd9b SHA512 674183c146887a2414132b5b30c8262a6ab05009256fec5bbe1e4b588b6fbceb1fd8a4a5a0f6e61346a5345a3a01cfb2cbcd987206ccee9defbb4c923b4ada59
AUX vdr-osdteletext.sudo 41 BLAKE2B 0667dd49014acdd7ebcd30fed09020dd72d96f1721c7482ee227ce8609456831c75dd7cd7e4791057daad13ae56712dff9e5e382ef36f7e08a8043c64048dad6 SHA512 bf67c332d86cc4d85c6e67a7d9d4fe8271dec1ca3a319bcb22c234278545120de99a97409c19c7f5e37d1f87e97a09306688ce868f385b502305c730bfa0263f
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
EBUILD vdr-osdteletext-0.9.7.ebuild 1206 BLAKE2B 26d9c561a70002d6531181fc039203d8f7292fd23966f42f1d4080948d04c168d3c91df83454473ff13e8179a3c6ae21b8988cebd633723280a2635f9d119e51 SHA512 6b06ee1321f69fadb3eb9a1fd3af39c7942f85f35ce19ccac8ffb0aa45e9353a608d0f4fa4acdc75e367e5341262a4f9e13922d6a027b9f62b1b9a9d0a6e2644
+EBUILD vdr-osdteletext-0.9.8.ebuild 1234 BLAKE2B 65693a600e0378b9adccdde33aa8aa2dde04f8f7147af8d63189a9ef53f7356ef2d0270e0b33f112328fb9750e66fdedae4fe6b42ad993685a989434eb677b28 SHA512 cde3e9da20239555bce2bea3af95915e791e853afe94c367fad8b38abeae393eb56c943edaa170b0c549a08ec5b1b058ec58c0c03cccf23ec4a3a0057007e865
MISC metadata.xml 477 BLAKE2B 082ad4f53e9c433ebb519be1cba7b079d1372d8b18b169092f4dd17cea14c4be99f4a3ca49934305817a45ca8208c079c85fe4d9bb0ba3c9cfb4754b02dec9c1 SHA512 9d317606d6f1dde6af151f99db3e0a119a47e2a6816da518a343777980236f93942e8fc3694fb5f80ad6a1c6b6e4b9d81064dbb7b2bfe4694a65fbd05cf9ac8f
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."
+}