summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2013-04-17 00:27:39 -0500
committerNiels Horn <niels.horn@slackbuilds.org>2013-04-28 12:23:22 -0300
commit2f37dd822b309926f408423893dcd1182dc1107c (patch)
treef186e04cf43108cdc1c75406be49e2a715574f42
parent7cb823a3fa4ac5fafb8ec1a32deae94ea08d6303 (diff)
downloadslackbuilds-2f37dd822b309926f408423893dcd1182dc1107c.tar.gz
system/kvm-kmod: Don't install udev rules
The udev rules to control access to /dev/kvm are included with the qemu package. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--system/kvm-kmod/README5
-rw-r--r--system/kvm-kmod/fixup_udev_rules.diff7
-rw-r--r--system/kvm-kmod/kvm-kmod.SlackBuild7
3 files changed, 2 insertions, 17 deletions
diff --git a/system/kvm-kmod/README b/system/kvm-kmod/README
index 0448c08d8e..5a0aaf1f98 100644
--- a/system/kvm-kmod/README
+++ b/system/kvm-kmod/README
@@ -16,8 +16,3 @@ kvm-kmod updates the modules without overwriting the ones provided
by Slackware. If you uninstall kvm-kmod, you will need to run
'depmod -a' to regenerate the modules.dep and map files to regain
access to the Slackware provided versions.
-
-By default, this script uses the "users" group for determining who
-has permission to use /dev/kvm, but if you prefer something else,
-set KVMGROUP when running the script, e.g.:
- KVMGROUP=wheel sh kvm-kmod.SlackBuild
diff --git a/system/kvm-kmod/fixup_udev_rules.diff b/system/kvm-kmod/fixup_udev_rules.diff
deleted file mode 100644
index c51f8fc661..0000000000
--- a/system/kvm-kmod/fixup_udev_rules.diff
+++ /dev/null
@@ -1,7 +0,0 @@
---- kvm-kmod-3.3.6.orig/scripts/65-kvm.rules 2012-05-14 12:55:51.000000000 -0600
-+++ kvm-kmod-3.3.6/scripts/65-kvm.rules 2012-05-17 05:34:28.507551599 -0600
-@@ -1,2 +1,3 @@
--KERNEL=="kvm", MODE="0660", GROUP="kvm"
-+KERNEL=="kvm", GROUP="@KVMGROUP@", MODE="0660"
-+KERNEL=="vhost-net", GROUP="@KVMGROUP@", MODE="0660"
- ACTION=="add|change", SUBSYSTEM=="dmi", KERNEL=="id", RUN+="/bin/sh -c 'grep -q vmx /proc/cpuinfo && /sbin/modprobe kvm-intel; grep -q svm /proc/cpuinfo && /sbin/modprobe kvm-amd'"
diff --git a/system/kvm-kmod/kvm-kmod.SlackBuild b/system/kvm-kmod/kvm-kmod.SlackBuild
index efce63ee14..9a7eca677d 100644
--- a/system/kvm-kmod/kvm-kmod.SlackBuild
+++ b/system/kvm-kmod/kvm-kmod.SlackBuild
@@ -40,7 +40,6 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
KERNEL=${KERNEL:-$(uname -r)}
-KVMGROUP=${KVMGROUP:-users}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -71,8 +70,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-sed "s,@KVMGROUP@,$KVMGROUP," $CWD/fixup_udev_rules.diff | patch -p1 || exit 1
-
CFLAGS="$SLKCFLAGS" \
./configure \
--arch=$ARCH
@@ -91,8 +88,8 @@ make install \
# Eliminate unused pkgconfig text file
rm -r $PKG/usr/lib${LIBDIRSUFFIX}
-# Move /etc/udev to /lib/udev
-mv $PKG/etc/udev $PKG/lib
+# Remove /etc/udev - this part is shipped with the qemu package
+rm -rf $PKG/etc/udev
# Make modprobe prefer the new modules in /lib/modules/$KERNEL/extra/
# We don't want to install this with a .new suffix, because we want it