[arch-commits] Commit in virtualbox-modules/repos (10 files)
Tobias Powalowski
tpowa at nymeria.archlinux.org
Sat Apr 27 11:27:43 UTC 2013
Date: Saturday, April 27, 2013 @ 13:27:43
Author: tpowa
Revision: 89160
archrelease: copy trunk to testing-i686, testing-x86_64
Added:
virtualbox-modules/repos/testing-i686/
virtualbox-modules/repos/testing-i686/PKGBUILD
(from rev 89159, virtualbox-modules/trunk/PKGBUILD)
virtualbox-modules/repos/testing-i686/build.sh
(from rev 89159, virtualbox-modules/trunk/build.sh)
virtualbox-modules/repos/testing-i686/virtualbox-guest-modules.install
(from rev 89159, virtualbox-modules/trunk/virtualbox-guest-modules.install)
virtualbox-modules/repos/testing-i686/virtualbox-host-modules.install
(from rev 89159, virtualbox-modules/trunk/virtualbox-host-modules.install)
virtualbox-modules/repos/testing-x86_64/
virtualbox-modules/repos/testing-x86_64/PKGBUILD
(from rev 89159, virtualbox-modules/trunk/PKGBUILD)
virtualbox-modules/repos/testing-x86_64/build.sh
(from rev 89159, virtualbox-modules/trunk/build.sh)
virtualbox-modules/repos/testing-x86_64/virtualbox-guest-modules.install
(from rev 89159, virtualbox-modules/trunk/virtualbox-guest-modules.install)
virtualbox-modules/repos/testing-x86_64/virtualbox-host-modules.install
(from rev 89159, virtualbox-modules/trunk/virtualbox-host-modules.install)
-------------------------------------------------+
testing-i686/PKGBUILD | 67 ++++++++++++++++++++++
testing-i686/build.sh | 25 ++++++++
testing-i686/virtualbox-guest-modules.install | 17 +++++
testing-i686/virtualbox-host-modules.install | 19 ++++++
testing-x86_64/PKGBUILD | 67 ++++++++++++++++++++++
testing-x86_64/build.sh | 25 ++++++++
testing-x86_64/virtualbox-guest-modules.install | 17 +++++
testing-x86_64/virtualbox-host-modules.install | 19 ++++++
8 files changed, 256 insertions(+)
Copied: virtualbox-modules/repos/testing-i686/PKGBUILD (from rev 89159, virtualbox-modules/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD (rev 0)
+++ testing-i686/PKGBUILD 2013-04-27 11:27:43 UTC (rev 89160)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+# Maintainer: Sébastien Luttringer
+
+pkgbase=virtualbox-modules
+pkgname=('virtualbox-host-modules' 'virtualbox-guest-modules')
+pkgver=4.2.12
+pkgrel=3
+arch=('i686' 'x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=('linux-headers'
+ "virtualbox-host-dkms>=$pkgver"
+ "virtualbox-guest-dkms>=$pkgver"
+ 'expac'
+ 'bc')
+
+build() {
+ _kernver=$(expac -Q '%v' linux-headers)-ARCH
+
+ # 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-host-modules(){
+ _kernver=$(expac -Q '%v' linux-headers)-ARCH
+ _extraver=extramodules-${_kernver%.*}-ARCH
+
+ pkgdesc='Host kernel modules for VirtualBox'
+ depends=("linux>=${_kernver%.*}" "linux<$(echo "${_kernver%.*}+0.1"|bc)")
+ replaces=('virtualbox-modules')
+ conflicts=('virtualbox-modules')
+ install=virtualbox-host-modules.install
+
+ install -dm755 "$pkgdir/usr/lib/modules/$_extraver"
+ cd "dkms/vboxhost/$pkgver/$_kernver/$CARCH/module"
+ install -m644 * "$pkgdir/usr/lib/modules/$_extraver"
+ find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+ sed -ie "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extraver'/" "$startdir/virtualbox-host-modules.install"
+}
+
+package_virtualbox-guest-modules(){
+ _kernver=$(expac -Q '%v' linux-headers)-ARCH
+ _extraver=extramodules-${_kernver%.*}-ARCH
+
+ pkgdesc='Guest kernel modules for VirtualBox'
+ license=('GPL')
+ depends=("linux>=${_kernver%.*}" "linux<$(echo "${_kernver%.*}+0.1"|bc)")
+ replaces=('virtualbox-archlinux-modules')
+ conflicts=('virtualbox-archlinux-modules')
+ install=virtualbox-guest-modules.install
+
+ install -dm755 "$pkgdir/usr/lib/modules/$_extraver"
+ cd "dkms/vboxguest/$pkgver/$_kernver/$CARCH/module"
+ install -m644 * "$pkgdir/usr/lib/modules/$_extraver"
+ find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+ sed -ie "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extraver'/" "$startdir/virtualbox-guest-modules.install"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: virtualbox-modules/repos/testing-i686/build.sh (from rev 89159, virtualbox-modules/trunk/build.sh)
===================================================================
--- testing-i686/build.sh (rev 0)
+++ testing-i686/build.sh 2013-04-27 11:27:43 UTC (rev 89160)
@@ -0,0 +1,25 @@
+#!/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-host-dkms-*-i686.pkg.tar.xz -r /var/lib/archbuild/$1-i686
+linux32 makechrootpkg -I "$here"/../../virtualbox/trunk/virtualbox-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-host-dkms-*-x86_64.pkg.tar.xz -r /var/lib/archbuild/$1-x86_64
+makechrootpkg -I "$here"/../../virtualbox/trunk/virtualbox-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:
Copied: virtualbox-modules/repos/testing-i686/virtualbox-guest-modules.install (from rev 89159, virtualbox-modules/trunk/virtualbox-guest-modules.install)
===================================================================
--- testing-i686/virtualbox-guest-modules.install (rev 0)
+++ testing-i686/virtualbox-guest-modules.install 2013-04-27 11:27:43 UTC (rev 89160)
@@ -0,0 +1,17 @@
+post_install() {
+cat << EOF
+===> You may want to load vboxguest, vboxsf and vboxvideo
+EOF
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
Copied: virtualbox-modules/repos/testing-i686/virtualbox-host-modules.install (from rev 89159, virtualbox-modules/trunk/virtualbox-host-modules.install)
===================================================================
--- testing-i686/virtualbox-host-modules.install (rev 0)
+++ testing-i686/virtualbox-host-modules.install 2013-04-27 11:27:43 UTC (rev 89160)
@@ -0,0 +1,19 @@
+post_install() {
+cat << EOF
+===> You must load vboxdrv module before starting VirtualBox:
+===> # modprobe vboxdrv
+EOF
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ echo 'In order to use the new version, reload all virtualbox modules manually.'
+}
+
+post_remove() {
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
Copied: virtualbox-modules/repos/testing-x86_64/PKGBUILD (from rev 89159, virtualbox-modules/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2013-04-27 11:27:43 UTC (rev 89160)
@@ -0,0 +1,67 @@
+# $Id$
+# Maintainer: Ionut Biru <ibiru at archlinux.org>
+# Maintainer: Sébastien Luttringer
+
+pkgbase=virtualbox-modules
+pkgname=('virtualbox-host-modules' 'virtualbox-guest-modules')
+pkgver=4.2.12
+pkgrel=3
+arch=('i686' 'x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=('linux-headers'
+ "virtualbox-host-dkms>=$pkgver"
+ "virtualbox-guest-dkms>=$pkgver"
+ 'expac'
+ 'bc')
+
+build() {
+ _kernver=$(expac -Q '%v' linux-headers)-ARCH
+
+ # 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-host-modules(){
+ _kernver=$(expac -Q '%v' linux-headers)-ARCH
+ _extraver=extramodules-${_kernver%.*}-ARCH
+
+ pkgdesc='Host kernel modules for VirtualBox'
+ depends=("linux>=${_kernver%.*}" "linux<$(echo "${_kernver%.*}+0.1"|bc)")
+ replaces=('virtualbox-modules')
+ conflicts=('virtualbox-modules')
+ install=virtualbox-host-modules.install
+
+ install -dm755 "$pkgdir/usr/lib/modules/$_extraver"
+ cd "dkms/vboxhost/$pkgver/$_kernver/$CARCH/module"
+ install -m644 * "$pkgdir/usr/lib/modules/$_extraver"
+ find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+ sed -ie "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extraver'/" "$startdir/virtualbox-host-modules.install"
+}
+
+package_virtualbox-guest-modules(){
+ _kernver=$(expac -Q '%v' linux-headers)-ARCH
+ _extraver=extramodules-${_kernver%.*}-ARCH
+
+ pkgdesc='Guest kernel modules for VirtualBox'
+ license=('GPL')
+ depends=("linux>=${_kernver%.*}" "linux<$(echo "${_kernver%.*}+0.1"|bc)")
+ replaces=('virtualbox-archlinux-modules')
+ conflicts=('virtualbox-archlinux-modules')
+ install=virtualbox-guest-modules.install
+
+ install -dm755 "$pkgdir/usr/lib/modules/$_extraver"
+ cd "dkms/vboxguest/$pkgver/$_kernver/$CARCH/module"
+ install -m644 * "$pkgdir/usr/lib/modules/$_extraver"
+ find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+ sed -ie "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extraver'/" "$startdir/virtualbox-guest-modules.install"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: virtualbox-modules/repos/testing-x86_64/build.sh (from rev 89159, virtualbox-modules/trunk/build.sh)
===================================================================
--- testing-x86_64/build.sh (rev 0)
+++ testing-x86_64/build.sh 2013-04-27 11:27:43 UTC (rev 89160)
@@ -0,0 +1,25 @@
+#!/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-host-dkms-*-i686.pkg.tar.xz -r /var/lib/archbuild/$1-i686
+linux32 makechrootpkg -I "$here"/../../virtualbox/trunk/virtualbox-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-host-dkms-*-x86_64.pkg.tar.xz -r /var/lib/archbuild/$1-x86_64
+makechrootpkg -I "$here"/../../virtualbox/trunk/virtualbox-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:
Copied: virtualbox-modules/repos/testing-x86_64/virtualbox-guest-modules.install (from rev 89159, virtualbox-modules/trunk/virtualbox-guest-modules.install)
===================================================================
--- testing-x86_64/virtualbox-guest-modules.install (rev 0)
+++ testing-x86_64/virtualbox-guest-modules.install 2013-04-27 11:27:43 UTC (rev 89160)
@@ -0,0 +1,17 @@
+post_install() {
+cat << EOF
+===> You may want to load vboxguest, vboxsf and vboxvideo
+EOF
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
Copied: virtualbox-modules/repos/testing-x86_64/virtualbox-host-modules.install (from rev 89159, virtualbox-modules/trunk/virtualbox-host-modules.install)
===================================================================
--- testing-x86_64/virtualbox-host-modules.install (rev 0)
+++ testing-x86_64/virtualbox-host-modules.install 2013-04-27 11:27:43 UTC (rev 89160)
@@ -0,0 +1,19 @@
+post_install() {
+cat << EOF
+===> You must load vboxdrv module before starting VirtualBox:
+===> # modprobe vboxdrv
+EOF
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ echo 'In order to use the new version, reload all virtualbox modules manually.'
+}
+
+post_remove() {
+ EXTRAMODULES='extramodules-3.8-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
More information about the arch-commits
mailing list