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