summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Wingate <parona@protonmail.com>2024-02-21 09:25:19 +0200
committerYixun Lan <dlan@gentoo.org>2024-02-22 00:43:27 +0000
commitc80b609807f07e6e076578057688932e603eaa96 (patch)
tree1ffe3df4ae0dfa9bce0b5443418847d0a996e8df /dev-util/android-udev-rules
parentdev-python/cryptography: Stabilize 42.0.4 ppc64, #925119 (diff)
downloadgentoo-c80b609807f07e6e076578057688932e603eaa96.tar.gz
gentoo-c80b609807f07e6e076578057688932e603eaa96.tar.bz2
gentoo-c80b609807f07e6e076578057688932e603eaa96.zip
dev-util/android-udev-rules: add 20240221
Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'dev-util/android-udev-rules')
-rw-r--r--dev-util/android-udev-rules/Manifest1
-rw-r--r--dev-util/android-udev-rules/android-udev-rules-20240221.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-util/android-udev-rules/Manifest b/dev-util/android-udev-rules/Manifest
index b4ce9d1479f5..191b0c7d0f1b 100644
--- a/dev-util/android-udev-rules/Manifest
+++ b/dev-util/android-udev-rules/Manifest
@@ -1,2 +1,3 @@
DIST android-udev-rules-20231207.tar.gz 24610 BLAKE2B 3af1deafbd67c3d1afd725e23c455c3a7f8e721d2ae6b384b61d6816cf6a0e21cb5dc5284d0d645e1d3a448cb1e4e7191252e636a412358faf05275fd6d27300 SHA512 957704e64d7c34e9eab235a1223c8b2929ef6e079e5ba1aa083c5743684fc09711e0d4d3bd51f81c236ee444c4aea5c1c3fc9e613e1864ba0b56bbb6ce8afcf7
DIST android-udev-rules-20240114.tar.gz 24655 BLAKE2B 078c19d5cbf937c12d1611c223613202c44c1cc70e6c3c475ed68b7197fb759b82883f60670ce9c0d188432b86ed2c1dce7460450e1a433f5672af8b2d99c1b7 SHA512 1ebc186abc6bc080e336765f07fea046db338da189ae098ecc696239aea3c2a93679de7ca3baacea94787b4f2df65ba3946676b5f5d09f7b2aa813ab20cb108e
+DIST android-udev-rules-20240221.tar.gz 24770 BLAKE2B 76c69763a173cef28fe8ebf730edc5cd156e60900740752d703b56a8495aa868b9ee91cb5fa98e445420cbe7714b9f474e047d626666c3ea40273e0a19124ecb SHA512 152012c450dfa98b047d43162d15c614f7349c774de36c7ebdd8beff88fcb08e162cb5b8c8ab647b4058c510a3b5f65888d02402e86bea6726159051e0f5bc72
diff --git a/dev-util/android-udev-rules/android-udev-rules-20240221.ebuild b/dev-util/android-udev-rules/android-udev-rules-20240221.ebuild
new file mode 100644
index 000000000000..b566bb91970c
--- /dev/null
+++ b/dev-util/android-udev-rules/android-udev-rules-20240221.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit udev
+
+DESCRIPTION="Android udev rules list aimed to be the most comprehensive on the net"
+HOMEPAGE="https://github.com/M0Rf30/android-udev-rules"
+SRC_URI="https://github.com/M0Rf30/android-udev-rules/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+# No tests
+RESTRICT="test"
+
+RDEPEND="
+ acct-group/android
+ virtual/udev
+"
+
+src_prepare() {
+ default
+
+ # Use the pre-existing android group
+ sed -i 's/GROUP="adbusers"/GROUP="android"/' 51-android.rules || die
+}
+
+src_install() {
+ udev_dorules 51-android.rules
+ einstalldocs
+}
+
+pkg_postinst() {
+ udev_reload
+}
+
+pkg_postrm() {
+ udev_reload
+}