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

Tobias Powalowski tpowa at nymeria.archlinux.org
Sat Apr 6 09:36:23 UTC 2013


    Date: Saturday, April 6, 2013 @ 11:36:22
  Author: tpowa
Revision: 87766

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

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

----------------------------------------------+
 community-testing-i686/60-vhba.rules         |   13 +++++++
 community-testing-i686/PKGBUILD              |   44 +++++++++++++++++++++++++
 community-testing-i686/vhba-module.install   |   21 +++++++++++
 community-testing-x86_64/60-vhba.rules       |   13 +++++++
 community-testing-x86_64/PKGBUILD            |   44 +++++++++++++++++++++++++
 community-testing-x86_64/vhba-module.install |   21 +++++++++++
 6 files changed, 156 insertions(+)

Copied: vhba-module/repos/community-testing-i686/60-vhba.rules (from rev 87765, vhba-module/trunk/60-vhba.rules)
===================================================================
--- community-testing-i686/60-vhba.rules	                        (rev 0)
+++ community-testing-i686/60-vhba.rules	2013-04-06 09:36:22 UTC (rev 87766)
@@ -0,0 +1,13 @@
+ACTION=="remove", GOTO="vhba_end"
+KERNEL!="vhba_ctl", GOTO="vhba_end"
+
+NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu"
+
+TEST=="/sys/fs/cgroup/systemd", GOTO="vhba_uaccess"
+TAG+="udev-acl"
+GOTO="vhba_end"
+
+LABEL="vhba_uaccess"
+TAG+="uaccess"
+
+LABEL="vhba_end"

Copied: vhba-module/repos/community-testing-i686/PKGBUILD (from rev 87765, vhba-module/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2013-04-06 09:36:22 UTC (rev 87766)
@@ -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=20120422
+_extramodules=extramodules-3.8-ARCH
+pkgrel=20
+pkgdesc="Kernel module that emulates SCSI devices"
+arch=('i686' 'x86_64')
+url="http://cdemu.sourceforge.net/"
+license=('GPL')
+depends=('linux>=3.8' 'linux<3.9')
+makedepends=('linux-headers')
+options=(!makeflags)
+install=$pkgname.install
+source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
+        '60-vhba.rules')
+md5sums=('d97372da1d270d1605742b2995fb6678'
+         'b5e82d0160e7a181219b67c1794d5c27')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  make KDIR=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  install -Dm644 vhba.ko \
+    "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
+
+  sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extramodules'/" \
+    "$startdir/vhba-module.install"
+
+  install -Dm644 "$srcdir/60-vhba.rules" \
+	  "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-testing-i686/vhba-module.install (from rev 87765, vhba-module/trunk/vhba-module.install)
===================================================================
--- community-testing-i686/vhba-module.install	                        (rev 0)
+++ community-testing-i686/vhba-module.install	2013-04-06 09:36:22 UTC (rev 87766)
@@ -0,0 +1,21 @@
+_updatemod() {
+  echo "  > Updating module dependencies..."
+  EXTRAMODULES='extramodules-3.8-ARCH'
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  post_upgrade
+}
+
+post_upgrade() {
+  getent group cdemu &>/dev/null || groupadd -r cdemu
+  _updatemod
+}
+
+post_remove() {
+  _updatemod
+  groupdel cdemu
+}
+
+# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-testing-x86_64/60-vhba.rules (from rev 87765, vhba-module/trunk/60-vhba.rules)
===================================================================
--- community-testing-x86_64/60-vhba.rules	                        (rev 0)
+++ community-testing-x86_64/60-vhba.rules	2013-04-06 09:36:22 UTC (rev 87766)
@@ -0,0 +1,13 @@
+ACTION=="remove", GOTO="vhba_end"
+KERNEL!="vhba_ctl", GOTO="vhba_end"
+
+NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu"
+
+TEST=="/sys/fs/cgroup/systemd", GOTO="vhba_uaccess"
+TAG+="udev-acl"
+GOTO="vhba_end"
+
+LABEL="vhba_uaccess"
+TAG+="uaccess"
+
+LABEL="vhba_end"

Copied: vhba-module/repos/community-testing-x86_64/PKGBUILD (from rev 87765, vhba-module/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2013-04-06 09:36:22 UTC (rev 87766)
@@ -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=20120422
+_extramodules=extramodules-3.8-ARCH
+pkgrel=20
+pkgdesc="Kernel module that emulates SCSI devices"
+arch=('i686' 'x86_64')
+url="http://cdemu.sourceforge.net/"
+license=('GPL')
+depends=('linux>=3.8' 'linux<3.9')
+makedepends=('linux-headers')
+options=(!makeflags)
+install=$pkgname.install
+source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
+        '60-vhba.rules')
+md5sums=('d97372da1d270d1605742b2995fb6678'
+         'b5e82d0160e7a181219b67c1794d5c27')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+
+  make KDIR=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  install -Dm644 vhba.ko \
+    "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
+
+  sed -i -e "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extramodules'/" \
+    "$startdir/vhba-module.install"
+
+  install -Dm644 "$srcdir/60-vhba.rules" \
+	  "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-testing-x86_64/vhba-module.install (from rev 87765, vhba-module/trunk/vhba-module.install)
===================================================================
--- community-testing-x86_64/vhba-module.install	                        (rev 0)
+++ community-testing-x86_64/vhba-module.install	2013-04-06 09:36:22 UTC (rev 87766)
@@ -0,0 +1,21 @@
+_updatemod() {
+  echo "  > Updating module dependencies..."
+  EXTRAMODULES='extramodules-3.8-ARCH'
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  post_upgrade
+}
+
+post_upgrade() {
+  getent group cdemu &>/dev/null || groupadd -r cdemu
+  _updatemod
+}
+
+post_remove() {
+  _updatemod
+  groupdel cdemu
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list