From 49b4c1dfaf90f1435fe46e47ded7ca768d0be291 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 29 Oct 2009 17:30:53 +0000 Subject: *-grsec: upgrade kernel to 2.6.31.5 and use package() function --- main/iscsitarget-grsec/APKBUILD | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'main/iscsitarget-grsec/APKBUILD') diff --git a/main/iscsitarget-grsec/APKBUILD b/main/iscsitarget-grsec/APKBUILD index ad63f44a9a..009165e9e7 100644 --- a/main/iscsitarget-grsec/APKBUILD +++ b/main/iscsitarget-grsec/APKBUILD @@ -25,16 +25,24 @@ subpackages= source="http://downloads.sourceforge.net/$_realname/$_realname-$_iscsiver.tar.gz " -build() { +prepare() { cd "$srcdir"/$_realname-$_iscsiver # for i in ../*.patch; do # msg "Applying $i" # patch -p1 < $i || return 1 # done +} +build() { + cd "$srcdir"/$_realname-$_iscsiver unset ARCH local ksrc=/usr/src/linux-headers-${_abi_release} make KSRC="$ksrc" kernel || return 1 +} + +package() { + cd "$srcdir"/$_realname-$_iscsiver make KSRC="$ksrc" DISTDIR="$pkgdir" install-kernel || return 1 } + md5sums="9e756e89cc47aaa71824ed34a6560543 iscsitarget-1.4.18.tar.gz" -- cgit v1.2.3