summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-12-08 08:35:49 -0500
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-12-08 08:35:49 -0500
commitd17ba1dc84f98beefc871befd65fc555d36174e9 (patch)
tree31939b5abf81d05da0a9fb3cc356d10571716339
parentf31dcf0ab0d260b981b4b8087b58d6e02e90c30e (diff)
downloadpackages-d17ba1dc84f98beefc871befd65fc555d36174e9.tar.gz
packages-d17ba1dc84f98beefc871befd65fc555d36174e9.tar.bz2
packages-d17ba1dc84f98beefc871befd65fc555d36174e9.tar.xz
packages-d17ba1dc84f98beefc871befd65fc555d36174e9.zip
user/zfs-utils: new package
-rw-r--r--user/zfs-utils/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/user/zfs-utils/APKBUILD b/user/zfs-utils/APKBUILD
new file mode 100644
index 000000000..1d424b500
--- /dev/null
+++ b/user/zfs-utils/APKBUILD
@@ -0,0 +1,49 @@
+# 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-utils
+pkgver=0.8.2
+pkgrel=0
+pkgdesc="User utilities for the ZFS filesystem"
+url="https://open-zfs.org"
+arch="all"
+license="CDDL"
+depends=""
+makedepends="eudev-dev libtirpc-dev linux-headers openssl-dev zlib-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc zfs-openrc"
+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=user
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+ rm -r "$pkgdir/usr/share/zfs/zfs-tests"
+}
+
+sha512sums="1424b1a030b814f812b5da422100669db5b8c3ccae14c2fdd62a5e0df28e7255247fe5ca99c95a14f08c92cc1574c22dd132093e4a1dd81e38c95b10cc5e2496 zfs-0.8.2.tar.gz"