[arch-commits] Commit in vhba-module/repos (8 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Jul 10 18:26:31 UTC 2015


    Date: Friday, July 10, 2015 @ 20:26:31
  Author: foutrelis
Revision: 136648

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

Added:
  vhba-module/repos/community-staging-i686/
  vhba-module/repos/community-staging-i686/60-vhba.rules
    (from rev 136647, vhba-module/trunk/60-vhba.rules)
  vhba-module/repos/community-staging-i686/PKGBUILD
    (from rev 136647, vhba-module/trunk/PKGBUILD)
  vhba-module/repos/community-staging-i686/vhba-module.install
    (from rev 136647, vhba-module/trunk/vhba-module.install)
  vhba-module/repos/community-staging-x86_64/
  vhba-module/repos/community-staging-x86_64/60-vhba.rules
    (from rev 136647, vhba-module/trunk/60-vhba.rules)
  vhba-module/repos/community-staging-x86_64/PKGBUILD
    (from rev 136647, vhba-module/trunk/PKGBUILD)
  vhba-module/repos/community-staging-x86_64/vhba-module.install
    (from rev 136647, vhba-module/trunk/vhba-module.install)

----------------------------------------------+
 community-staging-i686/60-vhba.rules         |    1 
 community-staging-i686/PKGBUILD              |   44 +++++++++++++++++++++++++
 community-staging-i686/vhba-module.install   |   21 +++++++++++
 community-staging-x86_64/60-vhba.rules       |    1 
 community-staging-x86_64/PKGBUILD            |   44 +++++++++++++++++++++++++
 community-staging-x86_64/vhba-module.install |   21 +++++++++++
 6 files changed, 132 insertions(+)

Copied: vhba-module/repos/community-staging-i686/60-vhba.rules (from rev 136647, vhba-module/trunk/60-vhba.rules)
===================================================================
--- community-staging-i686/60-vhba.rules	                        (rev 0)
+++ community-staging-i686/60-vhba.rules	2015-07-10 18:26:31 UTC (rev 136648)
@@ -0,0 +1 @@
+ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess"

Copied: vhba-module/repos/community-staging-i686/PKGBUILD (from rev 136647, vhba-module/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-07-10 18:26:31 UTC (rev 136648)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Ray Rashif <schiv at archlinux.org>
+# Contributor: Mateusz Herych <heniekk at gmail.com>
+# Contributor: Charles Lindsay <charles at chaoslizard.org>
+
+pkgname=vhba-module
+pkgver=20140928
+_extramodules=extramodules-4.1-ARCH
+pkgrel=15
+pkgdesc="Kernel module that emulates SCSI devices"
+arch=('i686' 'x86_64')
+url="http://cdemu.sourceforge.net/"
+license=('GPL')
+depends=('linux>=4.1' 'linux<4.2')
+makedepends=('linux-headers>=4.1' 'linux-headers<4.2')
+options=(!makeflags)
+install=$pkgname.install
+source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
+        '60-vhba.rules')
+md5sums=('967007230bb028424216d9b35da422c0'
+         '4dc37dc348b5a2c83585829bde790dcc')
+
+prepare() {
+  cd $pkgname-$pkgver
+}
+
+build() {
+  cd $pkgname-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make KDIR=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
+  install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
+
+  cd $startdir
+  cp -f $install ${install}.pkg
+  true && install=${install}.pkg
+  sed -i "s/EXTRAMODULES=.*/EXTRAMODULES=$_extramodules/" $install
+}
+
+# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-staging-i686/vhba-module.install (from rev 136647, vhba-module/trunk/vhba-module.install)
===================================================================
--- community-staging-i686/vhba-module.install	                        (rev 0)
+++ community-staging-i686/vhba-module.install	2015-07-10 18:26:31 UTC (rev 136648)
@@ -0,0 +1,21 @@
+EXTRAMODULES=extramodules-4.1-ARCH
+
+_updatemod() {
+  echo "  > Updating module dependencies..."
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  getent group cdemu &>/dev/null || groupadd -r cdemu
+  _updatemod
+}
+
+post_upgrade() {
+  _updatemod
+}
+
+post_remove() {
+  _updatemod
+}
+
+# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-staging-x86_64/60-vhba.rules (from rev 136647, vhba-module/trunk/60-vhba.rules)
===================================================================
--- community-staging-x86_64/60-vhba.rules	                        (rev 0)
+++ community-staging-x86_64/60-vhba.rules	2015-07-10 18:26:31 UTC (rev 136648)
@@ -0,0 +1 @@
+ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess"

Copied: vhba-module/repos/community-staging-x86_64/PKGBUILD (from rev 136647, vhba-module/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-07-10 18:26:31 UTC (rev 136648)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Ray Rashif <schiv at archlinux.org>
+# Contributor: Mateusz Herych <heniekk at gmail.com>
+# Contributor: Charles Lindsay <charles at chaoslizard.org>
+
+pkgname=vhba-module
+pkgver=20140928
+_extramodules=extramodules-4.1-ARCH
+pkgrel=15
+pkgdesc="Kernel module that emulates SCSI devices"
+arch=('i686' 'x86_64')
+url="http://cdemu.sourceforge.net/"
+license=('GPL')
+depends=('linux>=4.1' 'linux<4.2')
+makedepends=('linux-headers>=4.1' 'linux-headers<4.2')
+options=(!makeflags)
+install=$pkgname.install
+source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
+        '60-vhba.rules')
+md5sums=('967007230bb028424216d9b35da422c0'
+         '4dc37dc348b5a2c83585829bde790dcc')
+
+prepare() {
+  cd $pkgname-$pkgver
+}
+
+build() {
+  cd $pkgname-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make KDIR=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
+  install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
+
+  cd $startdir
+  cp -f $install ${install}.pkg
+  true && install=${install}.pkg
+  sed -i "s/EXTRAMODULES=.*/EXTRAMODULES=$_extramodules/" $install
+}
+
+# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-staging-x86_64/vhba-module.install (from rev 136647, vhba-module/trunk/vhba-module.install)
===================================================================
--- community-staging-x86_64/vhba-module.install	                        (rev 0)
+++ community-staging-x86_64/vhba-module.install	2015-07-10 18:26:31 UTC (rev 136648)
@@ -0,0 +1,21 @@
+EXTRAMODULES=extramodules-4.1-ARCH
+
+_updatemod() {
+  echo "  > Updating module dependencies..."
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  getent group cdemu &>/dev/null || groupadd -r cdemu
+  _updatemod
+}
+
+post_upgrade() {
+  _updatemod
+}
+
+post_remove() {
+  _updatemod
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list