Subject: [alpine-aports] [PATCH] main/eudev: set group for /dev/kvm to 'kvm'

From: Sören Tempel <[email-masked]>
Date: Thu, 20 Oct 2016 11:38:29 +0200

This is in accordance with the default mdev configuration file shipped
by main/busybox-initscripts.
---
 main/eudev/APKBUILD            |  7 ++++++-
 main/eudev/default-rules.patch | 10 ++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
 create mode 100644 main/eudev/default-rules.patch

diff --git a/main/eudev/APKBUILD b/main/eudev/APKBUILD
index 80ff36a..f6b5faa 100644
--- a/main/eudev/APKBUILD
+++ b/main/eudev/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=eudev
 pkgver=3.2
-pkgrel=0
+pkgrel=1
 pkgdesc="OpenRC compatible fork of systemd-udev"
 url="https://wiki.gentoo.org/wiki/Project:Eudev"
 arch="all"
@@ -15,6 +15,8 @@ makedepends="$depends_dev gperf glib-dev linux-headers kmod-dev
 install=""
 subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-netifnames"
 source="http://dev.gentoo.org/~blueness/$pkgname/$pkgname-$pkgver.tar.gz
+	default-rules.patch
+
 	udev-postmount.initd
 	setup-udev
 	"
@@ -78,11 +80,14 @@ netifnames() {
 }
 
 md5sums="7e42d9b9ed8162021665139520676367  eudev-3.2.tar.gz
+f7dd926624cf9b20e0e23cbcd7fdac79  default-rules.patch
 17ca36a764f5e8a89454344cde828740  udev-postmount.initd
 6fe6a4b05f2768e240c3a20caa0f0cee  setup-udev"
 sha256sums="d84a5f7942393a009afc6af0bf31e98841147a0521b91ffbed161dccac303c25  eudev-3.2.tar.gz
+8279f598c8eea2cae226a5dc89a0f11373d8f6082da93bf9fda6a9c2e8bc68e4  default-rules.patch
 b0327069dbb57b39600079b87df80915dabb77c2fa298d6ae109ca04f8ba08b5  udev-postmount.initd
 7c961c05700e881677249d3aa0ac3a4b489d203cab7464d38f1a78c3692026be  setup-udev"
 sha512sums="84c4dc6683531a3efb1e6b4e3ce4108c1747a7d7f07519d46009a9d1b77323d4e0331aa4c2870a4b571bfb01f6bec3444f1bf0d4ed0a524118b32ded49c3eb7c  eudev-3.2.tar.gz
+86e16a9801868fe1a9d70cc358f0c9988443174872a30e0a1a2837f8345480108e012a1d37fa4cdd10b1bbbb8cfa314c9c9499496b31c6510d0a911634fc7169  default-rules.patch
 8ef1b911843ab13acb1c1b9b7a0a5cd76659f395c3db9e579429556f23eacebb414507dc0231e2455e7589bc70054fa1e6b6dd93dd833f7101c0da0597aabf88  udev-postmount.initd
 aa8a040ad503633bf751e8cab34535715f0db2a8b4b716a1dc0b00a6f9c6a78fabc0652daba3e43df91d4d80c68563c00a27b7bc6f419573bc7704a5c7f76ee1  setup-udev"
diff --git a/main/eudev/default-rules.patch b/main/eudev/default-rules.patch
new file mode 100644
index 0000000..9fa53e9
--- /dev/null
+++ b/main/eudev/default-rules.patch
@@ -0,0 +1,10 @@
+diff -upr eudev-3.2.orig/rules/50-udev-default.rules eudev-3.2/rules/50-udev-default.rules
+--- eudev-3.2.orig/rules/50-udev-default.rules	2016-10-20 11:35:17.149039615 +0200
++++ eudev-3.2/rules/50-udev-default.rules	2016-10-20 11:35:37.028957882 +0200
+@@ -73,5 +73,6 @@ KERNEL=="rfkill", MODE="0664"
+ KERNEL=="tun", MODE="0666", OPTIONS+="static_node=net/tun"
+ 
+ KERNEL=="fuse", MODE="0666", OPTIONS+="static_node=fuse"
++KERNEL=="kvm", GROUP="kvm", MODE="0660"
+ 
+ LABEL="default_end"
-- 
2.10.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---