aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStu Miller <slackbuilds@go4it2day.com>2012-02-12 12:04:12 -0600
committerNiels Horn <niels.horn@slackbuilds.org>2012-02-18 09:12:29 -0200
commit06a7b9a7bcbf8dd3379a46c597bbfcb10ffeab9a (patch)
treea72c9652dc6da9230d0a503e810d07ef533de75e
parent55af8aafe047de2f557ca64b0d3fce6771ad44a9 (diff)
system/kvm-kmod: Updated for version 3.2.
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.SlackBuild5
-rw-r--r--system/kvm-kmod/kvm-kmod.info6
4 files changed, 18 insertions, 5 deletions
diff --git a/system/kvm-kmod/README b/system/kvm-kmod/README
index dc3d0cea5d33..83a814536419 100644
--- a/system/kvm-kmod/README
+++ b/system/kvm-kmod/README
@@ -16,4 +16,7 @@ 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.
-You need to have a "kvm" group on the system in order to use this.
+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
new file mode 100644
index 000000000000..24f34879e59b
--- /dev/null
+++ b/system/kvm-kmod/fixup_udev_rules.diff
@@ -0,0 +1,7 @@
+diff -Nur kvm-kmod-3.2.orig/scripts/65-kvm.rules kvm-kmod-3.2/scripts/65-kvm.rules
+--- kvm-kmod-3.2.orig/scripts/65-kvm.rules 2012-01-08 07:02:08.000000000 -0600
++++ kvm-kmod-3.2/scripts/65-kvm.rules 2012-02-12 11:59:06.317519510 -0600
+@@ -1,2 +1,2 @@
+-KERNEL=="kvm", MODE="0660", GROUP="kvm"
++KERNEL=="kvm", MODE="0660", GROUP="@KVMGROUP@"
+ 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 4d5adcb5b351..43910221ffb4 100644
--- a/system/kvm-kmod/kvm-kmod.SlackBuild
+++ b/system/kvm-kmod/kvm-kmod.SlackBuild
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=kvm-kmod
-VERSION=${VERSION:-3.1}
+VERSION=${VERSION:-3.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,6 +40,7 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
KERNEL=${KERNEL:-$(uname -r)}
+KVMGROUP=${KVMGROUP:-users}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
@@ -70,6 +71,8 @@ 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
diff --git a/system/kvm-kmod/kvm-kmod.info b/system/kvm-kmod/kvm-kmod.info
index 44576312578d..e1cd3e15610f 100644
--- a/system/kvm-kmod/kvm-kmod.info
+++ b/system/kvm-kmod/kvm-kmod.info
@@ -1,8 +1,8 @@
PRGNAM="kvm-kmod"
-VERSION="3.1"
+VERSION="3.2"
HOMEPAGE="http://www.linux-kvm.org/page/Main_Page"
-DOWNLOAD="http://downloads.sourceforge.net/kvm/kvm-kmod-3.1.tar.bz2"
-MD5SUM="5a80316b957b4221c71af7bc1b360cb5"
+DOWNLOAD="http://downloads.sourceforge.net/kvm/kvm-kmod-3.2.tar.bz2"
+MD5SUM="6837679731b61ecccff8fa8028033f0a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Stu Miller"