summaryrefslogtreecommitdiff
path: root/system/virtualbox/virtualbox.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/virtualbox/virtualbox.SlackBuild')
-rw-r--r--system/virtualbox/virtualbox.SlackBuild22
1 files changed, 14 insertions, 8 deletions
diff --git a/system/virtualbox/virtualbox.SlackBuild b/system/virtualbox/virtualbox.SlackBuild
index 25e5cf8155..2ce1b7070d 100644
--- a/system/virtualbox/virtualbox.SlackBuild
+++ b/system/virtualbox/virtualbox.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=virtualbox
SRCNAM=VirtualBox
-VERSION=4.0.8
+VERSION=4.1.4
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -120,6 +120,9 @@ fi
# Patch taken from gentoo
patch -p1 -i $CWD/virtualbox-4-makeself-check.patch
+# building the vboxpci kernel module is not disabled by --disable-kmods
+patch -d src/VBox/HostDrivers/VBoxPci -i $CWD/vbox-disable_vboxpci_build.diff
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -144,12 +147,14 @@ mkdir -p $PKG/usr/{lib$LIBDIRSUFFIX,share,include}/virtualbox \
$PKG/usr/share/{pixmaps,mime/packages} \
$PKG/etc/{default,rc.d,vbox}
-cp -f src/VBox/Installer/linux/vboxdrv.sh.in $PKG/etc/rc.d/rc.vboxdrv.new
-sed -i "s/%PACKAGE%/virtualbox/g" $PKG/etc/rc.d/rc.vboxdrv.new
-sed -i "s/%NOLSB%/yes/" $PKG/etc/rc.d/rc.vboxdrv.new
-sed -i "s/%DEBIAN%/no/" $PKG/etc/rc.d/rc.vboxdrv.new
-sed -i "s/%GROUP%/vboxusers/" $PKG/etc/rc.d/rc.vboxdrv.new
-sed -i "s/\[ -z \"\$DEBIAN\"/#\[ -z \"\$DEBIAN\"/" $PKG/etc/rc.d/rc.vboxdrv.new
+for i in vboxdrv vboxballoonctrl-service; do
+ cp -f src/VBox/Installer/linux/$i.sh.in $PKG/etc/rc.d/rc.$i.new
+ sed -i "s/%PACKAGE%/virtualbox/g" $PKG/etc/rc.d/rc.$i.new
+ sed -i "s/%NOLSB%/yes/" $PKG/etc/rc.d/rc.$i.new
+ sed -i "s/%DEBIAN%/no/" $PKG/etc/rc.d/rc.$i.new
+ sed -i "s/%GROUP%/vboxusers/" $PKG/etc/rc.d/rc.$i.new
+ sed -i "s/\[ -z \"\$DEBIAN\"/#\[ -z \"\$DEBIAN\"/" $PKG/etc/rc.d/rc.$i.new
+done
cp -f $CWD/vbox.cfg $PKG/etc/vbox/vbox.cfg.new
sed -i "s|LIBDIR|lib$LIBDIRSUFFIX|" $PKG/etc/vbox/vbox.cfg.new
@@ -196,7 +201,8 @@ cd out/linux.$BUILDDIR/release/bin/
mv $PKG/usr/lib$LIBDIRSUFFIX/virtualbox/VBox.sh $PKG/usr/lib$LIBDIRSUFFIX/virtualbox/VBox
cd $TMP/$SRCNAM-${VERSION}_OSE
-for i in VBoxManage vboxmanage VBoxSDL vboxsdl VBoxHeadless vboxheadless VBoxVRDP $guiapp $vboxwebsrv; do
+for i in VBoxManage vboxmanage VBoxSDL vboxsdl VBoxHeadless \
+ vboxheadless VBoxVRDP VBoxBalloonCtrl $guiapp $vboxwebsrv; do
ln -s /usr/lib$LIBDIRSUFFIX/virtualbox/VBox $PKG/usr/bin/$i
done