summaryrefslogtreecommitdiff
path: root/system/kvm-kmod/kvm-kmod.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/kvm-kmod/kvm-kmod.SlackBuild')
-rw-r--r--system/kvm-kmod/kvm-kmod.SlackBuild21
1 files changed, 8 insertions, 13 deletions
diff --git a/system/kvm-kmod/kvm-kmod.SlackBuild b/system/kvm-kmod/kvm-kmod.SlackBuild
index 9a7eca677d..ca5d1fac9d 100644
--- a/system/kvm-kmod/kvm-kmod.SlackBuild
+++ b/system/kvm-kmod/kvm-kmod.SlackBuild
@@ -22,7 +22,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=kvm-kmod
-VERSION=${VERSION:-3.3.6}
+VERSION=${VERSION:-3.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -77,33 +77,28 @@ CFLAGS="$SLKCFLAGS" \
make \
PREFIX=/usr \
PKGCONFIGDIR=/usr/lib${LIBDIRSUFFIX}/pkgconfig \
- docdir=/usr/doc/$PRGNAM-$VERSION \
- KERNELDIR=/lib/modules/$KERNEL/source
+ 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
-# Eliminate unused pkgconfig text file
-rm -r $PKG/usr/lib${LIBDIRSUFFIX}
-
# 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/extra/
+# 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 extra
-override kvm-amd $KERNEL extra
-override kvm-intel $KERNEL extra
+override kvm $KERNEL updates
+override kvm-amd $KERNEL updates
+override kvm-intel $KERNEL updates
EOF
-# We don't want the modules.* files in the package
-rm -f $PKG/lib/modules/${KERNEL}/modules.*
-
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true