summaryrefslogtreecommitdiff
path: root/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-13 00:42:16 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:42:16 +0200
commitc79e0b03e6ca32ec7fefab7a37a7fee37dfe20f4 (patch)
tree862a721392fe3c17de483369dc5532a6fae72698 /system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild
parent8d1d8aa9a5801d5e80fb6e1a2d0fcadc8db90865 (diff)
downloadslackbuilds-c79e0b03e6ca32ec7fefab7a37a7fee37dfe20f4.tar.gz
system/virtualbox-kernel-addons: Updated for version 3.1.2
Diffstat (limited to 'system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild')
-rw-r--r--system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild13
1 files changed, 8 insertions, 5 deletions
diff --git a/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild b/system/virtualbox-kernel-addons/virtualbox-kernel-addons.SlackBuild
index fab84ef9e1..c9b0a99c72 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-2009 Heinz Wiesinger <pprkut@liwjatan.at>
+# Copyright 2008-2009 Heinz Wiesinger, Amsterdam, The Netherlands
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=virtualbox-kernel-addons
-VERSION=2.1.4
+VERSION=3.1.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -31,6 +31,9 @@ TAG=${TAG:-_SBo}
KERNEL=${KERNEL:-$(uname -r)}
KERNELPATH=${KERNELPATH:-/lib/modules/$KERNEL/build}
PKG_VERS=${VERSION}_$(echo $KERNEL| tr - _)
+PKG_ARCH=$ARCH
+
+unset ARCH
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
@@ -43,14 +46,14 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
mkdir -p $PKG/lib/modules/$KERNEL/misc
-for i in vboxadd vboxvfs; do
+for i in vboxguest vboxvfs vboxvideo; do
cd $i
make KERN_DIR=$KERNELPATH
install -m 0644 $i.ko $PKG/lib/modules/$KERNEL/misc/
@@ -68,4 +71,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
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
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$PKG_VERS-$PKG_ARCH-$BUILD$TAG.${PKGTYPE:-tgz}