wok view virtualbox-ose/receipt @ rev 23118
updated libvips and libvips-dev (8.7.4 -> 8.9.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 12 17:43:05 2020 +0100 (2020-03-12) |
parents | d9e974f343f0 |
children | a3c45ab9082e |
line source
1 # SliTaz package receipt.
3 PACKAGE="virtualbox-ose"
4 VERSION="4.2.6"
5 CATEGORY="misc"
6 SHORT_DESC="Powerful x86 virtualization for enterprise as well as home use (Open Source Edition)"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 SOURCE="VirtualBox"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="https://www.virtualbox.org/"
12 WGET_URL="http://download.virtualbox.org/virtualbox/$VERSION/$TARBALL"
13 TAGS="virtualization"
14 PROVIDE="virtualbox"
16 DEPENDS="libxml2 xorg-libXcursor libIDL xorg-libXinerama libsdl \
17 xorg-libXmu curl libvncserver libpng jpeg mesa libglu-mesa vde2 \
18 python libQtCore libQtGui libQtNetwork libQtOpenGL \
19 virtualbox-ose-modules"
20 BUILD_DEPENDS="bin86 dev86 iasl libIDL libsdl-dev mesa-dev libxslt-dev \
21 libglu-mesa-dev Qt4-dev libsdl-ttf-dev alsa-lib-dev hal-dev xorg-libXtst-dev \
22 xorg-libXrandr-dev python python-dev xalan-c curl-dev xalan-c-dev \
23 xerces-c-dev openssl-dev zlib-dev libcap-dev glib-dev libvncserver-dev \
24 pam pam-dev bzip2 linux-module-headers pkg-config tar wget vde2-dev \
25 libpng-dev gsoap-dev libdevmapper-dev makeself cdrkit flex"
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 grep -rl 'uname -m' $src | xargs sed -i 's|\(.\)uname -m|\1echo i486|'
31 patch -p1 < $stuff/virtualbox-linux.patch
32 cp $stuff/vbox-cpuhotplug.dsl src/VBox/Devices/PC/
33 sed -i '/Wake up on LAN/{NNNNNd};s|S2BF, 1|&, Serialized|' \
34 src/VBox/Devices/PC/vbox.dsl
35 sed -i '/soapvbox\*\.h/d' src/VBox/Main/webservice/Makefile.kmk
36 cp $stuff/LocalConfig.kmk .
37 ./configure \
38 --disable-pulse \
39 --disable-java \
40 --disable-docs \
41 --enable-webservice \
42 --enable-vde \
43 --with-linux=/usr/src/linux
44 source ./env.sh
45 kmk all 2>&1 | grep -v 'kmk: No such'
47 # Prepare modules tree.
48 mkdir -p $src/out/linux.amd64/release/bin
49 cp -a $src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/src \
50 $src/out/linux.amd64/release/bin/src
51 # build guest additions modules
52 KERN_DIR=/usr/src/linux make -C "$src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions/src"
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 source $src/env.sh
59 cd $src/out/linux.$BUILD_PLATFORM_ARCH/release/bin
60 mkdir -p $fs/usr/bin $fs/usr/lib/virtualbox/components \
61 $fs/usr/share/virtualbox/nls \
62 $fs/usr/lib/virtualbox/ExtensionPacks
63 install -m 0755 VBox.sh $fs/usr/bin/VBox
64 sed -i 's/ps -U/ps | grep/' $fs/usr/bin/VBox
65 ln -sf VBox $fs/usr/bin/VBoxHeadless
66 ln -sf VBox $fs/usr/bin/vboxheadless
67 ln -sf VBox $fs/usr/bin/VBoxManage
68 ln -sf VBox $fs/usr/bin/vboxmanage
69 ln -sf VBox $fs/usr/bin/VBoxSDL
70 ln -sf VBox $fs/usr/bin/vboxsdl
71 ln -sf VBox $fs/usr/bin/VirtualBox
72 ln -sf VBox $fs/usr/bin/virtualbox
73 ln -sf VBox $fs/usr/bin/vboxwebsrv
75 install -m 0755 VBoxTunctl "$fs/usr/bin"
77 # components
78 install -D -m 0755 components/* $fs/usr/lib/virtualbox/components
80 # lib
81 install -m 0755 *.so "$fs/usr/lib/virtualbox"
82 install -m 0644 *.gc *.r0 VBoxEFI*.fd "$fs/usr/lib/virtualbox"
84 #setuid root binaries
85 install -m 4755 VBoxSDL VirtualBox VBoxHeadless VBoxNetDHCP VBoxNetAdpCtl "$fs/usr/lib/virtualbox"
87 #other binaries
88 #install -m 0755 VBoxManage VBoxSVC VBoxExtPackHelperApp VBoxXPCOMIPCD VBoxTestOGL vboxwebsrv webtest "$fs/usr/lib/virtualbox"
89 install -m 0755 VBoxManage VBoxSVC VBoxExtPackHelperApp VBoxXPCOMIPCD VBoxTestOGL "$fs/usr/lib/virtualbox"
91 #language
92 install -m 0755 nls/*.qm "$fs/usr/share/virtualbox/nls"
94 #useless scripts
95 install -m 0755 VBoxCreateUSBNode.sh VBoxSysInfo.sh "$fs/usr/share/virtualbox"
97 #icon
98 install -D -m 0644 VBox.png "$fs/usr/share/pixmaps/virtualbox.png"
100 #desktop
101 install -D -m 0644 virtualbox.desktop "$fs/usr/share/applications/virtualbox.desktop"
102 sed -i "s|VBox.png|virtualbox|" \
103 $fs/usr/share/applications/virtualbox.desktop
105 #install configuration
106 mkdir -p "$fs/etc/vbox"
107 echo 'lsmod | grep -q vboxdrv || modprobe vboxdrv' > "$fs/etc/vbox/vbox.cfg"
108 echo 'INSTALL_DIR=/usr/lib/virtualbox' >> "$fs/etc/vbox/vbox.cfg"
110 #udev
111 install -D -m 0644 "$stuff/10-vboxdrv.rules" \
112 "$fs/etc/udev/rules.d/10-vboxdrv.rules"
114 mkdir -p $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/
115 cd sdk/installer
116 VBOX_INSTALL_PATH="/usr/lib/virtualbox" python vboxapisetup.py install --root "$fs"
117 cd $src/out/linux.$BUILD_PLATFORM_ARCH/release/bin
118 cd sdk/bindings/xpcom/python
119 cp -r xpcom $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/
120 chmod 644 $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/*.py
121 chmod 644 $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/*.py
122 chmod 644 $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/client/*.py
123 }
125 pre_remove()
126 {
127 chroot "$1/" delgroup vboxusers
128 }
130 post_install()
131 {
132 #chroot "$1/" udevadm control --reload
133 grep -qs vboxuser "$1/etc/group" || chroot "$1/" addgroup -g 199 vboxusers
134 echo "add yourself to vboxusers group if you want to access"
135 echo "host usb devices: addgroup $USER vboxusers"
136 #i can't get udev to do its work
137 #echo "then logout and login again"
138 echo "then reboot"
139 }