summaryrefslogtreecommitdiff
path: root/system/virtualbox-ose-addons/virtualbox-ose-addons.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@liwjatan.at>2010-05-12 17:46:17 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:46:17 +0200
commitb31394c55477545aab65dc096ca8b29973eeae4a (patch)
treef514cc7bf3538033b62cfa73abf0710bb6e1a4ca /system/virtualbox-ose-addons/virtualbox-ose-addons.SlackBuild
parentb0017da8220216eef8dd33cb0b054b745072b78f (diff)
downloadslackbuilds-b31394c55477545aab65dc096ca8b29973eeae4a.tar.gz
system/virtualbox-ose-addons: Updated for version 2.1.4
Diffstat (limited to 'system/virtualbox-ose-addons/virtualbox-ose-addons.SlackBuild')
-rw-r--r--system/virtualbox-ose-addons/virtualbox-ose-addons.SlackBuild39
1 files changed, 18 insertions, 21 deletions
diff --git a/system/virtualbox-ose-addons/virtualbox-ose-addons.SlackBuild b/system/virtualbox-ose-addons/virtualbox-ose-addons.SlackBuild
index 33ec6ad4ff..fd89237eae 100644
--- a/system/virtualbox-ose-addons/virtualbox-ose-addons.SlackBuild
+++ b/system/virtualbox-ose-addons/virtualbox-ose-addons.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for virtualbox-ose-addons
-# 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,9 +24,9 @@
PRGNAM=virtualbox-ose-addons
SRCNAM=VirtualBox
-VERSION=2.0.6
+VERSION=2.1.4
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -35,9 +35,8 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if ! grep ^vboxadd: /etc/passwd 2>&1 > /dev/null; then
- echo " Must have a vboxadd user to run this script."
- echo " # useradd -d /var/run/vboxadd -g 1 -s /bin/sh vboxadd"
- echo " Or something similar."
+ echo " You must have a vboxadd user to run this script."
+ echo " # useradd -u 215 -d /var/run/vboxadd -g 1 -s /bin/sh vboxadd"
exit 1
fi
@@ -57,21 +56,21 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-${VERSION}-OSE.tar.bz2
-cd $SRCNAM-$VERSION
+rm -rf $SRCNAM-${VERSION}_OSE
+tar xvf $CWD/$SRCNAM-${VERSION}-3-OSE.tar.bz2
+cd $SRCNAM-${VERSION}_OSE
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
-#We set the environment variables manually to avoid dependency on dev86 and acpica
+# We set the environment variables manually to avoid dependency on dev86 and acpica
export BUILD_PLATFORM="linux"
export BUILD_PLATFORM_ARCH="x86"
export BUILD_TARGET="linux"
export BUILD_TARGET_ARCH="x86"
export BUILD_TARGET_CPU="$ARCH"
export BUILD_TYPE="release"
-export PATH_KBUILD="$TMP/$SRCNAM-$VERSION/kBuild"
-export PATH_DEVTOOLS="$TMP/$SRCNAM-$VERSION/tools"
+export PATH_KBUILD="$TMP/$SRCNAM-${VERSION}_OSE/kBuild"
+export PATH_DEVTOOLS="$TMP/$SRCNAM-${VERSION}_OSE/tools"
path_kbuild_bin="$PATH_KBUILD/bin/$BUILD_TARGET.$BUILD_PLATFORM_ARCH"
export PATH_KBUILD_BIN="$path_kbuild_bin"
path_dev_bin="$PATH_DEVTOOLS/$BUILD_TARGET.$BUILD_PLATFORM_ARCH"/bin
@@ -82,15 +81,13 @@ unset path_kbuild_bin path_dev_bin
kmk -j ${JOBS} LOCALCFG=$CWD/LocalConfig.kmk
-mkdir -p $PKG/usr/{src,bin,sbin,share/autostart} \
- $PKG/etc/{xdg/autostart,udev/rules.d,rc.d} \
- $PKG/usr/lib/xorg/modules/{drivers,input}
-
-# Patch vboxadd-timesync.sh to support Slackware
-patch -d src/VBox/Additions/linux/installer -i $CWD/vboxadd-timesync.diff
+mkdir -p $PKG/sbin \
+ $PKG/usr/{src,bin,sbin,share/autostart} \
+ $PKG/etc/{xdg/autostart,rc.d} \
+ $PKG/usr/lib/xorg/modules/{drivers,input} \
+ $PKG/lib/udev/rules.d
cp -f src/VBox/Additions/linux/installer/vboxadd.sh $PKG/etc/rc.d/rc.vboxadd.new
-cp -f src/VBox/Additions/linux/installer/vboxvfs.sh $PKG/etc/rc.d/rc.vboxvfs.new
cp -f src/VBox/Additions/linux/installer/vboxadd-timesync.sh $PKG/etc/rc.d/rc.vboxadd-timesync.new
cp -f src/VBox/Additions/x11/installer/vboxclient.desktop $PKG/etc/xdg/autostart/
@@ -98,7 +95,7 @@ cp -f src/VBox/Additions/x11/installer/vboxclient.desktop $PKG/usr/share/autosta
install -m 755 src/VBox/Additions/x11/installer/VBoxRandR.sh $PKG/usr/bin/VBoxRandR
echo "KERNEL==\"vboxadd\", NAME=\"vboxadd\", OWNER=\"vboxadd\", MODE=\"0660\"" \
- > $PKG/etc/udev/rules.d/60-vboxadd.rules
+ > $PKG/lib/udev/rules.d/60-vboxadd.rules
cd out/linux.x86/release/bin/additions
cp -rf src/vboxadd $PKG/usr/src/vboxadd-$VERSION
@@ -106,7 +103,7 @@ cd out/linux.x86/release/bin/additions
install -m 755 VBoxControl $PKG/usr/bin/
install -m 755 VBoxClient $PKG/usr/bin/
install -m 755 vboxadd-timesync $PKG/usr/sbin/
- install -m 4755 mountvboxsf $PKG/usr/sbin/mount.vboxsf
+ install -m 4755 mountvboxsf $PKG/sbin/mount.vboxsf
install -m 644 vboxvideo_drv_14.so $PKG/usr/lib/xorg/modules/drivers/vboxvideo_drv.so
install -m 644 vboxmouse_drv_14.so $PKG/usr/lib/xorg/modules/input/vboxmouse_drv.so