#!/bin/sh
# This script was generated using Makeself 2.1.5
CRCsum="528098232"
MD5="1e989f0b33ae55c11b3de8f020c51373"
TMPROOT=${TMPDIR:=/tmp}
label="VirtualBox for Linux installation"
script="./install.sh"
scriptargs="$0 1> /dev/null"
targetdir="install"
filesizes="72151040"
keep=n
print_cmd_arg=""
if type printf > /dev/null; then
print_cmd="printf"
elif test -x /usr/ucb/echo; then
print_cmd="/usr/ucb/echo"
else
print_cmd="echo"
fi
unset CDPATH
MS_Printf()
{
$print_cmd $print_cmd_arg "$1"
}
MS_Progress()
{
while read a; do
MS_Printf .
done
}
MS_diskspace()
{
(
if test -d /usr/xpg4/bin; then
PATH=/usr/xpg4/bin:$PATH
fi
df -kP "$1" | tail -1 | awk '{print $4}'
)
}
MS_dd()
{
blocks=`expr $3 / 1024`
bytes=`expr $3 % 1024`
dd if="$1" ibs=$2 skip=1 obs=1024 conv=sync 2> /dev/null | \
{ test $blocks -gt 0 && dd ibs=1024 obs=1024 count=$blocks ; \
test $bytes -gt 0 && dd ibs=1 obs=1024 count=$bytes ; } 2> /dev/null
}
MS_Help()
{
cat << EOH >&2
Makeself version 2.1.5
1) Getting help or info about $0 :
$0 --help Print this message
$0 --info Print embedded info : title, default target directory, embedded script ...
$0 --lsm Print embedded lsm entry (or no LSM)
$0 --list Print the list of files in the archive
$0 --check Checks integrity of the archive
2) Running $0 :
$0 [options] [--] [additional arguments to embedded script]
with following options (in that order)
--confirm Ask before running embedded script
--noexec Do not run embedded script
--keep Do not erase target directory after running
the embedded script
--nox11 Do not spawn an xterm
--nochown Do not give the extracted files to the current user
--target NewDirectory Extract in NewDirectory
--tar arg1 [arg2 ...] Access the contents of the archive through the tar command
-- Following arguments will be passed to the embedded script
EOH
}
MS_Check()
{
OLD_PATH="$PATH"
PATH=${GUESS_MD5_PATH:-"$OLD_PATH:/bin:/usr/bin:/sbin:/usr/local/ssl/bin:/usr/local/bin:/opt/openssl/bin"}
MD5_ARG=""
MD5_PATH=`exec <&- 2>&-; which md5sum || type md5sum`
test -x "$MD5_PATH" || MD5_PATH=`exec <&- 2>&-; which md5 || type md5`
test -x "$MD5_PATH" || MD5_PATH=`exec <&- 2>&-; which digest || type digest`
PATH="$OLD_PATH"
MS_Printf "Verifying archive integrity..."
offset=`head -n 404 "$1" | wc -c | tr -d " "`
verb=$2
i=1
for s in $filesizes
do
crc=`echo $CRCsum | cut -d" " -f$i`
if test -x "$MD5_PATH"; then
if test `basename $MD5_PATH` = digest; then
MD5_ARG="-a md5"
fi
md5=`echo $MD5 | cut -d" " -f$i`
if test $md5 = "00000000000000000000000000000000"; then
test x$verb = xy && echo " $1 does not contain an embedded MD5 checksum." >&2
else
md5sum=`MS_dd "$1" $offset $s | eval "$MD5_PATH $MD5_ARG" | cut -b-32`;
if test "$md5sum" != "$md5"; then
echo "Error in MD5 checksums: $md5sum is different from $md5" >&2
exit 2
else
test x$verb = xy && MS_Printf " MD5 checksums are OK." >&2
fi
crc="0000000000"; verb=n
fi
fi
if test $crc = "0000000000"; then
test x$verb = xy && echo " $1 does not contain a CRC checksum." >&2
else
sum1=`MS_dd "$1" $offset $s | CMD_ENV=xpg4 cksum | awk '{print $1}'`
if test "$sum1" = "$crc"; then
test x$verb = xy && MS_Printf " CRC checksums are OK." >&2
else
echo "Error in checksums: $sum1 is different from $crc"
exit 2;
fi
fi
i=`expr $i + 1`
offset=`expr $offset + $s`
done
echo " All good."
}
UnTAR()
{
tar $1vf - 2>&1 || { echo Extraction failed. > /dev/tty; kill -15 $$; }
}
finish=true
xterm_loop=
nox11=n
copy=none
ownership=y
verbose=n
initargs="$@"
while true
do
case "$1" in
-h | --help)
MS_Help
exit 0
;;
--info)
echo Identification: "$label"
echo Target directory: "$targetdir"
echo Uncompressed size: 70472 KB
echo Compression: none
echo Date of packaging: Fri Jan 16 22:25:36 CET 2015
echo Built with Makeself version 2.1.5 on linux-gnu
echo Build command was: "/home/vbox/tinderbox/4.0-lnx64-rel/tools/common/makeself/v2.1.5/makeself.sh \\
\"--follow\" \\
\"--nocomp\" \\
\"/home/vbox/tinderbox/4.0-lnx64-rel/out/linux.amd64/release/obj/Installer/linux/install\" \\
\"/home/vbox/tinderbox/4.0-lnx64-rel/out/linux.amd64/release/bin/VirtualBox-4.0.28-r97686.run\" \\
\"VirtualBox for Linux installation\" \\
\"./install.sh\" \\
\"$0 1> /dev/null\""
if test x$script != x; then
echo Script run after extraction:
echo " " $script $scriptargs
fi
if test x"" = xcopy; then
echo "Archive will copy itself to a temporary location"
fi
if test x"n" = xy; then
echo "directory $targetdir is permanent"
else
echo "$targetdir will be removed after extraction"
fi
exit 0
;;
--dumpconf)
echo LABEL=\"$label\"
echo SCRIPT=\"$script\"
echo SCRIPTARGS=\"$scriptargs\"
echo archdirname=\"install\"
echo KEEP=n
echo COMPRESS=none
echo filesizes=\"$filesizes\"
echo CRCsum=\"$CRCsum\"
echo MD5sum=\"$MD5\"
echo OLDUSIZE=70472
echo OLDSKIP=405
exit 0
;;
--lsm)
cat << EOLSM
No LSM.
EOLSM
exit 0
;;
--list)
echo Target directory: $targetdir
offset=`head -n 404 "$0" | wc -c | tr -d " "`
for s in $filesizes
do
MS_dd "$0" $offset $s | eval "cat" | UnTAR t
offset=`expr $offset + $s`
done
exit 0
;;
--tar)
offset=`head -n 404 "$0" | wc -c | tr -d " "`
arg1="$2"
shift 2
for s in $filesizes
do
MS_dd "$0" $offset $s | eval "cat" | tar "$arg1" - $*
offset=`expr $offset + $s`
done
exit 0
;;
--check)
MS_Check "$0" y
exit 0
;;
--confirm)
verbose=y
shift
;;
--noexec)
script=""
shift
;;
--keep)
keep=y
shift
;;
--target)
keep=y
targetdir=${2:-.}
shift 2
;;
--nox11)
nox11=y
shift
;;
--nochown)
ownership=n
shift
;;
--xwin)
finish="echo Press Return to close this window...; read junk"
xterm_loop=1
shift
;;
--phase2)
copy=phase2
shift
;;
--)
shift
break ;;
-*)
echo Unrecognized flag : "$1" >&2
MS_Help
exit 1
;;
*)
break ;;
esac
done
case "$copy" in
copy)
tmpdir=$TMPROOT/makeself.$RANDOM.`date +"%y%m%d%H%M%S"`.$$
mkdir "$tmpdir" || {
echo "Could not create temporary directory $tmpdir" >&2
exit 1
}
SCRIPT_COPY="$tmpdir/makeself"
echo "Copying to a temporary location..." >&2
cp "$0" "$SCRIPT_COPY"
chmod +x "$SCRIPT_COPY"
cd "$TMPROOT"
exec "$SCRIPT_COPY" --phase2 -- $initargs
;;
phase2)
finish="$finish ; rm -rf `dirname $0`"
;;
esac
if test "$nox11" = "n"; then
if tty -s; then # Do we have a terminal?
:
else
if test x"$DISPLAY" != x -a x"$xterm_loop" = x; then # No, but do we have X?
if xset q > /dev/null 2>&1; then # Check for valid DISPLAY variable
GUESS_XTERMS="xterm rxvt dtterm eterm Eterm kvt konsole aterm"
for a in $GUESS_XTERMS; do
if type $a >/dev/null 2>&1; then
XTERM=$a
break
fi
done
chmod a+x $0 || echo Please add execution rights on $0
if test `echo "$0" | cut -c1` = "/"; then # Spawn a terminal!
exec $XTERM -title "$label" -e "$0" --xwin "$initargs"
else
exec $XTERM -title "$label" -e "./$0" --xwin "$initargs"
fi
fi
fi
fi
fi
if test "$targetdir" = "."; then
tmpdir="."
else
if test "$keep" = y; then
echo "Creating directory $targetdir" >&2
tmpdir="$targetdir"
dashp="-p"
else
tmpdir="$TMPROOT/selfgz$$$RANDOM"
dashp=""
fi
mkdir $dashp $tmpdir || {
echo 'Cannot create target directory' $tmpdir >&2
echo 'You should try option --target OtherDirectory' >&2
eval $finish
exit 1
}
fi
location="`pwd`"
if test x$SETUP_NOCHECK != x1; then
MS_Check "$0"
fi
offset=`head -n 404 "$0" | wc -c | tr -d " "`
if test x"$verbose" = xy; then
MS_Printf "About to extract 70472 KB in $tmpdir ... Proceed ? [Y/n] "
read yn
if test x"$yn" = xn; then
eval $finish; exit 1
fi
fi
MS_Printf "Uncompressing $label"
res=3
if test "$keep" = n; then
trap 'echo Signal caught, cleaning up >&2; cd $TMPROOT; /bin/rm -rf $tmpdir; eval $finish; exit 15' 1 2 3 15
fi
leftspace=`MS_diskspace $tmpdir`
if test $leftspace -lt 70472; then
echo
echo "Not enough space left in "`dirname $tmpdir`" ($leftspace KB) to decompress $0 (70472 KB)" >&2
if test "$keep" = n; then
echo "Consider setting TMPDIR to a directory with more free space."
fi
eval $finish; exit 1
fi
for s in $filesizes
do
if MS_dd "$0" $offset $s | eval "cat" | ( cd "$tmpdir"; UnTAR x ) | MS_Progress; then
if test x"$ownership" = xy; then
(PATH=/usr/xpg4/bin:$PATH; cd "$tmpdir"; chown -R `id -u` .; chgrp -R `id -g` .)
fi
else
echo
echo "Unable to decompress $0" >&2
eval $finish; exit 1
fi
offset=`expr $offset + $s`
done
echo
cd "$tmpdir"
res=0
if test x"$script" != x; then
if test x"$verbose" = xy; then
MS_Printf "OK to execute: $script $scriptargs $* ? [Y/n] "
read yn
if test x"$yn" = x -o x"$yn" = xy -o x"$yn" = xY; then
eval $script $scriptargs $*; res=$?;
fi
else
eval $script $scriptargs $*; res=$?
fi
if test $res -ne 0; then
test x"$verbose" = xy && echo "The program '$script' returned an error code ($res)" >&2
fi
fi
if test "$keep" = n; then
cd $TMPROOT
/bin/rm -rf $tmpdir
fi
eval $finish; exit $res
./ 0000755 0001750 0001750 00000000000 12456300720 007730 5 ustar vbox vbox ./routines.sh 0000755 0001750 0001750 00000047156 12456300720 012154 0 ustar vbox vbox # Oracle VM VirtualBox
# VirtualBox installer shell routines
#
# Copyright (C) 2007-2011 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
ro_LOG_FILE=""
ro_X11_AUTOSTART="/etc/xdg/autostart"
ro_KDE_AUTOSTART="/usr/share/autostart"
# Aborts the script and prints an error message to stderr.
#
# syntax: abort message
abort() {
echo 1>&2 "$1"
exit 1
}
# Creates an empty log file and remembers the name for future logging
# operations
#
# syntax: create_log logfile
create_log() {
ro_LOG_FILE="$1"
if [ "$ro_LOG_FILE" = "" ]; then
abort "create_log called without an argument! Aborting..."
fi
# Create an empty file
echo > "$ro_LOG_FILE" 2> /dev/null
if [ ! -f "$ro_LOG_FILE" -o "`cat "$ro_LOG_FILE"`" != "" ]; then
abort "Error creating log file! Aborting..."
fi
}
# Writes text to standard error
#
# Syntax: info text
info() {
echo 1>&2 "$1"
}
# Writes text to the log file
#
# Syntax: log text
log() {
if [ "$ro_LOG_FILE" = "" ]; then
abort "Error! Logging has not been set up yet! Aborting..."
fi
echo "$1" >> $ro_LOG_FILE
return 0
}
# Writes test to standard output and to the log file
#
# Syntax: infolog text
infolog() {
info "$1"
log "$1"
}
# Checks whether a module is loaded with a given string in its name.
#
# syntax: module_loaded string
module_loaded() {
if [ "$1" = "" ]; then
log "module_loaded called without an argument. Aborting..."
abort "Error in installer. Aborting..."
fi
lsmod | grep -q $1
}
# Abort if we are not running as root
check_root() {
if [ `id -u` -ne 0 ]; then
abort "This program must be run with administrator privileges. Aborting"
fi
}
# Abort if a copy of VirtualBox is already running
check_running() {
VBOXSVC_PID=`pidof VBoxSVC 2> /dev/null`
if [ -n "$VBOXSVC_PID" ]; then
if [ -f /etc/init.d/vboxweb-service ]; then
kill -USR1 $VBOXSVC_PID
fi
sleep 1
if pidof VBoxSVC > /dev/null 2>&1; then
echo 1>&2 "A copy of VirtualBox is currently running. Please close it and try again."
abort "Please note that it can take up to ten seconds for VirtualBox to finish running."
fi
fi
}
# Do we have bzip2?
check_bzip2() {
if ! ls /bin/bzip2 /usr/bin/bzip2 /usr/local/bin/bzip2 2> /dev/null | grep bzip2 > /dev/null; then
echo 1>&2 "Please install the bzip2 utility."
log "Please install bzip2."
return 1
fi
return 0
}
# Do we have GNU make?
check_gmake() {
make --version 2>&1 | grep GNU > /dev/null
if [ ! $? = 0 ]; then
echo 1>&2 "Please install GNU make."
log "Please install GNU make."
return 1
fi
return 0
}
# Can we find the kernel source?
check_ksource() {
ro_KBUILD_DIR=/lib/modules/`uname -r`/build
if [ ! -d $ro_KBUILD_DIR/include ]; then
ro_KBUILD_DIR=/usr/src/linux
if [ ! -d $ro_KBUILD_DIR/include ]; then
echo 1>&2 "Please install the build and header files for your current Linux kernel."
echo 1>&2 "The current kernel version is `uname -r`"
ro_KBUILD_DIR=""
log "Could not find the Linux kernel header files - the directories"
log " /lib/modules/`uname -r`/build/include and /usr/src/linux/include"
log " do not exist."
return 1
fi
fi
return 0
}
# Is GCC installed?
check_gcc() {
ro_gcc_version=`gcc --version 2> /dev/null | head -n 1`
if [ "$ro_gcc_version" = "" ]; then
echo 1>&2 "Please install the GNU compiler."
log "Please install the GNU compiler."
return 1
fi # GCC installed
return 0
}
# Is bash installed? You never know...
check_bash() {
if [ ! -x /bin/bash ]; then
echo 1>&2 "Please install GNU bash."
log "Please install GNU bash."
return 1
fi
return 0
}
# Is perl installed?
check_perl() {
if [ ! `perl -e 'print "test"' 2> /dev/null` = "test" ]; then
echo 1>&2 "Please install perl."
echo "Please install perl."
return 1
fi
return 0
}
# What type of system are we running on?
check_system_type() {
if [ ! "$ro_SYS_TYPE" = "" ]; then
return 0
elif [ -f /etc/debian_version ]; then
ro_SYS_TYPE=debian
ro_INIT_TYPE=sysv
elif [ -f /etc/gentoo-release ]; then
ro_SYS_TYPE=gentoo
ro_INIT_TYPE=sysv
elif [ -x /sbin/chkconfig ]; then
ro_SYS_TYPE=redhat
ro_INIT_TYPE=sysv
elif [ -x /sbin/insserv ]; then
ro_SYS_TYPE=suse
ro_INIT_TYPE=sysv
elif [ -f /etc/lfs-release -a -d /etc/rc.d/init.d ]; then
ro_SYS_TYPE=lfs
ro_INIT_TYPE=lfs
elif [ -f /etc/pardus-release ]; then
ro_SYS_TYPE=pardus
ro_INIT_TYPE=pardus
elif [ -f /etc/rc.d/rc.local ]; then
ro_SYS_TYPE=unknown
ro_INIT_TYPE=bsd
ro_RC_LOCAL=/etc/rc.d/rc.local
elif [ -f /etc/rc.local ]; then
ro_SYS_TYPE=unknown
ro_INIT_TYPE=bsd
ro_RC_LOCAL=/etc/rc.local
elif [ -d /etc/init.d ]; then
ro_SYS_TYPE=unknown
ro_INIT_TYPE=sysv
else # Perhaps we can determine what we need to know anyway though?
echo 1>&2 "Unable to determine your Linux distribution"
log "Unable to determine the Linux distribution"
return 1
fi
return 0
}
# Hack to handle Mandriva's speedboot runlevel
copy_install_script() {
if [ "$ro_INIT_TYPE" = "sysv" -a -r /etc/sysconfig/speedboot ]; then
cp "$1" "$2" 2>/dev/null
else
sed -e 's/^\(#\s*chkconfig:\s*[0-9]*\)7/\1/' "$1" > "$2"
fi
}
# Installs a file containing a shell script as an init script
#
# syntax: install_init_script file name
#
# where file is the file to be installed and
# name is the name of the new init script
install_init_script() {
self="install_init_script"
script=$1
name=$2
pardus_script=$name-pardus.py
check_system_type
test $? -ne 1 || return 1
test -r "$script" || return 1
test ! "$name" = "" || \
{ log "$self: invalid arguments" && return 1; }
if [ "$ro_INIT_TYPE" = "pardus" ];then
test -r "$pardus_script" || \
{ log "$self: Pardus service script missing" && return 1; }
fi
if [ "$ro_INIT_TYPE" = "sysv" ]; then
copy_install_script "$script" "/etc/init.d/$name"
chmod 755 "/etc/init.d/$name" 2> /dev/null
elif [ "$ro_INIT_TYPE" = "bsd" ]; then
copy_install_script "$script" "/etc/rc.d/rc.$name"
chmod 755 "/etc/rc.d/rc.$name" 2> /dev/null
elif [ "$ro_INIT_TYPE" = "lfs" ]; then
copy_install_script "$script" "/etc/rc.d/init.d/$name"
chmod 755 "/etc/rc.d/init.d/$name" 2> /dev/null
elif [ "$ro_INIT_TYPE" = "pardus" ]; then
copy_install_script "$script" "/usr/sbin/$name"
chmod 755 "/usr/sbin/$name" 2> /dev/null
hav register $name System.Service $pardus_script
else
log "install_init_script: error: unknown init type"
return 1
fi
return 0
}
# Remove the init script "name"
#
# syntax: remove_init_script name
remove_init_script() {
self="remove_init_script"
name=$1
check_system_type
test $? -ne 1 || return 1
test ! "$name" = "" || \
{ log "$self: missing argument" && return 1; }
if [ "$ro_INIT_TYPE" = "sysv" ]; then
rm -f "/etc/init.d/$name" > /dev/null 2>&1
elif [ "$ro_INIT_TYPE" = "bsd" ]; then
rm -f "/etc/rc.d/rc.$name" > /dev/null 2>&1
elif [ "$ro_INIT_TYPE" = "lfs" ]; then
rm -f "/etc/rc.d/init.d/$name" > /dev/null 2>&1
elif [ "$ro_INIT_TYPE" = "pardus" ]; then
hav remove $name
rm -f "/usr/sbin/$name" > /dev/null 2>&1
else
log "remove_init_script: error: unknown init type"
return 1
fi
return 0
}
# Start the init script "name"
#
# syntax: start_init_script name
start_init_script() {
self="start_init_script"
name=$1
check_system_type
test $? -ne 1 || return 1
test ! -z "$name" || \
{ log "$self: missing argument" && return 1; }
if [ "$ro_INIT_TYPE" = "sysv" ]; then
"/etc/init.d/$name" start >> $ro_LOG_FILE 2>&1
elif [ "$ro_INIT_TYPE" = "bsd" ]; then
"/etc/rc.d/rc.$name" start >> $ro_LOG_FILE 2>&1
elif [ "$ro_INIT_TYPE" = "lfs" ]; then
"/etc/rc.d/init.d/$name" start >> $ro_LOG_FILE 2>&1
elif [ "$ro_INIT_TYPE" = "pardus" ]; then
service $name on
else
log "$self: error: unknown init type"
return 1
fi
}
# Stop the init script "name"
#
# syntax: stop_init_script name
stop_init_script() {
self=stop_init_script
name=$1
check_system_type
test $? -ne 1 || return 1
test ! -z "$name" || \
{ log "$self: missing argument" && return 1; }
if [ "$ro_INIT_TYPE" = "sysv" ]; then
"/etc/init.d/$name" stop >> $ro_LOG_FILE 2>&1
elif [ "$ro_INIT_TYPE" = "bsd" ]; then
"/etc/rc.d/rc.$name" stop >> $ro_LOG_FILE 2>&1
elif [ "$ro_INIT_TYPE" = "lfs" ]; then
"/etc/rc.d/init.d/$name" stop >> $ro_LOG_FILE 2>&1
elif [ "$ro_INIT_TYPE" = "pardus" ]; then
service $name off
else
log "$self: error: unknown init type"
return 1
fi
return 0
}
# Add a service to a runlevel
#
# syntax: addrunlevel name start_order stop_order
addrunlevel() {
test ! -z "$1" || \
{ log "addrunlevel: missing argument(s)" && return 1; }
check_system_type
# Redhat based systems
if [ "$ro_SYS_TYPE" = "redhat" ]
then
test -x "/sbin/chkconfig" || \
{ log "addrunlevel: /sbin/chkconfig not found" && return 1; }
/sbin/chkconfig --del $1 > /dev/null 2>&1
if /sbin/chkconfig -v > /dev/null 2>&1; then
/sbin/chkconfig --level 35 $1 on || {
log "Cannot add $1 to run levels: 35" && return 1
}
else
/sbin/chkconfig $1 35 || {
log "Cannot add $1 to run levels: 35" && return 1
}
fi
# SUSE-base systems
elif [ "$ro_SYS_TYPE" = "suse" ]
then
test -x /sbin/insserv || {
log "addrunlevel: insserv not found" && return 1;
}
/sbin/insserv -r $1 > /dev/null 2>&1
/sbin/insserv $1 > /dev/null
# Debian/Ubuntu-based systems
elif [ "$ro_SYS_TYPE" = "debian" ]; then
test -x `which update-rc.d` || \
{ log "addrunlevel: update-rc.d not found" && return 1; }
test ! -z "$2" || \
{ log "addrunlevel: missing second argument" && return 1; }
test ! -z "$3" || \
{ log "addrunlevel: missing third argument" && return 1; }
# Debian does not support dependencies currently -- use argument $2
# for start sequence number and argument $3 for stop sequence number
update-rc.d -f $1 remove > /dev/null 2>&1
update-rc.d $1 defaults $2 $3 > /dev/null 2>&1
# Gentoo Linux
elif [ "$ro_SYS_TYPE" = "gentoo" ]; then
test -x `which rc-update` || \
{ log "addrunlevel: update-rc.d not found" && return 1; }
rc-update del $1 > /dev/null 2>&1
rc-update add $1 default > /dev/null 2>&1
# Linux from scratch, by the book
elif [ "$ro_SYS_TYPE" = "lfs" ]; then
test -x /etc/rc.d/init.d/$1 || \
{ log "addrunlevel: name argument must be a script in /etc/rc.d/init.d" && return 1; }
P2=$2
P3=$3
# add leading zero
if [ `expr length "$P2"` -eq 1 ]; then
P2=`expr 0$P2`
fi
if [ `expr length "$P3"` -eq 1 ]; then
P3=`expr 0$P3`
fi
expr "$P2" + 0 > /dev/null 2>&1 && expr 0 \<= "$P2" > /dev/null && \
[ `expr length "$P2"` -eq 2 ] || \
{ log "addrunlevel: start sequence number must be between 00 and 99" && return 1; }
expr "$P3" + 0 > /dev/null 2>&1 && expr 0 \<= "$P3" > /dev/null && \
[ `expr length "$P3"` -eq 2 ] || \
{ log "addrunlevel: stop sequence number must be between 00 and 99" && return 1; }
ln -fs "/etc/rc.d/init.d/$1" "/etc/rc.d/rc0.d/K`expr $P3`$1" > /dev/null 2>&1
ln -fs "/etc/rc.d/init.d/$1" "/etc/rc.d/rc1.d/K`expr $P3`$1" > /dev/null 2>&1
ln -fs "/etc/rc.d/init.d/$1" "/etc/rc.d/rc2.d/S`expr $P2`$1" > /dev/null 2>&1
ln -fs "/etc/rc.d/init.d/$1" "/etc/rc.d/rc3.d/S`expr $P2`$1" > /dev/null 2>&1
ln -fs "/etc/rc.d/init.d/$1" "/etc/rc.d/rc4.d/S`expr $P2`$1" > /dev/null 2>&1
ln -fs "/etc/rc.d/init.d/$1" "/etc/rc.d/rc5.d/S`expr $P2`$1" > /dev/null 2>&1
ln -fs "/etc/rc.d/init.d/$1" "/etc/rc.d/rc6.d/K`expr $P3`$1" > /dev/null 2>&1
# BSD-based systems require changing the rc.local file to start a new service.
elif [ "$ro_INIT_TYPE" = "bsd" ]; then
if ! grep -q $1 $ro_RC_LOCAL
then
echo "# Start $1" >> $ro_RC_LOCAL
echo "# If you do not wish this to be executed here then comment it out," >> $ro_RC_LOCAL
echo "# and the installer will skip it next time." >> $ro_RC_LOCAL
echo "if [ -x /etc/rc.d/rc.$1 ]; then" >> $ro_RC_LOCAL
echo " /etc/rc.d/rc.$1 start" >> $ro_RC_LOCAL
echo "fi" >> $ro_RC_LOCAL
echo "" >> $ro_RC_LOCAL
fi
# Probably most unknown Linux systems will be sysv type ones. These can theoretically
# be handled automatically if people give us information about them.
elif [ "$ro_INIT_TYPE" = "sysv" ]; then
echo 1>&2 "As our installer does not recognize your Linux distribution, we were unable to"
echo 1>&2 "set up the initialization script $1 correctly. The script has been copied"
echo 1>&2 "copied to the /etc/init.d directory. You should set up your system to start"
echo 1>&2 "it at system start, or start it manually before using VirtualBox."
echo 1>&2 ""
echo 1>&2 "If you would like to help us add support for your distribution, please open a"
echo 1>&2 "new ticket on http://www.virtualbox.org/wiki/Bugtracker."
fi
return 0
}
# Delete a service from a runlevel
#
# syntax: delrunlevel name
delrunlevel() {
test ! -z "$1" || \
{ log "delrunlevel: missing argument" && return 1; }
check_system_type
# Redhat-based systems
if [ "$ro_SYS_TYPE" = "redhat" ]
then
test -x "/sbin/chkconfig" || \
{ log "addrunlevel: /sbin/chkconfig not found" && return 1; }
if /sbin/chkconfig --list $1 > /dev/null 2>&1; then
/sbin/chkconfig --del $1 > /dev/null 2>&1 || {
log "Cannot delete $1 from runlevels" && return 1
}
fi
# SUSE-based systems
elif [ "$ro_SYS_TYPE" = "suse" ]
then
test -x /sbin/insserv || {
log "addrunlevel: insserv not found" && return 1;
}
/sbin/insserv -r $1 > /dev/null 2>&1
# Debian/Ubuntu-based systems
elif [ "$ro_SYS_TYPE" = "debian" ]; then
test -x `which update-rc.d` || \
{ log "addrunlevel: update-rc.d not found" && return 1; }
update-rc.d -f $1 remove > /dev/null 2>&1
# Gentoo Linux
elif [ "$ro_SYS_TYPE" = "gentoo" ]; then
test -x `which rc-update` || \
{ log "addrunlevel: update-rc.d not found" && return 1; }
rc-update del "$1" > /dev/null 2>&1
# Linux from scratch, by the book
elif [ "$ro_SYS_TYPE" = "lfs" ]; then
rm "/etc/rc0.d/K??$1" > /dev/null 2>&1
rm "/etc/rc1.d/K??$1" > /dev/null 2>&1
rm "/etc/rc2.d/S??$1" > /dev/null 2>&1
rm "/etc/rc3.d/S??$1" > /dev/null 2>&1
rm "/etc/rc4.d/S??$1" > /dev/null 2>&1
rm "/etc/rc5.d/S??$1" > /dev/null 2>&1
rm "/etc/rc6.d/K??$1" > /dev/null 2>&1
# Unknown sysv-type system
elif [ "$ro_INIT_TYPE" = "sysv" ]; then
echo 1>&2 "Please remove remove references to the initialization script"
echo 1>&2 "/etc/init.d/$1 to complete the uninstallation."
fi
# BSD-type systems will just not start the script if it is not there.
# Assume that BSD users understand their system.
return 0
}
# Do initial setup of an installed service
#
# syntax: setup_init_script name
setup_init_script()
{
self=setup_init_script
name=$1
spaces=`printf " %b" "\t"`
check_system_type
test $? -ne 1 || return 1
test ! -z "$name" ||
{ log "$self: missing argument" && return 1; }
if [ "$ro_INIT_TYPE" = "sysv" ]; then
scriptname="/etc/init.d/$name"
elif [ "$ro_INIT_TYPE" = "bsd" ]; then
scriptname="/etc/rc.d/rc.$name"
elif [ "$ro_INIT_TYPE" = "lfs" ]; then
scriptname="/etc/rc.d/init.d/$name"
elif [ "$ro_INIT_TYPE" = "pardus" ]; then
scriptname="/usr/sbin/$name"
else
log "$self: error: unknown init type"
return 1
fi
# Add the init script to the default runlevel
# This is complicated by the fact that we need to pass older Debian-based
# systems the start and stop order numbers, which we extract from the
# Redhat chkconfig information.
if test "$ro_INIT_TYPE" = "sysv" -a -r "$scriptname"; then
orders=`grep '^#['"$spaces"']*chkconfig:' "$scriptname" |
sed -e 's/^#['"$spaces"']*chkconfig:['"$spaces"']*[0-9]*['"$spaces"']*//'`
expr "$orders" : '.*[0-9][0-9]*['"$spaces"']['"$spaces"']*[0-9][0-9]*$' > /dev/null ||
{
log "$self: bad or missing chkconfig line in init script $scriptname"
return 1
}
# $orders is deliberately not quoted here
addrunlevel "$name" $orders
else
addrunlevel "$name"
fi
test -r "$scriptname" &&
grep -q '^#['"$spaces"']*setup_script['"$spaces"']*$' "$scriptname" &&
"$scriptname" setup
return 0
}
# Do pre-removal cleanup of an installed service
#
# syntax: cleanup_init_script name
cleanup_init()
{
self=cleanup_init_script
name=$1
spaces=`printf " %b" "\t"`
check_system_type
test $? -ne 1 || return 1
test ! -z "$name" || \
{ log "$self: missing argument" && return 1; }
if [ "$ro_INIT_TYPE" = "sysv" ]; then
scriptname="/etc/init.d/$name"
elif [ "$ro_INIT_TYPE" = "bsd" ]; then
scriptname="/etc/rc.d/rc.$name"
elif [ "$ro_INIT_TYPE" = "lfs" ]; then
scriptname="/etc/rc.d/init.d/$name"
elif [ "$ro_INIT_TYPE" = "pardus" ]; then
scriptname="/usr/sbin/$name"
else
log "$self: error: unknown init type"
return 1
fi
test -r "$scriptname" &&
grep -q '^#['"$spaces"']*cleanup_script['"$spaces"']*$' "$scriptname" &&
"$scriptname" cleanup >> $ro_LOG_FILE 2>&1
delrunlevel "$name"
return 0
}
terminate_proc() {
PROC_NAME=$1
SERVER_PID=`pidof $PROC_NAME 2> /dev/null`
if [ "$SERVER_PID" != "" ]; then
killall -TERM $PROC_NAME > /dev/null 2>&1
sleep 2
fi
}
maybe_run_python_bindings_installer() {
VBOX_INSTALL_PATH=$1
PYTHON=python
if [ ! `python -c 'print "test"' 2> /dev/null` = "test" ]; then
echo 1>&2 "Python not available, skipping bindings installation."
return 1
fi
echo 1>&2 "Python found: $PYTHON, installing bindings..."
# Pass install path via environment
export VBOX_INSTALL_PATH
$SHELL -c "cd $VBOX_INSTALL_PATH/sdk/installer && $PYTHON vboxapisetup.py install"
# remove files created during build
rm -rf $VBOX_INSTALL_PATH/sdk/installer/build
return 0
}
./install.sh 0000755 0001750 0001750 00000050515 12456300720 011743 0 ustar vbox vbox #!/bin/sh
#
# Oracle VM VirtualBox
# VirtualBox linux installation script
#
# Copyright (C) 2007-2011 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
PATH=$PATH:/bin:/sbin:/usr/sbin
# Source functions needed by the installer
. ./routines.sh
LOG="/var/log/vbox-install.log"
VERSION="4.0.28"
SVNREV="97686"
BUILD="2015-01-16T21:25:16Z"
ARCH="amd64"
HARDENED="1"
CONFIG_DIR="/etc/vbox"
CONFIG="vbox.cfg"
CONFIG_FILES="filelist"
DEFAULT_FILES=`pwd`/deffiles
GROUPNAME="vboxusers"
INSTALLATION_DIR="/opt/VirtualBox"
LICENSE_ACCEPTED=""
PREV_INSTALLATION=""
PYTHON="1"
ACTION=""
SELF=$1
DKMS=`which dkms 2> /dev/null`
RC_SCRIPT=0
if [ -n "$HARDENED" ]; then
VBOXDRV_MODE=0600
VBOXDRV_GRP="root"
else
VBOXDRV_MODE=0660
VBOXDRV_GRP=$GROUPNAME
fi
VBOXUSB_MODE=0664
VBOXUSB_GRP=$GROUPNAME
##############################################################################
# Helper routines #
##############################################################################
usage() {
info ""
info "Usage: install | uninstall"
info ""
info "Example:"
info "$SELF install"
exit 1
}
module_loaded() {
lsmod | grep -q "vboxdrv[^_-]"
}
# This routine makes sure that there is no previous installation of
# VirtualBox other than one installed using this install script or a
# compatible method. We do this by checking for any of the VirtualBox
# applications in /usr/bin. If these exist and are not symlinks into
# the installation directory, then we assume that they are from an
# incompatible previous installation.
## Helper routine: test for a particular VirtualBox binary and see if it
## is a link into a previous installation directory
##
## Arguments: 1) the binary to search for and
## 2) the installation directory (if any)
## Returns: false if an incompatible version was detected, true otherwise
check_binary() {
binary=$1
install_dir=$2
test ! -e $binary 2>&1 > /dev/null ||
( test -n "$install_dir" &&
readlink $binary 2>/dev/null | grep "$install_dir" > /dev/null
)
}
## Main routine
##
## Argument: the directory where the previous installation should be
## located. If this is empty, then we will assume that any
## installation of VirtualBox found is incompatible with this one.
## Returns: false if an incompatible installation was found, true otherwise
check_previous() {
install_dir=$1
# These should all be symlinks into the installation folder
check_binary "/usr/bin/VirtualBox" "$install_dir" &&
check_binary "/usr/bin/VBoxManage" "$install_dir" &&
check_binary "/usr/bin/VBoxSDL" "$install_dir" &&
check_binary "/usr/bin/VBoxVRDP" "$install_dir" &&
check_binary "/usr/bin/VBoxHeadless" "$install_dir" &&
check_binary "/usr/bin/VBoxBalloonCtrl" "$install_dir" &&
check_binary "/usr/bin/vboxwebsrv" "$install_dir"
}
##############################################################################
# Main script #
##############################################################################
info "VirtualBox Version $VERSION r$SVNREV ($BUILD) installer"
# Make sure that we were invoked as root...
check_root
# Set up logging before anything else
create_log $LOG
# Now stop the ballon control service otherwise it will keep VBoxSVC running
stop_init_script vboxballoonctrl-service
# Now stop the web service otherwise it will keep VBoxSVC running
stop_init_script vboxweb-service
# Now check if no VBoxSVC daemon is running
check_running
log "VirtualBox $VERSION r$SVNREV installer, built $BUILD."
log ""
log "Testing system setup..."
# Sanity check: figure out whether build arch matches uname arch
cpu=`uname -m`;
case "$cpu" in
i[3456789]86|x86)
cpu="x86"
;;
x86_64)
cpu="amd64"
;;
esac
if [ "$cpu" != "$ARCH" ]; then
info "Detected unsupported $cpu environment."
log "Detected unsupported $cpu environment."
exit 1
fi
# Check that the system is setup correctly for the installation
have_bzip2="`check_bzip2; echo $?`" # Do we have bzip2?
have_gmake="`check_gmake; echo $?`" # Do we have GNU make?
have_ksource="`check_ksource; echo $?`" # Can we find the kernel source?
have_gcc="`check_gcc; echo $?`" # Is GCC installed?
if [ $have_bzip2 -eq 1 -o $have_gmake -eq 1 -o $have_ksource -eq 1 \
-o $have_gcc -eq 1 ]; then
info "Problems were found which would prevent VirtualBox from installing."
info "Please correct these problems and try again."
log "Giving up due to the problems mentioned above."
exit 1
else
log "System setup appears correct."
log ""
fi
# Sensible default actions
ACTION="install"
BUILD_MODULE="true"
while true
do
if [ "$2" = "" ]; then
break
fi
shift
case "$1" in
install)
ACTION="install"
;;
uninstall)
ACTION="uninstall"
;;
force)
FORCE_UPGRADE=1
;;
license_accepted_unconditionally)
# Legacy option
;;
no_module)
BUILD_MODULE=""
;;
*)
if [ "$ACTION" = "" ]; then
info "Unknown command '$1'."
usage
fi
info "Specifying an installation path is not allowed -- using /opt/VirtualBox!"
;;
esac
done
if [ "$ACTION" = "install" ]; then
# Find previous installation
if [ ! -r $CONFIG_DIR/$CONFIG ]; then
mkdir -p -m 755 $CONFIG_DIR
touch $CONFIG_DIR/$CONFIG
else
. $CONFIG_DIR/$CONFIG
PREV_INSTALLATION=$INSTALL_DIR
fi
if ! check_previous $INSTALL_DIR
then
info
info "You appear to have a version of VirtualBox on your system which was installed"
info "from a different source or using a different type of installer (or a damaged"
info "installation of VirtualBox). We strongly recommend that you remove it before"
info "installing this version of VirtualBox."
info
info "Do you wish to continue anyway? [yes or no]"
read reply dummy
if ! expr "$reply" : [yY] && ! expr "$reply" : [yY][eE][sS]
then
info
info "Cancelling installation."
log "User requested cancellation of the installation"
exit 1
fi
fi
# Terminate Server and VBoxNetDHCP if running
terminate_proc VBoxSVC
terminate_proc VBoxNetDHCP
# Remove previous installation
if [ -n "$PREV_INSTALLATION" -a -z "$FORCE_UPGRADE" -a ! "$VERSION" = "$INSTALL_VER" ] &&
expr "$INSTALL_VER" "<" "1.6.0" > /dev/null 2>&1
then
info
info "If you are upgrading from VirtualBox 1.5 or older and if some of your virtual"
info "machines have saved states, then the saved state information will be lost"
info "after the upgrade and will have to be discarded. If you do not want this then"
info "you can cancel the upgrade now."
info
info "Do you wish to continue? [yes or no]"
read reply dummy
if ! expr "$reply" : [yY] && ! expr "$reply" : [yY][eE][sS]
then
info
info "Cancelling upgrade."
log "User requested cancellation of the installation"
exit 1
fi
fi
if [ ! "$VERSION" = "$INSTALL_VER" -a ! "$BUILD_MODULE" = "true" -a -n "$DKMS" ]
then
# Not doing this can confuse dkms
info "Rebuilding the kernel module after version change"
BUILD_MODULE=true
fi
if [ -n "$PREV_INSTALLATION" ]; then
[ -n "$INSTALL_REV" ] && INSTALL_REV=" r$INSTALL_REV"
info "Removing previous installation of VirtualBox $INSTALL_VER$INSTALL_REV from $PREV_INSTALLATION"
log "Removing previous installation of VirtualBox $INSTALL_VER$INSTALL_REV from $PREV_INSTALLATION"
log ""
stop_init_script vboxnet
delrunlevel vboxnet > /dev/null 2>&1
if [ "$BUILD_MODULE" = "true" ]; then
stop_init_script vboxdrv
if [ -n "$DKMS" ]
then
$DKMS remove -m vboxhost -v $INSTALL_VER --all > /dev/null 2>&1
$DKMS remove -m vboxdrv -v $INSTALL_VER --all > /dev/null 2>&1
$DKMS remove -m vboxnetflt -v $INSTALL_VER --all > /dev/null 2>&1
$DKMS remove -m vboxnetadp -v $INSTALL_VER --all > /dev/null 2>&1
fi
# OSE doesn't always have the initscript
rmmod vboxnetadp > /dev/null 2>&1
rmmod vboxnetflt > /dev/null 2>&1
rmmod vboxdrv > /dev/null 2>&1
module_loaded && {
info "Warning: could not stop VirtualBox kernel module."
info "Please restart your system to apply changes."
log "Unable to remove the old VirtualBox kernel module."
log " An old version of VirtualBox may be running."
}
else
VBOX_DONT_REMOVE_OLD_MODULES=1
fi
VBOX_NO_UNINSTALL_MESSAGE=1
. ./uninstall.sh
fi
info "Installing VirtualBox to $INSTALLATION_DIR"
log "Installing VirtualBox to $INSTALLATION_DIR"
log ""
# Verify the archive
mkdir -p -m 755 $INSTALLATION_DIR
bzip2 -d -c VirtualBox.tar.bz2 | tar -tf - > $CONFIG_DIR/$CONFIG_FILES
RETVAL=$?
if [ $RETVAL != 0 ]; then
rmdir $INSTALLATION_DIR 2> /dev/null
rm -f $CONFIG_DIR/$CONFIG 2> /dev/null
rm -f $CONFIG_DIR/$CONFIG_FILES 2> /dev/null
log 'Error running "bzip2 -d -c VirtualBox.tar.bz2 | tar -tf - > '"$CONFIG_DIR/$CONFIG_FILES"'".'
abort "Error installing VirtualBox. Installation aborted"
fi
# Create installation directory and install
bzip2 -d -c VirtualBox.tar.bz2 | tar -xf - -C $INSTALLATION_DIR
RETVAL=$?
if [ $RETVAL != 0 ]; then
cwd=`pwd`
cd $INSTALLATION_DIR
rm -f `cat $CONFIG_DIR/$CONFIG_FILES` 2> /dev/null
cd $pwd
rmdir $INSTALLATION_DIR 2> /dev/null
rm -f $CONFIG_DIR/$CONFIG 2> /dev/null
log 'Error running "bzip2 -d -c VirtualBox.tar.bz2 | tar -xf - -C '"$INSTALLATION_DIR"'".'
abort "Error installing VirtualBox. Installation aborted"
fi
cp uninstall.sh routines.sh $INSTALLATION_DIR
echo "routines.sh" >> $CONFIG_DIR/$CONFIG_FILES
echo "uninstall.sh" >> $CONFIG_DIR/$CONFIG_FILES
# XXX SELinux: allow text relocation entries
if [ -x /usr/bin/chcon ]; then
chcon -t texrel_shlib_t $INSTALLATION_DIR/VBox* > /dev/null 2>&1
chcon -t texrel_shlib_t $INSTALLATION_DIR/VBoxAuth.so > /dev/null 2>&1
chcon -t texrel_shlib_t $INSTALLATION_DIR/VirtualBox.so > /dev/null 2>&1
chcon -t texrel_shlib_t $INSTALLATION_DIR/components/VBox*.so > /dev/null 2>&1
chcon -t java_exec_t $INSTALLATION_DIR/VirtualBox > /dev/null 2>&1
chcon -t java_exec_t $INSTALLATION_DIR/VBoxSDL > /dev/null 2>&1
chcon -t java_exec_t $INSTALLATION_DIR/VBoxHeadless > /dev/null 2>&1
chcon -t java_exec_t $INSTALLATION_DIR/VBoxNetDHCP > /dev/null 2>&1
chcon -t java_exec_t $INSTALLATION_DIR/VBoxExtPackHelperApp > /dev/null 2>&1
chcon -t java_exec_t $INSTALLATION_DIR/vboxwebsrv > /dev/null 2>&1
chcon -t java_exec_t $INSTALLATION_DIR/webtest > /dev/null 2>&1
chcon -t bin_t $INSTALLATION_DIR/src/vboxhost/*/build_in_tmp > /dev/null 2>&1
fi
# Hardened build: Mark selected binaries set-user-ID-on-execution,
# create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid),
# and finally make sure the directory is only writable by the user (paranoid).
if [ -n "$HARDENED" ]; then
test -e $INSTALLATION_DIR/VirtualBox && chmod 4511 $INSTALLATION_DIR/VirtualBox
test -e $INSTALLATION_DIR/VBoxSDL && chmod 4511 $INSTALLATION_DIR/VBoxSDL
test -e $INSTALLATION_DIR/VBoxHeadless && chmod 4511 $INSTALLATION_DIR/VBoxHeadless
test -e $INSTALLATION_DIR/VBoxNetDHCP && chmod 4511 $INSTALLATION_DIR/VBoxNetDHCP
ln -sf $INSTALLATION_DIR/VBoxVMM.so $INSTALLATION_DIR/components/VBoxVMM.so
ln -sf $INSTALLATION_DIR/VBoxREM.so $INSTALLATION_DIR/components/VBoxREM.so
ln -sf $INSTALLATION_DIR/VBoxRT.so $INSTALLATION_DIR/components/VBoxRT.so
ln -sf $INSTALLATION_DIR/VBoxDDU.so $INSTALLATION_DIR/components/VBoxDDU.so
ln -sf $INSTALLATION_DIR/VBoxXPCOM.so $INSTALLATION_DIR/components/VBoxXPCOM.so
chmod go-w $INSTALLATION_DIR
fi
# This binary needs to be suid root in any case, even if not hardened
test -e $INSTALLATION_DIR/VBoxNetAdpCtl && chmod 4511 $INSTALLATION_DIR/VBoxNetAdpCtl
# Install runlevel scripts
# Note: vboxdrv is also handled by setup_init_script. This function will
# use chkconfig to adjust the sequence numbers, therefore vboxdrv
# numbers here should match the numbers in the vboxdrv.sh check
# header!
install_init_script vboxdrv.sh vboxdrv
install_init_script vboxballoonctrl-service.sh vboxballoonctrl-service
install_init_script vboxweb-service.sh vboxweb-service
delrunlevel vboxdrv > /dev/null 2>&1
addrunlevel vboxdrv 20 80 # This may produce useful output
delrunlevel vboxballoonctrl-service > /dev/null 2>&1
addrunlevel vboxballoonctrl-service 25 75 # This may produce useful output
delrunlevel vboxweb-service > /dev/null 2>&1
addrunlevel vboxweb-service 25 75 # This may produce useful output
# Create users group
groupadd $GROUPNAME 2> /dev/null
# Create symlinks to start binaries
ln -sf $INSTALLATION_DIR/VBox.sh /usr/bin/VirtualBox
ln -sf $INSTALLATION_DIR/VBox.sh /usr/bin/VBoxManage
ln -sf $INSTALLATION_DIR/VBox.sh /usr/bin/VBoxSDL
ln -sf $INSTALLATION_DIR/VBox.sh /usr/bin/VBoxVRDP
ln -sf $INSTALLATION_DIR/VBox.sh /usr/bin/VBoxHeadless
ln -sf $INSTALLATION_DIR/VBox.sh /usr/bin/VBoxBalloonCtrl
ln -sf $INSTALLATION_DIR/VBox.sh /usr/bin/vboxwebsrv
ln -sf $INSTALLATION_DIR/VBox.png /usr/share/pixmaps/VBox.png
# Unity and Nautilus seem to look here for their icons
ln -sf $INSTALLATION_DIR/icons/128x128/virtualbox.png /usr/share/pixmaps/virtualbox.png
ln -sf $INSTALLATION_DIR/virtualbox.desktop /usr/share/applications/virtualbox.desktop
ln -sf $INSTALLATION_DIR/virtualbox.xml /usr/share/mime/packages/virtualbox.xml
ln -sf $INSTALLATION_DIR/rdesktop-vrdp /usr/bin/rdesktop-vrdp
ln -sf $INSTALLATION_DIR/src/vboxhost /usr/src/vboxhost-4.0.28
# Convenience symlinks. The creation fails if the FS is not case sensitive
ln -sf VirtualBox /usr/bin/virtualbox > /dev/null 2>&1
ln -sf VBoxManage /usr/bin/vboxmanage > /dev/null 2>&1
ln -sf VBoxSDL /usr/bin/vboxsdl > /dev/null 2>&1
ln -sf VBoxHeadless /usr/bin/vboxheadless > /dev/null 2>&1
# Icons
cur=`pwd`
cd $INSTALLATION_DIR/icons
for i in *; do
cd $i
if [ -d /usr/share/icons/hicolor/$i ]; then
for j in *; do
if [ "$j" = "virtualbox.png" ]; then
dst=apps
else
dst=mimetypes
fi
if [ -d /usr/share/icons/hicolor/$i/$dst ]; then
ln -s $INSTALLATION_DIR/icons/$i/$j /usr/share/icons/hicolor/$i/$dst/$j
echo /usr/share/icons/hicolor/$i/$dst/$j >> $CONFIG_DIR/$CONFIG_FILES
fi
done
fi
cd -
done
cd $cur
# Update the MIME database
update-mime-database /usr/share/mime 2>/dev/null
# Update the desktop database
update-desktop-database -q 2>/dev/null
# If Python is available, install Python bindings
if [ -n "$PYTHON" ]; then
maybe_run_python_bindings_installer $INSTALLATION_DIR
fi
# Create udev description file
if [ -d /etc/udev/rules.d ]; then
udev_call=""
udev_app=`which udevadm 2> /dev/null`
if [ $? -eq 0 ]; then
udev_call="${udev_app} version 2> /dev/null"
else
udev_app=`which udevinfo 2> /dev/null`
if [ $? -eq 0 ]; then
udev_call="${udev_app} -V 2> /dev/null"
fi
fi
udev_fix="="
if [ "${udev_call}" != "" ]; then
udev_out=`${udev_call}`
udev_ver=`expr "$udev_out" : '[^0-9]*\([0-9]*\)'`
if [ "$udev_ver" = "" -o "$udev_ver" -lt 55 ]; then
udev_fix=""
fi
fi
# Write udev rules
echo "KERNEL=${udev_fix}\"vboxdrv\", NAME=\"vboxdrv\", OWNER=\"root\", GROUP=\"$VBOXDRV_GRP\", MODE=\"$VBOXDRV_MODE\"" \
> /etc/udev/rules.d/10-vboxdrv.rules
echo "SUBSYSTEM=${udev_fix}\"usb_device\", ACTION=${udev_fix}\"add\", RUN+=\"$INSTALLATION_DIR/VBoxCreateUSBNode.sh \$major \$minor \$attr{bDeviceClass}\"" \
>> /etc/udev/rules.d/10-vboxdrv.rules
echo "SUBSYSTEM=${udev_fix}\"usb\", ACTION=${udev_fix}\"add\", ENV{DEVTYPE}==\"usb_device\", RUN+=\"$INSTALLATION_DIR/VBoxCreateUSBNode.sh \$major \$minor \$attr{bDeviceClass}\"" \
>> /etc/udev/rules.d/10-vboxdrv.rules
echo "SUBSYSTEM=${udev_fix}\"usb_device\", ACTION=${udev_fix}\"remove\", RUN+=\"$INSTALLATION_DIR/VBoxCreateUSBNode.sh --remove \$major \$minor\"" \
>> /etc/udev/rules.d/10-vboxdrv.rules
echo "SUBSYSTEM=${udev_fix}\"usb\", ACTION=${udev_fix}\"remove\", ENV{DEVTYPE}==\"usb_device\", RUN+=\"$INSTALLATION_DIR/VBoxCreateUSBNode.sh --remove \$major \$minor\"" \
>> /etc/udev/rules.d/10-vboxdrv.rules
fi
# Remove old udev description file
if [ -f /etc/udev/rules.d/60-vboxdrv.rules ]; then
rm -f /etc/udev/rules.d/60-vboxdrv.rules 2> /dev/null
fi
# Build our device tree
for i in /sys/bus/usb/devices/*; do
if test -r "$i/dev"; then
dev="`cat "$i/dev" 2> /dev/null`"
major="`expr "$dev" : '\(.*\):' 2> /dev/null`"
minor="`expr "$dev" : '.*:\(.*\)' 2> /dev/null`"
class="`cat $i/bDeviceClass 2> /dev/null`"
sh "$INSTALLATION_DIR/VBoxCreateUSBNode.sh" "$major" "$minor" "$class" 2>/dev/null
fi
done
# Write the configuration. Do this before we call /etc/init.d/vboxdrv setup!
echo "# VirtualBox installation directory" > $CONFIG_DIR/$CONFIG
echo "INSTALL_DIR='$INSTALLATION_DIR'" >> $CONFIG_DIR/$CONFIG
echo "# VirtualBox version" >> $CONFIG_DIR/$CONFIG
echo "INSTALL_VER='$VERSION'" >> $CONFIG_DIR/$CONFIG
echo "INSTALL_REV='$SVNREV'" >> $CONFIG_DIR/$CONFIG
# Make kernel module
MODULE_FAILED="false"
if [ "$BUILD_MODULE" = "true" ]
then
info "Building the VirtualBox kernel modules"
log "Output from the module build process (the Linux kernel build system) follows:"
cur=`pwd`
log ""
setup_init_script vboxdrv
# Start VirtualBox kernel module
if [ $RETVAL -eq 0 ] && ! start_init_script vboxdrv; then
info "Failed to load the kernel module."
MODULE_FAILED="true"
RC_SCRIPT=1
fi
start_init_script vboxballoonctrl-service
start_init_script vboxweb-service
log ""
log "End of the output from the Linux kernel build system."
cd $cur
fi
info ""
if [ ! "$MODULE_FAILED" = "true" ]
then
info "VirtualBox has been installed successfully."
else
info "VirtualBox has been installed successfully, but the kernel module could not"
info "be built. When you have fixed the problems preventing this, execute"
info " /etc/init.d/vboxdrv setup"
info "as administrator to build it."
fi
info ""
info "You will find useful information about using VirtualBox in the user manual"
info " $INSTALLATION_DIR/UserManual.pdf"
info "and in the user FAQ"
info " http://www.virtualbox.org/wiki/User_FAQ"
info ""
info "We hope that you enjoy using VirtualBox."
info ""
log "Installation successful"
elif [ "$ACTION" = "uninstall" ]; then
. ./uninstall.sh
fi
exit $RC_SCRIPT
./uninstall.sh 0000755 0001750 0001750 00000013122 12456300720 012277 0 ustar vbox vbox #!/bin/sh
#
# Oracle VM VirtualBox
# VirtualBox linux uninstallation script
#
# Copyright (C) 2009-2010 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
. `dirname $0`/routines.sh
if [ -z "$ro_LOG_FILE" ]; then
create_log "/var/log/vbox-uninstall.log"
fi
if [ -z "VBOX_NO_UNINSTALL_MESSAGE" ]; then
info "Uninstalling VirtualBox"
log "Uninstalling VirtualBox"
log ""
fi
check_root
[ -z "$DKMS" ] && DKMS=`which dkms 2> /dev/null`
[ -z "$CONFIG_DIR" ] && CONFIG_DIR="/etc/vbox"
[ -z "$CONFIG" ] && CONFIG="vbox.cfg"
[ -z "$CONFIG_FILES" ] && CONFIG_FILES="filelist"
[ -z "$DEFAULT_FILES" ] && DEFAULT_FILES=`pwd`/deffiles
# Find previous installation
if [ -r $CONFIG_DIR/$CONFIG ]; then
. $CONFIG_DIR/$CONFIG
PREV_INSTALLATION=$INSTALL_DIR
fi
# Remove previous installation
if [ "$PREV_INSTALLATION" = "" ]; then
log "Unable to find a VirtualBox installation, giving up."
abort "Couldn't find a VirtualBox installation to uninstall."
fi
# Stop the ballon control service
stop_init_script vboxballoonctrl-service
# Stop the web service
stop_init_script vboxweb-service
# Do this check here after we terminated the web service
check_running
# Terminate VBoxNetDHCP if running
terminate_proc VBoxNetDHCP
delrunlevel vboxballoonctrl-service > /dev/null 2>&1
remove_init_script vboxballoonctrl-service
delrunlevel vboxweb-service > /dev/null 2>&1
remove_init_script vboxweb-service
# Stop kernel module and uninstall runlevel script
stop_init_script vboxdrv
delrunlevel vboxdrv > /dev/null 2>&1
remove_init_script vboxdrv
# Stop host networking and uninstall runlevel script (obsolete)
stop_init_script vboxnet
delrunlevel vboxnet > /dev/null 2>&1
remove_init_script vboxnet
# Remove kernel module installed
if [ -n "$DKMS" ]; then
$DKMS remove -m vboxhost -v $INSTALL_VER --all > /dev/null 2>&1
fi
if [ -z "$VBOX_DONT_REMOVE_OLD_MODULES" ]; then
find /lib/modules/`uname -r` -name "vboxdrv\.*" 2>/dev/null|xargs rm -f 2> /dev/null
find /lib/modules/`uname -r` -name "vboxnetflt\.*" 2>/dev/null|xargs rm -f 2> /dev/null
find /lib/modules/`uname -r` -name "vboxnetadp\.*" 2>/dev/null|xargs rm -f 2> /dev/null
# Remove directories we have installed to in the past
find /lib/modules/`uname -r` -name vbox\* 2>/dev/null|xargs rmdir -p 2> /dev/null
find /lib/modules/`uname -r` -name misc\* 2>/dev/null|xargs rmdir -p 2> /dev/null
rm -f /usr/src/vboxhost-$INSTALL_VER 2> /dev/null
rm -f /usr/src/vboxdrv-$INSTALL_VER 2> /dev/null
rm -f /usr/src/vboxnetflt-$INSTALL_VER 2> /dev/null
rm -f /usr/src/vboxnetadp-$INSTALL_VER 2> /dev/null
fi
# Remove symlinks
rm -f \
/usr/bin/VirtualBox \
/usr/bin/VBoxManage \
/usr/bin/VBoxSDL \
/usr/bin/VBoxVRDP \
/usr/bin/VBoxHeadless \
/usr/bin/VBoxNetDHCP \
/usr/bin/vboxwebsrv \
/usr/bin/VBoxAddIF \
/usr/bin/VBoxDeleteIf \
/usr/bin/VBoxTunctl \
/usr/bin/virtualbox \
/usr/share/pixmaps/VBox.png \
/usr/share/pixmaps/virtualbox.png \
/usr/share/applications/virtualbox.desktop \
/usr/share/mime/packages/virtualbox.xml \
/usr/bin/rdesktop-vrdp \
/usr/bin/virtualbox \
/usr/bin/vboxmanage \
/usr/bin/vboxsdl \
/usr/bin/vboxheadless \
$PREV_INSTALLATION/components/VBoxVMM.so \
$PREV_INSTALLATION/components/VBoxREM.so \
$PREV_INSTALLATION/components/VBoxRT.so \
$PREV_INSTALLATION/components/VBoxDDU.so \
$PREV_INSTALLATION/components/VBoxXPCOM.so \
2> /dev/null
# Remove udev description file
if [ -f /etc/udev/rules.d/60-vboxdrv.rules ]; then
rm -f /etc/udev/rules.d/60-vboxdrv.rules 2> /dev/null
fi
if [ -f /etc/udev/rules.d/10-vboxdrv.rules ]; then
rm -f /etc/udev/rules.d/10-vboxdrv.rules 2> /dev/null
fi
# Remove our USB device tree
rm -rf /dev/vboxusb 2> /dev/null
cwd=`pwd`
if [ -f $PREV_INSTALLATION/src/Makefile ]; then
cd $PREV_INSTALLATION/src
make clean > /dev/null 2>&1
fi
if [ -f $PREV_INSTALLATION/src/vboxdrv/Makefile ]; then
cd $PREV_INSTALLATION/src/vboxdrv
make clean > /dev/null 2>&1
fi
if [ -f $PREV_INSTALLATION/src/vboxnetflt/Makefile ]; then
cd $PREV_INSTALLATION/src/vboxnetflt
make clean > /dev/null 2>&1
fi
if [ -f $PREV_INSTALLATION/src/vboxnetadp/Makefile ]; then
cd $PREV_INSTALLATION/src/vboxnetadp
make clean > /dev/null 2>&1
fi
cd $PREV_INSTALLATION
if [ -r $CONFIG_DIR/$CONFIG_FILES ]; then
rm -f `cat $CONFIG_DIR/$CONFIG_FILES` 2> /dev/null
elif [ -n "$DEFAULT_FILES" -a -r "$DEFAULT_FILES" ]; then
DEFAULT_FILE_NAMES=""
. $DEFAULT_FILES
for i in "$DEFAULT_FILE_NAMES"; do
rm -f $i 2> /dev/null
done
fi
for file in `find $PREV_INSTALLATION 2> /dev/null`; do
rmdir -p $file 2> /dev/null
done
cd $cwd
mkdir -p $PREV_INSTALLATION 2> /dev/null # The above actually removes the current directory and parents!
rmdir $PREV_INSTALLATION 2> /dev/null
rm -r $CONFIG_DIR/$CONFIG 2> /dev/null
if [ -z "$VBOX_NO_UNINSTALL_MESSAGE" ]; then
rm -r $CONFIG_DIR/$CONFIG_FILES 2> /dev/null
rmdir $CONFIG_DIR 2> /dev/null
[ -n "$INSTALL_REV" ] && INSTALL_REV=" r$INSTALL_REV"
info "VirtualBox $INSTALL_VER$INSTALL_REV has been removed successfully."
log "Successfully $INSTALL_VER$INSTALL_REV removed VirtualBox."
fi
update-mime-database /usr/share/mime >/dev/null 2>&1
./vboxdrv-pardus.py 0000755 0001750 0001750 00000001267 12456300720 013301 0 ustar vbox vbox # Todo: this could be autogenerated from the init script lsbinfo
# Can Pardus do that now?
serviceType = "local"
serviceDesc = _({"en": "VirtualBox Driver Service"})
serviceDefault = "on"
from comar.service import *
import time, os
@synchronized
def start():
ret = run("/usr/sbin/vboxdrv start")
if ret == 0:
notify("System.Service", "Changed", (script(), "started"))
else:
fail("Unable to start service")
@synchronized
def stop():
ret = run("/usr/sbin/vboxdrv stop")
if ret == 0:
notify("System.Service", "Changed", (script(), "stopped"))
else:
fail("Unable to stop service")
def status():
return run("/usr/sbin/vboxdrv status")
./deffiles 0000755 0001750 0001750 00000054450 12456300720 011447 0 ustar vbox vbox #!/bin/sh
#
# Oracle VM VirtualBox
# VirtualBox linux default files list
#
# Copyright (C) 2007-2010 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GPL) as published by the Free Software
# Foundation, in version 2 as it comes in the "COPYING" file of the
# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
#
# No entries should ever be removed from this file, as it is used
# for uninstalling old installations of VirtualBox which did not
# keep track of the names of their files. Similarly it should not
# be necessary to add new entries to the list (in fact all of the
# entries added after the file was first created are probably
# redundant). Actually though it can't hurt, in case something goes
# wrong with an installation...
DEFAULT_FILE_NAMES=" \
VBoxDD.so \
VBoxDD2.so \
VBoxKeyboard.so \
VBoxManage \
VBoxNetDHCP \
VBoxNetDHCP.so \
VBoxREM.so \
VBoxRT.so \
VBoxSDL \
VBoxSDL.so \
VBoxSVC \
VBoxSVCM.so \
VBoxDDU.so \
VBoxVMM.so \
VBoxXPCOM.so \
VBoxXPCOMC.so \
VBoxXPCOMIPCD \
VirtualBox \
VirtualBox.so \
VBoxTunctl \
VBoxSettings.so \
VBoxSharedFolders.so \
VBoxSharedClipboard.so \
VBoxGuestPropSvc.so \
VBoxGuestControlSvc.so \
VBoxAuth.so \
VBoxAuthSimple.so \
VBoxDbg.so \
VBoxDbg3.so \
VBoxVRDP.so \
VBoxVRDP \
VBoxHeadless \
VBoxHeadless.so \
VBoxDD2GC.gc \
VBoxDD2R0.r0 \
VBoxDDGC.gc \
VBoxDDR0.r0 \
VMMGC.gc \
VMMR0.r0 \
vboxefi.fv \
vboxefi64.fv \
vboxwebsrv \
components/comreg.dat \
components/xpti.dat \
components/VBoxC.so \
components/VBoxDDU.so \
components/VBoxREM.so \
components/VBoxRT.so \
components/VBoxVMM.so \
components/VBoxXPCOM.so \
components/VBoxXPCOMBase.xpt \
components/VBoxXPCOMIPCC.so \
components/VirtualBox_XPCOM.xpt \
VBox.sh \
VBox.png \
virtualbox.desktop \
src/ \
src/include/ \
src/include/iprt/ \
src/include/iprt/alloc.h \
src/include/iprt/asm.h \
src/include/iprt/assert.h \
src/include/iprt/cdefs.h \
src/include/iprt/err.h \
src/include/iprt/log.h \
src/include/iprt/mem.h \
src/include/iprt/param.h \
src/include/iprt/semaphore.h \
src/include/iprt/spinlock.h \
src/include/iprt/stdarg.h \
src/include/iprt/stdint.h \
src/include/iprt/string.h \
src/include/iprt/thread.h \
src/include/iprt/types.h \
src/include/iprt/uuid.h \
src/include/internal/initterm.h \
src/include/internal/magics.h \
src/include/internal/thread.h \
src/include/VBox/ \
src/include/VBox/cdefs.h \
src/include/VBox/err.h \
src/include/VBox/log.h \
src/include/VBox/sup.h \
src/include/VBox/hwaccm_svm.h \
src/include/VBox/hwaccm_vmx.h \
src/include/VBox/x86.h \
src/include/VBox/types.h \
src/linux/ \
src/linux/SUPDrv-linux.c \
src/Makefile \
src/r0drv/ \
src/r0drv/alloc-r0drv.c \
src/r0drv/alloc-r0drv.h \
src/r0drv/linux/ \
src/r0drv/linux/alloc-r0drv-linux.c \
src/r0drv/linux/semaphore-r0drv-linux.c \
src/r0drv/linux/spinlock-r0drv-linux.c \
src/r0drv/linux/string.h \
src/r0drv/linux/thread-r0drv-linux.c \
src/r0drv/linux/the-linux-kernel.h \
src/SUPDRVIOC.h \
src/SUPDRVShared.c \
src/SUPDrv.c \
src/SUPDrvAgnostic.c \
src/SUPDrvIDC.h \
src/SUPDrvIOC.h \
src/SUPDrvInternal.h \
src/SUPDrvSem.c \
src/Modules.symvers \
src/version-generated.h \
nls/qt_de.qm \
nls/VirtualBox_de.qm \
nls/qt_fr.qm \
nls/VirtualBox_fr.qm \
nls/qt_it.qm \
nls/VirtualBox_it.qm \
nls/qt_ro.qm \
nls/VirtualBox_ro.qm \
nls/qt_zh_CN.qm \
nls/VirtualBox_zh_CN.qm \
nls/qt_ja.qm \
nls/VirtualBox_ja.qm \
nls/qt_es.ts \
nls/VirtualBox_es.ts \
nls/qt_ru.ts \
nls/VirtualBox_ru.ts \
nls/qt_pl.ts \
nls/VirtualBox_pl.ts \
nls/qt_pt_BR.ts \
nls/VirtualBox_pt_BR.ts \
nls/qt_ko.ts \
nls/VirtualBox_ko.ts \
nls/qt_sv.ts \
nls/VirtualBox_sv.ts \
nls/qt_fi.ts \
nls/VirtualBox_fi.ts \
nls/qt_hu.ts \
nls/VirtualBox_hu.ts \
nls/qt_cs.ts \
nls/VirtualBox_cs.ts \
sdk/ \
sdk/include/ \
sdk/include/xpcom/ \
sdk/include/xpcom/nsprpub/ \
sdk/include/xpcom/nsprpub/md/ \
sdk/include/xpcom/nsprpub/md/prosdep.h \
sdk/include/xpcom/nsprpub/md/_pth.h \
sdk/include/xpcom/nsprpub/md/_unix_errors.h \
sdk/include/xpcom/nsprpub/md/_unixos.h \
sdk/include/xpcom/nsprpub/md/_l4v2.h \
sdk/include/xpcom/nsprpub/md/_linux.h \
sdk/include/xpcom/nsprpub/obsolete/ \
sdk/include/xpcom/nsprpub/obsolete/prsem.h \
sdk/include/xpcom/nsprpub/obsolete/protypes.h \
sdk/include/xpcom/nsprpub/obsolete/probslet.h \
sdk/include/xpcom/nsprpub/obsolete/pralarm.h \
sdk/include/xpcom/nsprpub/private/ \
sdk/include/xpcom/nsprpub/private/prpriv.h \
sdk/include/xpcom/nsprpub/private/pprthred.h \
sdk/include/xpcom/nsprpub/private/pprio.h \
sdk/include/xpcom/nsprpub/prcpucfg.h \
sdk/include/xpcom/nsprpub/_linuxcfg.h \
sdk/include/xpcom/nsprpub/_l4v2cfg.h \
sdk/include/xpcom/nsprpub/prwin16.h \
sdk/include/xpcom/nsprpub/prvrsion.h \
sdk/include/xpcom/nsprpub/prtypes.h \
sdk/include/xpcom/nsprpub/prtrace.h \
sdk/include/xpcom/nsprpub/prtpool.h \
sdk/include/xpcom/nsprpub/prtime.h \
sdk/include/xpcom/nsprpub/prthread.h \
sdk/include/xpcom/nsprpub/prsystem.h \
sdk/include/xpcom/nsprpub/prshma.h \
sdk/include/xpcom/nsprpub/prshm.h \
sdk/include/xpcom/nsprpub/prrwlock.h \
sdk/include/xpcom/nsprpub/prrng.h \
sdk/include/xpcom/nsprpub/prproces.h \
sdk/include/xpcom/nsprpub/prprf.h \
sdk/include/xpcom/nsprpub/prpdce.h \
sdk/include/xpcom/nsprpub/prolock.h \
sdk/include/xpcom/nsprpub/prnetdb.h \
sdk/include/xpcom/nsprpub/prmwait.h \
sdk/include/xpcom/nsprpub/prmon.h \
sdk/include/xpcom/nsprpub/prmem.h \
sdk/include/xpcom/nsprpub/prlong.h \
sdk/include/xpcom/nsprpub/prlog.h \
sdk/include/xpcom/nsprpub/prlock.h \
sdk/include/xpcom/nsprpub/prlink.h \
sdk/include/xpcom/nsprpub/pripcsem.h \
sdk/include/xpcom/nsprpub/prio.h \
sdk/include/xpcom/nsprpub/prinrval.h \
sdk/include/xpcom/nsprpub/prinit.h \
sdk/include/xpcom/nsprpub/prinet.h \
sdk/include/xpcom/nsprpub/prerror.h \
sdk/include/xpcom/nsprpub/prerr.h \
sdk/include/xpcom/nsprpub/prenv.h \
sdk/include/xpcom/nsprpub/prdtoa.h \
sdk/include/xpcom/nsprpub/prcvar.h \
sdk/include/xpcom/nsprpub/prcountr.h \
sdk/include/xpcom/nsprpub/prcmon.h \
sdk/include/xpcom/nsprpub/prclist.h \
sdk/include/xpcom/nsprpub/prbit.h \
sdk/include/xpcom/nsprpub/pratom.h \
sdk/include/xpcom/nsprpub/plstr.h \
sdk/include/xpcom/nsprpub/plresolv.h \
sdk/include/xpcom/nsprpub/plhash.h \
sdk/include/xpcom/nsprpub/plgetopt.h \
sdk/include/xpcom/nsprpub/plerror.h \
sdk/include/xpcom/nsprpub/plbase64.h \
sdk/include/xpcom/nsprpub/plarenas.h \
sdk/include/xpcom/nsprpub/plarena.h \
sdk/include/xpcom/nsprpub/nspr.h \
sdk/include/xpcom/string/ \
sdk/include/xpcom/string/string-template-undef.h \
sdk/include/xpcom/string/string-template-def-unichar.h \
sdk/include/xpcom/string/string-template-def-char.h \
sdk/include/xpcom/string/nsXPIDLString.h \
sdk/include/xpcom/string/nsUTF8Utils.h \
sdk/include/xpcom/string/nsTSubstringTuple.h \
sdk/include/xpcom/string/nsTSubstring.h \
sdk/include/xpcom/string/nsTString.h \
sdk/include/xpcom/string/nsTPromiseFlatString.h \
sdk/include/xpcom/string/nsTObsoleteAString.h \
sdk/include/xpcom/string/nsTDependentSubstring.h \
sdk/include/xpcom/string/nsTDependentString.h \
sdk/include/xpcom/string/nsTAString.h \
sdk/include/xpcom/string/nsSubstringTuple.h \
sdk/include/xpcom/string/nsSubstring.h \
sdk/include/xpcom/string/nsStringIterator.h \
sdk/include/xpcom/string/nsStringFwd.h \
sdk/include/xpcom/string/nsStringAPI.h \
sdk/include/xpcom/string/nsString.h \
sdk/include/xpcom/string/nsReadableUtils.h \
sdk/include/xpcom/string/nsPromiseFlatString.h \
sdk/include/xpcom/string/nsPrintfCString.h \
sdk/include/xpcom/string/nsObsoleteAString.h \
sdk/include/xpcom/string/nsLiteralString.h \
sdk/include/xpcom/string/nsEmbedString.h \
sdk/include/xpcom/string/nsDependentSubstring.h \
sdk/include/xpcom/string/nsDependentString.h \
sdk/include/xpcom/string/nsCharTraits.h \
sdk/include/xpcom/string/nsAlgorithm.h \
sdk/include/xpcom/string/nsAString.h \
sdk/include/xpcom/xpcom/ \
sdk/include/xpcom/xpcom/xpcom-config.h \
sdk/include/xpcom/xpcom/xptinfo.h \
sdk/include/xpcom/xpcom/xptcstubsdef.inc \
sdk/include/xpcom/xpcom/xptcstubsdecl.inc \
sdk/include/xpcom/xpcom/xptcall.h \
sdk/include/xpcom/xpcom/xpt_xdr.h \
sdk/include/xpcom/xpcom/xpt_struct.h \
sdk/include/xpcom/xpcom/xpt_arena.h \
sdk/include/xpcom/xpcom/xcDll.h \
sdk/include/xpcom/xpcom/plevent.h \
sdk/include/xpcom/xpcom/pldhash.h \
sdk/include/xpcom/xpcom/nscore.h \
sdk/include/xpcom/xpcom/nsXPCOMGlue.h \
sdk/include/xpcom/xpcom/nsXPCOMCID.h \
sdk/include/xpcom/xpcom/nsXPCOM.h \
sdk/include/xpcom/xpcom/nsWeakReference.h \
sdk/include/xpcom/xpcom/nsWeakPtr.h \
sdk/include/xpcom/xpcom/nsVoidArray.h \
sdk/include/xpcom/xpcom/nsVariant.h \
sdk/include/xpcom/xpcom/nsValueArray.h \
sdk/include/xpcom/xpcom/nsUnitConversion.h \
sdk/include/xpcom/xpcom/nsTraceRefcntImpl.h \
sdk/include/xpcom/xpcom/nsTraceRefcnt.h \
sdk/include/xpcom/xpcom/nsTime.h \
sdk/include/xpcom/xpcom/nsTextFormatter.h \
sdk/include/xpcom/xpcom/nsTHashtable.h \
sdk/include/xpcom/xpcom/nsSupportsPrimitives.h \
sdk/include/xpcom/xpcom/nsSupportsArray.h \
sdk/include/xpcom/xpcom/nsStringStream.h \
sdk/include/xpcom/xpcom/nsStringIO.h \
sdk/include/xpcom/xpcom/nsStringEnumerator.h \
sdk/include/xpcom/xpcom/nsStreamUtils.h \
sdk/include/xpcom/xpcom/nsStorageStream.h \
sdk/include/xpcom/xpcom/nsStaticNameTable.h \
sdk/include/xpcom/xpcom/nsStaticComponent.h \
sdk/include/xpcom/xpcom/nsStaticAtom.h \
sdk/include/xpcom/xpcom/nsScriptableInputStream.h \
sdk/include/xpcom/xpcom/nsRefPtrHashtable.h \
sdk/include/xpcom/xpcom/nsRecyclingAllocator.h \
sdk/include/xpcom/xpcom/nsQuickSort.h \
sdk/include/xpcom/xpcom/nsProxyRelease.h \
sdk/include/xpcom/xpcom/nsProxyEvent.h \
sdk/include/xpcom/xpcom/nsProxiedService.h \
sdk/include/xpcom/xpcom/nsProcess.h \
sdk/include/xpcom/xpcom/nsObsoleteModuleLoading.h \
sdk/include/xpcom/xpcom/nsObserverService.h \
sdk/include/xpcom/xpcom/nsNativeComponentLoader.h \
sdk/include/xpcom/xpcom/nsNativeCharsetUtils.h \
sdk/include/xpcom/xpcom/nsMultiplexInputStream.h \
sdk/include/xpcom/xpcom/nsModule.h \
sdk/include/xpcom/xpcom/nsMemory.h \
sdk/include/xpcom/xpcom/nsLocalFileUnix.h \
sdk/include/xpcom/xpcom/nsLocalFile.h \
sdk/include/xpcom/xpcom/nsLinebreakConverter.h \
sdk/include/xpcom/xpcom/nsInterfaceHashtable.h \
sdk/include/xpcom/xpcom/nsInt64.h \
sdk/include/xpcom/xpcom/nsIWeakReferenceUtils.h \
sdk/include/xpcom/xpcom/nsIUnicharInputStream.h \
sdk/include/xpcom/xpcom/nsIUnicharBuffer.h \
sdk/include/xpcom/xpcom/nsISupportsUtils.h \
sdk/include/xpcom/xpcom/nsISupportsObsolete.h \
sdk/include/xpcom/xpcom/nsISupportsImpl.h \
sdk/include/xpcom/xpcom/nsISupportsBase.h \
sdk/include/xpcom/xpcom/nsIServiceManagerUtils.h \
sdk/include/xpcom/xpcom/nsIServiceManagerObsolete.h \
sdk/include/xpcom/xpcom/nsIInterfaceRequestorUtils.h \
sdk/include/xpcom/xpcom/nsIID.h \
sdk/include/xpcom/xpcom/nsIGenericFactory.h \
sdk/include/xpcom/xpcom/nsID.h \
sdk/include/xpcom/xpcom/nsIByteBuffer.h \
sdk/include/xpcom/xpcom/nsIAllocator.h \
sdk/include/xpcom/xpcom/nsHashtable.h \
sdk/include/xpcom/xpcom/nsHashSets.h \
sdk/include/xpcom/xpcom/nsHashKeys.h \
sdk/include/xpcom/xpcom/nsGenericFactory.h \
sdk/include/xpcom/xpcom/nsFixedSizeAllocator.h \
sdk/include/xpcom/xpcom/nsFastLoadService.h \
sdk/include/xpcom/xpcom/nsFastLoadPtr.h \
sdk/include/xpcom/xpcom/nsEventQueueUtils.h \
sdk/include/xpcom/xpcom/nsEscape.h \
sdk/include/xpcom/xpcom/nsError.h \
sdk/include/xpcom/xpcom/nsEnumeratorUtils.h \
sdk/include/xpcom/xpcom/nsDoubleHashtable.h \
sdk/include/xpcom/xpcom/nsDirectoryServiceUtils.h \
sdk/include/xpcom/xpcom/nsDirectoryServiceDefs.h \
sdk/include/xpcom/xpcom/nsDirectoryService.h \
sdk/include/xpcom/xpcom/nsDeque.h \
sdk/include/xpcom/xpcom/nsDebugImpl.h \
sdk/include/xpcom/xpcom/nsDebug.h \
sdk/include/xpcom/xpcom/nsDataHashtable.h \
sdk/include/xpcom/xpcom/nsCppSharedAllocator.h \
sdk/include/xpcom/xpcom/nsComponentManagerUtils.h \
sdk/include/xpcom/xpcom/nsComponentManagerObsolete.h \
sdk/include/xpcom/xpcom/nsCom.h \
sdk/include/xpcom/xpcom/nsClassHashtable.h \
sdk/include/xpcom/xpcom/nsCheapSets.h \
sdk/include/xpcom/xpcom/nsCategoryManagerUtils.h \
sdk/include/xpcom/xpcom/nsCRT.h \
sdk/include/xpcom/xpcom/nsCOMPtr.h \
sdk/include/xpcom/xpcom/nsCOMArray.h \
sdk/include/xpcom/xpcom/nsBaseHashtable.h \
sdk/include/xpcom/xpcom/nsAutoPtr.h \
sdk/include/xpcom/xpcom/nsAutoLock.h \
sdk/include/xpcom/xpcom/nsAutoBuffer.h \
sdk/include/xpcom/xpcom/nsAtomService.h \
sdk/include/xpcom/xpcom/nsArrayEnumerator.h \
sdk/include/xpcom/xpcom/nsArray.h \
sdk/include/xpcom/xpcom/nsAppDirectoryServiceDefs.h \
sdk/include/xpcom/xpcom/nsAgg.h \
sdk/include/xpcom/ipcd/ \
sdk/include/xpcom/ipcd/ipcdclient.h \
sdk/include/xpcom/ipcd/ipcModuleUtil.h \
sdk/include/xpcom/ipcd/ipcModule.h \
sdk/include/xpcom/ipcd/ipcMessageWriter.h \
sdk/include/xpcom/ipcd/ipcMessageReader.h \
sdk/include/xpcom/ipcd/ipcLockCID.h \
sdk/include/xpcom/ipcd/ipcCID.h \
sdk/include/xpcom/.keep \
sdk/include/nsIDebug.h \
sdk/include/nsIInterfaceRequestor.h \
sdk/include/nsIMemory.h \
sdk/include/nsIProgrammingLanguage.h \
sdk/include/nsISupports.h \
sdk/include/nsITraceRefcnt.h \
sdk/include/nsIWeakReference.h \
sdk/include/nsIConsoleMessage.h \
sdk/include/nsIConsoleService.h \
sdk/include/nsIConsoleListener.h \
sdk/include/nsIErrorService.h \
sdk/include/nsIException.h \
sdk/include/nsIExceptionService.h \
sdk/include/nsrootidl.h \
sdk/include/nsIClassInfo.h \
sdk/include/nsIComponentRegistrar.h \
sdk/include/nsIFactory.h \
sdk/include/nsIModule.h \
sdk/include/nsIServiceManager.h \
sdk/include/nsIComponentManager.h \
sdk/include/nsICategoryManager.h \
sdk/include/nsIComponentLoader.h \
sdk/include/nsINativeComponentLoader.h \
sdk/include/nsIComponentManagerObsolete.h \
sdk/include/nsIComponentLoaderManager.h \
sdk/include/nsISupportsArray.h \
sdk/include/nsICollection.h \
sdk/include/nsISerializable.h \
sdk/include/nsIEnumerator.h \
sdk/include/nsISimpleEnumerator.h \
sdk/include/nsIObserverService.h \
sdk/include/nsIObserver.h \
sdk/include/nsIAtom.h \
sdk/include/nsIAtomService.h \
sdk/include/nsIProperties.h \
sdk/include/nsIPersistentProperties2.h \
sdk/include/nsIRecyclingAllocator.h \
sdk/include/nsIStringEnumerator.h \
sdk/include/nsISupportsPrimitives.h \
sdk/include/nsISupportsIterators.h \
sdk/include/nsIVariant.h \
sdk/include/nsITimelineService.h \
sdk/include/nsIArray.h \
sdk/include/nsIPropertyBag.h \
sdk/include/nsIDirectoryService.h \
sdk/include/nsIFile.h \
sdk/include/nsILocalFile.h \
sdk/include/nsIInputStream.h \
sdk/include/nsIObjectInputStream.h \
sdk/include/nsIBinaryInputStream.h \
sdk/include/nsIObjectOutputStream.h \
sdk/include/nsIBinaryOutputStream.h \
sdk/include/nsIOutputStream.h \
sdk/include/nsIStreamBufferAccess.h \
sdk/include/nsIByteArrayInputStream.h \
sdk/include/nsISeekableStream.h \
sdk/include/nsIFastLoadFileControl.h \
sdk/include/nsIFastLoadService.h \
sdk/include/nsIInputStreamTee.h \
sdk/include/nsIMultiplexInputStream.h \
sdk/include/nsIPipe.h \
sdk/include/nsIAsyncInputStream.h \
sdk/include/nsIAsyncOutputStream.h \
sdk/include/nsIScriptableInputStream.h \
sdk/include/nsIStorageStream.h \
sdk/include/nsIStringStream.h \
sdk/include/nsILineInputStream.h \
sdk/include/nsIProxyObjectManager.h \
sdk/include/nsIEventQueueService.h \
sdk/include/nsIEventQueue.h \
sdk/include/nsIEventTarget.h \
sdk/include/nsIRunnable.h \
sdk/include/nsIThread.h \
sdk/include/nsITimer.h \
sdk/include/nsIEnvironment.h \
sdk/include/nsITimerInternal.h \
sdk/include/nsITimerManager.h \
sdk/include/nsIProcess.h \
sdk/include/nsIInterfaceInfo.h \
sdk/include/nsIInterfaceInfoManager.h \
sdk/include/nsIXPTLoader.h \
sdk/include/ipcIService.h \
sdk/include/ipcIMessageObserver.h \
sdk/include/ipcIClientObserver.h \
sdk/include/ipcILockService.h \
sdk/include/ipcITransactionService.h \
sdk/include/ipcIDConnectService.h \
sdk/include/ipcITransactionObserver.h \
sdk/include/VirtualBox_XPCOM.h \
sdk/include/VBoxAuth.h \
sdk/installer/build/lib/vboxapi/VirtualBox_constants.py
sdk/installer/build/lib/vboxapi/__init__.py
sdk/idl/ \
sdk/idl/nsIDebug.idl \
sdk/idl/nsIInterfaceRequestor.idl \
sdk/idl/nsIMemory.idl \
sdk/idl/nsIProgrammingLanguage.idl \
sdk/idl/nsISupports.idl \
sdk/idl/nsITraceRefcnt.idl \
sdk/idl/nsIWeakReference.idl \
sdk/idl/nsIConsoleMessage.idl \
sdk/idl/nsIConsoleService.idl \
sdk/idl/nsIConsoleListener.idl \
sdk/idl/nsIErrorService.idl \
sdk/idl/nsIException.idl \
sdk/idl/nsIExceptionService.idl \
sdk/idl/nsrootidl.idl \
sdk/idl/nsIClassInfo.idl \
sdk/idl/nsIComponentRegistrar.idl \
sdk/idl/nsIFactory.idl \
sdk/idl/nsIModule.idl \
sdk/idl/nsIServiceManager.idl \
sdk/idl/nsIComponentManager.idl \
sdk/idl/nsICategoryManager.idl \
sdk/idl/nsIComponentLoader.idl \
sdk/idl/nsINativeComponentLoader.idl \
sdk/idl/nsIComponentManagerObsolete.idl \
sdk/idl/nsIComponentLoaderManager.idl \
sdk/idl/nsISupportsArray.idl \
sdk/idl/nsICollection.idl \
sdk/idl/nsISerializable.idl \
sdk/idl/nsIEnumerator.idl \
sdk/idl/nsISimpleEnumerator.idl \
sdk/idl/nsIObserverService.idl \
sdk/idl/nsIObserver.idl \
sdk/idl/nsIAtom.idl \
sdk/idl/nsIAtomService.idl \
sdk/idl/nsIProperties.idl \
sdk/idl/nsIPersistentProperties2.idl \
sdk/idl/nsIRecyclingAllocator.idl \
sdk/idl/nsIStringEnumerator.idl \
sdk/idl/nsISupportsPrimitives.idl \
sdk/idl/nsISupportsIterators.idl \
sdk/idl/nsIVariant.idl \
sdk/idl/nsITimelineService.idl \
sdk/idl/nsIArray.idl \
sdk/idl/nsIPropertyBag.idl \
sdk/idl/nsIDirectoryService.idl \
sdk/idl/nsIFile.idl \
sdk/idl/nsILocalFile.idl \
sdk/idl/nsIInputStream.idl \
sdk/idl/nsIObjectInputStream.idl \
sdk/idl/nsIBinaryInputStream.idl \
sdk/idl/nsIObjectOutputStream.idl \
sdk/idl/nsIBinaryOutputStream.idl \
sdk/idl/nsIOutputStream.idl \
sdk/idl/nsIStreamBufferAccess.idl \
sdk/idl/nsIByteArrayInputStream.idl \
sdk/idl/nsISeekableStream.idl \
sdk/idl/nsIFastLoadFileControl.idl \
sdk/idl/nsIFastLoadService.idl \
sdk/idl/nsIInputStreamTee.idl \
sdk/idl/nsIMultiplexInputStream.idl \
sdk/idl/nsIPipe.idl \
sdk/idl/nsIAsyncInputStream.idl \
sdk/idl/nsIAsyncOutputStream.idl \
sdk/idl/nsIScriptableInputStream.idl \
sdk/idl/nsIStorageStream.idl \
sdk/idl/nsIStringStream.idl \
sdk/idl/nsILineInputStream.idl \
sdk/idl/nsIProxyObjectManager.idl \
sdk/idl/nsIEventQueueService.idl \
sdk/idl/nsIEventQueue.idl \
sdk/idl/nsIEventTarget.idl \
sdk/idl/nsIRunnable.idl \
sdk/idl/nsIThread.idl \
sdk/idl/nsITimer.idl \
sdk/idl/nsIEnvironment.idl \
sdk/idl/nsITimerInternal.idl \
sdk/idl/nsITimerManager.idl \
sdk/idl/nsIProcess.idl \
sdk/idl/nsIInterfaceInfo.idl \
sdk/idl/nsIInterfaceInfoManager.idl \
sdk/idl/nsIXPTLoader.idl \
sdk/idl/ipcIService.idl \
sdk/idl/ipcIMessageObserver.idl \
sdk/idl/ipcIClientObserver.idl \
sdk/idl/ipcILockService.idl \
sdk/idl/ipcITransactionService.idl \
sdk/idl/ipcIDConnectService.idl \
sdk/idl/ipcITransactionObserver.idl \
sdk/idl/VirtualBox_XPCOM.idl \
sdk/lib/ \
sdk/lib/VBoxXPCOMGlue.a \
sdk/webservice/vboxweb.wsdl \
sdk/webservice/vboxwebService.wsdl \
sdk/samples/ \
sdk/samples/auth/ \
sdk/samples/auth/pam.cpp \
sdk/samples/API/ \
sdk/samples/API/tstVBoxAPILinux.cpp \
sdk/samples/API/makefile.tstVBoxAPILinux \
sdk/samples/API/tstVBoxAPILinux \
additions/VBoxGuestAdditions.iso \
UserManual.pdf \
rdesktop-vrdp.tar.gz \
rdesktop-vrdp-keymaps/ar \
rdesktop-vrdp-keymaps/common \
rdesktop-vrdp-keymaps/convert-map \
rdesktop-vrdp-keymaps/cs \
rdesktop-vrdp-keymaps/da \
rdesktop-vrdp-keymaps/de \
rdesktop-vrdp-keymaps/de-ch \
rdesktop-vrdp-keymaps/en-dv \
rdesktop-vrdp-keymaps/en-gb \
rdesktop-vrdp-keymaps/en-us \
rdesktop-vrdp-keymaps/es \
rdesktop-vrdp-keymaps/et \
rdesktop-vrdp-keymaps/fi \
rdesktop-vrdp-keymaps/fo \
rdesktop-vrdp-keymaps/fr \
rdesktop-vrdp-keymaps/fr-be \
rdesktop-vrdp-keymaps/fr-ca \
rdesktop-vrdp-keymaps/fr-ch \
rdesktop-vrdp-keymaps/he \
rdesktop-vrdp-keymaps/hr \
rdesktop-vrdp-keymaps/hu \
rdesktop-vrdp-keymaps/is \
rdesktop-vrdp-keymaps/it \
rdesktop-vrdp-keymaps/ja \
rdesktop-vrdp-keymaps/ko \
rdesktop-vrdp-keymaps/lt \
rdesktop-vrdp-keymaps/lv \
rdesktop-vrdp-keymaps/mk \
rdesktop-vrdp-keymaps/modifiers \
rdesktop-vrdp-keymaps/nl \
rdesktop-vrdp-keymaps/nl-be \
rdesktop-vrdp-keymaps/no \
rdesktop-vrdp-keymaps/pl \
rdesktop-vrdp-keymaps/pt \
rdesktop-vrdp-keymaps/pt-br \
rdesktop-vrdp-keymaps/ru \
rdesktop-vrdp-keymaps/sl \
rdesktop-vrdp-keymaps/sv \
rdesktop-vrdp-keymaps/th \
rdesktop-vrdp-keymaps/tr "
./VirtualBox.tar.bz2 0000644 0001750 0001750 00422560155 12456300720 013257 0 ustar vbox vbox BZh91AY&SY8w|/+ ATUOmKnU5ֹ (ҝR@:_ v XǽhQhSӀg
n
]]=%@