talimat 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # Tanım: VirtualBox, güçlü bir 32 ve 64 bit sanallaştırma ürünüdür
  2. # URL: http://virtualbox.org
  3. # Paketçi: milisarge
  4. # Gerekler: libidl acpica alsa-lib cdrkit xorg-glu openjdk libidl libvncserver libvpx xorg-libxcomposite xorg-libxcursor xorg-libxinerama libxml2 xorg-libxmu xorg-libxrandr libxslt xorg-libxtst xorg-mesa pulseaudio python qt5 sdl sdl-ttf xorg-proto xorg-server yasm virtualbox-modules
  5. # Grup: sistem
  6. isim=virtualbox
  7. surum=5.2.22
  8. devir=1
  9. kaynak=(https://download.virtualbox.org/virtualbox/${surum}/VirtualBox-${surum}.tar.bz2
  10. 60-vboxdrv.rules
  11. 60-vboxguest.rules
  12. LocalConfig.kmk
  13. driver-path.patch
  14. include-path.patch)
  15. derle() {
  16. cd $SRC/VirtualBox-${surum}
  17. patch -p1 -i ${SRC}/driver-path.patch
  18. #patch -p1 -i ${SRC}/include-path.patch
  19. #sed -i -e 's|/usr/X11R6/bin/xterm|/usr/X11R6/bin/xterm|' src/VBox/Runtime/VBox/RTAssertShouldPanic-vbox.cpp
  20. sed -i -e 's|X11R6/||' configure
  21. #sed -i -e 's|CXX_FLAGS=""|CXX_FLAGS="-std=c++11"|' configure
  22. sed -i -e 's|X11R6/||' Config.kmk
  23. sed -i -e 's|.*&& check_makeself||' configure
  24. sed -i -e 's|smc-napa|smcnapa|' src/VBox/Devices/PC/vbox.dsl
  25. sed -i -e 's|$(filter-out vboxvideo_drv_%,$(DLLS)) vboxvideo_drv_system|$(filter-out vboxvideo_drv_%,$(DLLS))|' src/VBox/Additions/x11/vboxvideo/Makefile.kmk
  26. cp ${SRC}/LocalConfig.kmk .
  27. sed -i 's/^check_gcc$/#check_gcc/' configure
  28. echo "VBOX_GCC_OPT=$CXXFLAGS -I/usr/include/glib-2.0 " >> LocalConfig.kmk
  29. cd $SRC/VirtualBox-${surum}
  30. ./configure \
  31. --disable-docs \
  32. --disable-kmods \
  33. --disable-vmmraw \
  34. --disable-python \
  35. --enable-pulse \
  36. --enable-vde \
  37. --enable-vnc \
  38. --nofatal \
  39. --enable-qt5
  40. source ./env.sh
  41. kmk KBUILD_VERBOSE=2 all
  42. source $SRC/VirtualBox-${surum}/env.sh
  43. cd $SRC/VirtualBox-${surum}/out/linux.amd64/release/bin
  44. # ikililer
  45. install -dm755 ${PKG}/usr/bin
  46. install -m755 VBox.sh ${PKG}/usr/bin/VBox
  47. for i in VBoxHeadless VBoxManage VBoxSDL VirtualBox VBoxBalloonCtrl; do
  48. ln -sf VBox ${PKG}/usr/bin/$i
  49. ln -sf VBox ${PKG}/usr/bin/${i,,}
  50. done
  51. install -m755 VBoxTunctl ${PKG}/usr/bin
  52. # kütüphaneler
  53. install -dm755 ${PKG}/usr/lib/virtualbox
  54. install -m755 *.so ${PKG}/usr/lib/virtualbox
  55. install -m644 *.r0 VBoxEFI*.fd ${PKG}/usr/lib/virtualbox
  56. ## kök dizin izinleri
  57. install -m4755 VBoxSDL VirtualBox VBoxHeadless VBoxNetDHCP VBoxNetAdpCtl VBoxNetNAT -t ${PKG}/usr/lib/virtualbox
  58. ## diğer ikililer
  59. install -m755 VBoxManage VBoxSVC VBoxExtPackHelperApp VBoxXPCOMIPCD VBoxTestOGL VBoxBalloonCtrl -t ${PKG}/usr/lib/virtualbox
  60. # bileşenler
  61. install -dm755 ${PKG}/usr/lib/virtualbox/components
  62. install -m755 components/* -t ${PKG}/usr/lib/virtualbox/components
  63. # ek paketler pasif şuan
  64. #install -dm755 ${PKG}/usr/lib/virtualbox/ExtensionPacks
  65. #install -m755 ExtensionPacks/* -t ${PKG}/usr/lib/virtualbox/ExtensionPacks
  66. # dil desteği
  67. install -dm755 ${PKG}/usr/share/virtualbox/nls
  68. install -m755 nls/*.qm -t ${PKG}/usr/share/virtualbox/nls
  69. # betikler
  70. install -m755 VBoxCreateUSBNode.sh VBoxSysInfo.sh -t ${PKG}/usr/share/virtualbox
  71. # simge seti
  72. install -Dm644 VBox.png ${PKG}/usr/share/pixmaps/VBox.png
  73. pushd icons >/dev/null
  74. for i in *; do
  75. install -d ${PKG}/usr/share/icons/hicolor/$i/mimetypes
  76. cp $i/* ${PKG}/usr/share/icons/hicolor/$i/mimetypes
  77. done
  78. popd >/dev/null
  79. # masaüstü
  80. install -Dm644 virtualbox.desktop ${PKG}/usr/share/applications/virtualbox.desktop
  81. install -Dm644 virtualbox.xml ${PKG}/usr/share/mime/packages/virtualbox.xml
  82. # ayar dosyaları
  83. install -dm755 ${PKG}/etc/vbox
  84. echo 'INSTALL_DIR=/usr/lib/virtualbox' > ${PKG}/etc/vbox/vbox.cfg
  85. install -dm755 ${PKG}/etc/ld.so.conf.d
  86. echo '/usr/lib/virtualbox' > ${PKG}/etc/ld.so.conf.d/virtualbox.conf
  87. cd ${SRC}
  88. install -Dm644 VirtualBox-${surum}/COPYING ${PKG}/usr/share/licenses/$isim/LICENSE
  89. # udev kuralları
  90. install -Dm644 60-vboxdrv.rules ${PKG}/usr/lib/udev/rules.d/60-vboxdrv.rules
  91. # ekler
  92. pushd VirtualBox-${surum}/out/linux.amd64/release/bin/additions
  93. install -d ${PKG}/usr/bin
  94. install -m755 VBoxClient VBoxControl VBoxService mount.vboxsf ${PKG}/usr/bin
  95. install -m755 -D ${SRC}/VirtualBox-${surum}/src/VBox/Additions/x11/Installer/98vboxadd-xclient ${PKG}/usr/bin/VBoxClient-all
  96. install -m755 -D ${SRC}/VirtualBox-${surum}/src/VBox/Additions/x11/Installer/vboxclient.desktop ${PKG}/etc/xdg/autostart/vboxclient.desktop
  97. #install -D vboxvideo_drv_system.so ${PKG}/usr/lib/xorg/modules/drivers/vboxvideo.so
  98. install -d ${PKG}/usr/lib/xorg/modules/dri
  99. install -m755 VBoxOGL*.so ${PKG}/usr/lib
  100. ln -s /usr/lib/VBoxOGL.so ${PKG}/usr/lib/xorg/modules/dri/vboxvideo_dri.so
  101. install -m755 -D pam_vbox.so ${PKG}/usr/lib/security/pam_vbox.so
  102. popd
  103. install -Dm644 60-vboxguest.rules ${PKG}/usr/lib/udev/rules.d/60-vboxguest.rules
  104. # servis dosyası eklenebilir- serkur ile de kurulabilir.
  105. }