2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: VirtualBox, güçlü bir 32 ve 64 bit sanallaştırma ürünüdür
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://virtualbox.org
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
builddevir=104815
|
|
|
|
|
isim=virtualbox-cli
|
|
|
|
|
surum=5.0.12
|
|
|
|
|
devir=1
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
[ "`uname -m`" == "i686" ] && _ARCH=x86
|
|
|
|
|
[ "`uname -m`" == "x86_64" ] && _ARCH=amd64
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
kaynak=(http://download.virtualbox.org/virtualbox/${surum}/VirtualBox-${surum}-${buildrelease}-Linux_${_ARCH}.run)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
sh VirtualBox-${surum}-${buildrelease}-Linux_${_ARCH}.run --target vb --keep --noexec
|
2016-02-24 01:27:23 +01:00
|
|
|
|
cd vb
|
|
|
|
|
tar xfj VirtualBox.tar.bz2
|
|
|
|
|
cd src/vboxhost/
|
|
|
|
|
|
|
|
|
|
KERNELRELEASE=`uname -r`
|
|
|
|
|
|
|
|
|
|
KERN_DIR=/usr/src/linux-${KERNELRELEASE%.*} make
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/lib/modules/${KERNELRELEASE}/kernel/drivers/zzzz
|
|
|
|
|
for i in *.ko
|
|
|
|
|
do
|
|
|
|
|
install -D -m0644 $i \
|
|
|
|
|
$PKG/lib/modules/${KERNELRELEASE}/kernel/drivers/zzzz/$i
|
|
|
|
|
done
|
|
|
|
|
mkdir -p $PKG/etc/sysconfig/modules.d
|
|
|
|
|
cat > $PKG/etc/sysconfig/modules.d/virtualbox.conf << "EOF"
|
|
|
|
|
vboxdrv
|
|
|
|
|
vboxnetadp
|
|
|
|
|
vboxnetflt
|
|
|
|
|
vboxpci
|
|
|
|
|
EOF
|
|
|
|
|
# post-install autogen
|
2017-10-28 14:10:23 +02:00
|
|
|
|
cat > $PKGMK_ROOT/$isim.post-install << "EOF"
|
2016-02-24 01:27:23 +01:00
|
|
|
|
. lib/lsb/init-functions
|
|
|
|
|
log_success_msg "update modules population"
|
|
|
|
|
EOF
|
2017-10-28 14:10:23 +02:00
|
|
|
|
echo "depmod $KERNELRELEASE" >> $PKGMK_ROOT/$isim.post-install
|
|
|
|
|
cat >> $PKGMK_ROOT/$isim.post-install << "EOF"
|
2016-02-24 01:27:23 +01:00
|
|
|
|
log_warning_msg "${WARNING}Check the file /etc/sysconfig/modules.d/virtualbox.conf ${NORMAL}"
|
|
|
|
|
log_warning_msg "${WARNING}Reboot if you want the modules being automatically loaded${NORMAL}"
|
|
|
|
|
EOF
|
|
|
|
|
}
|