diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-11-16 14:51:16 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-11-16 14:51:16 +0000 |
commit | 15e77dc1b7e476ce47bb1259a15b428b9e4c8f59 (patch) | |
tree | a494c9e650b16078c1c46531f4d390012a20e954 /testing/spl-git-grsec | |
parent | 257b00a96d4464f4dca9978aedb35165ea54b74e (diff) | |
download | aports-15e77dc1b7e476ce47bb1259a15b428b9e4c8f59.tar.bz2 aports-15e77dc1b7e476ce47bb1259a15b428b9e4c8f59.tar.xz |
Revert "testing/{spl,zfs}-git-grsec: remove due to it broke build servers"
This reverts commit 565d2dc553589877ca5bb16231ab6961b21d4379.
Diffstat (limited to 'testing/spl-git-grsec')
-rw-r--r-- | testing/spl-git-grsec/APKBUILD | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/testing/spl-git-grsec/APKBUILD b/testing/spl-git-grsec/APKBUILD new file mode 100644 index 0000000000..682cdd7fe7 --- /dev/null +++ b/testing/spl-git-grsec/APKBUILD @@ -0,0 +1,86 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +_flavor=${FLAVOR:-grsec} +_realname=spl-git +_name=$_realname-$_flavor + +_kpkg=linux-$_flavor +_kver=3.6.6 +_kpkgrel=2 + +_mypkgrel=0 +_date=$(date +%Y%m%d) + +# source the kernel version +if [ -f ../../main/linux-$_flavor/APKBUILD ]; then + . ../../main/linux-$_flavor/APKBUILD + [ "$_kver" != "$pkgver" ] && die "$_name: Please update _kver to $pkgver" + [ "$_kpkgrel" != "$pkgrel" ] && die "$_name: Please update _kpkgrel to $pkgrel" +fi + +_kernelver=$_kver-r$_kpkgrel +_abi_release=$_kver-${_flavor} + +pkgname=$_name +pkgver=$_kver +pkgrel=$(($_kpkgrel + $_mypkgrel)) +pkgdesc="Solaris Porting Layer" +url="http://zfsonlinux.org" +arch="x86_64" +license="GPL" +depends="" +depends_dev="linux-grsec-dev" +makedepends="$depends_dev perl automake autoconf libtool" +install="" +subpackages="$pkgname-dev $_realname-utils:utils" +source="saveas-https://github.com/zfsonlinux/spl/archive/master.tar.gz/spl-git-$_date.tar.gz" + +_builddir="$srcdir"/spl-master + +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 +} + +build() { + cd "$_builddir" + export GCC_SPECS=/usr/share/gcc/hardenednopie.specs + ./autogen.sh || return 1 + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --with-config=all \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +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="9b736d4c458be637a145474532d1292a spl-git-20121108.tar.gz" |