Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Contributor: Henry Jensen <hjensen@delilinux.de>
- # Contributor: Kenni Lund <kenni @ kelu.dk>
- # Contributor: Phil Quiney <pquiney@post.com>
- pkgname=iscsitarget-kernel
- pkgver=1.4.20.2
- pkgrel=1
- pkgdesc="An opensource iSCSI target - kernel module"
- url="http://iscsitarget.sourceforge.net"
- license="GPL-2"
- arch=('i686' 'x86_64')
- rundepends=('kernel26')
- depends=('kernel26' 'openssl')
- install=iscsitarget.install
- source=(http://downloads.sourceforge.net/project/iscsitarget/iscsitarget/$pkgver/iscsitarget-$pkgver.tar.gz)
- md5sums=('2f23c0bfe124d79f5c20e34ef2aaff82')
- build() {
- if [ ! -f $startdir/svn_2.6.36_compile.patch ]
- then
- msg "Fetching patch for 2.6.36+ compile fix..."
- svn diff -c 373 https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget > $startdir/svn_2.6.36_compile.patch
- fi
- if [ ! -f $startdir/svn_2.6.37_compile.patch ]
- then
- msg "Fetching patch 1/2 for 2.6.37 compile fix..."
- svn diff -c 378 https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget > $startdir/svn_2.6.37_compile.patch
- fi
- if [ ! -f $startdir/svn_2.6.37_2_compile.patch ]
- then
- msg "Fetching patch 2/2 for 2.6.37 compile fix..."
- svn diff -c 389 https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget > $startdir/svn_2.6.37_2_compile.patch
- fi
- if [ ! -f $startdir/svn_2.6.38_compile.patch ]
- then
- msg "Fetching patch for 2.6.38 compile fix..."
- svn diff -c 411 https://iscsitarget.svn.sourceforge.net/svnroot/iscsitarget > $startdir/svn_2.6.38_compile.patch
- fi
- cd $startdir/src/iscsitarget-$pkgver
- patch -p1 < ../../svn_2.6.36_compile.patch
- patch -p1 < ../../svn_2.6.37_compile.patch
- patch -p1 < ../../svn_2.6.37_2_compile.patch
- patch -p1 < ../../svn_2.6.38_compile.patch
- export KERNSRC=/usr/src/linux-$(uname -r)
- sed -i 's/slackware-version/arch-release/' Makefile
- make kernel || return 1
- make DESTDIR=$startdir/pkg install-kernel
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement