talimat 799 B

12345678910111213141516171819202122
  1. # Tanım: VirtualBox kernel modules
  2. # URL: https://virtualbox.org
  3. # Paketçi: milisarge
  4. # Gerekler: kernel elfutils
  5. # Grup: sistem
  6. isim=virtualbox-modules
  7. surum=5.2.22
  8. devir=1
  9. kaynak=(https://sourceforge.net/projects/kaosx/files/sources/virtualbox-modules/vbox-kernel-module-src-${surum}.tar.xz)
  10. derle() {
  11. _kernver="`ls /lib/modules`"
  12. [ -f /lib/modules/${_kernver}/build/vmlinux ] && rm -rf /lib/modules/${_kernver}/build/vmlinux
  13. cd $SRC/vbox-kernel-module-src-${surum}
  14. make KERN_DIR=/lib/modules/${_kernver}/build MODULE_DIR_TST=${PKG}/lib/modules/${_kernver} \
  15. MODULE_DIR=${PKG}/lib/modules/${_kernver}/misc
  16. cd $SRC/vbox-kernel-module-src-${surum}
  17. install -dm755 ${PKG}/lib/modules/${_kernver}/extra
  18. install -m644 *.ko ${PKG}/lib/modules/${_kernver}/extra/
  19. }