1 |
jokey 07/10/22 22:19:39 |
2 |
|
3 |
Modified: virtualbox-wrapper |
4 |
Added: virtualbox-1.5.2-remove-splitted-stuff.patch |
5 |
virtualbox-interfaces |
6 |
virtualbox-1.5.2-remove-alsa.patch |
7 |
virtualbox-config digest-virtualbox-1.5.2 |
8 |
Removed: digest-virtualbox-1.5.0-r1 |
9 |
virtualbox-1.5.0-remove-alsa.patch |
10 |
virtualbox-1.5.0-remove-splitted-stuff.patch |
11 |
Log: |
12 |
Version bump wrt bug #196424 thanks to Alessio for the ebuilds |
13 |
(Portage version: 2.1.3.15) |
14 |
|
15 |
Revision Changes Path |
16 |
1.2 app-emulation/virtualbox/files/virtualbox-wrapper |
17 |
|
18 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/virtualbox-wrapper?rev=1.2&view=markup |
19 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/virtualbox-wrapper?rev=1.2&content-type=text/plain |
20 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/virtualbox-wrapper?r1=1.1&r2=1.2 |
21 |
|
22 |
Index: virtualbox-wrapper |
23 |
=================================================================== |
24 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/virtualbox/files/virtualbox-wrapper,v |
25 |
retrieving revision 1.1 |
26 |
retrieving revision 1.2 |
27 |
diff -u -r1.1 -r1.2 |
28 |
--- virtualbox-wrapper 16 Mar 2007 22:15:52 -0000 1.1 |
29 |
+++ virtualbox-wrapper 22 Oct 2007 22:19:38 -0000 1.2 |
30 |
@@ -1,66 +1,113 @@ |
31 |
#!/bin/sh |
32 |
+# |
33 |
+# innotek VirtualBox |
34 |
+# |
35 |
+# Copyright (C) 2006-2007 innotek GmbH |
36 |
+# |
37 |
+# This file is part of VirtualBox Open Source Edition (OSE), as |
38 |
+# available from http://www.virtualbox.org. This file is free software; |
39 |
+# you can redistribute it and/or modify it under the terms of the GNU |
40 |
+# General Public License as published by the Free Software Foundation, |
41 |
+# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE |
42 |
+# distribution. VirtualBox OSE is distributed in the hope that it will |
43 |
+# be useful, but WITHOUT ANY WARRANTY of any kind. |
44 |
+ |
45 |
+PATH="/usr/bin:/bin:/usr/sbin:/sbin" |
46 |
+CONFIG="/etc/vbox/vbox.cfg" |
47 |
+ |
48 |
+if [ ! -r "$CONFIG" ]; then |
49 |
+ echo "Could not find VirtualBox installation. Please reinstall." |
50 |
+ exit 1 |
51 |
+fi |
52 |
+ |
53 |
+. "$CONFIG" |
54 |
|
55 |
-INSTALL_DIR=/opt/VirtualBox |
56 |
-USER=$( whoami ) |
57 |
- |
58 |
-SERVER_PID=$( ps -U $USER | grep VBoxSVC | awk '{ print $1 }' ) |
59 |
+# Note: This script must not fail if the module was not successfully installed |
60 |
+# because the user might not want to run a VM but only change VM params! |
61 |
|
62 |
-if [ "$1" = shutdown ]; then |
63 |
- if [ "$SERVER_PID" != "" ]; then |
64 |
- kill -TERM $SERVER_PID |
65 |
- sleep 2 |
66 |
- fi |
67 |
- exit 0 |
68 |
-fi |
69 |
+if [ "$1" = "shutdown" ]; then |
70 |
+ SHUTDOWN="true" |
71 |
+elif [ ! -e /lib/modules/`uname -r`/misc/vboxdrv.ko ]; then |
72 |
+ cat << EOF |
73 |
+WARNING: There is no module available for the currente kernel (`uname -r`). |
74 |
+ Please recompile the kernel module and install it by |
75 |
+ |
76 |
+ sudo emerge -1 virtualbox-modules |
77 |
+ |
78 |
+ You will not be able to start VMs until this problem is fixed. |
79 |
+EOF |
80 |
+elif ! lsmod|grep -q vboxdrv; then |
81 |
+ cat << EOF |
82 |
+WARNING: The vboxdrv kernel module is not loaded. |
83 |
+ Please load the kernel by |
84 |
+ |
85 |
+ sudo modprobe vboxdrv |
86 |
+ |
87 |
+ You will not be able to start VMs until this problem is fixed. |
88 |
+EOF |
89 |
+elif [ ! -c /dev/vboxdrv ]; then |
90 |
+ cat << EOF |
91 |
+WARNING: The character device /dev/vboxdrv does not exist. Try |
92 |
|
93 |
-[ "$VBOX_USER_HOME" = "" ] && VBOX_USER_HOME="$HOME/.VirtualBox" |
94 |
+ sudo /etc/init.d/virtualbox restart |
95 |
|
96 |
-mkdir -p "$VBOX_USER_HOME" |
97 |
-LOG="$VBOX_USER_HOME/VBoxSVC.log" |
98 |
+ and if that is not successful, try to re-install the package. |
99 |
|
100 |
-if [[ -e /proc/modules && ! -e /dev/vboxdrv ]] ; then |
101 |
- echo "Error: vboxdrv kernel module is not loaded..." |
102 |
- echo "Please load the module before starting VirtualBox." |
103 |
- exit 1 |
104 |
+ You will not be able to start VMs until this problem is fixed. |
105 |
+EOF |
106 |
elif [ ! -w /dev/vboxdrv ]; then |
107 |
- if [ "`id | grep vboxusers`" = "" ]; then |
108 |
- echo "Error: You are not a member of the \"vboxusers\" group..." |
109 |
- echo "Please add yourself to this group before starting VirtualBox." |
110 |
- else |
111 |
- echo "Error: /dev/vboxdrv is not writable for some reason..." |
112 |
- echo "If you recently added the current user to the vboxusers group," |
113 |
- echo "then you have to logout and re-login to take the change effect." |
114 |
- fi |
115 |
- exit 1 |
116 |
+ if [ "`id | grep vboxusers`" = "" ]; then |
117 |
+ cat << EOF |
118 |
+WARNING: You are not a member of the "vboxusers" group. Please add yourself |
119 |
+ to this group before starting VirtualBox. |
120 |
+ |
121 |
+ You will not be able to start VMs until this problem is fixed. |
122 |
+EOF |
123 |
+ else |
124 |
+ cat << EOF |
125 |
+WARNING: /dev/vboxdrv not writable for some reason. If you recently added the |
126 |
+ current user to the vboxusers group then you have to logout and |
127 |
+ re-login to take the change effect. |
128 |
+ |
129 |
+ You will not be able to start VMs until this problem is fixed. |
130 |
+EOF |
131 |
+ fi |
132 |
fi |
133 |
|
134 |
-export LD_LIBRARY_PATH="$INSTALL_DIR" |
135 |
+export LD_LIBRARY_PATH="$INSTALL_DIR${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" |
136 |
+ |
137 |
+SERVER_PID=`ps -U \`whoami\` | grep VBoxSVC | awk '{ print $1 }'` |
138 |
+if [ -z "$SERVER_PID" ]; then |
139 |
+ # Server not running yet/anymore, cleanup socket path. |
140 |
+ # See IPC_GetDefaultSocketPath()! |
141 |
+ if [ -n "$LOGNAME" ]; then |
142 |
+ rm -rf /tmp/.vbox-$LOGNAME-ipc > /dev/null 2>&1 |
143 |
+ else |
144 |
+ rm -rf /tmp/.vbox-$USER-ipc > /dev/null 2>&1 |
145 |
+ fi |
146 |
+fi |
147 |
|
148 |
-if [ "$SERVER_PID" = "" ]; then |
149 |
- rm -rf /tmp/.vbox-$USER-ipc |
150 |
- [ -f "$LOG.1" ] && mv "$LOG.1" "$LOG.2" |
151 |
- [ -f "$LOG.0" ] && mv "$LOG.0" "$LOG.1" |
152 |
- [ -f "$LOG" ] && mv "$LOG" "$LOG.0" |
153 |
- /opt/VirtualBox/VBoxSVC --daemonize >"$LOG" 2>&1 |
154 |
+if [ "$SHUTDOWN" = "true" ]; then |
155 |
+ if [ -n "$SERVER_PID" ]; then |
156 |
+ kill -TERM $SERVER_PID |
157 |
+ sleep 2 |
158 |
+ fi |
159 |
+ exit 0 |
160 |
fi |
161 |
|
162 |
-APP=$( which $0 ) |
163 |
+APP=`which $0` |
164 |
APP=${APP##/*/} |
165 |
case "$APP" in |
166 |
- virtualbox) |
167 |
- exec "$INSTALL_DIR/VirtualBox" "$@" |
168 |
- ;; |
169 |
- vboxmanage) |
170 |
- exec "$INSTALL_DIR/VBoxManage" "$@" |
171 |
- ;; |
172 |
- vboxsdl) |
173 |
- exec "$INSTALL_DIR/VBoxSDL" "$@" |
174 |
- ;; |
175 |
- vboxbfe) |
176 |
- exec "$INSTALL_DIR/VBoxBFE" "$@" |
177 |
- ;; |
178 |
- *) |
179 |
- echo "Error: Unknown application - $APP" |
180 |
- exit 1 |
181 |
- ;; |
182 |
+ VirtualBox) |
183 |
+ exec "$INSTALL_DIR/VirtualBox" "$@" |
184 |
+ ;; |
185 |
+ VBoxManage) |
186 |
+ exec "$INSTALL_DIR/VBoxManage" "$@" |
187 |
+ ;; |
188 |
+ VBoxSDL) |
189 |
+ exec "$INSTALL_DIR/VBoxSDL" "$@" |
190 |
+ ;; |
191 |
+ *) |
192 |
+ echo "Unknown application - $APP" |
193 |
+ ;; |
194 |
esac |
195 |
|
196 |
|
197 |
|
198 |
1.1 app-emulation/virtualbox/files/virtualbox-1.5.2-remove-splitted-stuff.patch |
199 |
|
200 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/virtualbox-1.5.2-remove-splitted-stuff.patch?rev=1.1&view=markup |
201 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/virtualbox-1.5.2-remove-splitted-stuff.patch?rev=1.1&content-type=text/plain |
202 |
|
203 |
Index: virtualbox-1.5.2-remove-splitted-stuff.patch |
204 |
=================================================================== |
205 |
--- Config.kmk.orig 2007-10-19 14:38:41.000000000 +0200 |
206 |
+++ Config.kmk 2007-10-19 14:40:51.000000000 +0200 |
207 |
@@ -134,7 +134,7 @@ |
208 |
|
209 |
# Build linux / win32 additions. |
210 |
ifeq ($(BUILD_TARGET),linux) |
211 |
- VBOX_WITH_LINUX_ADDITIONS = 1 |
212 |
+# VBOX_WITH_LINUX_ADDITIONS = 1 |
213 |
VBOX_WITH_WIN32_ADDITIONS = 1 |
214 |
endif |
215 |
ifeq ($(BUILD_TARGET),l4) |
216 |
@@ -173,7 +173,7 @@ |
217 |
VBOX_WITHOUT_IDT_PATCHING = 1 |
218 |
endif |
219 |
# The kernel driver/module and related runtime libraries. |
220 |
-VBOX_WITH_VBOXDRV = 1 |
221 |
+#VBOX_WITH_VBOXDRV = 1 |
222 |
# build with secure label support |
223 |
ifeq ($(filter win.amd64,$(BUILD_TARGET).$(BUILD_TARGET_ARCH)),) # too much work with freetype and all that. |
224 |
VBOX_WITH_SECURELABEL = 1 |
225 |
@@ -206,11 +206,11 @@ |
226 |
# Disable WINMM support for Windows (not implemented) |
227 |
VBOX_WITH_WINMM = |
228 |
# Enable the kchmviewer |
229 |
-VBOX_WITH_KCHMVIEWER = 1 |
230 |
+#VBOX_WITH_KCHMVIEWER = 1 |
231 |
# Build the testsuite. |
232 |
-VBOX_WITH_TESTSUITE = 1 |
233 |
+#VBOX_WITH_TESTSUITE = 1 |
234 |
# Build the testcases. |
235 |
-VBOX_WITH_TESTCASES = 1 |
236 |
+#VBOX_WITH_TESTCASES = 1 |
237 |
# Set this to not use COM or XPCOM in places where it can be avoided. |
238 |
#VBOX_WITHOUT_COM = 1 |
239 |
# Set this to skip installing the redistributable compiler runtime. |
240 |
--- configure.orig 2007-10-19 14:41:28.000000000 +0200 |
241 |
+++ configure 2007-10-19 14:42:29.000000000 +0200 |
242 |
@@ -1402,14 +1402,14 @@ |
243 |
# some things are not available in for OSE |
244 |
if [ $OSE -ge 1 ]; then |
245 |
cnf_append "VBOX_OSE" "1" |
246 |
- cnf_append "VBOX_WITH_TESTSUITE" "" |
247 |
+# cnf_append "VBOX_WITH_TESTSUITE" "" |
248 |
cnf_append "VBOX_WITH_WIN32_ADDITIONS" "" |
249 |
|
250 |
- if [ "$OS" = "linux" ]; then |
251 |
- cnf_append "VBOX_WITH_LINUX_ADDITIONS" "1" |
252 |
- else |
253 |
- cnf_append "VBOX_WITH_LINUX_ADDITIONS" "" |
254 |
- fi |
255 |
+# if [ "$OS" = "linux" ]; then |
256 |
+# cnf_append "VBOX_WITH_LINUX_ADDITIONS" "1" |
257 |
+# else |
258 |
+# cnf_append "VBOX_WITH_LINUX_ADDITIONS" "" |
259 |
+# fi |
260 |
echo >> $CNF |
261 |
fi |
262 |
|
263 |
|
264 |
|
265 |
|
266 |
1.1 app-emulation/virtualbox/files/virtualbox-interfaces |
267 |
|
268 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/virtualbox-interfaces?rev=1.1&view=markup |
269 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/virtualbox-interfaces?rev=1.1&content-type=text/plain |
270 |
|
271 |
Index: virtualbox-interfaces |
272 |
=================================================================== |
273 |
# This file is for registering VirtualBox permanent host networking interfaces |
274 |
# and optionally adding them to network bridges on the host. |
275 |
# Each line should be of the format <interface name> <user name> [<bridge>]. |
276 |
|
277 |
|
278 |
|
279 |
|
280 |
1.1 app-emulation/virtualbox/files/virtualbox-1.5.2-remove-alsa.patch |
281 |
|
282 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/virtualbox-1.5.2-remove-alsa.patch?rev=1.1&view=markup |
283 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/virtualbox-1.5.2-remove-alsa.patch?rev=1.1&content-type=text/plain |
284 |
|
285 |
Index: virtualbox-1.5.2-remove-alsa.patch |
286 |
=================================================================== |
287 |
--- Config.kmk.orig 2007-10-19 14:44:53.000000000 +0200 |
288 |
+++ Config.kmk 2007-10-19 14:45:11.000000000 +0200 |
289 |
@@ -202,7 +202,7 @@ |
290 |
# Enable the ISCSI feature. |
291 |
VBOX_WITH_ISCSI = 1 |
292 |
# Enable ALSA support for Linux |
293 |
-VBOX_WITH_ALSA = 1 |
294 |
+#VBOX_WITH_ALSA = 1 |
295 |
# Disable WINMM support for Windows (not implemented) |
296 |
VBOX_WITH_WINMM = |
297 |
# Enable the kchmviewer |
298 |
--- configure.orig 2007-10-19 14:44:59.000000000 +0200 |
299 |
+++ configure 2007-10-19 14:45:31.000000000 +0200 |
300 |
@@ -1451,7 +1451,7 @@ |
301 |
# Linux-specific |
302 |
if [ "$OS" = "linux" ]; then |
303 |
check_linux |
304 |
- check_alsa |
305 |
+# check_alsa |
306 |
check_compiler_h |
307 |
[ "$BUILD_MACHINE" = "amd64" ] && check_32bit |
308 |
fi |
309 |
|
310 |
|
311 |
|
312 |
1.1 app-emulation/virtualbox/files/virtualbox-config |
313 |
|
314 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/virtualbox-config?rev=1.1&view=markup |
315 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/virtualbox-config?rev=1.1&content-type=text/plain |
316 |
|
317 |
Index: virtualbox-config |
318 |
=================================================================== |
319 |
INSTALL_DIR=/opt/VirtualBox |
320 |
|
321 |
|
322 |
|
323 |
1.1 app-emulation/virtualbox/files/digest-virtualbox-1.5.2 |
324 |
|
325 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/digest-virtualbox-1.5.2?rev=1.1&view=markup |
326 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-emulation/virtualbox/files/digest-virtualbox-1.5.2?rev=1.1&content-type=text/plain |
327 |
|
328 |
Index: digest-virtualbox-1.5.2 |
329 |
=================================================================== |
330 |
MD5 2940f92160c88e241606f0fa91428b2c VirtualBox-1.5.2_OSE.tar.bz2 24227070 |
331 |
RMD160 ca9ae0ad715109835800a2258124101ada679ede VirtualBox-1.5.2_OSE.tar.bz2 24227070 |
332 |
SHA256 a34c3ef9d3c07bbf8fd5c1b62a7a1f05185a1760299ac99f19dd6926f1dc39bd VirtualBox-1.5.2_OSE.tar.bz2 24227070 |
333 |
|
334 |
|
335 |
|
336 |
-- |
337 |
gentoo-commits@g.o mailing list |