Date: Wednesday, August 21, 2013 @ 00:22:43 Author: tpowa Revision: 96176
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 96175, vhba-module/trunk/60-vhba.rules) vhba-module/repos/community-testing-i686/PKGBUILD (from rev 96175, vhba-module/trunk/PKGBUILD) vhba-module/repos/community-testing-i686/vhba-module.install (from rev 96175, 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 96175, vhba-module/trunk/60-vhba.rules) vhba-module/repos/community-testing-x86_64/PKGBUILD (from rev 96175, vhba-module/trunk/PKGBUILD) vhba-module/repos/community-testing-x86_64/vhba-module.install (from rev 96175, vhba-module/trunk/vhba-module.install) ----------------------------------------------+ community-testing-i686/60-vhba.rules | 1 community-testing-i686/PKGBUILD | 40 +++++++++++++++++++++++++ community-testing-i686/vhba-module.install | 22 +++++++++++++ community-testing-x86_64/60-vhba.rules | 1 community-testing-x86_64/PKGBUILD | 40 +++++++++++++++++++++++++ community-testing-x86_64/vhba-module.install | 22 +++++++++++++ 6 files changed, 126 insertions(+) Copied: vhba-module/repos/community-testing-i686/60-vhba.rules (from rev 96175, vhba-module/trunk/60-vhba.rules) =================================================================== --- community-testing-i686/60-vhba.rules (rev 0) +++ community-testing-i686/60-vhba.rules 2013-08-20 22:22:43 UTC (rev 96176) @@ -0,0 +1 @@ +ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess" Copied: vhba-module/repos/community-testing-i686/PKGBUILD (from rev 96175, vhba-module/trunk/PKGBUILD) =================================================================== --- community-testing-i686/PKGBUILD (rev 0) +++ community-testing-i686/PKGBUILD 2013-08-20 22:22:43 UTC (rev 96176) @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: Ray Rashif <sc...@archlinux.org> +# Contributor: Mateusz Herych <heni...@gmail.com> +# Contributor: Charles Lindsay <char...@chaoslizard.org> + +pkgname=vhba-module +pkgver=20130607 +_extramodules=extramodules-3.10-ARCH +pkgrel=11 +pkgdesc="Kernel module that emulates SCSI devices" +arch=('i686' 'x86_64') +url="http://cdemu.sourceforge.net/" +license=('GPL') +depends=('linux>=3.10' 'linux<3.11') +makedepends=('linux-headers') +options=(!makeflags) +install=$pkgname.install +source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2" + '60-vhba.rules') +md5sums=('92a681e4665aa85a8335d00395a61697' + '4dc37dc348b5a2c83585829bde790dcc') + +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-testing-i686/vhba-module.install (from rev 96175, vhba-module/trunk/vhba-module.install) =================================================================== --- community-testing-i686/vhba-module.install (rev 0) +++ community-testing-i686/vhba-module.install 2013-08-20 22:22:43 UTC (rev 96176) @@ -0,0 +1,22 @@ +EXTRAMODULES= + +_updatemod() { + echo " > Updating module dependencies..." + 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 96175, vhba-module/trunk/60-vhba.rules) =================================================================== --- community-testing-x86_64/60-vhba.rules (rev 0) +++ community-testing-x86_64/60-vhba.rules 2013-08-20 22:22:43 UTC (rev 96176) @@ -0,0 +1 @@ +ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess" Copied: vhba-module/repos/community-testing-x86_64/PKGBUILD (from rev 96175, vhba-module/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2013-08-20 22:22:43 UTC (rev 96176) @@ -0,0 +1,40 @@ +# $Id$ +# Maintainer: Ray Rashif <sc...@archlinux.org> +# Contributor: Mateusz Herych <heni...@gmail.com> +# Contributor: Charles Lindsay <char...@chaoslizard.org> + +pkgname=vhba-module +pkgver=20130607 +_extramodules=extramodules-3.10-ARCH +pkgrel=11 +pkgdesc="Kernel module that emulates SCSI devices" +arch=('i686' 'x86_64') +url="http://cdemu.sourceforge.net/" +license=('GPL') +depends=('linux>=3.10' 'linux<3.11') +makedepends=('linux-headers') +options=(!makeflags) +install=$pkgname.install +source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2" + '60-vhba.rules') +md5sums=('92a681e4665aa85a8335d00395a61697' + '4dc37dc348b5a2c83585829bde790dcc') + +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-testing-x86_64/vhba-module.install (from rev 96175, vhba-module/trunk/vhba-module.install) =================================================================== --- community-testing-x86_64/vhba-module.install (rev 0) +++ community-testing-x86_64/vhba-module.install 2013-08-20 22:22:43 UTC (rev 96176) @@ -0,0 +1,22 @@ +EXTRAMODULES= + +_updatemod() { + echo " > Updating module dependencies..." + 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: