blob: 8dd9119b8eafb6f98ac2994cc6ace3f1314313f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
# keep these in sync with kernel version
_kflavour=""
_kver="4.14.138-mc15"
_kver2="$_kver-easy"
pkgname="zfs-$_kver"
pkgver=0.8.2
pkgrel=0
pkgdesc="Linux support for the ZFS filesystem"
url="https://open-zfs.org"
arch="all"
license="CDDL"
depends="easy-kernel$_kflavour-modules-$_kver zfs-utils"
makedepends="eudev-dev libtirpc-dev linux-headers openssl-dev zlib-dev
easy-kernel$_kflavour-src-$_kver"
install=""
subpackages="$pkgname-dev"
source="https://github.com/zfsonlinux/zfs/releases/download/zfs-$pkgver/zfs-$pkgver.tar.gz"
builddir="$srcdir/zfs-$pkgver"
prepare() {
default_prepare
update_config_sub
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--with-linux=/usr/src/linux-$_kver \
--with-spec=generic \
--with-config=kernel
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
dev() {
default_dev
mv "$pkgdir/usr/src/spl-$pkgver" "$subpkgdir/usr/src"
cd "$pkgdir/usr/src/zfs-$pkgver"
mv zfs.release.in zfs_config.h.in "$subpkgdir/usr/src/zfs-$pkgver"
cd "$pkgdir/usr/src/zfs-$pkgver/$_kver2"
mv Module.symvers zfs.release spl.release "$subpkgdir/usr/src/zfs-$pkgver/$_kver2"
rm -r "$pkgdir/usr/src"
}
sha512sums="1424b1a030b814f812b5da422100669db5b8c3ccae14c2fdd62a5e0df28e7255247fe5ca99c95a14f08c92cc1574c22dd132093e4a1dd81e38c95b10cc5e2496 zfs-0.8.2.tar.gz"
|