qemu: set kvm access to users in the wheel group, revbump.

This commit is contained in:
Juan RP 2012-02-01 19:23:26 +01:00
parent af1ffa3963
commit e2bb019c13
3 changed files with 24 additions and 0 deletions

18
srcpkgs/qemu/INSTALL Normal file
View file

@ -0,0 +1,18 @@
case "${ACTION}" in
post)
cat <<_EOF
==========================================================================
To enable KVM your user must be added to the 'wheel' group:
$ usermod -aG wheel <username>
Don't forget to load the appropiate KVM module for your CPU:
$ modprobe kvm-amd # for AMD CPUs
$ modprobe kvm-intel # for Intel CPUs
==========================================================================
_EOF
;;
esac

View file

@ -0,0 +1 @@
KERNEL=="kvm", GROUP="wheel", MODE="0660"

View file

@ -1,6 +1,7 @@
# Template file for 'qemu'
pkgname=qemu
version=1.0
revision=1
distfiles="http://wiki.qemu.org/download/qemu-${version}.tar.gz"
build_style=configure
configure_args="--prefix=/usr --sysconfdir=/etc --enable-spice
@ -44,3 +45,7 @@ Add_dependency build libcurl-devel
pre_configure() {
sed -i -e 's/lib64/lib/g' x86_64.ld
}
post_install() {
vinstall ${FILESDIR}/65-kvm.rules 644 lib/udev/rules.d
}