summaryrefslogtreecommitdiff
path: root/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-12 17:46:15 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:46:15 +0200
commit696c0a54dd8b92223108bb205b023beb14e9aca1 (patch)
treeb0064370d2d1263a38f63ae8d857b8ef58380ad8 /system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild
parentdd0a17bd96dae232242cafc00c1df394b6b223d0 (diff)
downloadslackbuilds-696c0a54dd8b92223108bb205b023beb14e9aca1.tar.gz
system/virtualbox-kernel-addons: Updated for version 2.1.4
Diffstat (limited to 'system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild')
-rw-r--r--system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild16
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