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: virtualbox-cli sdl
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=virtualbox
|
|
|
|
|
surum=5.0.12
|
|
|
|
|
devir=1
|
|
|
|
|
_isim=Oracle_VM_VirtualBox_Extension_Pack
|
|
|
|
|
_devir=104815
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2016-03-10 10:57:03 +01:00
|
|
|
|
DOSYAIZLEME_YOKSAY="evet"
|
|
|
|
|
MD5SUM_YOKSAY="evet"
|
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}-${_release}-Linux_${_ARCH}.run
|
|
|
|
|
http://download.virtualbox.org/virtualbox/$surum/${_name}-${surum}-${_release}.vbox-extpack
|
2016-02-24 01:27:23 +01:00
|
|
|
|
virtualbox.60-vboxdrv.rules)
|
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:10:23 +02:00
|
|
|
|
sh VirtualBox-${surum}-${_release}-Linux_${_ARCH}.run --keep --noexec --target $SRC/
|
2016-02-24 01:27:23 +01:00
|
|
|
|
mkdir -p $PKG/opt/VirtualBox $PKG/etc/vbox $PKG/usr/bin $PKG/etc/udev/rules.d/ \
|
|
|
|
|
$PKG/usr/share/applications/ $PKG/usr/share/pixmaps/
|
|
|
|
|
cd $PKG/opt/VirtualBox
|
|
|
|
|
tar xfj $SRC/VirtualBox.tar.bz2
|
|
|
|
|
rm -Rf $PKG/opt/VirtualBox/sdk
|
|
|
|
|
for i in VirtualBox VBoxManage VBoxSDL VBoxHeadless
|
|
|
|
|
do ln -s /opt/VirtualBox/VBox.sh $PKG/usr/bin/$i
|
|
|
|
|
done
|
|
|
|
|
cd components
|
|
|
|
|
for i in VBoxDDU.so VBoxREM.so VBoxRT.so VBoxVMM.so VBoxXPCOM.so
|
|
|
|
|
do ln -s ../$i .
|
|
|
|
|
done
|
|
|
|
|
ln -s /opt/VirtualBox/rdesktop-vrdp $PKG/usr/bin/rdesktop-vrdp
|
|
|
|
|
mv $PKG/opt/VirtualBox/VBox.png $PKG/usr/share/pixmaps/VBox.png
|
|
|
|
|
mv $PKG/opt/VirtualBox/virtualbox.desktop $PKG/usr/share/applications/virtualbox.desktop
|
|
|
|
|
chmod +s $PKG/opt/VirtualBox/{VirtualBox,VBoxSDL,VBoxHeadless}
|
|
|
|
|
|
|
|
|
|
mkdir -p $PKG/etc/udev/rules.d
|
|
|
|
|
cp $SRC/virtualbox.60-vboxdrv.rules $PKG/etc/udev/rules.d/60-vboxdrv.rules
|
|
|
|
|
|
|
|
|
|
echo "# VirtualBox installation directory" > \
|
|
|
|
|
$PKG/etc/vbox/vbox.cfg
|
|
|
|
|
echo "INSTALL_DIR="\"/opt/VirtualBox\" >> \
|
|
|
|
|
$PKG/etc/vbox/vbox.cfg
|
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
install -D -m 644 $SRC/${_name}-$surum-${_release}.vbox-extpack \
|
|
|
|
|
$PKG/opt/VirtualBox/ExtensionPacks/${_name}-$surum-${_release}.vbox-extpack
|
2016-02-24 01:27:23 +01:00
|
|
|
|
mkdir -p $PKG/etc/ld.so.conf.d
|
|
|
|
|
echo /opt/VirtualBox > $PKG/etc/ld.so.conf.d/virtualbox.conf
|
|
|
|
|
# Icon
|
|
|
|
|
ln -s VBox.png $PKG/usr/share/pixmaps/virtualbox.png
|
|
|
|
|
# Source code files obsolet
|
|
|
|
|
rm -r $PKG/opt/VirtualBox/src
|
|
|
|
|
}
|