diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2012-11-22 17:37:01 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2012-11-22 17:37:01 +0100 |
commit | 9ca44822a3b26ad37c6a45e5385b38c0384e5312 (patch) | |
tree | 89d298fabd2bb986f8d6bc09f98070aef3d6def5 /testing/spl-grsec/APKBUILD | |
parent | 452b90aac34dc84967abaae2024ddfc6b378833b (diff) | |
download | aports-9ca44822a3b26ad37c6a45e5385b38c0384e5312.tar.bz2 aports-9ca44822a3b26ad37c6a45e5385b38c0384e5312.tar.xz |
testing/spl-grsec: split utils and modules
Diffstat (limited to 'testing/spl-grsec/APKBUILD')
-rw-r--r-- | testing/spl-grsec/APKBUILD | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/testing/spl-grsec/APKBUILD b/testing/spl-grsec/APKBUILD index e4ab391e8e..853ed0eac9 100644 --- a/testing/spl-grsec/APKBUILD +++ b/testing/spl-grsec/APKBUILD @@ -9,7 +9,7 @@ _kver=3.6.7 _kpkgrel=0 _realver=0.6.0-rc12 -_mypkgrel=0 +_mypkgrel=1 # source the kernel version if [ -f ../../main/linux-$_flavor/APKBUILD ]; then @@ -32,7 +32,7 @@ depends="" depends_dev="linux-grsec-dev=$_kernelver" makedepends="$depends_dev perl automake autoconf libtool" install="" -subpackages="$pkgname-dev" +subpackages="$pkgname-dev $pkgname-utils" source="http://github.com/downloads/zfsonlinux/spl/spl-$_realver.tar.gz" _builddir="$srcdir"/spl-$_realver @@ -63,13 +63,25 @@ build() { } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 - rm -f "$pkgdir"/usr/lib/*.la + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la } dev() { - default_dev + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/src \ + "$subpkgdir"/usr || return 1 + default_dev +} + +utils() { + pkgdesc="Userspace spl tools" + mkdir -p "$subpkgdir" + mv "$pkgdir"/* "$subpkgdir" || return 1 + mkdir -p "$pkgdir"/lib + mv "$subpkgdir"/lib/modules \ + "$pkgdir"/lib/ || return 1 } md5sums="97222567144e2987bb18cd1f83fd6173 spl-0.6.0-rc12.tar.gz" |