[arch-commits] Commit in virtualbox-modules-lts/repos (10 files)
Evangelos Foutras
foutrelis at nymeria.archlinux.org
Thu Apr 18 18:34:33 UTC 2013
Date: Thursday, April 18, 2013 @ 20:34:33
Author: foutrelis
Revision: 88501
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
virtualbox-modules-lts/repos/community-testing-i686/
virtualbox-modules-lts/repos/community-testing-i686/PKGBUILD
(from rev 88500, virtualbox-modules-lts/trunk/PKGBUILD)
virtualbox-modules-lts/repos/community-testing-i686/build.sh
(from rev 88500, virtualbox-modules-lts/trunk/build.sh)
virtualbox-modules-lts/repos/community-testing-i686/virtualbox-guest-modules-lts.install
(from rev 88500, virtualbox-modules-lts/trunk/virtualbox-guest-modules-lts.install)
virtualbox-modules-lts/repos/community-testing-i686/virtualbox-host-modules-lts.install
(from rev 88500, virtualbox-modules-lts/trunk/virtualbox-host-modules-lts.install)
virtualbox-modules-lts/repos/community-testing-x86_64/
virtualbox-modules-lts/repos/community-testing-x86_64/PKGBUILD
(from rev 88500, virtualbox-modules-lts/trunk/PKGBUILD)
virtualbox-modules-lts/repos/community-testing-x86_64/build.sh
(from rev 88500, virtualbox-modules-lts/trunk/build.sh)
virtualbox-modules-lts/repos/community-testing-x86_64/virtualbox-guest-modules-lts.install
(from rev 88500, virtualbox-modules-lts/trunk/virtualbox-guest-modules-lts.install)
virtualbox-modules-lts/repos/community-testing-x86_64/virtualbox-host-modules-lts.install
(from rev 88500, virtualbox-modules-lts/trunk/virtualbox-host-modules-lts.install)
---------------------------------------------------------------+
community-testing-i686/PKGBUILD | 70 ++++++++++
community-testing-i686/build.sh | 25 +++
community-testing-i686/virtualbox-guest-modules-lts.install | 16 ++
community-testing-i686/virtualbox-host-modules-lts.install | 18 ++
community-testing-x86_64/PKGBUILD | 70 ++++++++++
community-testing-x86_64/build.sh | 25 +++
community-testing-x86_64/virtualbox-guest-modules-lts.install | 16 ++
community-testing-x86_64/virtualbox-host-modules-lts.install | 18 ++
8 files changed, 258 insertions(+)
Copied: virtualbox-modules-lts/repos/community-testing-i686/PKGBUILD (from rev 88500, virtualbox-modules-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2013-04-18 18:34:33 UTC (rev 88501)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Sébastien Luttringer
+
+pkgbase=virtualbox-modules-lts
+pkgname=('virtualbox-host-modules-lts' 'virtualbox-guest-modules-lts')
+pkgver=4.2.12
+pkgrel=2
+arch=('i686' 'x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=('linux-lts-headers'
+ "virtualbox-host-dkms>=$pkgver"
+ "virtualbox-guest-dkms>=$pkgver"
+ 'expac'
+ 'bc')
+
+build() {
+ _kernver=$(expac -Q '%v' linux-lts-headers)-lts
+
+ # 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-lts(){
+ _kernver=$(expac -Q '%v' linux-lts-headers)-lts
+ _extraver=extramodules-${_kernver%.*}-lts
+
+ pkgdesc='Host kernel modules for VirtualBox'
+ depends=("linux-lts>=${_kernver%.*}" "linux-lts<$(echo "${_kernver%.*}+0.1"|bc)")
+ replaces=('virtualbox-modules-lts')
+ conflicts=('virtualbox-modules-lts')
+ provides=("virtualbox-host-modules=$pkgver")
+ install=virtualbox-host-modules-lts.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-lts.install"
+}
+
+package_virtualbox-guest-modules-lts(){
+ _kernver=$(expac -Q '%v' linux-lts-headers)-lts
+ _extraver=extramodules-${_kernver%.*}-lts
+
+ pkgdesc='Guest kernel modules for VirtualBox'
+ license=('GPL')
+ depends=("linux-lts>=${_kernver%.*}" "linux-lts<$(echo "${_kernver%.*}+0.1"|bc)")
+ replaces=('virtualbox-archlinux-modules-lts')
+ conflicts=('virtualbox-archlinux-modules-lts')
+ provides=("virtualbox-host-modules=$pkgver")
+ install=virtualbox-guest-modules-lts.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-lts.install"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: virtualbox-modules-lts/repos/community-testing-i686/build.sh (from rev 88500, virtualbox-modules-lts/trunk/build.sh)
===================================================================
--- community-testing-i686/build.sh (rev 0)
+++ community-testing-i686/build.sh 2013-04-18 18:34:33 UTC (rev 88501)
@@ -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-lts/repos/community-testing-i686/virtualbox-guest-modules-lts.install (from rev 88500, virtualbox-modules-lts/trunk/virtualbox-guest-modules-lts.install)
===================================================================
--- community-testing-i686/virtualbox-guest-modules-lts.install (rev 0)
+++ community-testing-i686/virtualbox-guest-modules-lts.install 2013-04-18 18:34:33 UTC (rev 88501)
@@ -0,0 +1,16 @@
+EXTRAMODULES='extramodules-3.0-lts'
+
+post_install() {
+cat << EOF
+===> You may want to load vboxguest, vboxsf and vboxvideo
+EOF
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
Copied: virtualbox-modules-lts/repos/community-testing-i686/virtualbox-host-modules-lts.install (from rev 88500, virtualbox-modules-lts/trunk/virtualbox-host-modules-lts.install)
===================================================================
--- community-testing-i686/virtualbox-host-modules-lts.install (rev 0)
+++ community-testing-i686/virtualbox-host-modules-lts.install 2013-04-18 18:34:33 UTC (rev 88501)
@@ -0,0 +1,18 @@
+EXTRAMODULES='extramodules-3.0-lts'
+
+post_install() {
+cat << EOF
+===> You must load vboxdrv module before starting VirtualBox:
+===> # modprobe vboxdrv
+EOF
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ echo 'In order to use the new version, reload all virtualbox modules manually.'
+}
+
+post_remove() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
Copied: virtualbox-modules-lts/repos/community-testing-x86_64/PKGBUILD (from rev 88500, virtualbox-modules-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2013-04-18 18:34:33 UTC (rev 88501)
@@ -0,0 +1,70 @@
+# $Id$
+# Maintainer: Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+# Contributor: Sébastien Luttringer
+
+pkgbase=virtualbox-modules-lts
+pkgname=('virtualbox-host-modules-lts' 'virtualbox-guest-modules-lts')
+pkgver=4.2.12
+pkgrel=2
+arch=('i686' 'x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=('linux-lts-headers'
+ "virtualbox-host-dkms>=$pkgver"
+ "virtualbox-guest-dkms>=$pkgver"
+ 'expac'
+ 'bc')
+
+build() {
+ _kernver=$(expac -Q '%v' linux-lts-headers)-lts
+
+ # 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-lts(){
+ _kernver=$(expac -Q '%v' linux-lts-headers)-lts
+ _extraver=extramodules-${_kernver%.*}-lts
+
+ pkgdesc='Host kernel modules for VirtualBox'
+ depends=("linux-lts>=${_kernver%.*}" "linux-lts<$(echo "${_kernver%.*}+0.1"|bc)")
+ replaces=('virtualbox-modules-lts')
+ conflicts=('virtualbox-modules-lts')
+ provides=("virtualbox-host-modules=$pkgver")
+ install=virtualbox-host-modules-lts.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-lts.install"
+}
+
+package_virtualbox-guest-modules-lts(){
+ _kernver=$(expac -Q '%v' linux-lts-headers)-lts
+ _extraver=extramodules-${_kernver%.*}-lts
+
+ pkgdesc='Guest kernel modules for VirtualBox'
+ license=('GPL')
+ depends=("linux-lts>=${_kernver%.*}" "linux-lts<$(echo "${_kernver%.*}+0.1"|bc)")
+ replaces=('virtualbox-archlinux-modules-lts')
+ conflicts=('virtualbox-archlinux-modules-lts')
+ provides=("virtualbox-host-modules=$pkgver")
+ install=virtualbox-guest-modules-lts.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-lts.install"
+}
+
+# vim:set ts=2 sw=2 et:
Copied: virtualbox-modules-lts/repos/community-testing-x86_64/build.sh (from rev 88500, virtualbox-modules-lts/trunk/build.sh)
===================================================================
--- community-testing-x86_64/build.sh (rev 0)
+++ community-testing-x86_64/build.sh 2013-04-18 18:34:33 UTC (rev 88501)
@@ -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-lts/repos/community-testing-x86_64/virtualbox-guest-modules-lts.install (from rev 88500, virtualbox-modules-lts/trunk/virtualbox-guest-modules-lts.install)
===================================================================
--- community-testing-x86_64/virtualbox-guest-modules-lts.install (rev 0)
+++ community-testing-x86_64/virtualbox-guest-modules-lts.install 2013-04-18 18:34:33 UTC (rev 88501)
@@ -0,0 +1,16 @@
+EXTRAMODULES='extramodules-3.0-lts'
+
+post_install() {
+cat << EOF
+===> You may want to load vboxguest, vboxsf and vboxvideo
+EOF
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_remove() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
Copied: virtualbox-modules-lts/repos/community-testing-x86_64/virtualbox-host-modules-lts.install (from rev 88500, virtualbox-modules-lts/trunk/virtualbox-host-modules-lts.install)
===================================================================
--- community-testing-x86_64/virtualbox-host-modules-lts.install (rev 0)
+++ community-testing-x86_64/virtualbox-host-modules-lts.install 2013-04-18 18:34:33 UTC (rev 88501)
@@ -0,0 +1,18 @@
+EXTRAMODULES='extramodules-3.0-lts'
+
+post_install() {
+cat << EOF
+===> You must load vboxdrv module before starting VirtualBox:
+===> # modprobe vboxdrv
+EOF
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_upgrade() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+ echo 'In order to use the new version, reload all virtualbox modules manually.'
+}
+
+post_remove() {
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
More information about the arch-commits
mailing list