diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2013-11-14 17:32:07 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-11-14 23:00:37 -0600 |
commit | 079f69c662d5b8a0cb0b78c548fda7ebfa543900 (patch) | |
tree | 4bbe93185980f7400f598818000df9d87801b183 | |
parent | 5343561c05b89e5f59d91e1d4bc176a0bbd7ea58 (diff) | |
download | slackbuilds-079f69c662d5b8a0cb0b78c548fda7ebfa543900.tar.gz |
system/kvm-kmod: Removed (the stock modules are fine)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r-- | system/kvm-kmod/README | 18 | ||||
-rw-r--r-- | system/kvm-kmod/doinst.sh | 4 | ||||
-rw-r--r-- | system/kvm-kmod/kvm-kmod.SlackBuild | 113 | ||||
-rw-r--r-- | system/kvm-kmod/kvm-kmod.info | 10 | ||||
-rw-r--r-- | system/kvm-kmod/slack-desc | 19 |
5 files changed, 0 insertions, 164 deletions
diff --git a/system/kvm-kmod/README b/system/kvm-kmod/README deleted file mode 100644 index 5a0aaf1f98..0000000000 --- a/system/kvm-kmod/README +++ /dev/null @@ -1,18 +0,0 @@ -kvm (Kernel-based Virtual Machine) is a full virtualization solution -for Linux on x86 hardware containing virtualization extensions -(Intel VT or AMD-V). kvm is divided into the kvm-kmod package -(kernel modules) and the qemu package which are both available as -separate Slackbuilds. - -kvm-kmod consists of a kernel module, 'kvm.ko', that provides the -core virtualization infrastructure and a processor specific module, -'kvm-intel.ko' or 'kvm-amd.ko'. Slackware provides these modules -in the 'a/kernel-modules*' packages. In most cases, the provided -versions are sufficient to run qemu with kvm support. This kvm-kmod -package is only needed if you want to change the kvm modules to a -different version. - -kvm-kmod updates the modules without overwriting the ones provided -by Slackware. If you uninstall kvm-kmod, you will need to run -'depmod -a' to regenerate the modules.dep and map files to regain -access to the Slackware provided versions. diff --git a/system/kvm-kmod/doinst.sh b/system/kvm-kmod/doinst.sh deleted file mode 100644 index 6510094161..0000000000 --- a/system/kvm-kmod/doinst.sh +++ /dev/null @@ -1,4 +0,0 @@ -# Re-generate modules.dep and map files. -if [ -x sbin/depmod ]; then - chroot . /sbin/depmod -a @KERNEL@ 1> /dev/null 2> /dev/null -fi diff --git a/system/kvm-kmod/kvm-kmod.SlackBuild b/system/kvm-kmod/kvm-kmod.SlackBuild deleted file mode 100644 index ca5d1fac9d..0000000000 --- a/system/kvm-kmod/kvm-kmod.SlackBuild +++ /dev/null @@ -1,113 +0,0 @@ -#!/bin/sh - -# Slackware build script for kvm-kmod - -# 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=kvm-kmod -VERSION=${VERSION:-3.9} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} - -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} - -KERNEL=${KERNEL:-$(uname -r)} - -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" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -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 {} \; - -CFLAGS="$SLKCFLAGS" \ -./configure \ - --arch=$ARCH - -make \ - PREFIX=/usr \ - PKGCONFIGDIR=/usr/lib${LIBDIRSUFFIX}/pkgconfig \ - KERNELDIR=/lib/modules/$KERNEL/source \ - docdir=/usr/doc/$PRGNAM-$VERSION -make install \ - PREFIX=/usr \ - PKGCONFIGDIR=/usr/lib${LIBDIRSUFFIX}/pkgconfig \ - KERNELDIR=/lib/modules/$KERNEL/source \ - docdir=/usr/doc/$PRGNAM-$VERSION \ - DESTDIR=$PKG - -# Remove /etc/udev - this part is shipped with the qemu package -rm -rf $PKG/etc/udev - -# Make modprobe prefer the new modules in /lib/modules/$KERNEL/updates/ -# We don't want to install this with a .new suffix, because we want it -# removed with the package. -mkdir -p $PKG/etc/depmod.d -cat << EOF > $PKG/etc/depmod.d/kvm-$KERNEL.conf -override kvm $KERNEL updates -override kvm-amd $KERNEL updates -override kvm-intel $KERNEL updates -EOF - -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - -mkdir -p $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 -sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/kvm-kmod/kvm-kmod.info b/system/kvm-kmod/kvm-kmod.info deleted file mode 100644 index a6b40d94a3..0000000000 --- a/system/kvm-kmod/kvm-kmod.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="kvm-kmod" -VERSION="3.9" -HOMEPAGE="http://www.linux-kvm.org/page/Main_Page" -DOWNLOAD="http://downloads.sourceforge.net/kvm/kvm-kmod-3.9.tar.bz2" -MD5SUM="afbfe93db1a6ee976594660aeb0465f1" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Stu Miller" -EMAIL="slackbuilds@go4it2day.com" diff --git a/system/kvm-kmod/slack-desc b/system/kvm-kmod/slack-desc deleted file mode 100644 index c6d2c3def6..0000000000 --- a/system/kvm-kmod/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------------------------------------------------------| -kvm-kmod: kvm-kmod (kvm kernel modules only) -kvm-kmod: -kvm-kmod: kvm (Kernel-based Virtual Machine) is a full virtualization solution -kvm-kmod: for Linux on x86 hardware containing virtualization extensions -kvm-kmod: (Intel VT or AMD-V). -kvm-kmod: -kvm-kmod: kvm is divided into the kvm-kmod package (kernel modules) and the -kvm-kmod: qemu package which are both available as separate Slackbuilds. -kvm-kmod: -kvm-kmod: -kvm-kmod: |