Merge remote-tracking branch 'x/master'

* x/master:
  qemu: set kvm access to users in the wheel group, revbump.
This commit is contained in:
davehome 2012-02-01 12:14:25 -07:00
commit 81c70c3a2d
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
}