You are not logged in.

#1 2007-02-15 22:18:57

tomtom
Member
Registered: 2006-10-20
Posts: 8

[Request] VirtualBox - Binary Version

Hi,

could somebody make a package for the binary verison of virtualbox? I`m lost without usb-support....

thx in advance

tomtom

Offline

#2 2007-02-16 11:43:02

Black_Codec
Member
Registered: 2007-02-04
Posts: 21

Re: [Request] VirtualBox - Binary Version

Have u try to change pkgver in 1.3.4 and then build it?

Offline

#3 2007-02-16 12:03:12

tomtom
Member
Registered: 2006-10-20
Posts: 8

Re: [Request] VirtualBox - Binary Version

Have u try to change pkgver in 1.3.4 and then build it?

No i didn`t. I think the procedure to build the binary version differs a lot form the ose-version. I tried to modify the virtualbox-additions-bin PKGBUILD but without success.... roll

Last edited by tomtom (2007-02-16 12:44:30)

Offline

#4 2007-02-19 23:09:17

hpestilence
Member
Registered: 2005-06-20
Posts: 67

Re: [Request] VirtualBox - Binary Version

I basically used the existing PKGBUILDs for virtualbox-modules-svn and virtualbox-svn to make this, so the rest of the files are at those two links.

This downloads the binary version then builds the kernel module and then installs into /opt/virtualbox the same place the svn version installs to so remember to uninstall the svn version if it is installed. Don't forget to replace the _kernver with your kernel version (use command 'uname -r' to find it).

Before installing make sure you read and accept this license before hand: VirtualBox_PUEL

PKGBUILD:

pkgname=virtualbox-bin
pkgver=1.3.4
pkgrel=1
pkgdesc="x86 virtualization product with high performance and nice features"
_kernver="2.6.20-ck1-ARCH"
url="http://www.virtualbox.org"
arch=(i686)
license=('custom')
depends=('qt' 'sdl' 'libidl2' 'libxslt' 'xalan-c' 'e2fsprogs')
conflicts=('virtualbox' 'virtualbox-modules')
install=virtualbox-bin.install
source=(http://virtualbox.org/download/${pkgver}/VirtualBox_${pkgver}_Linux_x86.run \
  vboxbfe vboxmanage vboxsdl vboxsvc vditool virtualbox virtualbox.rules virtualbox.desktop)
md5sums=('2fa2f38d3fc9f367804934817de83a4b' '90a0aa4968b0718f39436b2927bb28b9'\
         '2a37007b25825c5138f3a6891435b202' '4bdf8df83f956458f739275328a338b9'\
         'd6c9d1ff96ca0d6668957df8803d3d8f' '6fec4dac246ef611b25989acbc4da4f5'\
         'b70be3fc37e6ed85dc4c3ac280861c14' 'e9ec951e772eec831be3e9a1704628be'\
         '0af764601371c7659ffcda88fc279682')

build() {
  cd $startdir/src
  sh VirtualBox_${pkgver}_Linux_x86.run --noexec --target $startdir/src
  mkdir $startdir/src/virtualbox-bin
  tar -xjf VirtualBox.tar.bz2 -C $startdir/src/virtualbox-bin

  # Make and install kernel module
  cd $startdir/src/virtualbox-bin/src
  make || return 1
  install -D -m 644 vboxdrv.ko $startdir/pkg/lib/modules/$_kernver/misc/vboxdrv.ko || return 1
  sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/virtualbox-bin.install

  # Install rest of package
  install -D -m 644 $startdir/src/LICENSE $startdir/pkg/usr/share/licenses/custom/$pkgname
  install -D -m 644 $startdir/src/virtualbox.desktop $startdir/pkg/usr/share/applications/virtualbox.desktop
  install -D -m 644 $startdir/src/virtualbox-bin/VBox.png $startdir/pkg/usr/share/pixmaps/VBox.png
  install -D -m 644 $startdir/src/virtualbox.rules $startdir/pkg/etc/udev/rules.d/virtualbox.rules
  install -D -m 755 $startdir/src/vboxsvc $startdir/pkg/usr/bin/vboxsvc
  install -D -m 755 $startdir/src/virtualbox $startdir/pkg/usr/bin/virtualbox
  install -D -m 755 $startdir/src/vboxsdl $startdir/pkg/usr/bin/vboxsdl
  install -D -m 755 $startdir/src/vboxmanage $startdir/pkg/usr/bin/vboxmanage
  install -D -m 755 $startdir/src/vboxbfe $startdir/pkg/usr/bin/vboxbfe
  install -D -m 755 $startdir/src/vditool $startdir/pkg/usr/bin/vditool
  cd $startdir/src/virtualbox-bin/
  rm -rf sdk src
  rm rdesktop-vrdp.tar.gz *.sh VBox.png VirtualBox.desktop
  mkdir -p $startdir/pkg/opt/virtualbox
  cp -r * $startdir/pkg/opt/virtualbox/
}

