Browse Source

xap/qemu-kvm: Upgraded to qemu-kvm-0.13.0.

slackware-14.2
Damien Goutte-Gattat 12 years ago
parent
commit
d86ab49346
  1. 14
      xap/qemu-kvm/doinst.sh
  2. 1
      xap/qemu-kvm/qemu-kvm-0.12.4.tar.gz.sha1
  3. 1
      xap/qemu-kvm/qemu-kvm-0.13.0.tar.gz.sha1
  4. 26
      xap/qemu-kvm/qemu-kvm.SlackBuild

14
xap/qemu-kvm/doinst.sh

@ -0,0 +1,14 @@
#!/bin/sh
config()
{
NEW="$1"
OLD="`dirname $NEW`/`basename $NEW .new`"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then
rm $NEW
fi
}
for conf in /etc/qemu/target-*.conf.new; do
config $conf
done

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

@ -1 +0,0 @@
955c8dad1f65df0eb5403f40a6c92d93a0a252be qemu-kvm-0.12.4.tar.gz

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

@ -0,0 +1 @@
b8cfb8e8dbd403281a98a41f7d3eeaecc0aac8f1 qemu-kvm-0.13.0.tar.gz

26
xap/qemu-kvm/qemu-kvm.SlackBuild

@ -26,7 +26,7 @@
# Source package infos
NAMESRC=${NAMESRC:-qemu-kvm}
VERSION=${VERSION:-0.12.4}
VERSION=${VERSION:-0.13.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://downloads.sourceforge.net/kvm/$ARCHIVE}
@ -34,7 +34,6 @@ WGET=${WGET:-http://downloads.sourceforge.net/kvm/$ARCHIVE}
NAMEPKG=${NAMEPKG:-qemu-kvm}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i?86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
# Directories
@ -86,23 +85,26 @@ CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--audio-drv-list=oss,alsa
make -j $JOBS
--sysconfdir=/etc \
--mandir=/usr/man \
--docdir=/usr/doc/$NAME \
--audio-drv-list=alsa
make
make install DESTDIR=$PKG
# Move and compress man pages
mv $PKG/usr/share/man $PKG/usr/man
# Compress man pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
mv $PKG/usr/share/doc/qemu/* $PKG/usr/doc/$NAME
rm -rf $PKG/usr/share/doc
install -m 644 CODING_STYLE COPYING{,.LIB} Changelog KVM_VERSION LICENSE \
MAINTAINERS README TODO VERSION $PKG/usr/doc/$NAME
install -m 644 CODING_STYLE COPYING{,.LIB} Changelog LICENSE MAINTAINERS \
TODO $PKG/usr/doc/$NAME
# Copy slack-desc file
# Protect configuration file
mv $PKG/etc/qemu/target-$ARCH.conf $PKG/etc/qemu/target-$ARCH.conf.new
# Copy slack-desc and doinst.sh files
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
install -m 755 $CWD/doinst.sh $PKG/install/doinst.sh
# Package the tree
cd $PKG

Loading…
Cancel
Save