summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Dummer <martin.dummer@gmx.net>2022-02-06 21:05:10 +0100
committerConrad Kostecki <conikost@gentoo.org>2024-06-22 21:09:50 +0200
commit334b91d10e77ae63df7c21b6743e9bf2bfff2836 (patch)
tree85988478954461e4083d63f76ce44aa780220bfd /media-plugins
parentmedia-plugins/vdr-fritzbox: add 1.5.4 (diff)
downloadgentoo-334b91d10e77ae63df7c21b6743e9bf2bfff2836.tar.gz
gentoo-334b91d10e77ae63df7c21b6743e9bf2bfff2836.tar.bz2
gentoo-334b91d10e77ae63df7c21b6743e9bf2bfff2836.zip
media-plugins/vdr-newsticker: fix vdr home directory handling
new acct-user/vdr dependency needs new home directory handling Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/vdr-newsticker/files/rc-addon.sh3
-rw-r--r--media-plugins/vdr-newsticker/metadata.xml24
-rw-r--r--media-plugins/vdr-newsticker/vdr-newsticker-0.0.4-r1.ebuild33
3 files changed, 47 insertions, 13 deletions
diff --git a/media-plugins/vdr-newsticker/files/rc-addon.sh b/media-plugins/vdr-newsticker/files/rc-addon.sh
index 387d7ac42862..90a30ada6b13 100644
--- a/media-plugins/vdr-newsticker/files/rc-addon.sh
+++ b/media-plugins/vdr-newsticker/files/rc-addon.sh
@@ -3,5 +3,6 @@
#
plugin_pre_vdr_start() {
- add_plugin_param "--output=/var/vdr/newsticker"
+ local vdr_user_home=$( getent passwd "vdr" | cut -d: -f6 )
+ add_plugin_param "--output=${vdr_user_home}/newsticker"
}
diff --git a/media-plugins/vdr-newsticker/metadata.xml b/media-plugins/vdr-newsticker/metadata.xml
index c08751971fb3..b4dbb6eb43d2 100644
--- a/media-plugins/vdr-newsticker/metadata.xml
+++ b/media-plugins/vdr-newsticker/metadata.xml
@@ -1,16 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer type="person" proxied="yes">
- <email>martin.dummer@gmx.net</email>
- <name>Martin Dummer</name>
- </maintainer>
- <maintainer type="project" proxied="proxy">
- <email>proxy-maint@gentoo.org</email>
- <name>Proxy Maintainers</name>
- </maintainer>
- <maintainer type="project">
- <email>vdr@gentoo.org</email>
- <name>Gentoo VDR Project</name>
- </maintainer>
+ <maintainer type="person" proxied="yes">
+ <email>martin.dummer@gmx.net</email>
+ <name>Martin Dummer</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>vdr@gentoo.org</email>
+ <name>Gentoo VDR Project</name>
+ </maintainer>
</pkgmetadata>
diff --git a/media-plugins/vdr-newsticker/vdr-newsticker-0.0.4-r1.ebuild b/media-plugins/vdr-newsticker/vdr-newsticker-0.0.4-r1.ebuild
new file mode 100644
index 000000000000..b8fe6681e29a
--- /dev/null
+++ b/media-plugins/vdr-newsticker/vdr-newsticker-0.0.4-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit user-info vdr-plugin-2
+
+DESCRIPTION="VDR plugin: Show rdf Newsticker on TV"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="http://vdr.websitec.de/download/${PN}/${P}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+LICENSE="GPL-2"
+
+BDEPEND="acct-user/vdr
+ media-video/vdr"
+DEPEND="${BDEPEND}"
+RDEPEND="${DEPEND}
+ net-misc/wget"
+
+PATCHES=( "${FILESDIR}/${P}-gcc4.diff" )
+QA_FLAGS_IGNORED="
+ usr/lib/vdr/plugins/libvdr-.*
+ usr/lib64/vdr/plugins/libvdr-.*"
+
+src_install() {
+ vdr-plugin-2_src_install
+
+ local vdr_user_home=$(egethome vdr)
+ keepdir "${vdr_user_home}/newsticker/"
+ fowners -R vdr:vdr "${vdr_user_home}//newsticker/"
+}