Contents of /trunk/extras/virtualbox/virtualbox-2.2.4-r1.smage2
Parent Directory | Revision Log
Revision 2116 -
(show annotations)
(download)
Mon Jun 29 19:58:20 2009 UTC (15 years, 2 months ago) by niro
File size: 5576 byte(s)
Mon Jun 29 19:58:20 2009 UTC (15 years, 2 months ago) by niro
File size: 5576 byte(s)
-seems there is no addIF script anymore
1 | # $Id$ |
2 | |
3 | PNAME="virtualbox" |
4 | PVER="2.2.4" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="app-emulation" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="VirtualBox is a general-purpose full virtualizer for x86 hardware." |
11 | HOMEPAGE="http://www.virtualbox.de/" |
12 | |
13 | DEPEND=">= dev-libs/libidl-0.8.10 |
14 | >= dev-util/xalan-c-1.10.0 |
15 | >= dev-util/xerces-c-2.8.0 |
16 | >= media-libs/alsa-lib-1.0.19 |
17 | >= media-libs/libsdl-1.2.13 |
18 | >= x11-libs/qt4-4.5 |
19 | >= sys-apps/dbus-1.2 |
20 | >= sys-apps/hal-0.5.12 |
21 | >= x11-libs/libXcursor-1 |
22 | >= virtual/opengl |
23 | >= virtual/glut |
24 | >= dev-lang/python-2.6" |
25 | |
26 | SDEPEND=">= dev-lang/bin86-0.16 |
27 | >= dev-lang/dev86-0.16 |
28 | >= dev-util/iasl-2009 |
29 | >= dev-libs/libxml2-2.7 |
30 | >= dev-util/desktop-file-utils-0.15 |
31 | >= sys-apps/sed-4" |
32 | |
33 | SRCFILE="VirtualBox-${PVER}-OSE.tar.bz2" |
34 | SRCDIR="${BUILDDIR}/VirtualBox-${PVER}_OSE" |
35 | |
36 | # virtual box additions for guest clients |
37 | VBOX_ADDITIONS_ISO="VBoxGuestAdditions_${PVER}.iso" |
38 | VBOX_USER_MANUAL="UserManual.pdf" |
39 | |
40 | # wrapper cvs revision |
41 | VW_CVS_REV=1.5 |
42 | # config-tool cvs revision |
43 | VC_CVS_REV=1.8 |
44 | |
45 | sminclude mtools xdg qt4 |
46 | |
47 | SRC_URI=( |
48 | http://download.virtualbox.org/${PNAME}/${PVER}/${SRCFILE} |
49 | http://download.virtualbox.org/${PNAME}/${PVER}/${VBOX_ADDITIONS_ISO} |
50 | http://download.virtualbox.org/${PNAME}/${PVER}/${VBOX_USER_MANUAL} |
51 | mirror://${PNAME}/${SRCFILE} |
52 | mirror://${PNAME}/${VBOX_ADDITIONS_ISO} |
53 | mirror://${PNAME}/${VBOX_USER_MANUAL} |
54 | mirror://${PNAME}/${PNAME}-wrapper.sh-${VW_CVS_REV} |
55 | mirror://${PNAME}/${PNAME}-config.sh-${VC_CVS_REV} |
56 | mirror://${PNAME}/interfaces |
57 | mirror://${PNAME}/${PNAME}-1.5.4-magellan.patch |
58 | ) |
59 | |
60 | UP2DATE="" |
61 | |
62 | src_prepare() |
63 | { |
64 | munpack ${SRCFILE} || die |
65 | cd ${SRCDIR} |
66 | |
67 | # add magellan support to VBoxSysInfo.sh |
68 | mpatch ${PNAME}-1.5.4-magellan.patch || die |
69 | |
70 | # fixes compile issues with qt on magellan |
71 | # create a fake qtdir to fix /usr/include/qt issue without patching |
72 | install -d ${SRCDIR}/qt || die |
73 | ln -snf ${QTDIR}/bin ${SRCDIR}/qt || die |
74 | ln -snf ${QTDIR}/$(mlibdir) ${SRCDIR}/qt/lib || die |
75 | ln -snf ${QTDIR}/include/qt ${SRCDIR}/qt/include || die |
76 | } |
77 | |
78 | src_compile() |
79 | { |
80 | cd ${SRCDIR} |
81 | |
82 | # use our fake qt dir and disable pulseaudio support |
83 | ./configure --with-qt-dir="${SRCDIR}/qt" --disable-pulse || die |
84 | source ./env.sh || die |
85 | kmk ${MAKEOPTS} || die |
86 | } |
87 | |
88 | src_install() |
89 | { |
90 | # virtualbox installs binaries in x86 or amd64 out dir |
91 | local myarch |
92 | case ${ARCH} in |
93 | i*86) myarch=x86;; |
94 | x86_64) myarch=amd64;; |
95 | esac |
96 | |
97 | cd ${SRCDIR}/out/linux.${myarch}/release/bin |
98 | |
99 | # needed directories |
100 | minstalldir /etc/udev/rules.d || die |
101 | minstalldir /etc/vbox || die |
102 | minstalldir /usr/$(mlibdir)/${PNAME} || die |
103 | minstalldir /usr/bin || die |
104 | minstalldir /usr/sbin || die |
105 | |
106 | # prune unneeded stuff |
107 | rm tst* || die |
108 | rm -r testcase || die |
109 | |
110 | # move binaries to dest |
111 | mv * ${BINDIR}/usr/$(mlibdir)/${PNAME} || die |
112 | |
113 | # fix permissions |
114 | chmod 0755 ${BINDIR}/usr/$(mlibdir)/${PNAME}/{,additions/}*.so || die |
115 | |
116 | # no addIF script in 2.x anymore? |
117 | # # install network interface scripts |
118 | # minstallexec ${SRCDIR}/src/VBox/Installer/linux/VBoxAddIF.sh /usr/$(mlibdir)/${PNAME} || die |
119 | # mchown root:virtualbox /usr/$(mlibdir)/${PNAME}/VBoxAddIF.sh || die |
120 | # mchmod 0750 /usr/$(mlibdir)/${PNAME}/VBoxAddIF.sh || die |
121 | # mlink VBoxAddIF.sh /usr/$(mlibdir)/${PNAME}/VBoxDeleteIF.sh || die |
122 | |
123 | # install permanent interfaces configuration file |
124 | minstallfile -s interfaces /etc/vbox || die |
125 | |
126 | # supply a additions.iso for client guest |
127 | minstallfile -s ${VBOX_ADDITIONS_ISO} /usr/$(mlibdir)/${PNAME}/additions/${VBOX_ADDITIONS_ISO/_${PVER}/} || die |
128 | |
129 | # install a wrapper for some apps |
130 | minstallexec -s ${PNAME}-wrapper.sh-${VW_CVS_REV} /usr/bin/virtualbox || die |
131 | minstallexec -s ${PNAME}-wrapper.sh-${VW_CVS_REV} /usr/bin/vboxmanage || die |
132 | minstallexec -s ${PNAME}-wrapper.sh-${VW_CVS_REV} /usr/bin/vboxsdl || die |
133 | minstallexec -s ${PNAME}-wrapper.sh-${VW_CVS_REV} /usr/bin/vboxbfe || die |
134 | minstallexec -s ${PNAME}-wrapper.sh-${VW_CVS_REV} /usr/bin/vboxvrdp || die |
135 | minstallexec -s ${PNAME}-wrapper.sh-${VW_CVS_REV} /usr/bin/vboxvheadless || die |
136 | |
137 | # virtualbox-config |
138 | minstallexec -s ${PNAME}-config.sh-${VC_CVS_REV} /usr/sbin/${PNAME}-config || die |
139 | |
140 | # other needed applinks |
141 | mlink /usr/$(mlibdir)/${PNAME}/VBoxTunctl /usr/bin/vboxtunctl || die |
142 | # mlink /usr/$(mlibdir)/${PNAME}/VBoxAddIF.sh /usr/bin/vboxaddif || die |
143 | # mlink /usr/$(mlibdir)/${PNAME}/VBoxDeleteIF.sh /usr/bin/vboxdeleteif || die |
144 | |
145 | # fix libdir |
146 | local i |
147 | for i in virtualbox vboxmanage vboxsdl vboxbfe vboxvrdp vboxvheadless |
148 | do |
149 | sed -i "s:^\(LIBDIR=\).*:\1/usr/$(mlibdir):" ${BINDIR}/usr/bin/${i} || die |
150 | done |
151 | sed -i "s:^\(LIBDIR=\).*:\1/usr/$(mlibdir):" ${BINDIR}/usr/sbin/${PNAME}-config || die |
152 | |
153 | # install a udev rule |
154 | echo 'KERNEL=="vboxdrv", GROUP="virtualbox" MODE=660' > ${BINDIR}/etc/udev/rules.d/60-virtualbox.rules || die |
155 | |
156 | # install a nice destop entry |
157 | minstallpixmap ${SRCDIR}/src/VBox/Frontends/VirtualBox/images/OSE/VirtualBox_64px.png ${PNAME}.png || die |
158 | minstall_desktop_icon \ |
159 | --name VirtualBox \ |
160 | --file ${PNAME} \ |
161 | --comment "Run and manage virtual machines" \ |
162 | --exec ${PNAME} \ |
163 | --icon ${PNAME}.png \ |
164 | --vendor innotek \ |
165 | --categories System,Emulator \ |
166 | || die |
167 | |
168 | # docs |
169 | cd ${SRCDIR} |
170 | minstalldocs ChangeLog COPYING || die |
171 | |
172 | # install usermanual |
173 | minstallfile -s ${VBOX_USER_MANUAL} /usr/share/doc/${PNAME}-${PVER} || die |
174 | } |
175 | |
176 | preinstall() |
177 | { |
178 | # adds virtualbox group |
179 | ${MLIBDIR}/mgroupadd virtualbox |
180 | } |
181 | |
182 | postinstall() |
183 | { |
184 | echo |
185 | echo "Please run virtualbox-config and add your users the 'virtualbox' group." |
186 | echo "For more information consult the user manual found at" |
187 | echo " http://virtualbox.de/download/${VBOX_USER_MANUAL}" |
188 | echo "or /usr/share/docs/${PNAME}-${PVER}/${VBOX_USER_MANUAL}" |
189 | echo |
190 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |