mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-12 14:45:10 +08:00
Merge branch 'testing' of gitorious.org:chakra-packages/apps into testing
This commit is contained in:
commit
2ac2613b44
@ -1,98 +1,73 @@
|
||||
#
|
||||
# Chakra Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
||||
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
||||
|
||||
# include global config
|
||||
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
||||
# maintainer (abveritas[at]chakra-project[dot]org>
|
||||
|
||||
pkgbase=avidemux
|
||||
pkgname=('avidemux-cli' 'avidemux')
|
||||
pkgver=2.5.4
|
||||
pkgrel=2
|
||||
arch=('i686' 'x86_64')
|
||||
pkgver=2.6.1
|
||||
pkgrel=1
|
||||
pkgdesc='Simple video editor for cutting, filtering and encoding tasks.'
|
||||
arch=('x86_64')
|
||||
license=('GPL')
|
||||
url="http://fixounet.free.fr/avidemux/"
|
||||
makedepends=('cmake' 'libxslt' 'qt' 'jack' 'esound' 'libvorbis' 'sdl' 'libxv'
|
||||
'alsa-lib' 'lame' 'xvidcore' 'faad2' 'faac' 'x264' 'libsamplerate' 'opencore-amr' 'yasm')
|
||||
source=(http://downloads.sourceforge.net/avidemux/avidemux_${pkgver}.tar.gz)
|
||||
screenshot="http://upload.wikimedia.org/wikipedia/commons/7/77/Avidemux_Screenshot_Qt.png"
|
||||
makedepends=('cmake' 'libxslt' 'qt' 'jack' 'libvorbis' 'sdl' 'libxv' 'alsa-lib' 'lame' 'xvidcore'
|
||||
'faad2' 'faac' 'x264' 'libsamplerate' 'opencore-amr' 'yasm' 'mesa' 'libvpx'
|
||||
'pulseaudio' 'libva' 'desktop-file-utils')
|
||||
categories=('multimedia')
|
||||
md5sums=('b849460f6480df92bfd72d1a3dc288d4')
|
||||
options=("!makeflags")
|
||||
source=("http://downloads.sourceforge.net/avidemux/avidemux_${pkgver}.tar.gz")
|
||||
sha256sums=('17ad853a306e6cfed9166ee36b014748ea7b24a62e035b489ed97fbd8d91afc2')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgbase}_${pkgver}"
|
||||
#patch -Np1 -i "${srcdir}/2.5.3_field_asm_fix.diff" || return 1
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_BUILD_TYPE=Release -D CMAKE_SKIP_RPATH=ON -D GTK=0 -D QT4=1 .. || return 1
|
||||
make || return 1
|
||||
# build
|
||||
bash ./bootStrap.bash --with-core \
|
||||
--with-cli \
|
||||
--with-qt4 \
|
||||
--without-gtk \
|
||||
--with-plugins
|
||||
|
||||
# plugin build expects libraries to be already installed; we fake a prefix
|
||||
# in build/ by symlinking all libraries to build/lib/
|
||||
mkdir -p lib
|
||||
cd lib
|
||||
find ../avidemux -name '*.so*' | xargs ln -sft . || return 1
|
||||
cd ../../plugins
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -D CMAKE_INSTALL_PREFIX=/usr -D AVIDEMUX_SOURCE_DIR=${srcdir}/avidemux_${pkgver} \
|
||||
-D AVIDEMUX_CORECONFIG_DIR=${srcdir}/avidemux_${pkgver}/build/config \
|
||||
-D AVIDEMUX_INSTALL_PREFIX=${srcdir}/avidemux_${pkgver}/build \
|
||||
-D CMAKE_BUILD_TYPE=Release -D CMAKE_SKIP_RPATH=ON -D GTK=0 -D QT4=1 .. || return 1
|
||||
make || return 1
|
||||
# Create qm files
|
||||
cd po
|
||||
lrelease *.po
|
||||
}
|
||||
|
||||
package_avidemux-cli() {
|
||||
pkgdesc="A graphical tool to edit video (filter/re-encode/split)"
|
||||
depends=('libxv' 'libxml2' 'sdl')
|
||||
optdepends=('lame: for the corresponding audio encoder plugin' \
|
||||
'faac: for the corresponding audio encoder plugin' \
|
||||
'faad2: for the corresponding audio decoder plugin' \
|
||||
'opencore-amr: for the corresponding audio decoder plugin' \
|
||||
'esound: for the corresponding audio device plugin' \
|
||||
'jack: for the corresponding audio device plugin' \
|
||||
'sdl: for the corresponding audio device plugin' \
|
||||
'x264: for the corresponding video encoder plugin' \
|
||||
depends=('libxv' 'libxml2' 'sdl' 'fontconfig' 'libvpx')
|
||||
optdepends=('lame: for the corresponding audio encoder plugin'
|
||||
'faac: for the corresponding audio encoder plugin'
|
||||
'faad2: for the corresponding audio decoder plugin'
|
||||
'opencore-amr: for the corresponding audio decoder plugin'
|
||||
'jack: for the corresponding audio device plugin'
|
||||
'pulseaudio: for the corresponding audio device plugin'
|
||||
'sdl: for the corresponding audio device plugin'
|
||||
'x264: for the corresponding video encoder plugin'
|
||||
'xvidcore: for the corresponding video encoder plugin')
|
||||
|
||||
cd "${srcdir}/${pkgbase}_${pkgver}/build"
|
||||
make DESTDIR="${pkgdir}" install || return 1
|
||||
|
||||
cd "${srcdir}/${pkgbase}_${pkgver}/plugins/build"
|
||||
make DESTDIR="${pkgdir}" install || return 1
|
||||
rm -r "${pkgdir}"/usr/share/avidemux
|
||||
rm "${pkgdir}"/usr/bin/avidemux2_qt4
|
||||
rm "${pkgdir}"/usr/lib/*{_qt4,QT4}.so
|
||||
rm "${pkgdir}"/usr/lib/ADM_plugins/videoEncoder/x264/*Qt.so
|
||||
rm "${pkgdir}"/usr/lib/ADM_plugins/videoEncoder/xvid/*Qt.so
|
||||
rm "${pkgdir}"/usr/lib/ADM_plugins/videoFilter/*_qt4.so
|
||||
|
||||
ln -s /usr/lib/ADM_plugins/videoEncoder/libADM_vidEnc_xvid.so "${pkgdir}/usr/lib/libADM_vidEnc_xvid.so"
|
||||
ln -s /usr/lib/ADM_plugins/videoEncoder/libADM_vidEnc_x264.so "${pkgdir}/usr/lib/libADM_vidEnc_x264.so"
|
||||
|
||||
install -D -m644 ../../avidemux_icon.png "${pkgdir}/usr/share/pixmaps/avidemux.png" || return 1
|
||||
install -D -m644 ../../man/avidemux.1 "${pkgdir}/usr/share/man/man1/avidemux.1" || return 1
|
||||
cd "${srcdir}/${pkgbase}_${pkgver}"
|
||||
(cd buildCli; make DESTDIR="${pkgdir}" install)
|
||||
(cd buildCore; make DESTDIR="${pkgdir}" install)
|
||||
(cd buildPluginsCLI; make DESTDIR="${pkgdir}" install)
|
||||
(cd buildPluginsCommon; make DESTDIR="${pkgdir}" install)
|
||||
|
||||
install -D -m644 "${srcdir}/${pkgbase}_${pkgver}/avidemux_icon.png" "${pkgdir}/usr/share/pixmaps/avidemux.png"
|
||||
install -D -m644 "${srcdir}/${pkgbase}_${pkgver}/man/avidemux.1" "${pkgdir}/usr/share/man/man1/avidemux.1"
|
||||
}
|
||||
|
||||
package_avidemux() {
|
||||
pkgdesc="A graphical tool to edit video (filter/re-encode/split)"
|
||||
depends=('avidemux-cli' 'qt')
|
||||
depends=('avidemux-cli' 'qt' 'mesa')
|
||||
|
||||
cd "${srcdir}/${pkgbase}_${pkgver}"
|
||||
install -D -m755 build/avidemux/avidemux2_qt4 "${pkgdir}/usr/bin/avidemux" || return 1
|
||||
install -d "${pkgdir}"/usr/lib/ADM_plugins/videoEncoder/{x264,xvid}
|
||||
install -d "${pkgdir}"/usr/lib/ADM_plugins/videoFilter
|
||||
|
||||
(cd buildQt4; make DESTDIR="${pkgdir}" install)
|
||||
(cd buildPluginsQt4; make DESTDIR="${pkgdir}" install)
|
||||
|
||||
install -D -m755 build/lib/*{_qt4,QT4}.so "${pkgdir}/usr/lib"
|
||||
install -D -m755 plugins/build/ADM_videoEncoder/ADM_vidEnc_x264/qt4/*Qt.so "${pkgdir}/usr/lib/ADM_plugins/videoEncoder/x264"
|
||||
install -D -m755 plugins/build/ADM_videoEncoder/ADM_vidEnc_xvid/qt4/*Qt.so "${pkgdir}/usr/lib/ADM_plugins/videoEncoder/xvid"
|
||||
install -D -m755 plugins/build/ADM_videoFilters/*/*_qt4.so "${pkgdir}/usr/lib/ADM_plugins/videoFilter"
|
||||
install -D -m644 avidemux2.desktop "${pkgdir}/usr/share/applications/avidemux-qt.desktop"
|
||||
sed -i 's|2_gtk|3_qt4|' "${pkgdir}/usr/share/applications/avidemux-qt.desktop"
|
||||
|
||||
install -d "${pkgdir}/usr/share/avidemux/i18n"
|
||||
install -D -m644 build/po/*.qm "${pkgdir}/usr/share/avidemux/i18n"
|
||||
|
||||
install -D -m644 avidemux2.desktop "${pkgdir}/usr/share/applications/avidemux.desktop" || return 1
|
||||
sed -i 's/Name=avidemux2/Name=avidemux/' "${pkgdir}/usr/share/applications/avidemux.desktop" || return 1
|
||||
sed -i 's/avidemux2_gtk/avidemux/' "${pkgdir}/usr/share/applications/avidemux.desktop" || return 1
|
||||
rm "${pkgdir}"/usr/lib/ADM_plugins6/pluginSettings/x264/1/{PSP.json,iPhone.json}
|
||||
}
|
||||
|
@ -4,8 +4,8 @@
|
||||
# maintainer abveritas@chakra-project.org
|
||||
|
||||
pkgname=blender
|
||||
pkgver=2.65
|
||||
_pkgver=2.65
|
||||
pkgver=2.65.1
|
||||
_pkgver=2.65a
|
||||
pkgrel=1
|
||||
pkgdesc="A fully integrated 3D graphics creation suite"
|
||||
arch=('x86_64')
|
||||
@ -19,7 +19,7 @@ makedepends=('cmake' 'boost' 'mesa')
|
||||
screenshot=('http://www.blender.org/index.php?eID=tx_cms_showpic&file=uploads%2Fpics%2Fblender_screenshot3_03.png&width=800m&height=600m&bodyTag=%3Cbody%20style%3D%22margin%3A0%3B%20background%3A%23fff%3B%22%3E&wrap=%3Ca%20href%3D%22javascript%3Aclose%28%29%3B%22%3E%20%7C%20%3C%2Fa%3E&md5=cddc8ef0fbe1e90d0d22e78b4911860b')
|
||||
install=blender.install
|
||||
source=("http://download.blender.org/source/$pkgname-$_pkgver.tar.gz")
|
||||
md5sums=('cbb41d2db90b7bcbdc17af404058e76a')
|
||||
md5sums=('3bbe18060c5c9c2ad600c8bfe8ee4786')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$_pkgver"
|
||||
|
@ -1,5 +1,6 @@
|
||||
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
|
||||
SUBSYSTEM=="usb_device", ACTION=="add", RUN="VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
|
||||
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN="VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass}"
|
||||
SUBSYSTEM=="usb_device", ACTION=="remove", RUN="VBoxCreateUSBNode.sh --remove $major $minor"
|
||||
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="VBoxCreateUSBNode.sh --remove $major $minor"
|
||||
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600" ENV{ACL_MANAGE}="1"
|
||||
SUBSYSTEM=="usb_device", ACTION=="add", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
|
||||
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers"
|
||||
SUBSYSTEM=="usb_device", ACTION=="remove", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
|
||||
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN="/usr/share/virtualbox/VBoxCreateUSBNode.sh --remove $major $minor"
|
||||
|
||||
|
@ -1,65 +1,76 @@
|
||||
#
|
||||
# Apps Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# Maintainer abveritas@chakra-project.org
|
||||
# Maintainer: Michael Haesel <michael[dot]haesel[at]gmail[dot]com>
|
||||
# Contributor: Sebastien Luttringer <seblu[plus]arch[at]seblu[dot]net>
|
||||
|
||||
pkgname=virtualbox
|
||||
pkgver=4.2.2
|
||||
_build=81494
|
||||
pkgrel=2
|
||||
pkgdesc='Oracle VM VirtualBox Binary Edition'
|
||||
arch=('i686' 'x86_64')
|
||||
#
|
||||
# The VirtualBox Guest Additions are extracted into the ${srcdir}, but with
|
||||
# root rights. So a simple :cp can't delete them. Please remove the ${srcdir}
|
||||
# with sudo rm -R src.
|
||||
#
|
||||
|
||||
pkgbase=virtualbox
|
||||
pkgname=('virtualbox' 'virtualbox-ext-oracle' 'virtualbox-guest-additions')
|
||||
pkgver=4.2.6
|
||||
_build=82870
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
url='http://virtualbox.org/'
|
||||
screenshot='https://www.virtualbox.org/raw-attachment/wiki/Screenshots/gnome.png'
|
||||
license=('GPL2')
|
||||
depends=('libidl2' 'libxcursor' 'libxinerama' 'libxslt' 'curl' 'linux-headers'
|
||||
'python2' 'make' 'gcc')
|
||||
license=('GPL2' 'custom:PUEL')
|
||||
options=('!strip')
|
||||
optdepends=('virtualbox-ext-oracle: for Oracle extensions'
|
||||
'dkms: for handling kernel modules with dkms'
|
||||
'qt: for GUI support'
|
||||
'sdl: for VBoxSDL and GUI support'
|
||||
'mesa: for OpenGL support'
|
||||
'libgl: for shared OpenGL support'
|
||||
'libxt: for shared clipboard support'
|
||||
'alsa-lib: for ALSA support'
|
||||
'pulseaudio: for PulseAudio support')
|
||||
provides=("virtualbox=${pkgver}")
|
||||
conflicts=('virtualbox' 'virtualbox-ose' 'virtualbox-modules')
|
||||
categories=('system')
|
||||
backup=('etc/vbox/vbox.cfg' 'etc/conf.d/vboxdrv' 'etc/conf.d/vboxweb' 'etc/modules-load.d/virtualbox.conf')
|
||||
install=${pkgname}.install
|
||||
|
||||
_sarch='x86'
|
||||
[ "${CARCH}" = 'x86_64' ] && _sarch='amd64'
|
||||
|
||||
source=("VirtualBox-${pkgver}-${_build}-Linux_${_sarch}.run::http://download.virtualbox.org/virtualbox/${pkgver}/VirtualBox-${pkgver}-${_build}-Linux_${_sarch}.run"
|
||||
makedepends=('libidl2' 'libxcursor' 'libxinerama' 'libxslt' 'curl' 'linux-headers' 'python2' 'make' 'gcc')
|
||||
source=("VirtualBox-${pkgver}-${_build}-Linux_amd64.run::http://download.virtualbox.org/virtualbox/${pkgver}/VirtualBox-${pkgver}-${_build}-Linux_amd64.run"
|
||||
"http://download.virtualbox.org/virtualbox/${pkgver}/Oracle_VM_VirtualBox_Extension_Pack-${pkgver}-${_build}.vbox-extpack"
|
||||
"http://download.virtualbox.org/virtualbox/${pkgver}/VBoxGuestAdditions_${pkgver}.iso"
|
||||
'10-vboxdrv.rules'
|
||||
'vboxdrv.rc'
|
||||
'vboxdrv.conf'
|
||||
'vboxweb.rc'
|
||||
'vboxweb.conf'
|
||||
'vboxweb.service'
|
||||
'vboxusb.service'
|
||||
'virtualbox.conf'
|
||||
'vboxsetup.sh')
|
||||
sha256sums=('a4d1d1f3047fb3e242338dbaa59d781b189d58021a04d29aac0a3f8ab7b54733'
|
||||
'69417a9e8855cab8e4878886abe138f559fd17ae487d4cd19c8a24974a8bbec2'
|
||||
'7fc3a205575f0f1ae8875e8593bfb08959fd6ee45eed2edf25509e8bd225a3dc'
|
||||
'vboxsetup.sh'
|
||||
'PUEL'
|
||||
'vboxservice.service')
|
||||
sha256sums=('7e8a85289934d243682f500e42799d0409440ef5380225fba45850851d0df893'
|
||||
'f0113688a76efa0426c27c5541c78506b18637025c35aa682ecc6eeed5d56582'
|
||||
'b9afd356d85fe6822fd28009fd63faddd2ac7cbd75c415ea4ce6a22925243ed3'
|
||||
'f4182fa7c3f109aefb7da84f16bc40f34c46eb768144e7ab373b9311c41f175b'
|
||||
'71740893a5f226f9d9fcc607ab9d39b7de816b2759625b34da19162bc7e579ff'
|
||||
'656905de981ffa24f6f921c920538854a235225053f44baedacc07b46ca0cf56'
|
||||
'12dbba3b59991f2b68cddeeeda20236aeff63e11b7e2d1b08d9d6a82225f6651'
|
||||
'e6e875ef186578b53106d7f6af48e426cdaf1b4e86834f01696b8ef1c685787f'
|
||||
'251750f41d334ef9871194b3407c2ee2c0330eac92849c6b5d30c46e5c72b765'
|
||||
'9b3c4dc5385fb3b4aeb841043384879c5c7ee926f5343d6a4177e913604f869d'
|
||||
'28833ef89fed96aa2cdb071c98687e8aa88e3c4c249b261f9b905e6621fa0e23')
|
||||
'28833ef89fed96aa2cdb071c98687e8aa88e3c4c249b261f9b905e6621fa0e23'
|
||||
'50658c653cde4dc43ba73a64c72761d2e996fd8e360fc682aa2844e1ad5b045f'
|
||||
'aaa8d3d71c8585edf43ed11676ccd567cc85fc23752d3c3499506741cef3c9ba')
|
||||
|
||||
[[ "${CARCH}" = i686 ]] && sha256sums[0]='e084db553064fb85136df22d13f262fef602daca56b95799cef7df761310a8d5'
|
||||
_installdir='/opt/VirtualBox'
|
||||
|
||||
package() {
|
||||
package_virtualbox() {
|
||||
pkgdesc='Oracle VM VirtualBox Binary Edition'
|
||||
arch=('x86_64')
|
||||
screenshot='https://www.virtualbox.org/raw-attachment/wiki/Screenshots/gnome.png'
|
||||
license=('GPL2')
|
||||
depends=('libidl2' 'libxcursor' 'libxinerama' 'libxslt' 'curl' 'linux-headers'
|
||||
'python2' 'make' 'gcc')
|
||||
optdepends=('virtualbox-ext-oracle: for Oracle extensions'
|
||||
'dkms: for handling kernel modules with dkms'
|
||||
'qt: for GUI support'
|
||||
'sdl: for VBoxSDL and GUI support'
|
||||
'mesa: for OpenGL support'
|
||||
'libgl: for shared OpenGL support'
|
||||
'libxt: for shared clipboard support'
|
||||
'alsa-lib: for ALSA support'
|
||||
'pulseaudio: for PulseAudio support')
|
||||
provides=("virtualbox=${pkgver}")
|
||||
conflicts=('virtualbox' 'virtualbox-ose' 'virtualbox-modules')
|
||||
backup=('etc/vbox/vbox.cfg' 'etc/conf.d/vboxdrv' 'etc/conf.d/vboxweb' 'etc/modules-load.d/virtualbox.conf')
|
||||
install=${pkgname}.install
|
||||
|
||||
# Check and unpack the run package via sh(1)
|
||||
sh "VirtualBox-${pkgver}-${_build}-Linux_${_sarch}.run" --check
|
||||
echo yes | sh "VirtualBox-${pkgver}-${_build}-Linux_${_sarch}.run" --target "${srcdir}" \
|
||||
sh "VirtualBox-${pkgver}-${_build}-Linux_amd64.run" --check
|
||||
echo yes | sh "VirtualBox-${pkgver}-${_build}-Linux_amd64.run" --target "${srcdir}" \
|
||||
--nox11 --noexec &> /dev/null
|
||||
|
||||
# Unpack bundled files
|
||||
@ -80,27 +91,27 @@ package() {
|
||||
sed -i 's#/usr/bin/python#\02#' "${pkgdir}/${_installdir}/vboxshell.py"
|
||||
|
||||
# Update new initscripts way of life in VBox.sh
|
||||
sed -i -e 's,sudo /etc/init.d/vboxdrv setup,/etc/rc.d/vboxdrv setup,g' \
|
||||
sed -i -e 's,sudo /etc/init.d/vboxdrv setup,/usr/bin/vboxsetup setup,g' \
|
||||
"${pkgdir}/${_installdir}/VBox.sh"
|
||||
sed -i -e 's,sudo /etc/init.d/vboxdrv restart,/etc/rc.d/vboxdrv restart,g' \
|
||||
"${pkgdir}/${_installdir}/VBox.sh"
|
||||
|
||||
# Install vboxdrv initscript
|
||||
install -D -m 0755 "${srcdir}/vboxdrv.rc" "${pkgdir}/etc/rc.d/vboxdrv"
|
||||
|
||||
# Install vboxdrv configuration
|
||||
install -D -m 0644 "${srcdir}/vboxdrv.conf" "${pkgdir}/etc/conf.d/vboxdrv"
|
||||
install -D -m 0644 "${srcdir}/virtualbox.conf" "${pkgdir}/etc/modules-load.d/virtualbox.conf"
|
||||
|
||||
# Install vboxweb initscript
|
||||
install -D -m 0755 "${srcdir}/vboxweb.rc" "${pkgdir}/etc/rc.d/vboxweb"
|
||||
|
||||
# Install vboxweb configuration
|
||||
install -D -m 0644 "${srcdir}/vboxweb.conf" "${pkgdir}/etc/conf.d/vboxweb"
|
||||
install -D -m 0755 "${srcdir}/vboxweb.service" "${pkgdir}/usr/lib/systemd/system/vboxweb.service"
|
||||
|
||||
# Install systemd units
|
||||
install -D -m 0644 "${srcdir}/vboxweb.service" "${pkgdir}/usr/lib/systemd/system/vboxweb.service"
|
||||
install -D -m 0644 "${srcdir}/vboxusb.service" "${pkgdir}/usr/lib/systemd/system/vboxusb.service"
|
||||
|
||||
# Install udev rules
|
||||
install -D -m 0644 "${srcdir}/10-vboxdrv.rules" "${pkgdir}/lib/udev/rules.d/10-vboxdrv.rules"
|
||||
ln -s "${_installdir}/VBoxCreateUSBNode.sh" "${pkgdir}/lib/udev/VBoxCreateUSBNode.sh"
|
||||
install -D -m 0644 "${srcdir}/10-vboxdrv.rules" "${pkgdir}/usr/lib/udev/rules.d/10-vboxdrv.rules"
|
||||
install -d -m 0755 "${pkgdir}/usr/share/virtualbox"
|
||||
ln -s "${_installdir}/VBoxCreateUSBNode.sh" "${pkgdir}/usr/share/virtualbox/VBoxCreateUSBNode.sh"
|
||||
|
||||
# Install setup script for modules and usb devices
|
||||
install -D -m 0755 "${srcdir}/vboxsetup.sh" "${pkgdir}/usr/bin/vboxsetup"
|
||||
install -D -m 0644 "${srcdir}/virtualbox.conf" "${pkgdir}/etc/modules-load.d/virtualbox.conf"
|
||||
|
||||
# Install the SDK
|
||||
cd "${pkgdir}/${_installdir}/sdk/installer"
|
||||
@ -160,3 +171,33 @@ package() {
|
||||
# Create the directory below if it doesn't exist
|
||||
install -d -m 0755 "${pkgdir}/var/run/VirtualBox"
|
||||
}
|
||||
|
||||
package_virtualbox-ext-oracle() {
|
||||
pkgdesc="Oracle VM VirtualBox Extension Pack"
|
||||
arch=('any')
|
||||
license=('custom:PUEL')
|
||||
depends=("virtualbox")
|
||||
install=${pkgname}.install
|
||||
|
||||
cd "${srcdir}"
|
||||
|
||||
install -D -m 644 "Oracle_VM_VirtualBox_Extension_Pack-${pkgver}-${_build}.vbox-extpack" \
|
||||
"${pkgdir}/usr/share/virtualbox/extensions/Oracle_VM_VirtualBox_Extension_Pack-${pkgver}.vbox-extpack"
|
||||
install -D -m 644 PUEL "${pkgdir}/usr/share/licenses/${pkgname}/PUEL"
|
||||
}
|
||||
|
||||
package_virtualbox-guest-additions() {
|
||||
pkgdesc="Oracle VM VirtualBox Guest Additions for Chakra"
|
||||
arch=('x86_64')
|
||||
license=('GPL2')
|
||||
depends=('linux-headers' 'make' 'gcc')
|
||||
install=${pkgname}.install
|
||||
|
||||
cd "${srcdir}"
|
||||
|
||||
# Install VBoxLinuxAdditions
|
||||
install -Dm0755 VBoxLinuxAdditions.run "${pkgdir}/usr/share/virtualbox/guest-additions/VBoxLinuxAdditions.run"
|
||||
|
||||
# Install service file
|
||||
install -Dm0644 vboxservice.service "${pkgdir}/usr/lib/systemd/system/vboxservice.service"
|
||||
}
|
||||
|
34
virtualbox/PUEL
Normal file
34
virtualbox/PUEL
Normal file
@ -0,0 +1,34 @@
|
||||
VirtualBox PUEL terms and conditions
|
||||
License version 8, April 19, 2010
|
||||
|
||||
ORACLE CORPORATION (“ORACLE”) IS WILLING TO LICENSE THE PRODUCT (AS DEFINED IN § 1 BELOW) TO YOU ONLY UPON THE CONDITION THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS VIRTUALBOX PERSONAL USE AND EVALUATION LICENSE AGREEMENT (“AGREEMENT”). PLEASE READ THE AGREEMENT CAREFULLY. BY DOWNLOADING OR INSTALLING THIS PRODUCT, YOU ACCEPT THE FULL TERMS OF THIS AGREEMENT.
|
||||
|
||||
IF YOU ARE AGREEING TO THIS LICENSE ON BEHALF OF AN ENTITY OTHER THAN AN INDIVIDUAL PERSON, YOU REPRESENT THAT YOU ARE BINDING AND HAVE THE RIGHT TO BIND THE ENTITY TO THE TERMS AND CONDITIONS OF THIS AGREEMENT.
|
||||
|
||||
§ 1 Subject of Agreement. “Product”, as referred to in this Agreement, shall be the binary software package “Oracle VM VirtualBox,” which Product allows for creating multiple virtual computers, each with different operating systems (“Guest Computers”), on a physical computer with a specific operating system (“Host Computer”), to allow for installing and executing these Guest Computers simultaneously. The Product consists of executable files in machine code for the Solaris, Windows, Linux, and Mac OS X operating systems as well as other data files as required by the executable files at run-time and documentation in electronic form. The Product includes all documentation and updates provided to You by Oracle under this Agreement and the terms of this Agreement will apply to all such documentation and updates unless a different license is provided with an update or documentation.
|
||||
|
||||
§ 2 Grant of license. (1) Oracle grants you a personal, non-exclusive, non-transferable, limited license without fees to reproduce, install, execute, and use internally the Product a Host Computer for your Personal Use, Educational Use, or Evaluation. “Personal Use” requires that you use the Product on the same Host Computer where you installed it yourself and that no more than one client connect to that Host Computer at a time for the purpose of displaying Guest Computers remotely. “Educational use” is any use in an academic institution (schools, colleges and universities, by teachers and students). “Evaluation” means testing the Product for a reasonable period (that is, normally for a few weeks); after expiry of that term, you are no longer permitted to evaluate the Product.
|
||||
|
||||
(2) The “VirtualBox Guest Additions” are a set of drivers and utilities that are shipped as a subset of the Product for the purpose of being installed inside a Guest Computer to improve its performance and cooperation with the rest of the Product. In addition to and independent of the rights granted by subsection 1, Oracle allows you to install, execute, copy and redistribute a) unmodified copies of the ISO installation medium of the VirtualBox Guest Additions as shipped with the Product and b) the VirtualBox Guest Additions together with the Guest Computer into which they have been installed.
|
||||
|
||||
§ 3 Restrictions and Reservation of Rights. (1) Any use beyond the provisions of § 2 is prohibited. The Product and copies thereof provided to you under this Agreement are copyrighted and licensed, not sold, to you by Oracle. Oracle reserves all copyrights and other intellectual property rights. This includes, but is not limited to, the right to modify, make available or public, rent out, lease, lend or otherwise distribute the Product. This does not apply as far as applicable law may require otherwise or if Oracle grants you additional rights of use in a separate agreement in writing.
|
||||
|
||||
(2) You may not do any of the following: (a) modify the Product. However if the documentation accompanying Product lists specific portions of Product, such as header files, class libraries, reference source code, and/or redistributable files, that may be handled differently, you may do so only as provided in the documentation; (b) rent, lease, lend or encumber the Product; (c) remove or alter any proprietary legends or notices contained in the Product; or (d) decompile, or reverse engineer the Product (unless enforcement of this restrictions is prohibited by applicable law).
|
||||
|
||||
(3) The Product is not designed, licensed or intended for use in the design, construction, operation or maintenance of any nuclear facility and Oracle and its licensors disclaim any express or implied warranty of fitness for such uses.
|
||||
|
||||
(4) No right, title or interest in or to any trademark, service mark, logo or trade name of Oracle or its licensors is granted under this Agreement.
|
||||
|
||||
§ 4 Termination. The Agreement is effective on the Date you receive the Product and remains effective until terminated. Your rights under this Agreement will terminate immediately without notice from Oracle if you materially breach it or take any action in derogation of Oracle's and/or its licensors' rights to Product. Oracle may terminate this Agreement should any Product become, or in Oracle's reasonable opinion likely to become, the subject of a claim of intellectual property infringement or trade secret misappropriation. Upon termination, you will cease use of, and destroy, Product and confirm compliance in writing to Oracle. Sections 3-9, inclusive, will survive termination of the Agreement.
|
||||
|
||||
§ 5 Disclaimer of Warranty. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, ORACLE PROVIDES THE PRODUCT “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, EXCEPT TO THE EXTENT THAT THESE DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. The entire risk as to the quality and performance of the Product is with you. Should it prove defective, you assume the cost of all necessary servicing, repair, or correction. In addition, Oracle shall be allowed to provide updates to the Product in urgent cases. You are then obliged to install such updates. Such an urgent case includes, but is not limited to, a claim of rights to the Product by a third party.
|
||||
|
||||
§ 6 Limitation of Liability. TO THE EXTENT NOT PROHIBITED BY APPLICABLE LAW, IN NO EVENT WILL ORACLE OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF OR RELATED TO THE USE OF OR INABILITY TO USE PRODUCT, EVEN IF ORACLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. In no event will Oracle's liability to you, whether in contract, tort (including negligence), or otherwise, exceed the amount paid by you for Product under this Agreement. Some states do not allow the exclusion of incidental or consequential damages, so some of the terms above may not be applicable to you.
|
||||
|
||||
§ 7 Third Party Code. Portions of Product may be provided with notices and open source licenses from communities and third parties that govern the use of those portions, and any licenses granted hereunder do not alter any rights and obligations You may have under such open source licenses, however, the disclaimer of warranty and limitation of liability provisions in this Agreement will apply to all the Product.
|
||||
|
||||
§ 8 Export Regulations. All Product, documents, technical data, and any other materials delivered under this Agreement are subject to U.S. export control laws and may be subject to export or import regulations in other countries. You agree to comply strictly with these laws and regulations and acknowledge that you have the responsibility to obtain any licenses to export, re-export, or import as may be required after delivery to you.
|
||||
|
||||
§ 9 U.S. Government Restricted Rights. If Product is being acquired by or on behalf of the U.S. Government or by a U.S. Government prime contractor or subcontractor (at any tier), then the Government's rights in Product and accompanying documentation will be only as set forth in this Agreement; this is in accordance with 48 CFR 227.7201 through 227.7202-4 (for Department of Defense (DOD) acquisitions) and with 48 CFR 2.101 and 12.212 (for non-DOD acquisitions).
|
||||
|
||||
§ 10 Miscellaneous. This Agreement is the entire agreement between you and Oracle relating to its subject matter. It supersedes all prior or contemporaneous oral or written communications, proposals, representations and warranties and prevails over any conflicting or additional terms of any quote, order, acknowledgment, or other communication between the parties relating to its subject matter during the term of this Agreement. No modification of this Agreement will be binding, unless in writing and signed by an authorized representative of each party. If any provision of this Agreement is held to be unenforceable, this Agreement will remain in effect with the provision omitted, unless omission would frustrate the intent of the parties, in which case this Agreement will immediately terminate. Course of dealing and other standard business conditions of the parties or the industry shall not apply. This Agreement is governed by the substantive and procedural laws of California and you and Oracle agree to submit to the exclusive jurisdiction of, and venue in, the courts in San Francisco, San Mateo, or Santa Clara counties in California in any dispute arising out of or relating to this Agreement.
|
9
virtualbox/vboxservice.service
Normal file
9
virtualbox/vboxservice.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=VirtualBox Guest Service
|
||||
ConditionVirtualization=oracle
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/VBoxService -f
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
11
virtualbox/vboxusb.service
Normal file
11
virtualbox/vboxusb.service
Normal file
@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Creates the required USB nodes for VirtualBox
|
||||
Wants=local-fs.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/vboxsetup fixusb
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
17
virtualbox/virtualbox-ext-oracle.install
Normal file
17
virtualbox/virtualbox-ext-oracle.install
Normal file
@ -0,0 +1,17 @@
|
||||
post_install () {
|
||||
VBoxManage extpack install "/usr/share/virtualbox/extensions/Oracle_VM_VirtualBox_Extension_Pack-${1%%-*}.vbox-extpack" >/dev/null
|
||||
}
|
||||
|
||||
pre_upgrade() {
|
||||
post_remove $*
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $*
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack" >/dev/null
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 ft=sh et:
|
58
virtualbox/virtualbox-guest-additions.install
Normal file
58
virtualbox/virtualbox-guest-additions.install
Normal file
@ -0,0 +1,58 @@
|
||||
created_rclocal=0
|
||||
|
||||
# arg 1: the new package version
|
||||
post_install() {
|
||||
vbox_create_workaround
|
||||
|
||||
# Run the VBoxLinuxAdditions Skript
|
||||
/usr/share/virtualbox/guest-additions/VBoxLinuxAdditions.run
|
||||
|
||||
vbox_remove_workaround
|
||||
|
||||
# Show information
|
||||
/bin/cat <<EOF
|
||||
|
||||
==> To start virtualbox guest service automatically, enable and
|
||||
==> start the service through systemctl:
|
||||
==> sudo systemctl enable vboxservice.service
|
||||
==> sudo systemctl start vboxservice.service
|
||||
EOF
|
||||
|
||||
}
|
||||
|
||||
# arg 1: the new package version
|
||||
# arg 2: the old package version
|
||||
post_upgrade() {
|
||||
post_install "$1"
|
||||
}
|
||||
|
||||
# arg 1: the old package version
|
||||
post_remove() {
|
||||
# ${1%-*} : version without pkgrel (4.2.2)
|
||||
|
||||
vbox_create_workaround
|
||||
|
||||
/opt/VBoxGuestAdditions-${1%-*}/uninstall.sh
|
||||
|
||||
vbox_remove_workaround
|
||||
groupdel vboxsf >/dev/null 2>&1 || true
|
||||
}
|
||||
|
||||
# Create rc.local file as workaround
|
||||
vbox_create_workaround() {
|
||||
# workaround: create /etc/rc.local, if not exists
|
||||
if [ ! -e /etc/rc.local ]; then
|
||||
touch /etc/rc.local
|
||||
created_rclocal=1
|
||||
fi
|
||||
}
|
||||
|
||||
# Remove rc.local, if we created this file
|
||||
vbox_remove_workaround() {
|
||||
# If created_rclocal, remove /etc/rc.local
|
||||
if [ ${created_rclocal} -eq 1 ]; then
|
||||
rm -f /etc/rc.local
|
||||
fi
|
||||
# Remove rc.vbox* files
|
||||
rm -f /etc/rc.d/rc.vbox*
|
||||
}
|
4
virtualbox/virtualbox.conf
Normal file
4
virtualbox/virtualbox.conf
Normal file
@ -0,0 +1,4 @@
|
||||
vboxdrv
|
||||
vboxnetadp
|
||||
vboxnetflt
|
||||
vboxpci
|
@ -12,28 +12,21 @@ post_install() {
|
||||
[[ -x =update-desktop-database ]] && update-desktop-database -q &>/dev/null
|
||||
|
||||
# Build new module
|
||||
systemd-notify --booted
|
||||
if [[ "$?" -eq 0 ]]; then
|
||||
/usr/bin/vboxsetup setup
|
||||
else
|
||||
/etc/rc.d/vboxdrv setup
|
||||
fi
|
||||
|
||||
/usr/bin/vboxsetup setup
|
||||
|
||||
# (Re-)Create USB nodes
|
||||
/usr/bin/vboxsetup fixusb
|
||||
|
||||
# Show warnings
|
||||
/bin/cat <<EOF
|
||||
|
||||
==> Remember to add allowed users to the vboxusers group:
|
||||
==> # gpasswd -a USERNAME vboxusers
|
||||
==>
|
||||
==> With systemd:
|
||||
==> To start virtualbox web service automatically you need to enable and start the service through systemctl
|
||||
==> To create missing USB devices, you can enable vboxusb.service by running 'systemctl enable vboxusb.service'
|
||||
==> To fix missing usb devices, you can call 'vboxsetup fixusb' or reboot your computer
|
||||
==>
|
||||
==> With sysvinit:
|
||||
==> To load virtualbox modules automatically you can add vboxdrv in your DAEMONS
|
||||
==> To start virtualbox web service automatically you can add vboxweb in your DAEMONS
|
||||
==> To fix missing usb devices, you can call rc.d fixusb vboxdrv or reboot your computer
|
||||
==>
|
||||
EOF
|
||||
}
|
||||
|
||||
@ -50,30 +43,19 @@ post_upgrade() {
|
||||
|
||||
pre_remove() {
|
||||
# Stop running services
|
||||
|
||||
systemd-notify --booted
|
||||
_service="vboxweb.service"
|
||||
systemctl is-active ${_service} &>/dev/null
|
||||
if [[ "$?" -eq 0 ]]; then
|
||||
_service="vboxweb.service"
|
||||
systemctl is-active ${_service} &>/dev/null
|
||||
if [[ "$?" -eq 0 ]]; then
|
||||
systemctl stop ${_service}
|
||||
fi
|
||||
systemctl is-enabled ${_service} &>/dev/null
|
||||
if [[ "$?" -eq 0 ]]; then
|
||||
systemctl disable ${_service}
|
||||
fi
|
||||
else
|
||||
[[ -x /etc/rc.d/vboxdrv ]] && /etc/rc.d/vboxdrv stop
|
||||
[[ -x /etc/rc.d/vboxweb ]] && /etc/rc.d/vboxweb stop
|
||||
systemctl stop ${_service}
|
||||
fi
|
||||
|
||||
# Remove modules
|
||||
systemd-notify --booted
|
||||
systemctl is-enabled ${_service} &>/dev/null
|
||||
if [[ "$?" -eq 0 ]]; then
|
||||
systemctl disable ${_service}
|
||||
fi
|
||||
|
||||
# Remove modules
|
||||
if [[ -f /usr/bin/vboxsetup ]]; then
|
||||
/usr/bin/vboxsetup remove
|
||||
elif [[ -f /etc/rc.d/vboxdrv && -f /usr/sbin/rc.d ]]; then
|
||||
rc.d unload vboxdrv
|
||||
rc.d remove vboxdrv
|
||||
else
|
||||
echo -e "\n==> Modules could not be deleted. Please check manually.\n"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user