diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-05-20 17:52:48 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-05-20 17:53:07 +0200 |
commit | c38f1dcfc96295e73a50e8d068fb7a11e7cf0705 (patch) | |
tree | e0ca43ea1e68f33d58a4d21ad46261f693cd513a /testing | |
parent | 40c2e2a3dc1a2cbe75adc7ec57eb0050afdb857a (diff) | |
download | aports-c38f1dcfc96295e73a50e8d068fb7a11e7cf0705.tar.bz2 aports-c38f1dcfc96295e73a50e8d068fb7a11e7cf0705.tar.xz |
testing/spl-grsec: move userland to spl pkg
Diffstat (limited to 'testing')
-rw-r--r-- | testing/spl-grsec/APKBUILD | 43 |
1 files changed, 13 insertions, 30 deletions
diff --git a/testing/spl-grsec/APKBUILD b/testing/spl-grsec/APKBUILD index 84fd76bf56..c0591b1e91 100644 --- a/testing/spl-grsec/APKBUILD +++ b/testing/spl-grsec/APKBUILD @@ -9,7 +9,7 @@ _kver=4.4.11 _kpkgrel=0 _realver=0.6.5.7 -_mypkgrel=1 +_mypkgrel=2 # source the kernel version if [ -f ../../main/linux-$_flavor/APKBUILD ]; then @@ -30,57 +30,40 @@ arch="x86 x86_64" license="GPL" depends="" depends_dev="linux-grsec-dev=$_kernelver" -makedepends="$depends_dev perl automake autoconf libtool linux-headers" +makedepends="$depends_dev linux-headers" install="" -subpackages="$pkgname-dev $pkgname-doc spl-utils:utils" -source="http://archive.zfsonlinux.org/downloads/zfsonlinux/spl/spl-$_realver.tar.gz -" +subpackages="$pkgname-dev" +source="http://archive.zfsonlinux.org/downloads/zfsonlinux/spl/spl-$_realver.tar.gz" -_builddir="$srcdir"/spl-$_realver +builddir="$srcdir"/spl-$_realver prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + # do not remove as it sources other prepare + default_prepare } build() { - cd "$_builddir" - ./autogen.sh || return 1 + cd "$builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ - --with-config=all \ + --with-config=kernel \ --with-linux=/usr/src/linux-headers-${_abi_release} \ || return 1 make || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 } 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 + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/src "$subpkgdir"/usr + default_dev } md5sums="4e6866cea182d25f2ecab1fb7201316a spl-0.6.5.7.tar.gz" |