APKBUILD 1.08 KB
Newer Older
1 2 3 4 5 6 7 8
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>

_flavor=grsec
_realname=iscsitarget
# source the kernel version
if [ -f ../linux-$_flavor/APKBUILD ]; then
	. ../linux-$_flavor/APKBUILD
fi
9
_kernelver=$pkgver-r$pkgrel
10 11 12 13 14 15 16 17
_abi_release=$pkgver-${_flavor}

# get pkgver from iscsitarget
if [ -f ../iscsitarget/APKBUILD ]; then
	. ../iscsitarget/APKBUILD
fi
pkgname=${_realname}-${_flavor}
pkgver=${pkgver:-0.4.17}
18
pkgrel=0
19 20 21
pkgdesc="$_flavor kernel modules for iscsitarget"
url="http://iscsitarget.sourceforge.net/"
license="GPL-2"
Natanael Copa's avatar
Natanael Copa committed
22
depends="linux-${_flavor}=${_kernelver}"
23
install=
Natanael Copa's avatar
Natanael Copa committed
24
makedepends="linux-${_flavor}-dev=${_kernelver}"
25 26 27 28 29 30 31
subpackages=
source="http://downloads.sourceforge.net/$_realname/$_realname-$pkgver.tar.gz
	"

build() {
	cd "$srcdir"/$_realname-$pkgver
	for i in ../*.patch; do
32
		[ -r "$i" ] || continue
33 34 35 36 37 38 39 40 41
		msg "Applying $i"
		patch -p1 < $i || return 1
	done

	unset ARCH
	local ksrc=/usr/src/linux-headers-${_abi_release}
	make KSRC="$ksrc" kernel || return 1
	make KSRC="$ksrc" DISTDIR="$pkgdir" install-kernel || return 1
}
42
md5sums="9beca214c28949cce1716b49fec57de4  iscsitarget-1.4.19.tar.gz"