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

Tobias Powalowski tpowa at archlinux.org
Wed Oct 19 06:17:36 UTC 2016


    Date: Wednesday, October 19, 2016 @ 06:17:36
  Author: tpowa
Revision: 192557

db-move: moved virtualbox-modules-arch from [community-testing] to [community] (i686, x86_64)

Added:
  virtualbox-modules-arch/repos/community-i686/PKGBUILD
    (from rev 192556, virtualbox-modules-arch/repos/community-testing-i686/PKGBUILD)
  virtualbox-modules-arch/repos/community-i686/build.sh
    (from rev 192556, virtualbox-modules-arch/repos/community-testing-i686/build.sh)
  virtualbox-modules-arch/repos/community-i686/virtualbox-modules-arch.install
    (from rev 192556, virtualbox-modules-arch/repos/community-testing-i686/virtualbox-modules-arch.install)
  virtualbox-modules-arch/repos/community-x86_64/PKGBUILD
    (from rev 192556, virtualbox-modules-arch/repos/community-testing-x86_64/PKGBUILD)
  virtualbox-modules-arch/repos/community-x86_64/build.sh
    (from rev 192556, virtualbox-modules-arch/repos/community-testing-x86_64/build.sh)
  virtualbox-modules-arch/repos/community-x86_64/virtualbox-modules-arch.install
    (from rev 192556, virtualbox-modules-arch/repos/community-testing-x86_64/virtualbox-modules-arch.install)
Deleted:
  virtualbox-modules-arch/repos/community-i686/PKGBUILD
  virtualbox-modules-arch/repos/community-i686/build.sh
  virtualbox-modules-arch/repos/community-i686/virtualbox-modules-arch.install
  virtualbox-modules-arch/repos/community-testing-i686/
  virtualbox-modules-arch/repos/community-testing-x86_64/
  virtualbox-modules-arch/repos/community-x86_64/PKGBUILD
  virtualbox-modules-arch/repos/community-x86_64/build.sh
  virtualbox-modules-arch/repos/community-x86_64/virtualbox-modules-arch.install

--------------------------------------------------+
 /PKGBUILD                                        |  148 +++++++++++++++++++++
 /build.sh                                        |  122 +++++++++++++++++
 /virtualbox-modules-arch.install                 |   46 ++++++
 community-i686/PKGBUILD                          |   74 ----------
 community-i686/build.sh                          |   61 --------
 community-i686/virtualbox-modules-arch.install   |   23 ---
 community-x86_64/PKGBUILD                        |   74 ----------
 community-x86_64/build.sh                        |   61 --------
 community-x86_64/virtualbox-modules-arch.install |   23 ---
 9 files changed, 316 insertions(+), 316 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2016-10-19 06:17:30 UTC (rev 192556)
+++ community-i686/PKGBUILD	2016-10-19 06:17:36 UTC (rev 192557)
@@ -1,74 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer
-# Contributor: Ionut Biru <ibiru at archlinux.org>
-
-pkgbase=virtualbox-modules-arch
-pkgname=('virtualbox-host-modules-arch' 'virtualbox-guest-modules-arch')
-pkgver=5.1.6
-pkgrel=1
-arch=('i686' 'x86_64')
-url='http://virtualbox.org'
-license=('GPL')
-makedepends=('linux>=4.7' 'linux<4.8'
-             'linux-headers>=4.7' 'linux-headers<4.8'
-             "virtualbox-host-dkms>=$pkgver"
-             "virtualbox-guest-dkms>=$pkgver")
-
-# remember to also adjust the .install files and the package deps below
-_extramodules=extramodules-4.7-ARCH
-
-package_virtualbox-host-modules-arch(){
-  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
-  pkgdesc='Virtualbox host kernel modules for Arch Kernel'
-  depends=('linux>=4.7' 'linux<4.8')
-  replaces=('virtualbox-modules' 'virtualbox-host-modules')
-  conflicts=('virtualbox-modules' 'virtualbox-host-modules'
-			 'virtualbox-host-dkms')
-  provides=('VIRTUALBOX-HOST-MODULES')
-  install=virtualbox-modules-arch.install
-
-  cd "/var/lib/dkms/vboxhost/${pkgver}_OSE/$_kernver/$CARCH/module"
-  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
-  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
-
-  # compress earch modules individually
-  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
-
-  # systemd module loading
-  install -Dm644 /dev/null "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
-  printf "vboxdrv\nvboxpci\nvboxnetadp\nvboxnetflt\n" >  \
-    "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
-}
-
-package_virtualbox-guest-modules-arch(){
-  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
-  pkgdesc='Virtualbox guest kernel modules for Arch Kernel'
-  license=('GPL')
-  depends=('linux>=4.7' 'linux<4.8')
-  replaces=('virtualbox-archlinux-modules' 'virtualbox-guest-modules')
-  conflicts=('virtualbox-archlinux-modules' 'virtualbox-guest-modules'
-             'virtualbox-guest-dkms')
-  provides=('VIRTUALBOX-GUEST-MODULES')
-  install=virtualbox-modules-arch.install
-
-  cd "/var/lib/dkms/vboxguest/${pkgver}_OSE/$_kernver/$CARCH/module"
-  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
-  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
-
-  # compress earch modules individually
-  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
-
-  # systemd module loading
-  install -Dm644 /dev/null "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
-  printf "vboxguest\nvboxsf\nvboxvideo\n" >  \
-    "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
-}
-
-# vim:set ts=2 sw=2 et:
-
-
-
-
-
-
-

