diff options
Diffstat (limited to 'libre/virtualbox-libre-modules')
4 files changed, 0 insertions, 145 deletions
diff --git a/libre/virtualbox-libre-modules/PKGBUILD b/libre/virtualbox-libre-modules/PKGBUILD deleted file mode 100644 index cc0d6741d..000000000 --- a/libre/virtualbox-libre-modules/PKGBUILD +++ /dev/null @@ -1,76 +0,0 @@ -# $Id: PKGBUILD 94381 2013-07-22 13:58:51Z tpowa $ -# Maintainer: Ionut Biru <ibiru@archlinux.org> -# Maintainer: Sébastien Luttringer -# Maintainer (Parabola): Jorge López <jorginho@lavabit.com> -# Maintainer (Parabola): André Silva <emulatorman@parabola.nu> - -pkgbase=virtualbox-libre-modules -pkgname=('virtualbox-libre-host-modules' 'virtualbox-libre-guest-modules') -pkgver=4.2.16 -pkgrel=3 -arch=('i686' 'x86_64') -url='http://virtualbox.org' -license=('GPL') -makedepends=('linux-libre>=3.10' 'linux-libre<3.11' - 'linux-libre-headers>=3.10' 'linux-libre-headers<3.11' - "virtualbox-libre-host-dkms>=$pkgver" - "virtualbox-libre-guest-dkms>=$pkgver" - 'expac' - 'sed' - 'bc') - -# remember to also adjust the .install files and the package deps below -_extramodules=extramodules-3.10-LIBRE - -build() { - _kernmaj=$(expac -Q '%v' linux-libre|sed -r 's/([[:digit:]]+\.[[:digit:]]+).*/\1/') - _kernver=$(< /usr/lib/modules/extramodules-$_kernmaj-LIBRE/version) - # dkms need modification to be run as user - cp -r /var/lib/dkms . - echo "dkms_tree='$srcdir/dkms'" > dkms.conf - # build host modules - msg2 'Host modules' - dkms --dkmsframework dkms.conf build "vboxhost/$pkgver" -k "$_kernver" - # build guest modules - msg2 'Guest modules' - dkms --dkmsframework dkms.conf build "vboxguest/$pkgver" -k "$_kernver" -} - -package_virtualbox-libre-host-modules(){ - _kernmaj=$(expac -Q '%v' linux-libre|sed -r 's/([[:digit:]]+\.[[:digit:]]+).*/\1/') - _kernver=$(< /usr/lib/modules/extramodules-$_kernmaj-LIBRE/version) - pkgdesc='Host kernel modules for VirtualBox (built for the linux-libre kernel package)' - #depends=("linux-libre>=$_kernmaj" "linux-libre<$(echo "$_kernmaj+0.1"|bc)") - depends=('linux-libre>=3.10' 'linux-libre<3.11') - provides=("virtualbox-host-modules=${pkgver}") - replaces=('virtualbox-host-modules' 'virtualbox-modules' 'virtualbox-libre-modules') - conflicts=('virtualbox-host-modules' 'virtualbox-modules' 'virtualbox-libre-modules') - install=virtualbox-libre-host-modules.install - - cd "dkms/vboxhost/$pkgver/$_kernver/$CARCH/module" - install -dm755 "$pkgdir/usr/lib/modules/extramodules-$_kernmaj-LIBRE/" - install -m644 * "$pkgdir/usr/lib/modules/extramodules-$_kernmaj-LIBRE/" - find "$pkgdir" -name '*.ko' -exec gzip -9 {} + - sed -ie "s/VERSION='.*'/VERSION='$_kernver'/" "$startdir/virtualbox-libre-host-modules.install" -} - -package_virtualbox-libre-guest-modules(){ - _kernmaj=$(expac -Q '%v' linux-libre|sed -r 's/([[:digit:]]+\.[[:digit:]]+).*/\1/') - _kernver=$(< /usr/lib/modules/extramodules-$_kernmaj-LIBRE/version) - pkgdesc='Guest kernel modules for VirtualBox (built for the linux-libre kernel package)' - license=('GPL') - #depends=("linux-libre>=$_kernmaj" "linux-libre<$(echo "$_kernmaj+0.1"|bc)") - depends=('linux-libre>=3.10' 'linux-libre<3.11') - provides=("virtualbox-guest-modules=${pkgver}") - replaces=('virtualbox-guest-modules' 'virtualbox-archlinux-modules' 'virtualbox-parabola-modules') - conflicts=('virtualbox-guest-modules' 'virtualbox-archlinux-modules' 'virtualbox-parabola-modules') - install=virtualbox-libre-guest-modules.install - - cd "dkms/vboxguest/$pkgver/$_kernver/$CARCH/module" - install -dm755 "$pkgdir/usr/lib/modules/extramodules-$_kernmaj-LIBRE/" - install -m644 * "$pkgdir/usr/lib/modules/extramodules-$_kernmaj-LIBRE/" - find "$pkgdir" -name '*.ko' -exec gzip -9 {} + - sed -ie "s/VERSION='.*'/VERSION='$_kernver'/" "$startdir/virtualbox-libre-guest-modules.install" -} - -# vim:set ts=2 sw=2 et: diff --git a/libre/virtualbox-libre-modules/build.sh b/libre/virtualbox-libre-modules/build.sh deleted file mode 100755 index 895bea0b1..000000000 --- a/libre/virtualbox-libre-modules/build.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -set -e - -if (( $# != 1 )); then - echo "usage: $0 extra" - echo " $0 testing" - exit 1 -fi - -here=$PWD -cd /var/empty -linux32 makechrootpkg -cu -I "$here"/../../virtualbox/trunk/virtualbox-libre-host-dkms-*-i686.pkg.tar.xz -r /var/lib/archbuild/$1-i686 -linux32 makechrootpkg -I "$here"/../../virtualbox/trunk/virtualbox-libre-guest-dkms-*-i686.pkg.tar.xz -r /var/lib/archbuild/$1-i686 -cd "$here" -linux32 makechrootpkg -n -r /var/lib/archbuild/$1-i686 - -cd /var/empty -makechrootpkg -cu -I "$here"/../../virtualbox/trunk/virtualbox-libre-host-dkms-*-x86_64.pkg.tar.xz -r /var/lib/archbuild/$1-x86_64 -makechrootpkg -I "$here"/../../virtualbox/trunk/virtualbox-libre-guest-dkms-*-x86_64.pkg.tar.xz -r /var/lib/archbuild/$1-x86_64 -cd "$here" -makechrootpkg -n -r /var/lib/archbuild/$1-x86_64 - - -# vim:set ts=2 sw=2 ft=sh et: diff --git a/libre/virtualbox-libre-modules/virtualbox-libre-guest-modules.install b/libre/virtualbox-libre-modules/virtualbox-libre-guest-modules.install deleted file mode 100644 index eb1707471..000000000 --- a/libre/virtualbox-libre-modules/virtualbox-libre-guest-modules.install +++ /dev/null @@ -1,21 +0,0 @@ -_depmod() { - EXTRAMODULES='extramodules-3.10-LIBRE' - depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) -} - -post_install() { - cat << EOF -===> You may want to load vboxguest, vboxsf and vboxvideo -EOF - _depmod -} - -post_upgrade() { - _depmod -} - -post_remove() { - _depmod -} - -# vim:set ts=2 sw=2 et: diff --git a/libre/virtualbox-libre-modules/virtualbox-libre-host-modules.install b/libre/virtualbox-libre-modules/virtualbox-libre-host-modules.install deleted file mode 100644 index df643c9a6..000000000 --- a/libre/virtualbox-libre-modules/virtualbox-libre-host-modules.install +++ /dev/null @@ -1,23 +0,0 @@ -_depmod() { - EXTRAMODULES='extramodules-3.10-LIBRE' - depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) -} - -post_install() { - cat << EOF -===> You must load vboxdrv module before starting VirtualBox: -===> # modprobe vboxdrv -EOF - _depmod -} - -post_upgrade() { - _depmod - echo 'In order to use the new version, reload all virtualbox modules manually.' -} - -post_remove() { - _depmod -} - -# vim:set ts=2 sw=2 et: |