virtualbox-bin.install

KERNEL_VERSION='2.6.20-ck1-ARCH'

post_install() {
  /bin/cat << EOF

 -->
 --> In order to run VirtualBox, you have to
 --> be in the 'virtualbox' group.
 -->
 --> You have to start the VirtualBox XPCOM daemon (vboxsvc)
 --> before starting one of VirtualBox frontends
 --> (but it will be started automatically if you forget
 --> to do it yourself).
 -->
 --> Frontends:
 -->   virtualbox - Main GUI frontend based on Qt
 -->   vboxsdl    - Simple alternative frontend based on SDL
 -->   vboxmanage - Command line frontend
 -->   vboxbfe    - Very limited UI that communicates with
 -->                the VMM directly (without using XPCOM)
 -->
 --> If you want to be able to install guest additions, you
 --> have to install 'virtualbox-additions-bin' package.
 -->
 --> You must load vboxdrv module before starting VirtualBox:
 --> # modprobe vboxdrv
 -->
 --> To load it automatically, add vboxdrv module
 --> to the MODULES array in /etc/rc.conf.
 -->
 --> If you use kernel 2.6.19 or higher, you must disable
 --> the NMI watchdog by specifying 'nmi_watchdog=0'
 --> at kernel command line (add this option to your
 --> /boot/grub/menu.lst).

EOF
  groupadd virtualbox >/dev/null 2>&1 || true
  depmod -v $KERNEL_VERSION >/dev/null 2>&1
}

post_upgrade() {
  post_install $1
}

post_remove() {
  groupdel virtualbox >/dev/null 2>&1 || true
  depmod -v $KERNEL_VERSION >/dev/null 2>&1
}

op=$1
shift
$op $*

Offline

#5 2007-02-20 11:43:49

Tatey
Member
From: Brisbane, Australia
Registered: 2006-04-02
Posts: 66
Website

Re: [Request] VirtualBox - Binary Version

Thanks very much for the PKGBUILD hpestilence, works like a charm with 2.6.20 smile


Check out my website, http://tatey.com

Offline

#6 2007-02-20 12:59:33

tomtom
Member
Registered: 2006-10-20
Posts: 8

Re: [Request] VirtualBox - Binary Version

@ hpestilence

you are my hero..... wink thank you very much!!!

thx

tomtom

Offline

#7 2007-02-28 00:34:18

once
Member
From: Taiwan
Registered: 2006-09-12
Posts: 266

Re: [Request] VirtualBox - Binary Version

is binary worse performance than OSE?

Offline

#8 2007-03-02 16:40:36

atlas95
Member
Registered: 2007-02-11
Posts: 98

Re: [Request] VirtualBox - Binary Version

I can't buiild iasl hmm
This don't work....
Could you help me please?

Offline

#9 2007-03-02 20:47:50

tomXx
Member
Registered: 2007-02-16
Posts: 5

Re: [Request] VirtualBox - Binary Version

@atlas95

add this line

[Lapis]
Server=http://arch.linux-sevenler.org/pkgs

to your pacman.conf and then do a pacman -Sy iasl

Last edited by tomXx (2007-03-03 07:03:53)

Offline

#10 2007-03-03 09:19:22

atlas95
Member
Registered: 2007-02-11
Posts: 98

Re: [Request] VirtualBox - Binary Version

Thanks man ! I try!

Offline

Board footer

Powered by FluxBB