Copied: virtualbox-modules-arch/repos/community-i686/PKGBUILD (from rev 192556, virtualbox-modules-arch/repos/community-testing-i686/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-10-19 06:17:36 UTC (rev 192557)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=virtualbox-modules-arch
+pkgname=('virtualbox-host-modules-arch' 'virtualbox-guest-modules-arch')
+pkgver=5.1.6
+pkgrel=2
+arch=('i686' 'x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=('linux>=4.8' 'linux<4.9'
+             'linux-headers>=4.8' 'linux-headers<4.9'
+             "virtualbox-host-dkms>=$pkgver"
+             "virtualbox-guest-dkms>=$pkgver")
+
+# remember to also adjust the .install files and the package deps below
+_extramodules=extramodules-4.8-ARCH
+
+package_virtualbox-host-modules-arch(){
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Virtualbox host kernel modules for Arch Kernel'
+  depends=('linux>=4.8' 'linux<4.9')
+  replaces=('virtualbox-modules' 'virtualbox-host-modules')
+  conflicts=('virtualbox-modules' 'virtualbox-host-modules'
+			 'virtualbox-host-dkms')
+  provides=('VIRTUALBOX-HOST-MODULES')
+  install=virtualbox-modules-arch.install
+
+  cd "/var/lib/dkms/vboxhost/${pkgver}_OSE/$_kernver/$CARCH/module"
+  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
+  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
+
+  # compress earch modules individually
+  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+  # systemd module loading
+  install -Dm644 /dev/null "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+  printf "vboxdrv\nvboxpci\nvboxnetadp\nvboxnetflt\n" >  \
+    "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+}
+
+package_virtualbox-guest-modules-arch(){
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Virtualbox guest kernel modules for Arch Kernel'
+  license=('GPL')
+  depends=('linux>=4.8' 'linux<4.9')
+  replaces=('virtualbox-archlinux-modules' 'virtualbox-guest-modules')
+  conflicts=('virtualbox-archlinux-modules' 'virtualbox-guest-modules'
+             'virtualbox-guest-dkms')
+  provides=('VIRTUALBOX-GUEST-MODULES')
+  install=virtualbox-modules-arch.install
+
+  cd "/var/lib/dkms/vboxguest/${pkgver}_OSE/$_kernver/$CARCH/module"
+  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
+  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
+
+  # compress earch modules individually
+  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+  # systemd module loading
+  install -Dm644 /dev/null "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+  printf "vboxguest\nvboxsf\nvboxvideo\n" >  \
+    "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+}
+
+# vim:set ts=2 sw=2 et:
+
+
+
+
+
+
+

Deleted: community-i686/build.sh
===================================================================
--- community-i686/build.sh	2016-10-19 06:17:30 UTC (rev 192556)
+++ community-i686/build.sh	2016-10-19 06:17:36 UTC (rev 192557)
@@ -1,61 +0,0 @@
-#!/bin/bash
-# lazyness can be enhanced everyday
-
-shopt -s nullglob
-
-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")
-  case $curkernel in
-    3.19) nextkernel="4.0";;
-    *) nextkernel=${curkernel%.*}.$((${curkernel#*.}+1));;
-  esac
-
-  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() {
-  _files=("$PWD"/../../virtualbox/trunk/virtualbox-*-dkms-*-$arch.pkg.tar.xz)
-  makechrootpkg -c -u "${_files[@]/#/-I}" -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 x86_64 i686; do
-      build /var/lib/archbuild/extra-$arch $arch
-    done
-  ;;
-  testing)
-    update testing linux$suf-headers
-    for arch in x86_64 i686; do
-      build /var/lib/archbuild/testing-$arch $arch
-    done
-  ;;
-  *)
-    usage
-  ;;
-esac
-
-# vim:set ts=2 sw=2 ft=sh et:

Copied: virtualbox-modules-arch/repos/community-i686/build.sh (from rev 192556, virtualbox-modules-arch/repos/community-testing-i686/build.sh)
===================================================================
--- community-i686/build.sh	                        (rev 0)
+++ community-i686/build.sh	2016-10-19 06:17:36 UTC (rev 192557)
@@ -0,0 +1,61 @@
+#!/bin/bash
+# lazyness can be enhanced everyday
+
+shopt -s nullglob
+
+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")
+  case $curkernel in
+    3.19) nextkernel="4.0";;
+    *) nextkernel=${curkernel%.*}.$((${curkernel#*.}+1));;
+  esac
+
+  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() {
+  _files=("$PWD"/../../virtualbox/trunk/virtualbox-*-dkms-*-$arch.pkg.tar.xz)
+  makechrootpkg -c -u "${_files[@]/#/-I}" -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 x86_64 i686; do
+      build /var/lib/archbuild/extra-$arch $arch
+    done
+  ;;
+  testing)
+    update testing linux$suf-headers
+    for arch in x86_64 i686; do
+      build /var/lib/archbuild/testing-$arch $arch
+    done
+  ;;
+  *)
+    usage
+  ;;
+esac
+
+# vim:set ts=2 sw=2 ft=sh et:

Deleted: community-i686/virtualbox-modules-arch.install
===================================================================
--- community-i686/virtualbox-modules-arch.install	2016-10-19 06:17:30 UTC (rev 192556)
+++ community-i686/virtualbox-modules-arch.install	2016-10-19 06:17:36 UTC (rev 192557)
@@ -1,23 +0,0 @@
-_depmod() {
-  EXTRAMODULES=extramodules-4.7-ARCH
-  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
-}
-
-post_install() {
-  cat << EOF
-==> Virtualbox kernel modules will be loaded at boot time by systemd-modules-load.
-==> In order to use them right now, you may want to load them manually.
-==> Read modules-load.d man page to disable module boot loading.'
-EOF
-  _depmod
-}
-
-post_upgrade() {
-  _depmod
-}
-
-post_remove() {
-  _depmod
-}
-
-# vim:set ts=2 sw=2 et:

Copied: virtualbox-modules-arch/repos/community-i686/virtualbox-modules-arch.install (from rev 192556, virtualbox-modules-arch/repos/community-testing-i686/virtualbox-modules-arch.install)
===================================================================
--- community-i686/virtualbox-modules-arch.install	                        (rev 0)
+++ community-i686/virtualbox-modules-arch.install	2016-10-19 06:17:36 UTC (rev 192557)
@@ -0,0 +1,23 @@
+_depmod() {
+  EXTRAMODULES=extramodules-4.8-ARCH
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  cat << EOF
+==> Virtualbox kernel modules will be loaded at boot time by systemd-modules-load.
+==> In order to use them right now, you may want to load them manually.
+==> Read modules-load.d man page to disable module boot loading.'
+EOF
+  _depmod
+}
+
+post_upgrade() {
+  _depmod
+}
+
+post_remove() {
+  _depmod
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2016-10-19 06:17:30 UTC (rev 192556)
+++ community-x86_64/PKGBUILD	2016-10-19 06:17:36 UTC (rev 192557)
@@ -1,74 +0,0 @@
-# $Id$
-# Maintainer: Sébastien Luttringer
-# Contributor: Ionut Biru <ibiru at archlinux.org>
-
-pkgbase=virtualbox-modules-arch
-pkgname=('virtualbox-host-modules-arch' 'virtualbox-guest-modules-arch')
-pkgver=5.1.6
-pkgrel=1
-arch=('i686' 'x86_64')
-url='http://virtualbox.org'
-license=('GPL')
-makedepends=('linux>=4.7' 'linux<4.8'
-             'linux-headers>=4.7' 'linux-headers<4.8'
-             "virtualbox-host-dkms>=$pkgver"
-             "virtualbox-guest-dkms>=$pkgver")
-
-# remember to also adjust the .install files and the package deps below
-_extramodules=extramodules-4.7-ARCH
-
-package_virtualbox-host-modules-arch(){
-  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
-  pkgdesc='Virtualbox host kernel modules for Arch Kernel'
-  depends=('linux>=4.7' 'linux<4.8')
-  replaces=('virtualbox-modules' 'virtualbox-host-modules')
-  conflicts=('virtualbox-modules' 'virtualbox-host-modules'
-			 'virtualbox-host-dkms')
-  provides=('VIRTUALBOX-HOST-MODULES')
-  install=virtualbox-modules-arch.install
-
-  cd "/var/lib/dkms/vboxhost/${pkgver}_OSE/$_kernver/$CARCH/module"
-  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
-  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
-
-  # compress earch modules individually
-  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
-
-  # systemd module loading
-  install -Dm644 /dev/null "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
-  printf "vboxdrv\nvboxpci\nvboxnetadp\nvboxnetflt\n" >  \
-    "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
-}
-
-package_virtualbox-guest-modules-arch(){
-  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
-  pkgdesc='Virtualbox guest kernel modules for Arch Kernel'
-  license=('GPL')
-  depends=('linux>=4.7' 'linux<4.8')
-  replaces=('virtualbox-archlinux-modules' 'virtualbox-guest-modules')
-  conflicts=('virtualbox-archlinux-modules' 'virtualbox-guest-modules'
-             'virtualbox-guest-dkms')
-  provides=('VIRTUALBOX-GUEST-MODULES')
-  install=virtualbox-modules-arch.install
-
-  cd "/var/lib/dkms/vboxguest/${pkgver}_OSE/$_kernver/$CARCH/module"
-  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
-  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
-
-  # compress earch modules individually
-  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
-
-  # systemd module loading
-  install -Dm644 /dev/null "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
-  printf "vboxguest\nvboxsf\nvboxvideo\n" >  \
-    "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
-}
-
-# vim:set ts=2 sw=2 et:
-
-
-
-
-
-
-

Copied: virtualbox-modules-arch/repos/community-x86_64/PKGBUILD (from rev 192556, virtualbox-modules-arch/repos/community-testing-x86_64/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-10-19 06:17:36 UTC (rev 192557)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Sébastien Luttringer
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=virtualbox-modules-arch
+pkgname=('virtualbox-host-modules-arch' 'virtualbox-guest-modules-arch')
+pkgver=5.1.6
+pkgrel=2
+arch=('i686' 'x86_64')
+url='http://virtualbox.org'
+license=('GPL')
+makedepends=('linux>=4.8' 'linux<4.9'
+             'linux-headers>=4.8' 'linux-headers<4.9'
+             "virtualbox-host-dkms>=$pkgver"
+             "virtualbox-guest-dkms>=$pkgver")
+
+# remember to also adjust the .install files and the package deps below
+_extramodules=extramodules-4.8-ARCH
+
+package_virtualbox-host-modules-arch(){
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Virtualbox host kernel modules for Arch Kernel'
+  depends=('linux>=4.8' 'linux<4.9')
+  replaces=('virtualbox-modules' 'virtualbox-host-modules')
+  conflicts=('virtualbox-modules' 'virtualbox-host-modules'
+			 'virtualbox-host-dkms')
+  provides=('VIRTUALBOX-HOST-MODULES')
+  install=virtualbox-modules-arch.install
+
+  cd "/var/lib/dkms/vboxhost/${pkgver}_OSE/$_kernver/$CARCH/module"
+  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
+  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
+
+  # compress earch modules individually
+  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+  # systemd module loading
+  install -Dm644 /dev/null "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+  printf "vboxdrv\nvboxpci\nvboxnetadp\nvboxnetflt\n" >  \
+    "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+}
+
+package_virtualbox-guest-modules-arch(){
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  pkgdesc='Virtualbox guest kernel modules for Arch Kernel'
+  license=('GPL')
+  depends=('linux>=4.8' 'linux<4.9')
+  replaces=('virtualbox-archlinux-modules' 'virtualbox-guest-modules')
+  conflicts=('virtualbox-archlinux-modules' 'virtualbox-guest-modules'
+             'virtualbox-guest-dkms')
+  provides=('VIRTUALBOX-GUEST-MODULES')
+  install=virtualbox-modules-arch.install
+
+  cd "/var/lib/dkms/vboxguest/${pkgver}_OSE/$_kernver/$CARCH/module"
+  install -dm755 "$pkgdir/usr/lib/modules/$_extramodules/"
+  install -m644 * "$pkgdir/usr/lib/modules/$_extramodules/"
+
+  # compress earch modules individually
+  find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
+
+  # systemd module loading
+  install -Dm644 /dev/null "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+  printf "vboxguest\nvboxsf\nvboxvideo\n" >  \
+    "$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+}
+
+# vim:set ts=2 sw=2 et:
+
+
+
+
+
+
+

Deleted: community-x86_64/build.sh
===================================================================
--- community-x86_64/build.sh	2016-10-19 06:17:30 UTC (rev 192556)
+++ community-x86_64/build.sh	2016-10-19 06:17:36 UTC (rev 192557)
@@ -1,61 +0,0 @@
-#!/bin/bash
-# lazyness can be enhanced everyday
-
-shopt -s nullglob
-
-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")
-  case $curkernel in
-    3.19) nextkernel="4.0";;
-    *) nextkernel=${curkernel%.*}.$((${curkernel#*.}+1));;
-  esac
-
-  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() {
-  _files=("$PWD"/../../virtualbox/trunk/virtualbox-*-dkms-*-$arch.pkg.tar.xz)
-  makechrootpkg -c -u "${_files[@]/#/-I}" -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 x86_64 i686; do
-      build /var/lib/archbuild/extra-$arch $arch
-    done
-  ;;
-  testing)
-    update testing linux$suf-headers
-    for arch in x86_64 i686; do
-      build /var/lib/archbuild/testing-$arch $arch
-    done
-  ;;
-  *)
-    usage
-  ;;
-esac
-
-# vim:set ts=2 sw=2 ft=sh et:

Copied: virtualbox-modules-arch/repos/community-x86_64/build.sh (from rev 192556, virtualbox-modules-arch/repos/community-testing-x86_64/build.sh)
===================================================================
--- community-x86_64/build.sh	                        (rev 0)
+++ community-x86_64/build.sh	2016-10-19 06:17:36 UTC (rev 192557)
@@ -0,0 +1,61 @@
+#!/bin/bash
+# lazyness can be enhanced everyday
+
+shopt -s nullglob
+
+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")
+  case $curkernel in
+    3.19) nextkernel="4.0";;
+    *) nextkernel=${curkernel%.*}.$((${curkernel#*.}+1));;
+  esac
+
+  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() {
+  _files=("$PWD"/../../virtualbox/trunk/virtualbox-*-dkms-*-$arch.pkg.tar.xz)
+  makechrootpkg -c -u "${_files[@]/#/-I}" -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 x86_64 i686; do
+      build /var/lib/archbuild/extra-$arch $arch
+    done
+  ;;
+  testing)
+    update testing linux$suf-headers
+    for arch in x86_64 i686; 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-modules-arch.install
===================================================================
--- community-x86_64/virtualbox-modules-arch.install	2016-10-19 06:17:30 UTC (rev 192556)
+++ community-x86_64/virtualbox-modules-arch.install	2016-10-19 06:17:36 UTC (rev 192557)
@@ -1,23 +0,0 @@
-_depmod() {
-  EXTRAMODULES=extramodules-4.7-ARCH
-  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
-}
-
-post_install() {
-  cat << EOF
-==> Virtualbox kernel modules will be loaded at boot time by systemd-modules-load.
-==> In order to use them right now, you may want to load them manually.
-==> Read modules-load.d man page to disable module boot loading.'
-EOF
-  _depmod
-}
-
-post_upgrade() {
-  _depmod
-}
-
-post_remove() {
-  _depmod
-}
-
-# vim:set ts=2 sw=2 et:

Copied: virtualbox-modules-arch/repos/community-x86_64/virtualbox-modules-arch.install (from rev 192556, virtualbox-modules-arch/repos/community-testing-x86_64/virtualbox-modules-arch.install)
===================================================================
--- community-x86_64/virtualbox-modules-arch.install	                        (rev 0)
+++ community-x86_64/virtualbox-modules-arch.install	2016-10-19 06:17:36 UTC (rev 192557)
@@ -0,0 +1,23 @@
+_depmod() {
+  EXTRAMODULES=extramodules-4.8-ARCH
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  cat << EOF
+==> Virtualbox kernel modules will be loaded at boot time by systemd-modules-load.
+==> In order to use them right now, you may want to load them manually.
+==> Read modules-load.d man page to disable module boot loading.'
+EOF
+  _depmod
+}
+
+post_upgrade() {
+  _depmod
+}
+
+post_remove() {
+  _depmod
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list