aboutsummaryrefslogtreecommitdiffstats
path: root/main/zfs/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/zfs/APKBUILD')
-rw-r--r--main/zfs/APKBUILD119
1 files changed, 119 insertions, 0 deletions
diff --git a/main/zfs/APKBUILD b/main/zfs/APKBUILD
new file mode 100644
index 0000000000..e547a30708
--- /dev/null
+++ b/main/zfs/APKBUILD
@@ -0,0 +1,119 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
+
+pkgname=zfs
+pkgver=0.6.5.7
+pkgrel=1
+pkgdesc="ZFS for Linux"
+url="http://zfsonlinux.org"
+arch="x86 x86_64"
+license="CDDL"
+depends=""
+depends_dev="glib-dev e2fsprogs-dev util-linux-dev libtirpc-dev"
+makedepends="$depends_dev automake autoconf libtool linux-headers"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-dracut
+ $pkgname-udev $pkgname-scripts $pkgname-utils-py:utils_py"
+source="http://archive.zfsonlinux.org/downloads/zfsonlinux/zfs/zfs-$pkgver.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/$pkgname-$pkgver"
+
+prepare() {
+ default_prepare
+ autoreconf -vif || return 1
+}
+
+build() {
+ cd "$builddir"
+ export LIBS="$LIBS -lintl"
+ ./configure --prefix=/usr \
+ --with-tirpc \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --with-config=user \
+ --with-udevdir=/lib/udev \
+ --disable-systemd \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -rf "$pkgdir"/usr/share/initramfs-tools
+ mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/
+}
+
+dracut() {
+ pkgdesc="$pkgdesc (dracut)"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/dracut \
+ "$subpkgdir"/usr/lib || return 1
+}
+
+udev() {
+ pkgdesc="$pkgdesc (udev)"
+ mkdir -p "$subpkgdir"/lib
+ mv "$pkgdir"/lib/udev \
+ "$subpkgdir"/lib || return 1
+}
+
+scripts() {
+ pkgdesc="$pkgdesc (scripts)"
+ mkdir -p "$subpkgdir"/usr/share
+ mv "$pkgdir"/usr/share/zfs \
+ "$subpkgdir"/usr/share || return 1
+}
+
+utils_py() {
+ pkgdesc="$pkgdesc (python utils)"
+ depends="python"
+ mkdir -p "$subpkgdir"/usr/bin
+ for i in "$pkgdir"/usr/bin/*.py; do
+ mv $i "$subpkgdir"/usr/bin || return 1
+ done
+}
+
+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"