Advertisement
pquiney

iscsitarget PKGBUILD

Apr 24th, 2011
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. # Contributor: Henry Jensen <hjensen@delilinux.de>
  2. # Contributor: Kenni Lund <kenni @ kelu.dk>
  3. # Contributor: Phil Quiney <pquiney@post.com>
  4.  
  5. pkgname=iscsitarget-kernel
  6. pkgver=1.4.20.2
  7. pkgrel=1
  8. pkgdesc="An opensource iSCSI target - kernel module"
  9. url="http://iscsitarget.sourceforge.net"
  10. license="GPL-2"
  11. arch=('i686' 'x86_64')
  12. rundepends=('kernel26')
  13. depends=('kernel26' 'openssl')
  14. install=iscsitarget.install
  15. source=(http://downloads.sourceforge.net/project/iscsitarget/iscsitarget/$pkgver/iscsitarget-$pkgver.tar.gz)
  16. md5sums=('2f23c0bfe124d79f5c20e34ef2aaff82')
  17.  
  18.  
  19. build() {
  20. if [ ! -f $startdir/svn_2.6.36_compile.patch ]
  21. then
  22. msg "Fetching patch for 2.6.36+ compile fix..."
  23. svn diff -c 373 https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget > $startdir/svn_2.6.36_compile.patch
  24. fi
  25.  
  26. if [ ! -f $startdir/svn_2.6.37_compile.patch ]
  27. then
  28. msg "Fetching patch 1/2 for 2.6.37 compile fix..."
  29. svn diff -c 378 https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget > $startdir/svn_2.6.37_compile.patch
  30. fi
  31.  
  32. if [ ! -f $startdir/svn_2.6.37_2_compile.patch ]
  33. then
  34. msg "Fetching patch 2/2 for 2.6.37 compile fix..."
  35. svn diff -c 389 https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget > $startdir/svn_2.6.37_2_compile.patch
  36. fi
  37.  
  38. if [ ! -f $startdir/svn_2.6.38_compile.patch ]
  39. then
  40. msg "Fetching patch for 2.6.38 compile fix..."
  41. svn diff -c 411 https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget > $startdir/svn_2.6.38_compile.patch
  42. fi
  43.  
  44. cd $startdir/src/iscsitarget-$pkgver
  45. patch -p1 < ../../svn_2.6.36_compile.patch
  46. patch -p1 < ../../svn_2.6.37_compile.patch
  47. patch -p1 < ../../svn_2.6.37_2_compile.patch
  48. patch -p1 < ../../svn_2.6.38_compile.patch
  49. export KERNSRC=/usr/src/linux-$(uname -r)
  50. sed -i 's/slackware-version/arch-release/' Makefile
  51. make kernel || return 1
  52. make DESTDIR=$startdir/pkg install-kernel
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement