talimat 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Description: VirtualBox, güçlü bir 32 ve 64 bit sanallaştırma ürünüdür
  2. # URL: http://virtualbox.org
  3. # Packager: milisarge
  4. # Depends on: virtualbox-cli sdl
  5. name=virtualbox
  6. version=5.0.12
  7. release=1
  8. _name=Oracle_VM_VirtualBox_Extension_Pack
  9. _release=104815
  10. DOSYAIZLEME_YOKSAY="evet"
  11. MD5SUM_YOKSAY="evet"
  12. [ "`uname -m`" == "i686" ] && _ARCH=x86
  13. [ "`uname -m`" == "x86_64" ] && _ARCH=amd64
  14. source=(http://download.virtualbox.org/virtualbox/$version/VirtualBox-${version}-${_release}-Linux_${_ARCH}.run
  15. http://download.virtualbox.org/virtualbox/$version/${_name}-${version}-${_release}.vbox-extpack
  16. virtualbox.60-vboxdrv.rules)
  17. build() {
  18. sh VirtualBox-${version}-${_release}-Linux_${_ARCH}.run --keep --noexec --target $SRC/
  19. mkdir -p $PKG/opt/VirtualBox $PKG/etc/vbox $PKG/usr/bin $PKG/etc/udev/rules.d/ \
  20. $PKG/usr/share/applications/ $PKG/usr/share/pixmaps/
  21. cd $PKG/opt/VirtualBox
  22. tar xfj $SRC/VirtualBox.tar.bz2
  23. rm -Rf $PKG/opt/VirtualBox/sdk
  24. for i in VirtualBox VBoxManage VBoxSDL VBoxHeadless
  25. do ln -s /opt/VirtualBox/VBox.sh $PKG/usr/bin/$i
  26. done
  27. cd components
  28. for i in VBoxDDU.so VBoxREM.so VBoxRT.so VBoxVMM.so VBoxXPCOM.so
  29. do ln -s ../$i .
  30. done
  31. ln -s /opt/VirtualBox/rdesktop-vrdp $PKG/usr/bin/rdesktop-vrdp
  32. mv $PKG/opt/VirtualBox/VBox.png $PKG/usr/share/pixmaps/VBox.png
  33. mv $PKG/opt/VirtualBox/virtualbox.desktop $PKG/usr/share/applications/virtualbox.desktop
  34. chmod +s $PKG/opt/VirtualBox/{VirtualBox,VBoxSDL,VBoxHeadless}
  35. mkdir -p $PKG/etc/udev/rules.d
  36. cp $SRC/virtualbox.60-vboxdrv.rules $PKG/etc/udev/rules.d/60-vboxdrv.rules
  37. echo "# VirtualBox installation directory" > \
  38. $PKG/etc/vbox/vbox.cfg
  39. echo "INSTALL_DIR="\"/opt/VirtualBox\" >> \
  40. $PKG/etc/vbox/vbox.cfg
  41. install -D -m 644 $SRC/${_name}-$version-${_release}.vbox-extpack \
  42. $PKG/opt/VirtualBox/ExtensionPacks/${_name}-$version-${_release}.vbox-extpack
  43. mkdir -p $PKG/etc/ld.so.conf.d
  44. echo /opt/VirtualBox > $PKG/etc/ld.so.conf.d/virtualbox.conf
  45. # Icon
  46. ln -s VBox.png $PKG/usr/share/pixmaps/virtualbox.png
  47. # Source code files obsolet
  48. rm -r $PKG/opt/VirtualBox/src
  49. }