diff options
-rw-r--r-- | testing/open-iscsi-grsec/APKBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/testing/open-iscsi-grsec/APKBUILD b/testing/open-iscsi-grsec/APKBUILD index 09b3091d07..1bda4a7f2e 100644 --- a/testing/open-iscsi-grsec/APKBUILD +++ b/testing/open-iscsi-grsec/APKBUILD @@ -31,22 +31,26 @@ source="http://www.open-iscsi.org/bits/$_realname-$_realver.tar.gz CVE-2009-1297.patch open-iscsi-2.0.871-makefile-cleanup.patch" +_builddir="$srcdir/$_realname-$_realver" + prepare() { - cd "$srcdir"/$_realname-$_realver + cd "$_builddir" patch -p0 < ../../CVE-2009-1297.patch || return 1 patch -p1 < ../../open-iscsi-2.0.871-makefile-cleanup.patch || return 1 patch -p2 < ../../Makefile.kernel.patch || return 1 } build() { - cd "$srcdir"/$_realname-$_realver + cd "$_builddir" unset ARCH make KSRC="$_ksrc" kernel || return 1 } package() { - cd "$srcdir"/$_realname-$_realver - make KSRC="$_ksrc" INSTALL_MOD_PATH="$pkgdir" install_kernel || return + cd "$_builddir" + make KSRC="$_ksrc" DESTDIR="$pkgdir" \ + INSTALL_MOD_DIR="extra/drivers/scsi" \ + install_kernel } md5sums="0c403e8c9ad41607571ba0e6e8ff196e open-iscsi-2.0-871.tar.gz |