Github messages for voidlinux
 help / color / mirror / Atom feed
From: dkwo <dkwo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] i2c-tools: add udev rule and group
Date: Sat, 21 Aug 2021 18:08:14 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32615@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

There is a new pull request by dkwo against master on the void-packages repository

https://github.com/dkwo/void-packages i2c
https://github.com/void-linux/void-packages/pull/32615

i2c-tools: add udev rule and group
Fixes #29152

- [x] I generally don't use the affected packages but briefly tested this PR

A patch file from https://github.com/void-linux/void-packages/pull/32615.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-i2c-32615.patch --]
[-- Type: text/x-diff, Size: 1578 bytes --]

From f24ea60f7541256acb3162cb5e67d0bfd364407a Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Sat, 21 Aug 2021 18:02:49 +0200
Subject: [PATCH] i2c-tools: add udev rule and group

---
 srcpkgs/i2c-tools/files/45-i2c-tools.rules | 2 ++
 srcpkgs/i2c-tools/template                 | 7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/i2c-tools/files/45-i2c-tools.rules

diff --git a/srcpkgs/i2c-tools/files/45-i2c-tools.rules b/srcpkgs/i2c-tools/files/45-i2c-tools.rules
new file mode 100644
index 000000000000..fd66f425ec94
--- /dev/null
+++ b/srcpkgs/i2c-tools/files/45-i2c-tools.rules
@@ -0,0 +1,2 @@
+# Assigns the i2c devices to group i2c, and gives that group RW access:
+KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
diff --git a/srcpkgs/i2c-tools/template b/srcpkgs/i2c-tools/template
index 0c15cdfd6ed8..8d730d0561ab 100644
--- a/srcpkgs/i2c-tools/template
+++ b/srcpkgs/i2c-tools/template
@@ -1,7 +1,7 @@
 # Template file for 'i2c-tools'
 pkgname=i2c-tools
 version=4.2
-revision=1
+revision=2
 build_style=gnu-makefile
 make_install_args="sbindir=/usr/bin"
 depends="perl"
@@ -11,6 +11,11 @@ license="GPL-2.0-or-later"
 homepage="https://packages.debian.org/sid/i2c-tools"
 distfiles="${DEBIAN_SITE}/main/i/${pkgname}/${pkgname}_${version}.orig.tar.xz"
 checksum=37f2dabc7082d185903ff21d1f584b5dcb4dd2eb2c879bbd8d7c50ae900dacd6
+system_groups="i2c"
+
+post_install() {
+	vinstall "${FILESDIR}/45-i2c-tools.rules" 644 usr/lib/udev/rules.d
+}
 
 i2c-tools-devel_package() {
 	short_desc+=" - development files"

             reply	other threads:[~2021-08-21 16:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-21 16:08 dkwo [this message]
2021-08-25  9:48 ` dkwo
2021-08-27 17:39 ` [PR PATCH] [Merged]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-32615@inbox.vuxu.org \
    --to=dkwo@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).