Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] base-files: add usbmon group, udev rules
@ 2022-09-02 11:08 classabbyamp
  2022-09-13 17:54 ` [PR PATCH] [Merged]: " classabbyamp
  0 siblings, 1 reply; 2+ messages in thread
From: classabbyamp @ 2022-09-02 11:08 UTC (permalink / raw)
  To: ml

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

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

https://github.com/classabbyamp/void-packages usbmon
https://github.com/void-linux/void-packages/pull/39059

base-files: add usbmon group, udev rules
this will be useful for wireshark users, whose official documentation
says to manually set an ACL for /dev/usbmon* to use it with USB devices.
This should make it easier.

Source: https://src.fedoraproject.org/rpms/wireshark/blob/rawhide/f/90-wireshark-usbmon.rules

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**



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

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

From 074ed30bb8f543f68c58826eb2f7c4d6063e4402 Mon Sep 17 00:00:00 2001
From: classabbyamp <void@placeviolette.net>
Date: Fri, 2 Sep 2022 07:04:52 -0400
Subject: [PATCH] base-files: add usbmon group, udev rules

this will be useful for wireshark users, whose official documentation
says to manually set an ACL for /dev/usbmon* to use it with USB devices.
This should make it easier.

Source: https://src.fedoraproject.org/rpms/wireshark/blob/rawhide/f/90-wireshark-usbmon.rules
---
 srcpkgs/base-files/files/90-usbmon.rules | 1 +
 srcpkgs/base-files/files/group           | 1 +
 srcpkgs/base-files/template              | 4 ++--
 3 files changed, 4 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/base-files/files/90-usbmon.rules

diff --git a/srcpkgs/base-files/files/90-usbmon.rules b/srcpkgs/base-files/files/90-usbmon.rules
new file mode 100644
index 000000000000..10a127c3a840
--- /dev/null
+++ b/srcpkgs/base-files/files/90-usbmon.rules
@@ -0,0 +1 @@
+SUBSYSTEM=="usbmon", GROUP="usbmon", MODE="640"
diff --git a/srcpkgs/base-files/files/group b/srcpkgs/base-files/files/group
index b4e61903105c..dfad1019792b 100644
--- a/srcpkgs/base-files/files/group
+++ b/srcpkgs/base-files/files/group
@@ -23,6 +23,7 @@ network:x:21:
 kvm:x:24:
 input:x:25:
 plugdev:x:26:
+usbmon:x:27:
 nogroup:x:99:
 users:x:100:
 xbuilder:x:101:
diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template
index 2249d002f3f9..be6384f942c6 100644
--- a/srcpkgs/base-files/template
+++ b/srcpkgs/base-files/template
@@ -1,7 +1,7 @@
 # Template file for 'base-files'
 pkgname=base-files
 version=0.142
-revision=13
+revision=14
 bootstrap=yes
 depends="xbps-triggers"
 short_desc="Void Linux base system files"
@@ -29,7 +29,7 @@ conf_files="
 
 replaces="base-directories>=0"
 # New system groups
-system_groups="kvm:24 plugdev:26"
+system_groups="kvm:24 plugdev:26 usbmon:27"
 
 do_install() {
 	# Create bin and lib dirs and symlinks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: base-files: add usbmon group, udev rules
  2022-09-02 11:08 [PR PATCH] base-files: add usbmon group, udev rules classabbyamp
@ 2022-09-13 17:54 ` classabbyamp
  0 siblings, 0 replies; 2+ messages in thread
From: classabbyamp @ 2022-09-13 17:54 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

base-files: add usbmon group, udev rules
https://github.com/void-linux/void-packages/pull/39059

Description:
this will be useful for wireshark users, whose official documentation says to manually set an ACL for /dev/usbmon* to use it with USB devices. This should make it easier.

Source: https://src.fedoraproject.org/rpms/wireshark/blob/rawhide/f/90-wireshark-usbmon.rules

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-13 17:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-02 11:08 [PR PATCH] base-files: add usbmon group, udev rules classabbyamp
2022-09-13 17:54 ` [PR PATCH] [Merged]: " classabbyamp

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).