diff options
-rw-r--r-- | system/qemu-kvm/65-kvm.rules | 2 | ||||
-rw-r--r-- | system/qemu-kvm/README | 25 | ||||
-rw-r--r-- | system/qemu-kvm/qemu-kvm.SlackBuild | 146 | ||||
-rw-r--r-- | system/qemu-kvm/qemu-kvm.info | 10 | ||||
-rw-r--r-- | system/qemu-kvm/slack-desc | 19 |
5 files changed, 0 insertions, 202 deletions
diff --git a/system/qemu-kvm/65-kvm.rules b/system/qemu-kvm/65-kvm.rules deleted file mode 100644 index 3c11863c57109..0000000000000 --- a/system/qemu-kvm/65-kvm.rules +++ /dev/null @@ -1,2 +0,0 @@ -KERNEL=="kvm", GROUP="@GROUP@", MODE="0660" -KERNEL=="vhost-net", GROUP="@GROUP@", MODE="0660" diff --git a/system/qemu-kvm/README b/system/qemu-kvm/README deleted file mode 100644 index a2eed4379483d..0000000000000 --- a/system/qemu-kvm/README +++ /dev/null @@ -1,25 +0,0 @@ -qemu-kvm is a generic and open source virtualizer. qemu-kvm achieves -near native performances by leveraging the kvm-kmod modules and -executing the guest code directly on the host CPU. Slackware provides -pre-built 32/64 bit x86 kvm-kmod modules or you can build different -versions with the kvm-kmod package. - -While qemu-kvm can virtualize many system guest types (e.g. alpha, arm, -i386, ppc, x86_64, s390, sparc), not all these system guest types utilize -the kvm-kmod modules. For those system guest types that don't utilize -the kvm-kmod modules, it is recommended to use the qemu package instead -of this qemu-kvm package. - -The qemu-kvm SlackBuild renames the primary binary from 'qemu-system- -x86_64' to 'qemu-kvm' so that the qemu SlackBuild won't overwrite it -if both packages are installed on the same host system. The qemu-kvm -SlackBuild patches the installed udev rules so that you no longer are -required to use the system group 'kvm' as the default. The 'users' -group is set as the default in this SlackBuild. If you want to use a -different group, then run the SlackBuild like this: - KVMGROUP=group sh qemu-kvm.SlackBuild - -Don't forget to load the 'kvm-intel' or 'kvm-amd' module (depending on -your processor) prior to running 'qemu-kvm'. - -spice and usbredir are optional dependencies. diff --git a/system/qemu-kvm/qemu-kvm.SlackBuild b/system/qemu-kvm/qemu-kvm.SlackBuild deleted file mode 100644 index 6d819c4a6042f..0000000000000 --- a/system/qemu-kvm/qemu-kvm.SlackBuild +++ /dev/null @@ -1,146 +0,0 @@ -#!/bin/sh - -# Slackware build script for qemu-kvm - -# Written by Stu Miller <slackbuilds@go4it2day.com> -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -PRGNAM=qemu-kvm -VERSION=${VERSION:-1.2.0} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} - -KVMGROUP=${KVMGROUP:-users} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -fi - -# Needed to build man pages if build with plain "su" -export PATH=$PATH:/usr/share/texmf/bin - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION -chown -R root:root . -find . \ - \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - -# Remove double CFLAGS -sed -i "s|^\ \ CFLAGS=\"-O2\ | CFLAGS=\"|" configure - -# check if spice is there -if pkg-config --exists spice-server ; then - with_spice="--enable-spice" -else - with_spice="--disable-spice" -fi - -# check if usbredir is there -if pkg-config --exists libusbredirhost ; then - with_usbredir="--enable-usb-redir" -else - with_usbredir="--disable-usb-redir" -fi - -# The script builds only the 32/64 bit x86 compatible Linux Target CPU emulator. -# If you need to emulate other available architectures you should install the -# "qemu" package, not the "qemu-kvm" package. This package will only be useful -# for x86 architectures that can make use of KVM-KMOD kernel modules which are -# the kvm-intel, kvm-amd, and kvm modules. - -CFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --enable-mixemu \ - --audio-drv-list=alsa,oss,sdl,esd \ - --enable-system \ - --with-confsuffix=/qemu-kvm \ - --disable-debug-info \ - --target-list="x86_64-softmmu" \ - $with_spice \ - $with_usbredir - -make V=1 \ - OS_CFLAGS="$SLKCFLAGS" \ - mandir=/usr/man \ - docdir=/usr/doc/$PRGNAM-$VERSION -make install \ - mandir=/usr/man \ - docdir=/usr/doc/$PRGNAM-$VERSION \ - DESTDIR=$PKG - -# Rename the primary binary from "qemu-system-x86_64" to "qemu-kvm" so that the -# regular "qemu" package won't overwrite it. -mv $PKG/usr/bin/qemu-system-x86_64 $PKG/usr/bin/qemu-kvm - -# Copy some missed binaries -cp -a scripts/kvm/{kvm_stat,kvm_flightrecorder,vmxcap} $PKG/usr/bin/ - -mkdir -p $PKG/lib/udev/rules.d/ -sed "s/@GROUP@/$KVMGROUP/" $CWD/65-kvm.rules > $PKG/lib/udev/rules.d/65-kvm.rules - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -find $PKG/usr/man -type f -exec gzip -9 {} \; -find $PKG/usr/man -type f -exec chmod 0644 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -mv $PKG/usr/share/doc/qemu/* $PKG/usr/doc/$PRGNAM-$VERSION -rm -fR $PKG/usr/share/doc -cp -a Changelog COPYING* HACKING LICENSE README TODO docs/* \ - $PKG/usr/doc/$PRGNAM-$VERSION/ -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/qemu-kvm/qemu-kvm.info b/system/qemu-kvm/qemu-kvm.info deleted file mode 100644 index d25929c553405..0000000000000 --- a/system/qemu-kvm/qemu-kvm.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="qemu-kvm" -VERSION="1.2.0" -HOMEPAGE="http://www.linux-kvm.org/page/Main_Page" -DOWNLOAD="http://downloads.sourceforge.net/kvm/qemu-kvm-1.2.0.tar.gz" -MD5SUM="d7b18b673c48abfee65a9c0245df0415" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Stu Miller" -EMAIL="slackbuilds@go4it2day.com" diff --git a/system/qemu-kvm/slack-desc b/system/qemu-kvm/slack-desc deleted file mode 100644 index d1175e12f11c7..0000000000000 --- a/system/qemu-kvm/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. Line -# up the first '|' above the ':' following the base package name, and the '|' on -# the right side marks the last column you can put a character in. You must make -# exactly 11 lines for the formatting to be correct. It's also customary to -# leave one space after the ':'. - - |-----handy-ruler------------------------------------------------------| -qemu-kvm: qemu-kvm (Stable branch - KVM requires QEMU) -qemu-kvm: -qemu-kvm: KVM (Kernel-based Virtual Machine) is a full virtualization solution -qemu-kvm: for Linux on x86 hardware containing virtualization extensions -qemu-kvm: (Intel VT or AMD-V). -qemu-kvm: -qemu-kvm: KVM is divided into the KVM-KMOD package (kernel modules) and the -qemu-kvm: QEMU-KVM package (slightly modified QEMU) which are both available -qemu-kvm: as separate Slackbuilds. -qemu-kvm: -qemu-kvm: |