diff options
author | Heinz Wiesinger <pprkut@liwjatan.at> | 2010-05-12 17:46:16 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 17:46:16 +0200 |
commit | b0017da8220216eef8dd33cb0b054b745072b78f (patch) | |
tree | 2ab024ed09e176a53d7da7e1f88507eb298bc963 /system/virtualbox-kernel/virtualbox-kernel.SlackBuild | |
parent | 696c0a54dd8b92223108bb205b023beb14e9aca1 (diff) | |
download | slackbuilds-b0017da8220216eef8dd33cb0b054b745072b78f.tar.gz |
system/virtualbox-kernel: Updated for version 2.1.4
Diffstat (limited to 'system/virtualbox-kernel/virtualbox-kernel.SlackBuild')
-rw-r--r-- | system/virtualbox-kernel/virtualbox-kernel.SlackBuild | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/system/virtualbox-kernel/virtualbox-kernel.SlackBuild b/system/virtualbox-kernel/virtualbox-kernel.SlackBuild index 903d1251a0..0fec2f1885 100644 --- a/system/virtualbox-kernel/virtualbox-kernel.SlackBuild +++ b/system/virtualbox-kernel/virtualbox-kernel.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 @@ -24,20 +24,19 @@ # Modified by SlackBuilds.org -NAME=vbox-kernel-module -PKG_NAME=virtualbox-kernel -VERSION=2.0.6 +PRGNAM=virtualbox-kernel +VERSION=${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} -PKG=${PKG:-$TMP/package-$NAME} +PKG=${PKG:-$TMP/package-$PRGNAM} OUTPUT=${OUTPUT:-/tmp} set -e @@ -45,25 +44,26 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf vboxdrv -tar xvf $CWD/$NAME-src-$VERSION.tar.bz2 -cd vboxdrv +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . -make KERN_DIR=$KERNELPATH +make KERN_DIR=${KERNELPATH} -mkdir -p $PKG/lib/modules/$KERNELVERSION/misc -install -m 0644 vboxdrv.ko $PKG/lib/modules/$KERNELVERSION/misc/ +mkdir -p $PKG/lib/modules/$KERNEL/misc +install -m 0644 vboxdrv.ko $PKG/lib/modules/$KERNEL/misc/ +install -m 0644 vboxnetflt.ko $PKG/lib/modules/$KERNEL/misc/ -mkdir -p $PKG/usr/doc/$PKG_NAME-$PKG_VERS -cat $CWD/COPYING > $PKG/usr/doc/$PKG_NAME-$PKG_VERS/COPYING -cat $CWD/COPYING.CDDL > $PKG/usr/doc/$PKG_NAME-$PKG_VERS/COPYING.CDDL -cat $CWD/$PKG_NAME.SlackBuild > $PKG/usr/doc/$PKG_NAME-$PKG_VERS/$PKG_NAME.SlackBuild +mkdir -p $PKG/usr/doc/$PRGNAM-$PKG_VERS +cat $CWD/COPYING > $PKG/usr/doc/$PRGNAM-$PKG_VERS/COPYING +cat $CWD/COPYING.CDDL > $PKG/usr/doc/$PRGNAM-$PKG_VERS/COPYING.CDDL +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$PKG_VERS/$PRGNAM.SlackBuild 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/$PKG_NAME-$PKG_VERS-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERS-$ARCH-$BUILD$TAG.tgz |