wok-6.x view virtualbox-ose/receipt @ rev 7145
Add udhcpc6-fake
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 06 16:08:43 2010 +0100 (2010-11-06) |
parents | |
children | ed5aeadc5ff6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="virtualbox-ose"
4 VERSION="3.2.10"
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 DEPENDS="libxml2 xorg-libXcursor libIDL xorg-libXinerama libsdl xorg-libXmu curl libvncserver libpng jpeg mesa libglu-mesa qt4"
9 BUILD_DEPENDS="bin86 dev86 iasl libxslt-dev libxml2-dev xorg-libXcursor-dev Qt4-dev libIDL libsdl-ttf-dev libsdl-dev alsa-lib-dev hal-dev xorg-libXtst-dev xorg-libXinerama-dev xorg-libXrandr-dev xorg-libXmu-dev curl-dev python python-dev mesa-dev libglu-mesa xalan-c xalan-c-dev xerces-c-dev openssl-dev libpng-dev jpeg-dev zlib-dev libvncserver-dev libcap-dev glib-dev pam pam-dev linux-module-headers pkg-config"
10 SOURCE="VirtualBox"
11 TARBALL="$SOURCE-$VERSION-OSE.tar.bz2"
12 WEB_SITE="http://virtualbox.org/"
13 WGET_URL="http://download.virtualbox.org/virtualbox/$VERSION/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 src=$WOK/$PACKAGE/$SOURCE-${VERSION}_OSE
19 cd $src
21 patch -Np1 -i ../stuff/VirtualBox-3.2.0-gcc-4.5-warning-workaround.patch
22 cp ../stuff/LocalConfig.kmk .
23 ./configure \
24 --disable-pulse \
25 --with-linux=/usr/src/linux
26 source ./env.sh
27 kmk all
29 # build modules
30 cd $src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/src
31 KERN_DIR=/usr/src/linux make
32 # build guest additions modules
33 cd $src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions/src
34 KERN_DIR=/usr/src/linux make
35 cd $src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions/src/vboxvideo
36 KERN_DIR=/usr/src/linux make
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 src=$WOK/$PACKAGE/$SOURCE-${VERSION}_OSE
43 fs=$WOK/$PACKAGE/taz/$PACKAGE-$VERSION/fs
44 stuff=$WOK/$PACKAGE/stuff
46 source $src/env.sh
47 cd $src/out/linux.$BUILD_PLATFORM_ARCH/release/bin
48 mkdir -p "$fs"/usr/{bin,lib/virtualbox/components,share/virtualbox/nls}
49 cp -a VBox.sh $fs/usr/bin/VBox
50 sed -i 's/ps -U/ps | grep/' $fs/usr/bin/VBox
51 ln -sf VBox $fs/usr/bin/VBoxHeadless
52 ln -sf VBox $fs/usr/bin/VBoxManage
53 ln -sf VBox $fs/usr/bin/VBoxSDL
54 ln -sf VBox $fs/usr/bin/VirtualBox
56 install -m 0755 VBoxTunctl "$fs/usr/bin"
58 # components
59 cp -a components/* $fs/usr/lib/virtualbox/components
61 # lib
62 install -m 0755 *.so "$fs/usr/lib/virtualbox"
63 install -m 0644 *.gc *.r0 VBoxEFI*.fd "$fs/usr/lib/virtualbox"
65 #setuid root binaries
66 install -m 4755 VBoxHeadless VBoxSDL VBoxNetDHCP VBoxNetAdpCtl VirtualBox VBoxBFE "$fs/usr/lib/virtualbox"
68 #other binaries
69 install -m 0755 VBoxManage VBoxSVC VBoxXPCOMIPCD VBoxSysInfo.sh xpidl \
70 VBoxTestOGL EfiThunk "$fs/usr/lib/virtualbox"
72 #language
73 install -m 0755 nls/*.qm "$fs/usr/share/virtualbox/nls"
75 #icon
76 install -D -m 0644 VBox.png "$fs/usr/share/pixmaps/VBox.png"
78 #desktop
79 install -D -m 0644 virtualbox.desktop "$fs/usr/share/applications/virtualbox.desktop"
81 #install configuration
82 mkdir -p "$fs/etc/vbox"
83 echo 'lsmod | grep -q vboxdrv || modprobe vboxdrv' > "$fs/etc/vbox/vbox.cfg"
84 echo 'INSTALL_DIR=/usr/lib/virtualbox' >> "$fs/etc/vbox/vbox.cfg"
86 #udev
87 install -D -m 0644 "$stuff/60-virtualbox.rules" \
88 "$fs/etc/udev/rules.d/60-virtualbox.rules"
90 mkdir -p $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/
91 pushd sdk/installer
92 VBOX_INSTALL_PATH="/usr/lib/virtualbox" python vboxapisetup.py install --root "$fs"
93 popd
94 pushd sdk/bindings/xpcom/python
95 cp -r xpcom $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/
96 chmod 644 $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/*.py
97 chmod 644 $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/server/*.py
98 chmod 644 $fs/usr/lib/virtualbox/sdk/bindings/xpcom/python/xpcom/client/*.py
99 popd
101 # virtualbox-modules
102 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
104 cd "$src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/src"
105 install -D -m644 vboxdrv.ko "$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxdrv.ko"
106 install -D -m644 vboxnetflt.ko "$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxnetflt.ko"
107 install -D -m644 vboxnetadp.ko "$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxnetadp.ko"
109 # virtualbox-ose-additions
111 cd "$src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions"
112 mkdir -p $fs/usr/bin
113 mkdir -p $fs/sbin
114 mkdir -p $fs/etc/X11/xorg.conf.d
116 install -m755 VBoxClient VBoxControl VBoxService "$fs/usr/bin"
117 install -m755 mount.vboxsf "$fs/sbin"
119 install -m644 $src/src/VBox/Additions/x11/Installer/50-vboxmouse.conf \
120 $fs/etc/X11/xorg.conf.d/50-vboxmouse.conf
122 install -m755 -D $src/src/VBox/Additions/x11/Installer/98vboxadd-xclient \
123 $fs/usr/bin/VBoxClient-all
124 install -m755 -D $src/src/VBox/Additions/x11/Installer/vboxclient.desktop \
125 $fs/etc/xdg/autostart/vboxclient.desktop
127 install -D vboxmouse_drv_19.so \
128 "$fs/usr/lib/xorg/modules/input/vboxmouse.so"
129 install -D vboxvideo_drv_19.so \
130 "$fs/usr/lib/xorg/modules/drivers/vboxvideo.so"
131 install -d "$fs/usr/lib/dri"
132 install -m755 VBoxOGL*.so "$fs/usr/lib"
133 ln -s /usr/lib/VBoxOGL.so "$fs/usr/lib/dri/vboxvideo_dri.so"
134 install -m755 -D pam_vbox.so "$fs/lib/security/pam_vbox.so"
136 # virtualbox-ose-additions-modules
137 cd "$src/out/linux.$BUILD_PLATFORM_ARCH/release/bin/additions/src"
139 cd vboxguest
140 install -D -m644 vboxguest.ko \
141 "$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxguest.ko"
143 cd ../vboxsf
144 install -D -m644 vboxsf.ko \
145 "$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxsf.ko"
147 cd ../vboxvideo
148 install -D -m644 vboxvideo.ko \
149 "$fs/lib/modules/$KERNEL_VERSION-slitaz/misc/vboxvideo.ko"
151 install -D -m 0644 "$stuff/60-vboxguest.rules" \
152 "$fs/etc/udev/rules.d/60-vboxguest.rules"
153 }