aboutsummaryrefslogtreecommitdiffstats
path: root/main/iscsitarget-grsec/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/iscsitarget-grsec/APKBUILD')
-rw-r--r--main/iscsitarget-grsec/APKBUILD7
1 files changed, 3 insertions, 4 deletions
diff --git a/main/iscsitarget-grsec/APKBUILD b/main/iscsitarget-grsec/APKBUILD
index b593044200..184f8701bb 100644
--- a/main/iscsitarget-grsec/APKBUILD
+++ b/main/iscsitarget-grsec/APKBUILD
@@ -27,6 +27,7 @@ subpackages=
source="http://downloads.sourceforge.net/$_realname/$_realname-$_iscsiver.tar.gz
iscsitarget-1.4.18+linux-2.6.32.patch
"
+_ksrc=/usr/src/linux-headers-${_abi_release}
prepare() {
cd "$srcdir"/$_realname-$_iscsiver
@@ -39,14 +40,12 @@ prepare() {
build() {
cd "$srcdir"/$_realname-$_iscsiver
unset ARCH
- local ksrc=/usr/src/linux-headers-${_abi_release}
- make KSRC="$ksrc" kernel || return 1
+ make KSRC="$_ksrc" kernel || return 1
}
package() {
cd "$srcdir"/$_realname-$_iscsiver
- local ksrc=/usr/src/linux-headers-${_abi_release}
- make KSRC="$ksrc" DISTDIR="$pkgdir" install-kernel || return 1
+ make KSRC="$_ksrc" DISTDIR="$pkgdir" install-kernel || return 1
}
md5sums="9beca214c28949cce1716b49fec57de4 iscsitarget-1.4.19.tar.gz