virtualbox-cli-talimat-iptal
This commit is contained in:
parent
73ecfb183c
commit
dd3f3fc27e
|
@ -1,50 +0,0 @@
|
|||
# Tanım: VirtualBox, güçlü bir 32 ve 64 bit sanallaştırma ürünüdür
|
||||
# URL: http://virtualbox.org
|
||||
# Paketçi: milisarge
|
||||
# Gerekler:
|
||||
# Grup: sistem
|
||||
|
||||
builddevir=104815
|
||||
isim=virtualbox-cli
|
||||
surum=5.0.12
|
||||
devir=1
|
||||
|
||||
[ "`uname -m`" == "i686" ] && _ARCH=x86
|
||||
[ "`uname -m`" == "x86_64" ] && _ARCH=amd64
|
||||
|
||||
kaynak=(http://download.virtualbox.org/virtualbox/${surum}/VirtualBox-${surum}-${buildrelease}-Linux_${_ARCH}.run)
|
||||
|
||||
derle() {
|
||||
sh VirtualBox-${surum}-${buildrelease}-Linux_${_ARCH}.run --target vb --keep --noexec
|
||||
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
|
||||
cat > $PKGMK_ROOT/$isim.post-install << "EOF"
|
||||
. lib/lsb/init-functions
|
||||
log_success_msg "update modules population"
|
||||
EOF
|
||||
echo "depmod $KERNELRELEASE" >> $PKGMK_ROOT/$isim.post-install
|
||||
cat >> $PKGMK_ROOT/$isim.post-install << "EOF"
|
||||
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
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
# Tanım: VirtualBox is a powerfull 32 and 64 bits virtualization product
|
||||
# URL: http://virtualbox.org
|
||||
# Paketçi: tnut at nutyx dot org
|
||||
|
||||
builddevir=102546
|
||||
isim=virtualbox-cli
|
||||
surum=5.0.4
|
||||
devir=2
|
||||
|
||||
[ "`uname -m`" == "i686" ] && _ARCH=x86
|
||||
[ "`uname -m`" == "x86_64" ] && _ARCH=amd64
|
||||
|
||||
kaynak=(http://download.virtualbox.org/virtualbox/${surum}/VirtualBox-${surum}-${buildrelease}-Linux_${_ARCH}.run)
|
||||
|
||||
derle() {
|
||||
sh VirtualBox-${surum}-${buildrelease}-Linux_${_ARCH}.run --target vb --keep --noexec
|
||||
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
|
||||
cat > $PKGMK_ROOT/$isim.post-install << "EOF"
|
||||
. lib/lsb/init-functions
|
||||
log_success_msg "update modules population"
|
||||
EOF
|
||||
echo "depmod $KERNELRELEASE" >> $PKGMK_ROOT/$isim.post-install
|
||||
cat >> $PKGMK_ROOT/$isim.post-install << "EOF"
|
||||
log_warning_msg "${WARNING}Check the file /etc/modprobe.d/virtualbox.conf ${NORMAL}"
|
||||
log_warning_msg "${WARNING}Reboot if you want the modules being automatically loaded${NORMAL}"
|
||||
EOF
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
. lib/lsb/init-functions
|
||||
if [ -z "`cards list|grep kernel-lts\ `" ]; then
|
||||
log_warning_msg "${WARNING}kernel-lts${NORMAL} is not installed"
|
||||
log_warning_msg "${WARNING}Either recompile the 'virtualbox-cli' package with your kernel, either using the kernel 'kernel-LTS"
|
||||
fi
|
Loading…
Reference in New Issue