media-plugins/vdr-remote: [QA] BannedEapiCommand

acct-user/vdr has the logic for this, so use it

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Paul Zander
2024-04-26 22:43:33 +02:00
committed by Sam James
parent a88993d409
commit ffe86e04d7

View File

@@ -1,7 +1,7 @@
# Copyright 2021 Gentoo Authors
# Copyright 2021-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit vdr-plugin-2
@@ -9,20 +9,15 @@ DESCRIPTION="VDR Plugin: use various devices for controlling vdr (keyboards, lir
HOMEPAGE="http://www.escape-edv.de/endriss/vdr/"
SRC_URI="http://www.escape-edv.de/endriss/vdr/${P}.tgz"
SLOT="0"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="systemd"
DEPEND=">=media-video/vdr-2.2.0"
pkg_setup() {
vdr-plugin-2_pkg_setup
if use systemd; then
if ! getent group input | grep -q vdr; then
einfo "add user 'vdr' to group 'input' for full access to remote control device"
gpasswd -a vdr input
fi
fi
}
DEPEND="
>=media-video/vdr-2.2.0
"
RDEPEND="
${DEPEND}
systemd? ( acct-user/vdr[remote,systemd] )
"