diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-20 01:03:47 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-20 01:03:54 +0000 |
commit | 2a4a9928dc6f584578d8340ee9b41654f4dada23 (patch) | |
tree | fece4fadfd168bc0204341b7ea42723c6b73ca23 /main/zfs-vanilla/APKBUILD | |
parent | c5cf7a9dc691eb09fe4fd30b06ad8ffa2ee94752 (diff) | |
download | aports-2a4a9928dc6f584578d8340ee9b41654f4dada23.tar.bz2 aports-2a4a9928dc6f584578d8340ee9b41654f4dada23.tar.xz |
main/zfs-vanilla: new aport
Diffstat (limited to 'main/zfs-vanilla/APKBUILD')
-rw-r--r-- | main/zfs-vanilla/APKBUILD | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/main/zfs-vanilla/APKBUILD b/main/zfs-vanilla/APKBUILD new file mode 100644 index 0000000000..c58f204d54 --- /dev/null +++ b/main/zfs-vanilla/APKBUILD @@ -0,0 +1,120 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Carlo Landmeter <clandmeter@gmail.com> + +_flavor=${FLAVOR:-vanilla} +_realname=zfs +_name=$_realname-$_flavor + +_kpkg=linux-$_flavor +_kver=4.4.18 +_kpkgrel=0 + +_realver=0.6.5.7 +_mypkgrel=0 + +# 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} + +pkgname=$_name +pkgver=$_kver +pkgrel=$(($_kpkgrel + $_mypkgrel)) +pkgdesc="ZFS for Linux" +url="http://zfsonlinux.org" +arch="x86 x86_64 aarch64" +license="CDDL" +depends="spl-$_flavor" +depends_dev="glib-dev e2fsprogs-dev util-linux-dev libtirpc-dev + linux-$_flavor-dev=$_kernelver spl-$_flavor-dev" +makedepends="$depends_dev automake autoconf libtool linux-headers" +install_if="zfs linux-vanilla-$_kver" +install="" +subpackages="$pkgname-dev" +source="http://archive.zfsonlinux.org/downloads/zfsonlinux/zfs/zfs-$_realver.tar.gz + 0001-Use-the-correct-macro-to-include-backtrace.patch + 0002-Include-sys-types.h-in-devid.h.patch + 0003-Add-missing-fcntl.h-to-includes-in-mount_zfs.c.patch + 0004-Ensure-correct-return-value-type.patch + 0005-Set-_DATE_FMT-to-if-not-defined-in-libspl-timestamp..patch + 0006-Move-hrtime_t-timestruc_t-and-timespec_t.patch + 0007-Remove-complicated-libspl-assert-wrappers.patch + 0008-Add-support-for-libtirpc.patch + 0009-Add-support-for-alpine-linux.patch + " + + +builddir="$srcdir/$_realname-$_realver" + +prepare() { + default_prepare + autoreconf -vif || return 1 +} + +build() { + cd "$builddir" + export LIBS="$LIBS -lintl" + KCFLAGS="-fno-pie" \ + EXTRA_KCFLAGS="-fno-pie -Wno-error=unused-but-set-variable" \ + ./configure --prefix=/usr \ + --with-tirpc \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --with-config=kernel \ + --with-linux=/usr/src/linux-headers-${_abi_release} \ + --with-spl=/usr/src/spl-${_realver} \ + || return 1 + make KCFLAGS="-fno-pie" \ + EXTRA_KCFLAGS="-fno-pie" \ + || return 1 +} + +package() { + cd "$builddir" + make KCFLAGS="-fno-pie" DESTDIR="$pkgdir" \ + install || return 1 +} + +dev() { + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/src "$subpkgdir"/usr || return 1 + default_dev +} + +md5sums="b470c0426da6e1e3513f5166c907218d zfs-0.6.5.7.tar.gz +f6ec48b9b5c441a1f54949370144fda5 0001-Use-the-correct-macro-to-include-backtrace.patch +9bad71efa929c9cde4521878250d85d3 0002-Include-sys-types.h-in-devid.h.patch +20e8a315dd63c6846f6391da1b72a733 0003-Add-missing-fcntl.h-to-includes-in-mount_zfs.c.patch +00fdcfb201ea5dae99b545830b594282 0004-Ensure-correct-return-value-type.patch +2799a289044ff300d22884d3e97742d7 0005-Set-_DATE_FMT-to-if-not-defined-in-libspl-timestamp..patch +53c86d3f6d17e9b13adc6c2d3e59039b 0006-Move-hrtime_t-timestruc_t-and-timespec_t.patch +a1138f272d993474b51951ae4d14e242 0007-Remove-complicated-libspl-assert-wrappers.patch +36d1338fc76c999441506f674a85d9fc 0008-Add-support-for-libtirpc.patch +ce98b83e44621e99e686cb384b36aaeb 0009-Add-support-for-alpine-linux.patch" +sha256sums="4a9e271bb9a6af8d564e4d5800e4fff36224f1697b923a7253659bdda80dc590 zfs-0.6.5.7.tar.gz +c30273c9874e8ab13f3eb8612dd7af6b7916b5b358060a1afee7c9b0af68f307 0001-Use-the-correct-macro-to-include-backtrace.patch +3898613e9ee3f46e7048a4a74ee2584979bd7b258e6831c9aeb46e6862ec3371 0002-Include-sys-types.h-in-devid.h.patch +f0153d3ebc2b58d6f0e0a7b4a705c6728cb18bfcff568f0eac917a21aba78324 0003-Add-missing-fcntl.h-to-includes-in-mount_zfs.c.patch +fa840bf91e0fd44677b7d180c72687f8caad36f673f0c01bf6bf6d29836530a5 0004-Ensure-correct-return-value-type.patch +8a6d9b6fa6edf57a7f91b1204099a7a8fc1f604b5edf8dc28f21681cdc56699c 0005-Set-_DATE_FMT-to-if-not-defined-in-libspl-timestamp..patch +96adc58dd0955b0dfe99321ae32fb07289836d2390a4492e6daa4911d3b638c4 0006-Move-hrtime_t-timestruc_t-and-timespec_t.patch +48167b51bdaac8d0cac4c534d5b01afc3bd6b416aceddc7e8bea705b30b6dc7e 0007-Remove-complicated-libspl-assert-wrappers.patch +259ab7271776e4034ab36f7cff06d8b9aa9fb74756f8ca1e1b933ddf93030f8e 0008-Add-support-for-libtirpc.patch +f06e42db7c7e41481dfb068d80c9b763d7c9aead4c8f017e9398f88d58424092 0009-Add-support-for-alpine-linux.patch" +sha512sums="559b826ae1a176217b92d8407729e2c5feeffb117dc9affaa8c9c2134d996b6c3cbe095f7a0c4666c9b131742491f1304eeb292e13e0df0b6d001fa620568af2 zfs-0.6.5.7.tar.gz +1e9f3c753b5bbe50ea6c953fec4200ae3a2de63abaa0dbcc2fb558a92716c27545ef773b3d0dc7bb1248622073a0db4c194d008bc83af7de7f90111169ffe31a 0001-Use-the-correct-macro-to-include-backtrace.patch +244f143c3cca0102ee98aed122b70d9e255a68645d90f927d67fe19e89c4678839b91fbb560c4e55306510e8aec4762c4afc671317df153940f17e905c17b928 0002-Include-sys-types.h-in-devid.h.patch +413cf13db3d390714fcd20c4150d3b0dbddcff031572117fcd4f015d929fde642381ab98f0b796dc4001472b2ee13dbf69261f4b83e990c2b0a080223667193c 0003-Add-missing-fcntl.h-to-includes-in-mount_zfs.c.patch +c26793c4ada197584d5829a6d31fd826333416a73ac1fa1d8f84277ba99312db72608d6d13171131cdf61b20e1c6c1ada51027361d48cc7b2863fd5b23df8083 0004-Ensure-correct-return-value-type.patch +fbd44839a422925a54710e8425405d24ca2428b78aa54b9a77492e5882a3e21aa4a5e53656466c5af79460fde75ac6aeb6f1f3fe85a1f26333d5acd36c6c9013 0005-Set-_DATE_FMT-to-if-not-defined-in-libspl-timestamp..patch +e20fb3004af9e6454513d7df09292465e5bc4101a558538cf794ef41b56a30713e1868dcda251e6b3ed10c5f0178e86068bcb113bd8228eedb626cb73bb19ecd 0006-Move-hrtime_t-timestruc_t-and-timespec_t.patch +9843aca713021772435cfa68fde5d9aa2de0387de0da6c48045db0348f2a24d2c2e968d3eb1921923170c9e2fd6514e31c5f0a7bacbf8510b53c2c625c4737d1 0007-Remove-complicated-libspl-assert-wrappers.patch +fa752b3ed04f05ec4fac257cbd2c581a57a792e12165d8f135a77b894445cdefb0da1753922e3e59c9fbaed20ca1dc6d19b5436745c8fa588a42304f6561f1a2 0008-Add-support-for-libtirpc.patch +d2efb627f493bab06f8049dc4bcb7c39269ff9dcd66879a0f96fa5040e1c7468f9e684277ec3e54841b3a5f8734d9470f2c6a1af470e3f1a71f759f9155b7ede 0009-Add-support-for-alpine-linux.patch" |