This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

vhba-module-ck

By: a guest on Jun 18th, 2013  |  syntax: Bash  |  size: 1.38 KB  |  views: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: prettyvanilla <prettyvanilla@lavabit.com>
  2. # Contributor: JKAbrams <JKAbrams@aur>
  3. # Contributor: Ray Rashif <schiv@archlinux.org>
  4. # Contributor: Mateusz Herych <heniekk@gmail.com>
  5. # Contributor: Charles Lindsay <charles@chaoslizard.org>
  6.  
  7. _pkgname=vhba-module
  8. pkgname=vhba-module-ck
  9. pkgver=20130607
  10. _extramodules=extramodules-$(uname -r | cut -d. -f1-2)-ck
  11. pkgrel=2
  12. pkgdesc="Kernel module that emulates SCSI devices. For linux-ck."
  13. arch=('i686' 'x86_64')
  14. url="http://cdemu.sourceforge.net/"
  15. license=('GPL')
  16. depends=('linux-ck>=3.9' 'linux-ck<3.10')
  17. makedepends=('linux-ck-headers')
  18. provides=('vhba-module=20130607')
  19. options=(!makeflags)
  20. install=$pkgname.install
  21. source=("http://downloads.sourceforge.net/cdemu/$_pkgname-$pkgver.tar.bz2"
  22.         '60-vhba.rules')
  23. md5sums=('92a681e4665aa85a8335d00395a61697'
  24.          '4dc37dc348b5a2c83585829bde790dcc')
  25.  
  26. build() {
  27.   cd "$srcdir/$_pkgname-$pkgver"
  28.  
  29.   _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
  30.  
  31.   make KDIR=/usr/lib/modules/$_kernver/build
  32. }
  33.  
  34. package() {
  35.   cd "$srcdir/$_pkgname-$pkgver"
  36.  
  37.   install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
  38.   install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
  39.  
  40.   cd $startdir
  41.   cp -f $install ${install}.pkg
  42.   true && install=${install}.pkg
  43.   sed -i "s/EXTRAMODULES=.*/EXTRAMODULES=$_extramodules/" $install
  44. }
clone this paste RAW Paste Data