diff options
Diffstat (limited to 'system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild')
-rw-r--r-- | system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild | 16 |
1 files changed, 8 insertions, 8 deletions
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 <pprkut@liwjatan.at> +# Copyright 2008-2009 Heinz Wiesinger <pprkut@liwjatan.at> # 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 |