blob: 69c0c43e8ee01b679bfbff986d16ee511300850f (
plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
_flavor=${FLAVOR:-grsec}
_realname=zfs
_name=$_realname-$_flavor
_kpkg=linux-$_flavor
_kver=4.4.39
_kpkgrel=0
_realver=0.6.5.8
_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}-${_kpkgrel}-${_flavor}
pkgname=$_name
pkgver=$_kver
pkgrel=$(($_kpkgrel + $_mypkgrel))
pkgdesc="ZFS for Linux"
url="http://zfsonlinux.org"
arch="x86 x86_64"
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-grsec-$_kver"
install=""
subpackages="$pkgname-dev"
source="https://github.com/zfsonlinux/zfs/releases/download/zfs-$_realver/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"
EXTRA_KCFLAGS="-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 || return 1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" \
install || return 1
}
dev() {
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/src "$subpkgdir"/usr || return 1
default_dev
}
md5sums="ffc51dcf5260d3c7e747fe78f8ae307c zfs-0.6.5.8.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="d77f43f7dc38381773e2c34531954c52f3de80361b7bb10c933a7482f89cfe84 zfs-0.6.5.8.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="e5b53a9531b865e7c650892c0deb1ee81db086a33538cd667a087a8a8d33a0ad93a30ae5e800096abfc4dc8ed00843da924230082e204fb7543dd401ef41fcde zfs-0.6.5.8.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"
|