From 696c0a54dd8b92223108bb205b023beb14e9aca1 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Wed, 12 May 2010 17:46:15 +0200 Subject: system/virtualbox-kernel-addons: Updated for version 2.1.4 --- .../virtualbox-kernel-addons.SlackBuild | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild') diff --git a/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild b/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild index 5db1f6d80b..fab84ef9e1 100644 --- a/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild +++ b/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for virtualbox-kernel -# Copyright 2008 Heinz Wiesinger +# Copyright 2008-2009 Heinz Wiesinger # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,14 +23,14 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=virtualbox-kernel-addons -VERSION=2.0.6 +VERSION=2.1.4 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -KERNELVERSION=${KERNELVERSION:-$(uname -r)} -KERNELPATH=${KERNELPATH:-/lib/modules/$KERNELVERSION/build} -PKG_VERS=${VERSION}_$(echo $KERNELVERSION | tr - _) +KERNEL=${KERNEL:-$(uname -r)} +KERNELPATH=${KERNELPATH:-/lib/modules/$KERNEL/build} +PKG_VERS=${VERSION}_$(echo $KERNEL| tr - _) CWD=$(pwd) TMP=${TMP:-/tmp/SBo} @@ -48,12 +48,12 @@ cd $PRGNAM chown -R root:root . chmod -R u+w,go+r-w,a-s . -mkdir -p $PKG/lib/modules/$KERNELVERSION/misc +mkdir -p $PKG/lib/modules/$KERNEL/misc for i in vboxadd vboxvfs; do cd $i make KERN_DIR=$KERNELPATH - install -m 0644 $i.ko $PKG/lib/modules/$KERNELVERSION/misc/ + install -m 0644 $i.ko $PKG/lib/modules/$KERNEL/misc/ cd - done @@ -65,7 +65,7 @@ chown -R root:root $PKG/usr/doc mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh +sed "s%@KERNEL@%$KERNEL%" $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERS-$ARCH-$BUILD$TAG.tgz -- cgit v1.2.3