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

Untitled

By: a guest on Mar 18th, 2011  |  syntax: Bash  |  size: 1.38 KB  |  views: 81  |  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. # Contributor: Henry Jensen <hjensen@delilinux.de>
  2. # Contributor: Kenni Lund <kenni @ kelu.dk>
  3. pkgname=iscsitarget-kernel
  4. pkgver=1.4.20.2
  5. pkgrel=1
  6. pkgdesc="An opensource iSCSI target - kernel module"
  7. url="http://iscsitarget.sourceforge.net"
  8. license="GPL-2"
  9. arch=('i686' 'x86_64')
  10. rundepends=('kernel26')
  11. depends=('kernel26' 'openssl')
  12. install=iscsitarget.install
  13. source=(http://downloads.sourceforge.net/project/iscsitarget/iscsitarget/$pkgver/iscsitarget-$pkgver.tar.gz)
  14. md5sums=('2f23c0bfe124d79f5c20e34ef2aaff82')
  15.  
  16.  
  17. build() {
  18.   msg "Fetching patch for 2.6.36+ compile fix..."
  19.   svn diff -c 373 https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget > $startdir/svn_2.6.36_compile.patch
  20.   msg "Fetching patch 1/2 for 2.6.37 compile fix..."
  21.   svn diff -c 378 https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget > $startdir/svn_2.6.37_compile.patch
  22.   msg "Fetching patch 2/2 for 2.6.37 compile fix..."
  23.   svn diff -c 389 https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget > $startdir/svn_2.6.37_2_compile.patch
  24.   cd $startdir/src/iscsitarget-$pkgver
  25.   patch -p1 < ../../svn_2.6.36_compile.patch
  26.   patch -p1 < ../../svn_2.6.37_compile.patch
  27.   patch -p1 < ../../svn_2.6.37_2_compile.patch
  28.   export KERNSRC=/usr/src/linux-$(uname -r)
  29.   sed -i 's/slackware-version/arch-release/' Makefile
  30.   make kernel || return 1
  31.   make DESTDIR=$startdir/pkg install-kernel
  32. }
clone this paste RAW Paste Data