summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred Wingate <parona@protonmail.com>2022-09-26 03:06:14 +0300
committerZac Medico <zmedico@gentoo.org>2022-10-02 21:35:46 -0700
commitc6bd531f08cf0c5e19b46ac9071e23624dbb1825 (patch)
tree75e6306f8593a32e34b98454576ef9f37f4f34a6 /dev-util/android-udev-rules
parentsys-block/tgt: drop 1.0.79-r1, 1.0.80-r1, 1.0.82 (diff)
downloadgentoo-c6bd531f08cf0c5e19b46ac9071e23624dbb1825.tar.gz
gentoo-c6bd531f08cf0c5e19b46ac9071e23624dbb1825.tar.bz2
gentoo-c6bd531f08cf0c5e19b46ac9071e23624dbb1825.zip
dev-util/android-udev-rules: new package, add 20220903
Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Zac Medico <zmedico@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-20220903.ebuild39
-rw-r--r--dev-util/android-udev-rules/metadata.xml15
3 files changed, 55 insertions, 0 deletions
diff --git a/dev-util/android-udev-rules/Manifest b/dev-util/android-udev-rules/Manifest
new file mode 100644
index 000000000000..fb2c196e26c3
--- /dev/null
+++ b/dev-util/android-udev-rules/Manifest
@@ -0,0 +1 @@
+DIST android-udev-rules-20220903.tar.gz 21009 BLAKE2B 4f0375b574f123e7cbd18658582568f85e3278e9fe2b673e6c9193a16845737afc99d82d0df2f6a8d0daf784132e7d523bdf767761a5d467a66bf89f86cc1046 SHA512 ca09a1b49b6cbc7df2b8c6bea1e6fcf4886938c8567002054222795493bea036e3c5a139939e43cb965d45a8ecf74c0715583ef1aade2b7783751a75ab34d540
diff --git a/dev-util/android-udev-rules/android-udev-rules-20220903.ebuild b/dev-util/android-udev-rules/android-udev-rules-20220903.ebuild
new file mode 100644
index 000000000000..e89254bcee98
--- /dev/null
+++ b/dev-util/android-udev-rules/android-udev-rules-20220903.ebuild
@@ -0,0 +1,39 @@
+# Copyright 2022 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"
+
+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
+}
diff --git a/dev-util/android-udev-rules/metadata.xml b/dev-util/android-udev-rules/metadata.xml
new file mode 100644
index 000000000000..6fe12059e54f
--- /dev/null
+++ b/dev-util/android-udev-rules/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>parona@protonmail.com</email>
+ <name>Alfred Wingate</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">M0Rf30/android-udev-rules</remote-id>
+ </upstream>
+</pkgmetadata>