Commits

Anonymous committed 324dff6

qemu add udev rules and update to 1.4.1

  • Participants
  • Parent commits 04d6e2a

Comments (0)

Files changed (2)

var/vabs/qemu/src/65-kvm.rules

+KERNEL=="kvm", GROUP="@GROUP@", MODE="0660"
+KERNEL=="vhost-net", GROUP="@GROUP@", MODE="0660"

var/vabs/qemu/src/qemu.SlackBuild

 # AUTHORS = 
 
 NAME="qemu"            #Enter package Name!
-VERSION=${VERSION:-"1.3.1"}      #Enter package Version!
+VERSION=${VERSION:-"1.4.1"}      #Enter package Version!
 VER=$(echo $VERSION|sed 's/-/_/') #this fixes - in version
 VL_PACKAGER=${VL_PACKAGER:-"stretchedthin"}   #Enter your Name!
 LINK=${LINK:-"http://wiki.qemu.org/download/$NAME-$VERSION.tar.bz2"}  #Enter URL for package here!
 ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
 MAKEDEPENDS=${MAKEDEPENDS:-"alsa-lib alsa-oss esound SDL mozilla-nss"} #Add deps needed TO BUILD this package here.
+NUMJOBS=${NUMJOBS:-"-j6"}
 #----------------------------------------------------------------------------
 
 # DO NOT EXECUTE if NORUN is set to 1
 mkdir -p $RELEASEDIR/tmp
 TMP=$RELEASEDIR/tmp
 PKG=$TMP/package-$NAME
+KVMGROUP=${KVMGROUP:-users}
 #--------------------------------------------
 
 
   SLKCFLAGS="-O2 -march=i586 -mtune=i686"
   CONFIGURE_TRIPLET="i586-vector-linux"
   LIBDIRSUFFIX=""
+  KVMARCH="i386"
 elif [ "$ARCH" = "x86_64" ]; then
   SLKCFLAGS="-O2 -fpic"
   CONFIGURE_TRIPLET="x86_64-vlocity-linux"
   LIBDIRSUFFIX="64"
+  KVMARCH="x86_64"
 elif [ "$ARCH" = "powerpc" ]; then
   SLKCFLAGS="-O2"
   CONFIGURE_TRIPLET="powerpc-vlocity-linux"
 
 #######################################################################
 #Miscellenious tweaks and things outside a normal ./configure go here #
+# install some udev rules for /dev/kvm
+mkdir -p $PKG/lib/udev/rules.d/
+sed "s/@GROUP@/$KVMGROUP/" $CWD/65-kvm.rules \
+	  > $PKG/lib/udev/rules.d/65-kvm.rules
+
+# create a symlink for qemu-kvm to support aqemu and such frontends
+[ ! -z $KVMARCH ] && ln -s qemu-system-$KVMARCH $PKG/usr/bin/qemu-kvm
+
 #######################################################################