# Contributor: Carlo Landmeter # Maintainer: Natanael Copa setvar _flavor = ${FLAVOR:-vanilla} setvar _realname = 'zfs' setvar _name = "$_realname-$_flavor" setvar _kpkg = "linux-$_flavor" setvar _kver = '4.9.54' setvar _kpkgrel = '0' setvar _realver = '0.7.1' setvar _mypkgrel = '0' setvar _kernelver = "$_kver-r$_kpkgrel" setvar _abi_release = ${_kver} setvar pkgname = "$_name" setvar pkgver = "$_kver" setvar pkgrel = $(($_kpkgrel + $_mypkgrel)) setvar pkgdesc = ""ZFS for Linux"" setvar url = ""http://zfsonlinux.org"" setvar arch = ""x86 x86_64 aarch64"" setvar license = ""CDDL"" setvar depends = ""spl-$_flavor linux-${_flavor}=${_kernelver}"" setvar depends_dev = ""glib-dev e2fsprogs-dev util-linux-dev libtirpc-dev linux-$_flavor-dev=$_kernelver spl-$_flavor-dev"" setvar makedepends = ""$depends_dev automake autoconf libtool linux-headers"" setvar install_if = ""zfs linux-vanilla-$_kver"" setvar install = """" setvar subpackages = ""$pkgname-dev"" setvar source = ""https://github.com/zfsonlinux/zfs/releases/download/zfs-$_realver/zfs-$_realver.tar.gz "" setvar builddir = ""$srcdir/$_realname-$_realver"" proc prepare { # source the kernel version shell { if test -f "$startdir"/../../main/linux-$_flavor/APKBUILD { source "$startdir"/../../main/linux-$_flavor/APKBUILD if test $_kver != $pkgver { die "$_name: Please update _kver to $pkgver" } if test $_kpkgrel != $pkgrel { die "$_name: Please update _kpkgrel to $pkgrel" } } } || return 1 default_prepare autoreconf -vif || return 1 } proc build { cd $builddir ./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 || return 1 } proc package { cd $builddir make DESTDIR="$pkgdir" \ install || return 1 } proc dev { mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/src "$subpkgdir"/usr || return 1 default_dev } setvar sha512sums = ""64b0a3b5eeaf09ce824e3e029880a8e5dcb3e4567d1fb2fa24c89d8e55fee1ebe2d2f3a9f77d5468cc5637074e27d5ba7696b566829c93fd69c610b288200a37 zfs-0.7.1.tar.gz""