diff options
author | Edward W. Koenig <kingbeowulf@gmail.com> | 2017-01-29 15:30:33 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-03 04:33:06 +0700 |
commit | 4e0faecb13eb5e0dfb3a71dd5bf61d7ca1fa0ba1 (patch) | |
tree | 1ba2b461c814e6f93b996efae0f376521a55b652 /system/qemu/qemu.SlackBuild | |
parent | 011d772d219b41a3a8569973e31bf72cdb542721 (diff) |
system/qemu: Added qemu-bridge-helper setuid.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/qemu/qemu.SlackBuild')
-rw-r--r-- | system/qemu/qemu.SlackBuild | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/system/qemu/qemu.SlackBuild b/system/qemu/qemu.SlackBuild index fb191a82e3cdb..85d2d19b96124 100644 --- a/system/qemu/qemu.SlackBuild +++ b/system/qemu/qemu.SlackBuild @@ -47,16 +47,18 @@ # 3.1 02-SEP-2016 upgraded. # 3.2 15-OCT-2016 upgraded to 2.7 release # 3.3 26-JAN-2017 upgraded to 2.8 release +# 4.0 28-JAN-2017 add bridge-helper option, README additions/cosmetics (thanks to Andrzej T.) PRGNAM=qemu VERSION=${VERSION:-2.8.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} KVMGROUP=${KVMGROUP:-users} TARGETS=${TARGETS:-some} VNC_ENABLE=${VNC_ENABLE:-yes} AUDIODRIVERS=${AUDIODRIVERS:-pa,alsa,oss,sdl} +BRIDGE_HELPER_SETUID=${BRIDGE_HELPER_SETUID:-no} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -165,6 +167,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr # even though qemu now has a gtk gui. [ ! -z $KVMARCH ] && ln -s qemu-system-$KVMARCH $PKG/usr/bin/qemu-kvm +# set qemu-bridge-helper setuid if requested +if [ "$BRIDGE_HELPER_SETUID" = "yes" ]; then + chmod u+s $PKG/usr/libexec/qemu-bridge-helper +fi + # move any generated man pages to their proper location if [ -d $PKG/usr/share/man ]; then mv $PKG/usr/share/man $PKG/usr |