talimat 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Tanım: Açık Sanal Makine Araçları çekirdek modülleri
  2. # URL: http://open-vm-tools.sourceforge.net/
  3. # Paketçi: milisarge
  4. # Gerekler: kernel
  5. # Grup: sistem
  6. isim=open-vm-tools-kernel
  7. _isim=open-vm-tools
  8. surum=10.0.0
  9. _altsurum=3000743
  10. _surum="${surum}-${_altsurum}"
  11. _tamisim="${_isim}-${_surum}"
  12. _dkms_surum='2015.01.29'
  13. devir=1
  14. kaynak=(http://downloads.sourceforge.net/open-vm-tools/open-vm-tools-10.0.0-3000743.tar.gz
  15. 0001-Fix-vmxnet-module-on-kernels-3.16.patch
  16. 0004-Support-backing-dev-info-kernel-4.0.patch
  17. 0005-Remove-new_sync-for-Linux-4.1.patch
  18. 0006-vmhgfs-support-linux-4.2.x-kernel.patch)
  19. derle() {
  20. patch -d "$SRC/${_tamisim}" -Np2 -i "$SRC/0001-Fix-vmxnet-module-on-kernels-3.16.patch"
  21. patch -d "$SRC/${_tamisim}" -Np2 -i "$SRC/0004-Support-backing-dev-info-kernel-4.0.patch"
  22. patch -d "$SRC/${_tamisim}" -Np2 -i "$SRC/0005-Remove-new_sync-for-Linux-4.1.patch"
  23. patch -d "$SRC/${_tamisim}" -Np2 -i "$SRC/0006-vmhgfs-support-linux-4.2.x-kernel.patch"
  24. cd "$SRC/${_tamisim}"
  25. [ -f /usr/src/linux-$(uname -r)/vmlinux ] && rm /usr/src/linux-$(uname -r)/vmlinux
  26. sed -i "s/${_dkms_surum}/${surum}/g" ./modules/linux/dkms.sh
  27. sh ./modules/linux/dkms.sh ./ "${PKG}/usr/src"
  28. for _module in {"vmblock","vmci","vmsync","vsock"}; do
  29. rm -rf "${PKG}/usr/src/${_isim}-${surum}/${_module}"
  30. done
  31. }