commit:     0e26199a1115a68cfc9fff0cc7dfcd46fdebf9a6
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri Apr 26 20:43:52 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec  1 11:52:10 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e26199a

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

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

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ....0.6a-r1.ebuild => vdr-serial-0.0.6a-r2.ebuild} | 28 +++++++++-------------
 1 file changed, 11 insertions(+), 17 deletions(-)

diff --git a/media-plugins/vdr-serial/vdr-serial-0.0.6a-r1.ebuild 
b/media-plugins/vdr-serial/vdr-serial-0.0.6a-r2.ebuild
similarity index 57%
rename from media-plugins/vdr-serial/vdr-serial-0.0.6a-r1.ebuild
rename to media-plugins/vdr-serial/vdr-serial-0.0.6a-r2.ebuild
index d37f5c9b253b..5fcf0a93776c 100644
--- a/media-plugins/vdr-serial/vdr-serial-0.0.6a-r1.ebuild
+++ b/media-plugins/vdr-serial/vdr-serial-0.0.6a-r2.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit vdr-plugin-2
 
@@ -9,24 +9,18 @@ DESCRIPTION="VDR Plugin: attach some buttons with diodes to 
the serial port"
 HOMEPAGE="http://www.lf-klueber.de/vdr.htm";
 SRC_URI="http://www.lf-klueber.de/${P}.tgz";
 
-KEYWORDS="~amd64 ~x86"
-SLOT="0"
 LICENSE="GPL-2"
-IUSE=""
-
-DEPEND="media-video/vdr"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
 
-pkg_setup() {
-       vdr-plugin-2_pkg_setup
+DEPEND="
+       media-video/vdr
+"
 
-       if ! getent group uucp | grep -q vdr; then
-               echo
-               einfo "Add user 'vdr' to group 'uucp' for full user access to 
serial/ttyS* device"
-               echo
-               elog "User vdr added to group uucp"
-               gpasswd -a vdr uucp
-       fi
-}
+RDEPEND="
+       ${DEPEND}
+       acct-user/vdr[serial]
+"
 
 src_prepare() {
        vdr-plugin-2_src_prepare

Reply via email to