qemu: qemu-bridge-helper must be setuid.

This commit is contained in:
Juan RP 2012-07-30 11:52:17 +02:00
parent 82cf8d6b8f
commit 8feab30e42
1 changed files with 5 additions and 9 deletions

View File

@ -1,9 +1,8 @@
# Template file for 'qemu'
pkgname=qemu
version=1.1.1
revision=1
revision=2
nostrip=yes
noextract=yes
build_style=configure
configure_args="--prefix=/usr --sysconfdir=/etc --enable-spice
--enable-kvm --audio-drv-list=alsa,sdl,pa --disable-xen
@ -18,8 +17,8 @@ short_desc="Open Source Processor Emulator"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://qemu.org"
license="GPL-2, LGPL-2.1"
distfiles="http://wiki.qemu.org/download/qemu-${version}.tar.bz2"
checksum=004a3032b504e70174c504d6c156b1ec3445abd9913602af0d7a5ac0703ddf5c
distfiles="http://wiki.qemu.org/download/qemu-${version}-1.tar.bz2"
checksum=6fbaff1fa75aae1a06947cf7cb101c35273712c561b87ef8eaec92aa39734ac8
long_desc="
QEMU is a generic and open source machine emulator and virtualizer.
@ -27,15 +26,12 @@ long_desc="
one machine (e.g. an ARM board) on a different machine (e.g. your own PC).
By using dynamic translation, it achieves very good performances."
do_extract() {
# XXX distfile is not bzip2 compressed! it's in gzip format.
tar xfz $XBPS_SRCDISTDIR/qemu-${version}.tar.bz2 -C $XBPS_BUILDDIR
}
pre_configure() {
sed -i -e 's/lib64/lib/g' x86_64.ld
}
post_install() {
vinstall ${FILESDIR}/65-kvm.rules 644 usr/lib/udev/rules.d
# qemu-bridge-helper must be setuid for non privileged users.
chmod u+s ${DESTDIR}/usr/libexec/qemu-bridge-helper
}