mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
zfs: update to 0.8.0.
This commit is contained in:
parent
b8039ef838
commit
42ac158810
2 changed files with 20 additions and 7 deletions
|
@ -1,39 +1,47 @@
|
||||||
# Template file for 'zfs'
|
# Template file for 'zfs'
|
||||||
pkgname=zfs
|
pkgname=zfs
|
||||||
version=0.7.13
|
version=0.8.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-config=user --with-mounthelperdir=/usr/bin
|
configure_args="--with-config=user --with-mounthelperdir=/usr/bin
|
||||||
--with-udevdir=/usr/lib/udev --with-udevruledir=/usr/lib/udev/rules.d
|
--with-udevdir=/usr/lib/udev --with-udevruledir=/usr/lib/udev/rules.d
|
||||||
--with-dracutdir=/usr/lib/dracut --with-tirpc"
|
--with-dracutdir=/usr/lib/dracut --with-tirpc"
|
||||||
hostmakedepends="dracut libtool pkg-config"
|
hostmakedepends="dracut libtool pkg-config python3 automake"
|
||||||
makedepends="spl-devel zlib-devel libuuid-devel libblkid-devel libtirpc-devel attr-devel"
|
makedepends="zlib-devel libuuid-devel libblkid-devel libtirpc-devel attr-devel"
|
||||||
conf_files="/etc/zfs/zed.d/zed.rc"
|
conf_files="/etc/zfs/zed.d/zed.rc"
|
||||||
short_desc="Z File System -- userland and kernel modules (using DKMS)"
|
short_desc="Z File System -- userland, pyzfs, and kernel modules (using DKMS)"
|
||||||
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
||||||
license="CDDL-1.0"
|
license="CDDL-1.0"
|
||||||
homepage="https://zfsonlinux.org/"
|
homepage="https://zfsonlinux.org/"
|
||||||
distfiles="https://github.com/zfsonlinux/zfs/releases/download/zfs-${version}/zfs-${version}.tar.gz"
|
distfiles="https://github.com/zfsonlinux/zfs/releases/download/zfs-${version}/zfs-${version}.tar.gz"
|
||||||
checksum=d23f0d292049b1bc636d2300277292b60248c0bde6a0f4ba707c0cb5df3f8c8d
|
checksum=0fd92e87f4b9df9686f18e2ac707c16b2eeaf00f682d41c20ea519f3a0fe4705
|
||||||
|
|
||||||
|
replaces="spl<=0.7.13_1" # Because SPL was merged into zfs in 0.8.0
|
||||||
|
|
||||||
dkms_modules="zfs ${version}"
|
dkms_modules="zfs ${version}"
|
||||||
depends="dkms>=2.2.0.3_9 spl>=${version} perl"
|
depends="dkms>=2.2.0.3_9 perl"
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
export CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/tirpc/"
|
export CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/tirpc/"
|
||||||
|
autoreconf -fi
|
||||||
tar czf ../clean.tar.gz .
|
tar czf ../clean.tar.gz .
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense COPYRIGHT
|
vlicense COPYRIGHT
|
||||||
vlicense OPENSOLARIS.LICENSE
|
vlicense LICENSE
|
||||||
|
vlicense NOTICE
|
||||||
|
|
||||||
vmkdir usr/src/${pkgname}-${version}
|
vmkdir usr/src/${pkgname}-${version}
|
||||||
tar xf ../clean.tar.gz -C ${DESTDIR}/usr/src/${pkgname}-${version}
|
tar xf ../clean.tar.gz -C ${DESTDIR}/usr/src/${pkgname}-${version}
|
||||||
scripts/dkms.mkconf -v ${version} -f ${DESTDIR}/usr/src/${pkgname}-${version}/dkms.conf -n zfs
|
scripts/dkms.mkconf -v ${version} -f ${DESTDIR}/usr/src/${pkgname}-${version}/dkms.conf -n zfs
|
||||||
|
sed -i -e 's/test "${PYTHON_VERSION:0:2}" = "3."/test "${PYTHON_VERSION##3.*}" = ""/' \
|
||||||
|
-e 's/test "${PYTHON_VERSION:0:2}" = "2."/test "${PYTHON_VERSION##2.*}" = ""/' \
|
||||||
|
${DESTDIR}/usr/src/${pkgname}-${version}/configure # This is necessary because of https://github.com/zfsonlinux/zfs/issues/8827
|
||||||
|
|
||||||
rm -rf ${DESTDIR}/usr/lib/systemd
|
rm -rf ${DESTDIR}/usr/lib/systemd
|
||||||
rm -rf ${DESTDIR}/usr/share/initramfs-tools
|
rm -rf ${DESTDIR}/usr/share/initramfs-tools
|
||||||
|
|
||||||
# Contains ELF binaries. Remove it until upstream has a way to move this
|
# Contains ELF binaries. Remove it until upstream has a way to move this
|
||||||
# into /usr/libexec or similiar.
|
# into /usr/libexec or similiar.
|
||||||
rm -rf ${DESTDIR}/usr/share/zfs/zfs-tests
|
rm -rf ${DESTDIR}/usr/share/zfs/zfs-tests
|
||||||
|
@ -46,9 +54,14 @@ zfs-devel_package() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove "usr/lib/*.a"
|
vmove "usr/lib/*.a"
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
|
vmove usr/share/pkgconfig
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
do_clean() {
|
do_clean() {
|
||||||
rm -f ../clean.tar.gz
|
rm -f ../clean.tar.gz
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# REMARKS:
|
||||||
|
# Did not split out pyzfs, because it's distributed with zfs, and no reason to
|
||||||
|
# send separately.
|
||||||
|
|
Loading…
Add table
Reference in a new issue