[arch-commits] Commit in virtualbox-modules/repos (10 files)

Evangelos Foutras foutrelis at nymeria.archlinux.org
Fri Aug 30 19:00:29 UTC 2013


    Date: Friday, August 30, 2013 @ 21:00:29
  Author: foutrelis
Revision: 96496

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  virtualbox-modules/repos/community-testing-i686/
  virtualbox-modules/repos/community-testing-i686/PKGBUILD
    (from rev 96495, virtualbox-modules/trunk/PKGBUILD)
  virtualbox-modules/repos/community-testing-i686/build.sh
    (from rev 96495, virtualbox-modules/trunk/build.sh)
  virtualbox-modules/repos/community-testing-i686/virtualbox-guest-modules.install
    (from rev 96495, virtualbox-modules/trunk/virtualbox-guest-modules.install)
  virtualbox-modules/repos/community-testing-i686/virtualbox-host-modules.install
    (from rev 96495, virtualbox-modules/trunk/virtualbox-host-modules.install)
  virtualbox-modules/repos/community-testing-x86_64/
  virtualbox-modules/repos/community-testing-x86_64/PKGBUILD
    (from rev 96495, virtualbox-modules/trunk/PKGBUILD)
  virtualbox-modules/repos/community-testing-x86_64/build.sh
    (from rev 96495, virtualbox-modules/trunk/build.sh)
  virtualbox-modules/repos/community-testing-x86_64/virtualbox-guest-modules.install
    (from rev 96495, virtualbox-modules/trunk/virtualbox-guest-modules.install)
  virtualbox-modules/repos/community-testing-x86_64/virtualbox-host-modules.install
    (from rev 96495, virtualbox-modules/trunk/virtualbox-host-modules.install)

-----------------------------------------------------------+
 community-testing-i686/PKGBUILD                           |   65 ++++++++++++
 community-testing-i686/build.sh                           |   25 ++++
 community-testing-i686/virtualbox-guest-modules.install   |   21 +++
 community-testing-i686/virtualbox-host-modules.install    |   23 ++++
 community-testing-x86_64/PKGBUILD                         |   65 ++++++++++++
 community-testing-x86_64/build.sh                         |   25 ++++
 community-testing-x86_64/virtualbox-guest-modules.install |   21 +++
 community-testing-x86_64/virtualbox-host-modules.install  |   23 ++++
 8 files changed, 268 insertions(+)

