55 lines
1.7 KiB
Bash
55 lines
1.7 KiB
Bash
# Template file for 'zfs'
|
|
pkgname=zfs
|
|
version=0.7.13
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--with-config=user --with-mounthelperdir=/usr/bin
|
|
--with-udevdir=/usr/lib/udev --with-udevruledir=/usr/lib/udev/rules.d
|
|
--with-dracutdir=/usr/lib/dracut --with-tirpc"
|
|
hostmakedepends="dracut libtool pkg-config"
|
|
makedepends="spl-devel zlib-devel libuuid-devel libblkid-devel libtirpc-devel attr-devel"
|
|
conf_files="/etc/zfs/zed.d/zed.rc"
|
|
short_desc="Z File System -- userland and kernel modules (using DKMS)"
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
license="CDDL-1.0"
|
|
homepage="https://zfsonlinux.org/"
|
|
distfiles="https://github.com/zfsonlinux/zfs/releases/download/zfs-${version}/zfs-${version}.tar.gz"
|
|
checksum=d23f0d292049b1bc636d2300277292b60248c0bde6a0f4ba707c0cb5df3f8c8d
|
|
|
|
dkms_modules="zfs ${version}"
|
|
depends="dkms>=2.2.0.3_9 spl>=${version} perl"
|
|
|
|
pre_configure() {
|
|
export CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/tirpc/"
|
|
tar czf ../clean.tar.gz .
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYRIGHT
|
|
vlicense OPENSOLARIS.LICENSE
|
|
|
|
vmkdir 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
|
|
|
|
rm -rf ${DESTDIR}/usr/lib/systemd
|
|
rm -rf ${DESTDIR}/usr/share/initramfs-tools
|
|
# Contains ELF binaries. Remove it until upstream has a way to move this
|
|
# into /usr/libexec or similiar.
|
|
rm -rf ${DESTDIR}/usr/share/zfs/zfs-tests
|
|
}
|
|
|
|
zfs-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc="Z File System -- development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
do_clean() {
|
|
rm -f ../clean.tar.gz
|
|
}
|