Browse Source

xap/qemu: Upgraded to qemu-1.6.1.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
6506fce9e3
  1. 1
      xap/qemu-kvm/qemu-kvm-1.2.0.tar.gz.sha1
  2. 12
      xap/qemu-kvm/slack-desc
  3. 2
      xap/qemu/91-kvm.rules
  4. 4
      xap/qemu/doinst.sh
  5. 1
      xap/qemu/qemu-1.6.1.tar.bz2.sha1
  6. 35
      xap/qemu/qemu.SlackBuild
  7. 12
      xap/qemu/slack-desc

1
xap/qemu-kvm/qemu-kvm-1.2.0.tar.gz.sha1

@ -1 +0,0 @@
ce0d1c5067414f2eeaf34c5f2976e64634f34cc8 qemu-kvm-1.2.0.tar.gz

12
xap/qemu-kvm/slack-desc

@ -1,12 +0,0 @@
|-----handy-ruler------------------------------------------------------|
qemu-kvm: qemu-kvm (Linux-KVM userland tools)
qemu-kvm:
qemu-kvm: QEMU is a FAST! processor emulator using dynamic translation to
qemu-kvm: achieve good emulation speed.
qemu-kvm:
qemu-kvm: This is the KVM-based version of QEMU.
qemu-kvm:
qemu-kvm:
qemu-kvm:
qemu-kvm:
qemu-kvm:

2
xap/qemu/91-kvm.rules

@ -0,0 +1,2 @@
# Allow members of kvm group to access the KVM device
KERNEL=="kvm", GROUP="kvm"

4
xap/qemu-kvm/doinst.sh → xap/qemu/doinst.sh

@ -12,3 +12,7 @@ config()
for conf in /etc/qemu/target-*.conf.new; do
config $conf
done
if ! grep ^kvm /etc/group > /dev/null ; then
/usr/sbin/groupadd -g 210 kvm
fi

1
xap/qemu/qemu-1.6.1.tar.bz2.sha1

@ -0,0 +1 @@
ad3ef3709a8ce3a39bd343aa313cefd033afb561 qemu-1.6.1.tar.bz2

35
xap/qemu-kvm/qemu-kvm.SlackBuild → xap/qemu/qemu.SlackBuild

@ -22,16 +22,16 @@
#
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest qemu-kvm sourcecode is available at: <http://www.linux-kvm.org/>.
# Latest qemu sourcecode is available at: <http://wiki.qemu.org/Main_Page>.
# Source package infos
NAMESRC=${NAMESRC:-qemu-kvm}
VERSION=${VERSION:-1.2.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://downloads.sourceforge.net/kvm/$ARCHIVE}
NAMESRC=${NAMESRC:-qemu}
VERSION=${VERSION:-1.6.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://wiki.qemu-project.org/download/$VERSION}
# Build infos
NAMEPKG=${NAMEPKG:-qemu-kvm}
NAMEPKG=${NAMEPKG:-qemu}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
@ -56,12 +56,16 @@ if [ ! -d $TMP ]; then
fi
# Compilation flags
LIBDIRSUFFIX=""
BUILDARCH=$ARCH
case "$ARCH" in
i?86)
CPUOPT="-O2 -march=$ARCH -mtune=i686"
BUILDARCH=i386
;;
x86_64)
CPUOPT="-O2 -fPIC"
LIBDIRSUFFIX="64"
;;
*)
CPUOPT="-O2"
@ -85,27 +89,30 @@ CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$NAME \
--audio-drv-list=alsa
--audio-drv-list=alsa \
--target-list=$BUILDARCH-softmmu # Build only virtualizer
# for current architecture
make
make install DESTDIR=$PKG
# Strip binaries
strip --strip-unneeded $PKG/usr/bin/qemu-{ga,img,io,nbd,system-x86_64} \
$PKG/usr/bin/virtfs-proxy-helper $PKG/usr/bin/vscclient \
$PKG/usr/libexec/qemu-bridge-helper
rmdir $PKG/var/run $PKG/var
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
install -m 644 CODING_STYLE COPYING{,.LIB} Changelog HACKING LICENSE \
MAINTAINERS TODO $PKG/usr/doc/$NAME
MAINTAINERS $PKG/usr/doc/$NAME
# Protect configuration file
mv $PKG/etc/qemu/target-$ARCH.conf $PKG/etc/qemu/target-$ARCH.conf.new
mv $PKG/etc/qemu/target-$BUILDARCH.conf $PKG/etc/qemu/target-$BUILDARCH.conf.new
# Install Udev rule for KVM access
install -D -m 644 $CWD/91-kvm.rules $PKG/lib/udev/rules.d/91-kvm.rules
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

12
xap/qemu/slack-desc

@ -0,0 +1,12 @@
|-----handy-ruler----------------------------------------------------------|
qemu: qemu (processor emulator)
qemu:
qemu: QEMU is a generic and open source machine emulator and virtualizer.
qemu:
qemu:
qemu:
qemu:
qemu:
qemu:
qemu:
qemu:
Loading…
Cancel
Save