From f6298779718db2970d14e6e2a0bc1fe0d993679f Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Wed, 20 Oct 2021 13:20:07 -0400 Subject: dev-util/android-udev-rules: convert to acct-group --- .../android-udev-rules-20210501-r1.ebuild | 30 ++++++++++++++++++++ .../android-udev-rules-20210501.ebuild | 32 ---------------------- 2 files changed, 30 insertions(+), 32 deletions(-) create mode 100644 dev-util/android-udev-rules/android-udev-rules-20210501-r1.ebuild delete mode 100644 dev-util/android-udev-rules/android-udev-rules-20210501.ebuild (limited to 'dev-util/android-udev-rules') diff --git a/dev-util/android-udev-rules/android-udev-rules-20210501-r1.ebuild b/dev-util/android-udev-rules/android-udev-rules-20210501-r1.ebuild new file mode 100644 index 0000000..22bf11a --- /dev/null +++ b/dev-util/android-udev-rules/android-udev-rules-20210501-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit vcs-snapshot udev + +DESCRIPTION="Comprehensive list of udev rules to connect to android devices" +HOMEPAGE="https://github.com/M0Rf30/android-udev-rules" +SRC_URI="https://github.com/M0Rf30/android-udev-rules/archive/${PV}.tar.gz -> ${P}.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + acct-group/adbusers + virtual/udev +" + +src_install() { + udev_dorules 51-android.rules +} + +pkg_postinst() { + einfo "To be able to use android devices," + einfo "add yourself to the 'adbusers' group by calling" + einfo " usermod -a -G adbusers " +} diff --git a/dev-util/android-udev-rules/android-udev-rules-20210501.ebuild b/dev-util/android-udev-rules/android-udev-rules-20210501.ebuild deleted file mode 100644 index 09153b6..0000000 --- a/dev-util/android-udev-rules/android-udev-rules-20210501.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit vcs-snapshot udev user - -DESCRIPTION="Comprehensive list of udev rules to connect to android devices" -HOMEPAGE="https://github.com/M0Rf30/android-udev-rules" -SRC_URI="https://github.com/M0Rf30/android-udev-rules/archive/${PV}.tar.gz -> ${P}.tar.bz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -RDEPEND="virtual/udev" -DEPEND="${RDEPEND}" - -src_install() { - udev_dorules 51-android.rules -} - -pkg_setup() { - enewgroup adbusers -} - -pkg_postinst() { - einfo "To be able to use android devices," - einfo "add yourself to the 'adbusers' group by calling" - einfo " usermod -a -G adbusers " -} -- cgit v1.2.3-70-g09d2