2018-07-11 11:07:05 +02:00
|
|
|
|
# Tanım: VirtualBox kernel modules
|
|
|
|
|
# URL: https://virtualbox.org
|
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: kernel elfutils
|
|
|
|
|
# Grup: sistem
|
|
|
|
|
|
|
|
|
|
isim=virtualbox-modules
|
|
|
|
|
surum=5.2.14
|
2018-10-12 20:19:52 +02:00
|
|
|
|
devir=3
|
2018-07-11 11:07:05 +02:00
|
|
|
|
kaynak=(https://sourceforge.net/projects/kaosx/files/sources/virtualbox-modules/vbox-kernel-module-src-${surum}.tar.xz)
|
|
|
|
|
|
|
|
|
|
derle() {
|
2018-08-29 12:10:23 +02:00
|
|
|
|
_kernver="`ls /lib/modules`"
|
2018-07-12 11:48:51 +02:00
|
|
|
|
[ -f /lib/modules/${_kernver}/build/vmlinux ] && rm -rf /lib/modules/${_kernver}/build/vmlinux
|
2018-07-11 11:07:05 +02:00
|
|
|
|
cd $SRC/vbox-kernel-module-src-${surum}
|
|
|
|
|
make KERN_DIR=/lib/modules/${_kernver}/build MODULE_DIR_TST=${PKG}/lib/modules/${_kernver} \
|
|
|
|
|
MODULE_DIR=${PKG}/lib/modules/${_kernver}/misc
|
|
|
|
|
cd $SRC/vbox-kernel-module-src-${surum}
|
|
|
|
|
install -dm755 ${PKG}/lib/modules/${_kernver}/extra
|
|
|
|
|
install -m644 *.ko ${PKG}/lib/modules/${_kernver}/extra/
|
|
|
|
|
}
|