diff options
author | Leonardo Arena <rnalrd@gmail.com> | 2010-03-09 14:09:18 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@gmail.com> | 2010-03-09 14:09:18 +0000 |
commit | 2b1f2c790f0250674c1a7de488040e6c1adc48ce (patch) | |
tree | 62ad692fb91b0c645f9af5ad00e400b4e92ba58c | |
parent | a9274b1b55381553f3a783e94f6339cb35c2a24f (diff) | |
download | aports-2b1f2c790f0250674c1a7de488040e6c1adc48ce.tar.bz2 aports-2b1f2c790f0250674c1a7de488040e6c1adc48ce.tar.xz |
testing/open-iscsi-grsec: install modules in extra dir
-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 |