[arch-commits] Commit in virtualbox-modules-lts/repos (16 files)
Bartłomiej Piotrowski
bpiotrowski at nymeria.archlinux.org
Sat Nov 9 12:41:08 UTC 2013
Date: Saturday, November 9, 2013 @ 13:41:08
Author: bpiotrowski
Revision: 100715
archrelease: copy trunk to community-i686, community-x86_64
Added:
virtualbox-modules-lts/repos/community-i686/PKGBUILD
(from rev 100714, virtualbox-modules-lts/trunk/PKGBUILD)
virtualbox-modules-lts/repos/community-i686/build.sh
(from rev 100714, virtualbox-modules-lts/trunk/build.sh)
virtualbox-modules-lts/repos/community-i686/virtualbox-guest-modules-lts.install
(from rev 100714, virtualbox-modules-lts/trunk/virtualbox-guest-modules-lts.install)
virtualbox-modules-lts/repos/community-i686/virtualbox-host-modules-lts.install
(from rev 100714, virtualbox-modules-lts/trunk/virtualbox-host-modules-lts.install)
virtualbox-modules-lts/repos/community-x86_64/PKGBUILD
(from rev 100714, virtualbox-modules-lts/trunk/PKGBUILD)
virtualbox-modules-lts/repos/community-x86_64/build.sh
(from rev 100714, virtualbox-modules-lts/trunk/build.sh)
virtualbox-modules-lts/repos/community-x86_64/virtualbox-guest-modules-lts.install
(from rev 100714, virtualbox-modules-lts/trunk/virtualbox-guest-modules-lts.install)
virtualbox-modules-lts/repos/community-x86_64/virtualbox-host-modules-lts.install
(from rev 100714, virtualbox-modules-lts/trunk/virtualbox-host-modules-lts.install)
Deleted:
virtualbox-modules-lts/repos/community-i686/PKGBUILD
virtualbox-modules-lts/repos/community-i686/build.sh
virtualbox-modules-lts/repos/community-i686/virtualbox-guest-modules-lts.install
virtualbox-modules-lts/repos/community-i686/virtualbox-host-modules-lts.install
virtualbox-modules-lts/repos/community-x86_64/PKGBUILD
virtualbox-modules-lts/repos/community-x86_64/build.sh
virtualbox-modules-lts/repos/community-x86_64/virtualbox-guest-modules-lts.install
virtualbox-modules-lts/repos/community-x86_64/virtualbox-host-modules-lts.install
-------------------------------------------------------+
/PKGBUILD | 130 ++++++++++++++++
/build.sh | 120 ++++++++++++++
/virtualbox-guest-modules-lts.install | 42 +++++
/virtualbox-host-modules-lts.install | 46 +++++
community-i686/PKGBUILD | 65 --------
community-i686/build.sh | 60 -------
community-i686/virtualbox-guest-modules-lts.install | 21 --
community-i686/virtualbox-host-modules-lts.install | 23 --
community-x86_64/PKGBUILD | 65 --------
community-x86_64/build.sh | 60 -------
community-x86_64/virtualbox-guest-modules-lts.install | 21 --
community-x86_64/virtualbox-host-modules-lts.install | 23 --
12 files changed, 338 insertions(+), 338 deletions(-)
Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD 2013-11-09 12:40:19 UTC (rev 100714)
+++ community-i686/PKGBUILD 2013-11-09 12:41:08 UTC (rev 100715)
@@ -1,65 +0,0 @@
-# $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.3.2
-pkgrel=1
-arch=('i686' 'x86_64')
-url='http://virtualbox.org'
-license=('GPL')
-makedepends=('linux-lts>=3.10' 'linux-lts<3.11'
- 'linux-lts-headers>=3.10' 'linux-lts-headers<3.11'
- "virtualbox-host-dkms>=$pkgver"
- "virtualbox-guest-dkms>=$pkgver")
-
-# remember to also adjust the .install files and the package deps below
-_extramodules=extramodules-3.10-lts
-
-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-lts(){
- _kernver=$(cat /usr/lib/modules/$_extramodules/version)
- pkgdesc='Host kernel modules for VirtualBox'
- depends=('linux-lts>=3.10' 'linux-lts<3.11')
- replaces=('virtualbox-modules-lts')
- conflicts=('virtualbox-modules-lts')
- provides=("virtualbox-host-modules=$pkgver")
- install=virtualbox-host-modules-lts.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-lts(){
- _kernver=$(cat /usr/lib/modules/$_extramodules/version)
- pkgdesc='Guest kernel modules for VirtualBox'
- license=('GPL')
- depends=('linux-lts>=3.10' 'linux-lts<3.11')
- replaces=('virtualbox-archlinux-modules-lts')
- conflicts=('virtualbox-archlinux-modules-lts')
- provides=("virtualbox-guest-modules=$pkgver")
- install=virtualbox-guest-modules-lts.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-lts/repos/community-i686/PKGBUILD (from rev 100714, virtualbox-modules-lts/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2013-11-09 12:41:08 UTC (rev 100715)
@@ -0,0 +1,65 @@
+# $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.3.2
+pkgrel=2
+arch=('i686' 'x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=('linux-lts>=3.10' 'linux-lts<3.11'
+ 'linux-lts-headers>=3.10' 'linux-lts-headers<3.11'
+ "virtualbox-host-dkms>=$pkgver"
+ "virtualbox-guest-dkms>=$pkgver")
+
+# remember to also adjust the .install files and the package deps below
+_extramodules=extramodules-3.10-lts
+
+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-lts(){
+ _kernver=$(cat /usr/lib/modules/$_extramodules/version)
+ pkgdesc='Host kernel modules for VirtualBox'
+ depends=('linux-lts>=3.10' 'linux-lts<3.11')
+ replaces=('virtualbox-modules-lts')
+ conflicts=('virtualbox-modules-lts')
+ provides=("virtualbox-host-modules=$pkgver")
+ install=virtualbox-host-modules-lts.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-lts(){
+ _kernver=$(cat /usr/lib/modules/$_extramodules/version)
+ pkgdesc='Guest kernel modules for VirtualBox'
+ license=('GPL')
+ depends=('linux-lts>=3.10' 'linux-lts<3.11')
+ replaces=('virtualbox-archlinux-modules-lts')
+ conflicts=('virtualbox-archlinux-modules-lts')
+ provides=("virtualbox-guest-modules=$pkgver")
+ install=virtualbox-guest-modules-lts.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:
Deleted: community-i686/build.sh
===================================================================
--- community-i686/build.sh 2013-11-09 12:40:19 UTC (rev 100714)
+++ community-i686/build.sh 2013-11-09 12:41:08 UTC (rev 100715)
@@ -1,60 +0,0 @@
-#!/bin/bash
-# lazyness can be enhanced everyday
-
-usage() {
- echo "usage: $0 extra"
- echo " $0 testing"
- exit 1
-}
-
-# $1: reference package
-update() {
- url="https://www.archlinux.org/packages/$1/x86_64/$2/"
- curkernel=$(wget -qO- "$url"|sed -nr "s/.*<h2>$2 ([0-9]+)\.([0-9]+).*<\/h2>.*/\1.\2/p")
- nextkernel=${curkernel%.*}.$(( ${curkernel#*.}+1))
-
- echo "** Current kernel: $curkernel"
- echo "** Next kernel: $nextkernel"
-
- sed -ri \
- -e "s/(_?extramodules=).*-(ARCH|lts).*/\1extramodules-$curkernel-\2/i" \
- -e "s/(linux.*>=)[0-9]+.[0-9]+/\1$curkernel/" \
- -e "s/(linux.*<)[0-9]+.[0-9]+/\1$nextkernel/" \
- PKGBUILD *.install
-}
-
-# $1: repo
-# $2: arch
-build() {
- _pwd=$PWD
- cd /var/empty
- makechrootpkg -cu -I "$_pwd"/../../virtualbox/trunk/virtualbox-host-dkms-*-$arch.pkg.tar.xz -r "$1"
- makechrootpkg -I "$_pwd"/../../virtualbox/trunk/virtualbox-guest-dkms-*-$arch.pkg.tar.xz -r "$1"
- cd "$_pwd"
- makechrootpkg -n -r "$1"
-}
-
-(( $# == 1 )) || usage
-
-# detect lts case
-grep -q linux-lts PKGBUILD && suf=-lts
-
-case $1 in
- extra)
- update core linux$suf-headers
- for arch in i686 x86_64; do
- build /var/lib/archbuild/extra-$arch $arch
- done
- ;;
- testing)
- update testing linux$suf-headers
- for arch in i686 x86_64; do
- build /var/lib/archbuild/testing-$arch $arch
- done
- ;;
- *)
- usage
- ;;
-esac
-
-# vim:set ts=2 sw=2 ft=sh et:
Copied: virtualbox-modules-lts/repos/community-i686/build.sh (from rev 100714, virtualbox-modules-lts/trunk/build.sh)
===================================================================
--- community-i686/build.sh (rev 0)
+++ community-i686/build.sh 2013-11-09 12:41:08 UTC (rev 100715)
@@ -0,0 +1,60 @@
+#!/bin/bash
+# lazyness can be enhanced everyday
+
+usage() {
+ echo "usage: $0 extra"
+ echo " $0 testing"
+ exit 1
+}
+
+# $1: reference package
+update() {
+ url="https://www.archlinux.org/packages/$1/x86_64/$2/"
+ curkernel=$(wget -qO- "$url"|sed -nr "s/.*<h2>$2 ([0-9]+)\.([0-9]+).*<\/h2>.*/\1.\2/p")
+ nextkernel=${curkernel%.*}.$(( ${curkernel#*.}+1))
+
+ echo "** Current kernel: $curkernel"
+ echo "** Next kernel: $nextkernel"
+
+ sed -ri \
+ -e "s/(_?extramodules=).*-(ARCH|lts).*/\1extramodules-$curkernel-\2/i" \
+ -e "s/(linux.*>=)[0-9]+.[0-9]+/\1$curkernel/" \
+ -e "s/(linux.*<)[0-9]+.[0-9]+/\1$nextkernel/" \
+ PKGBUILD *.install
+}
+
+# $1: repo
+# $2: arch
+build() {
+ _pwd=$PWD
+ cd /var/empty
+ makechrootpkg -cu -I "$_pwd"/../../virtualbox/trunk/virtualbox-host-dkms-*-$arch.pkg.tar.xz -r "$1"
+ makechrootpkg -I "$_pwd"/../../virtualbox/trunk/virtualbox-guest-dkms-*-$arch.pkg.tar.xz -r "$1"
+ cd "$_pwd"
+ makechrootpkg -n -r "$1"
+}
+
+(( $# == 1 )) || usage
+
+# detect lts case
+grep -q linux-lts PKGBUILD && suf=-lts
+
+case $1 in
+ extra)
+ update core linux$suf-headers
+ for arch in i686 x86_64; do
+ build /var/lib/archbuild/extra-$arch $arch
+ done
+ ;;
+ testing)
+ update testing linux$suf-headers
+ for arch in i686 x86_64; do
+ build /var/lib/archbuild/testing-$arch $arch
+ done
+ ;;
+ *)
+ usage
+ ;;
+esac
+
+# vim:set ts=2 sw=2 ft=sh et:
Deleted: community-i686/virtualbox-guest-modules-lts.install
===================================================================
--- community-i686/virtualbox-guest-modules-lts.install 2013-11-09 12:40:19 UTC (rev 100714)
+++ community-i686/virtualbox-guest-modules-lts.install 2013-11-09 12:41:08 UTC (rev 100715)
@@ -1,21 +0,0 @@
-_depmod() {
- EXTRAMODULES=extramodules-3.10-lts
- 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-lts/repos/community-i686/virtualbox-guest-modules-lts.install (from rev 100714, virtualbox-modules-lts/trunk/virtualbox-guest-modules-lts.install)
===================================================================
--- community-i686/virtualbox-guest-modules-lts.install (rev 0)
+++ community-i686/virtualbox-guest-modules-lts.install 2013-11-09 12:41:08 UTC (rev 100715)
@@ -0,0 +1,21 @@
+_depmod() {
+ EXTRAMODULES=extramodules-3.10-lts
+ 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:
Deleted: community-i686/virtualbox-host-modules-lts.install
===================================================================
--- community-i686/virtualbox-host-modules-lts.install 2013-11-09 12:40:19 UTC (rev 100714)
+++ community-i686/virtualbox-host-modules-lts.install 2013-11-09 12:41:08 UTC (rev 100715)
@@ -1,23 +0,0 @@
-_depmod() {
- EXTRAMODULES=extramodules-3.10-lts
- 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-lts/repos/community-i686/virtualbox-host-modules-lts.install (from rev 100714, virtualbox-modules-lts/trunk/virtualbox-host-modules-lts.install)
===================================================================
--- community-i686/virtualbox-host-modules-lts.install (rev 0)
+++ community-i686/virtualbox-host-modules-lts.install 2013-11-09 12:41:08 UTC (rev 100715)
@@ -0,0 +1,23 @@
+_depmod() {
+ EXTRAMODULES=extramodules-3.10-lts
+ 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:
Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD 2013-11-09 12:40:19 UTC (rev 100714)
+++ community-x86_64/PKGBUILD 2013-11-09 12:41:08 UTC (rev 100715)
@@ -1,65 +0,0 @@
-# $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.3.2
-pkgrel=1
-arch=('i686' 'x86_64')
-url='http://virtualbox.org'
-license=('GPL')
-makedepends=('linux-lts>=3.10' 'linux-lts<3.11'
- 'linux-lts-headers>=3.10' 'linux-lts-headers<3.11'
- "virtualbox-host-dkms>=$pkgver"
- "virtualbox-guest-dkms>=$pkgver")
-
-# remember to also adjust the .install files and the package deps below
-_extramodules=extramodules-3.10-lts
-
-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-lts(){
- _kernver=$(cat /usr/lib/modules/$_extramodules/version)
- pkgdesc='Host kernel modules for VirtualBox'
- depends=('linux-lts>=3.10' 'linux-lts<3.11')
- replaces=('virtualbox-modules-lts')
- conflicts=('virtualbox-modules-lts')
- provides=("virtualbox-host-modules=$pkgver")
- install=virtualbox-host-modules-lts.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-lts(){
- _kernver=$(cat /usr/lib/modules/$_extramodules/version)
- pkgdesc='Guest kernel modules for VirtualBox'
- license=('GPL')
- depends=('linux-lts>=3.10' 'linux-lts<3.11')
- replaces=('virtualbox-archlinux-modules-lts')
- conflicts=('virtualbox-archlinux-modules-lts')
- provides=("virtualbox-guest-modules=$pkgver")
- install=virtualbox-guest-modules-lts.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-lts/repos/community-x86_64/PKGBUILD (from rev 100714, virtualbox-modules-lts/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2013-11-09 12:41:08 UTC (rev 100715)
@@ -0,0 +1,65 @@
+# $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.3.2
+pkgrel=2
+arch=('i686' 'x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=('linux-lts>=3.10' 'linux-lts<3.11'
+ 'linux-lts-headers>=3.10' 'linux-lts-headers<3.11'
+ "virtualbox-host-dkms>=$pkgver"
+ "virtualbox-guest-dkms>=$pkgver")
+
+# remember to also adjust the .install files and the package deps below
+_extramodules=extramodules-3.10-lts
+
+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-lts(){
+ _kernver=$(cat /usr/lib/modules/$_extramodules/version)
+ pkgdesc='Host kernel modules for VirtualBox'
+ depends=('linux-lts>=3.10' 'linux-lts<3.11')
+ replaces=('virtualbox-modules-lts')
+ conflicts=('virtualbox-modules-lts')
+ provides=("virtualbox-host-modules=$pkgver")
+ install=virtualbox-host-modules-lts.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-lts(){
+ _kernver=$(cat /usr/lib/modules/$_extramodules/version)
+ pkgdesc='Guest kernel modules for VirtualBox'
+ license=('GPL')
+ depends=('linux-lts>=3.10' 'linux-lts<3.11')
+ replaces=('virtualbox-archlinux-modules-lts')
+ conflicts=('virtualbox-archlinux-modules-lts')
+ provides=("virtualbox-guest-modules=$pkgver")
+ install=virtualbox-guest-modules-lts.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:
Deleted: community-x86_64/build.sh
===================================================================
--- community-x86_64/build.sh 2013-11-09 12:40:19 UTC (rev 100714)
+++ community-x86_64/build.sh 2013-11-09 12:41:08 UTC (rev 100715)
@@ -1,60 +0,0 @@
-#!/bin/bash
-# lazyness can be enhanced everyday
-
-usage() {
- echo "usage: $0 extra"
- echo " $0 testing"
- exit 1
-}
-
-# $1: reference package
-update() {
- url="https://www.archlinux.org/packages/$1/x86_64/$2/"
- curkernel=$(wget -qO- "$url"|sed -nr "s/.*<h2>$2 ([0-9]+)\.([0-9]+).*<\/h2>.*/\1.\2/p")
- nextkernel=${curkernel%.*}.$(( ${curkernel#*.}+1))
-
- echo "** Current kernel: $curkernel"
- echo "** Next kernel: $nextkernel"
-
- sed -ri \
- -e "s/(_?extramodules=).*-(ARCH|lts).*/\1extramodules-$curkernel-\2/i" \
- -e "s/(linux.*>=)[0-9]+.[0-9]+/\1$curkernel/" \
- -e "s/(linux.*<)[0-9]+.[0-9]+/\1$nextkernel/" \
- PKGBUILD *.install
-}
-
-# $1: repo
-# $2: arch
-build() {
- _pwd=$PWD
- cd /var/empty
- makechrootpkg -cu -I "$_pwd"/../../virtualbox/trunk/virtualbox-host-dkms-*-$arch.pkg.tar.xz -r "$1"
- makechrootpkg -I "$_pwd"/../../virtualbox/trunk/virtualbox-guest-dkms-*-$arch.pkg.tar.xz -r "$1"
- cd "$_pwd"
- makechrootpkg -n -r "$1"
-}
-
-(( $# == 1 )) || usage
-
-# detect lts case
-grep -q linux-lts PKGBUILD && suf=-lts
-
-case $1 in
- extra)
- update core linux$suf-headers
- for arch in i686 x86_64; do
- build /var/lib/archbuild/extra-$arch $arch
- done
- ;;
- testing)
- update testing linux$suf-headers
- for arch in i686 x86_64; do
- build /var/lib/archbuild/testing-$arch $arch
- done
- ;;
- *)
- usage
- ;;
-esac
-
-# vim:set ts=2 sw=2 ft=sh et:
Copied: virtualbox-modules-lts/repos/community-x86_64/build.sh (from rev 100714, virtualbox-modules-lts/trunk/build.sh)
===================================================================
--- community-x86_64/build.sh (rev 0)
+++ community-x86_64/build.sh 2013-11-09 12:41:08 UTC (rev 100715)
@@ -0,0 +1,60 @@
+#!/bin/bash
+# lazyness can be enhanced everyday
+
+usage() {
+ echo "usage: $0 extra"
+ echo " $0 testing"
+ exit 1
+}
+
+# $1: reference package
+update() {
+ url="https://www.archlinux.org/packages/$1/x86_64/$2/"
+ curkernel=$(wget -qO- "$url"|sed -nr "s/.*<h2>$2 ([0-9]+)\.([0-9]+).*<\/h2>.*/\1.\2/p")
+ nextkernel=${curkernel%.*}.$(( ${curkernel#*.}+1))
+
+ echo "** Current kernel: $curkernel"
+ echo "** Next kernel: $nextkernel"
+
+ sed -ri \
+ -e "s/(_?extramodules=).*-(ARCH|lts).*/\1extramodules-$curkernel-\2/i" \
+ -e "s/(linux.*>=)[0-9]+.[0-9]+/\1$curkernel/" \
+ -e "s/(linux.*<)[0-9]+.[0-9]+/\1$nextkernel/" \
+ PKGBUILD *.install
+}
+
+# $1: repo
+# $2: arch
+build() {
+ _pwd=$PWD
+ cd /var/empty
+ makechrootpkg -cu -I "$_pwd"/../../virtualbox/trunk/virtualbox-host-dkms-*-$arch.pkg.tar.xz -r "$1"
+ makechrootpkg -I "$_pwd"/../../virtualbox/trunk/virtualbox-guest-dkms-*-$arch.pkg.tar.xz -r "$1"
+ cd "$_pwd"
+ makechrootpkg -n -r "$1"
+}
+
+(( $# == 1 )) || usage
+
+# detect lts case
+grep -q linux-lts PKGBUILD && suf=-lts
+
+case $1 in
+ extra)
+ update core linux$suf-headers
+ for arch in i686 x86_64; do
+ build /var/lib/archbuild/extra-$arch $arch
+ done
+ ;;
+ testing)
+ update testing linux$suf-headers
+ for arch in i686 x86_64; do
+ build /var/lib/archbuild/testing-$arch $arch
+ done
+ ;;
+ *)
+ usage
+ ;;
+esac
+
+# vim:set ts=2 sw=2 ft=sh et:
Deleted: community-x86_64/virtualbox-guest-modules-lts.install
===================================================================
--- community-x86_64/virtualbox-guest-modules-lts.install 2013-11-09 12:40:19 UTC (rev 100714)
+++ community-x86_64/virtualbox-guest-modules-lts.install 2013-11-09 12:41:08 UTC (rev 100715)
@@ -1,21 +0,0 @@
-_depmod() {
- EXTRAMODULES=extramodules-3.10-lts
- 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-lts/repos/community-x86_64/virtualbox-guest-modules-lts.install (from rev 100714, virtualbox-modules-lts/trunk/virtualbox-guest-modules-lts.install)
===================================================================
--- community-x86_64/virtualbox-guest-modules-lts.install (rev 0)
+++ community-x86_64/virtualbox-guest-modules-lts.install 2013-11-09 12:41:08 UTC (rev 100715)
@@ -0,0 +1,21 @@
+_depmod() {
+ EXTRAMODULES=extramodules-3.10-lts
+ 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:
Deleted: community-x86_64/virtualbox-host-modules-lts.install
===================================================================
--- community-x86_64/virtualbox-host-modules-lts.install 2013-11-09 12:40:19 UTC (rev 100714)
+++ community-x86_64/virtualbox-host-modules-lts.install 2013-11-09 12:41:08 UTC (rev 100715)
@@ -1,23 +0,0 @@
-_depmod() {
- EXTRAMODULES=extramodules-3.10-lts
- 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-lts/repos/community-x86_64/virtualbox-host-modules-lts.install (from rev 100714, virtualbox-modules-lts/trunk/virtualbox-host-modules-lts.install)
===================================================================
--- community-x86_64/virtualbox-host-modules-lts.install (rev 0)
+++ community-x86_64/virtualbox-host-modules-lts.install 2013-11-09 12:41:08 UTC (rev 100715)
@@ -0,0 +1,23 @@
+_depmod() {
+ EXTRAMODULES=extramodules-3.10-lts
+ 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