Copied: virtualbox-modules/repos/community-testing-i686/PKGBUILD (from rev 96495, virtualbox-modules/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2013-08-30 19:00:29 UTC (rev 96496)
@@ -0,0 +1,65 @@
+# $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.16
+pkgrel=9
+arch=('i686' 'x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=('linux>=3.10' 'linux<3.11'
+             'linux-headers>=3.10' 'linux-headers<3.11'
+             "virtualbox-host-dkms>=$pkgver"
+             "virtualbox-guest-dkms>=$pkgver"
+             'expac'
+             'sed'
+             'bc')
+
+# remember to also adjust the .install files and the package deps below
+_extramodules=extramodules-3.10-ARCH
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/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-host-modules(){
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Host kernel modules for VirtualBox'
+  depends=('linux>=3.10' 'linux<3.11')
+  replaces=('virtualbox-modules')
+  conflicts=('virtualbox-modules')
+  install=virtualbox-host-modules.install
+
+  cd "dkms/vboxhost/$pkgver/$_kernver/$CARCH/module"
+  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
+  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
+  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+}
+
+package_virtualbox-guest-modules(){
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Guest kernel modules for VirtualBox'
+  license=('GPL')
+  depends=('linux>=3.10' 'linux<3.11')
+  replaces=('virtualbox-archlinux-modules')
+  conflicts=('virtualbox-archlinux-modules')
+  install=virtualbox-guest-modules.install
+
+  cd "dkms/vboxguest/$pkgver/$_kernver/$CARCH/module"
+  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
+  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
+  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+}
+
+# vim:set ts=2 sw=2 et:

Copied: virtualbox-modules/repos/community-testing-i686/build.sh (from rev 96495, virtualbox-modules/trunk/build.sh)
===================================================================
--- community-testing-i686/build.sh	                        (rev 0)
+++ community-testing-i686/build.sh	2013-08-30 19:00:29 UTC (rev 96496)
@@ -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/community-testing-i686/virtualbox-guest-modules.install (from rev 96495, virtualbox-modules/trunk/virtualbox-guest-modules.install)
===================================================================
--- community-testing-i686/virtualbox-guest-modules.install	                        (rev 0)
+++ community-testing-i686/virtualbox-guest-modules.install	2013-08-30 19:00:29 UTC (rev 96496)
@@ -0,0 +1,21 @@
+_depmod() {
+  EXTRAMODULES='extramodules-3.10-ARCH'
+  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:

Copied: virtualbox-modules/repos/community-testing-i686/virtualbox-host-modules.install (from rev 96495, virtualbox-modules/trunk/virtualbox-host-modules.install)
===================================================================
--- community-testing-i686/virtualbox-host-modules.install	                        (rev 0)
+++ community-testing-i686/virtualbox-host-modules.install	2013-08-30 19:00:29 UTC (rev 96496)
@@ -0,0 +1,23 @@
+_depmod() {
+  EXTRAMODULES='extramodules-3.10-ARCH'
+  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:

Copied: virtualbox-modules/repos/community-testing-x86_64/PKGBUILD (from rev 96495, virtualbox-modules/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2013-08-30 19:00:29 UTC (rev 96496)
@@ -0,0 +1,65 @@
+# $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.16
+pkgrel=9
+arch=('i686' 'x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=('linux>=3.10' 'linux<3.11'
+             'linux-headers>=3.10' 'linux-headers<3.11'
+             "virtualbox-host-dkms>=$pkgver"
+             "virtualbox-guest-dkms>=$pkgver"
+             'expac'
+             'sed'
+             'bc')
+
+# remember to also adjust the .install files and the package deps below
+_extramodules=extramodules-3.10-ARCH
+
+build() {
+  _kernver="$(cat /usr/lib/modules/$_extramodules/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-host-modules(){
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Host kernel modules for VirtualBox'
+  depends=('linux>=3.10' 'linux<3.11')
+  replaces=('virtualbox-modules')
+  conflicts=('virtualbox-modules')
+  install=virtualbox-host-modules.install
+
+  cd "dkms/vboxhost/$pkgver/$_kernver/$CARCH/module"
+  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
+  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
+  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+}
+
+package_virtualbox-guest-modules(){
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Guest kernel modules for VirtualBox'
+  license=('GPL')
+  depends=('linux>=3.10' 'linux<3.11')
+  replaces=('virtualbox-archlinux-modules')
+  conflicts=('virtualbox-archlinux-modules')
+  install=virtualbox-guest-modules.install
+
+  cd "dkms/vboxguest/$pkgver/$_kernver/$CARCH/module"
+  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
+  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
+  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+}
+
+# vim:set ts=2 sw=2 et:

Copied: virtualbox-modules/repos/community-testing-x86_64/build.sh (from rev 96495, virtualbox-modules/trunk/build.sh)
===================================================================
--- community-testing-x86_64/build.sh	                        (rev 0)
+++ community-testing-x86_64/build.sh	2013-08-30 19:00:29 UTC (rev 96496)
@@ -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/community-testing-x86_64/virtualbox-guest-modules.install (from rev 96495, virtualbox-modules/trunk/virtualbox-guest-modules.install)
===================================================================
--- community-testing-x86_64/virtualbox-guest-modules.install	                        (rev 0)
+++ community-testing-x86_64/virtualbox-guest-modules.install	2013-08-30 19:00:29 UTC (rev 96496)
@@ -0,0 +1,21 @@
+_depmod() {
+  EXTRAMODULES='extramodules-3.10-ARCH'
+  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:

Copied: virtualbox-modules/repos/community-testing-x86_64/virtualbox-host-modules.install (from rev 96495, virtualbox-modules/trunk/virtualbox-host-modules.install)
===================================================================
--- community-testing-x86_64/virtualbox-host-modules.install	                        (rev 0)
+++ community-testing-x86_64/virtualbox-host-modules.install	2013-08-30 19:00:29 UTC (rev 96496)
@@ -0,0 +1,23 @@
+_depmod() {
+  EXTRAMODULES='extramodules-3.10-ARCH'
+  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:




More information about the arch-commits mailing list