void-packages/srcpkgs/zfs/template
Dominik Honnef a129a0ec09 zfs: remove zfs-import service
The service has several flaws:

1) The sequences 'start' and 'start, stop, start' produce different
system states. The first invocation of start will import and mount all
file systems. Stopping the service will unmount them, but not export
them. Running start again will not do anything, leaving the user with
unmounted file systems.

2) It imports all storage pools, not just those that are noted in the
cache. It's usually ill-advised to import all available pools.

3) It is different from all the other file systems and storage layers
that Void supports, which are all handled in stage 1.

This change depends on voidlinux/void-runit#46 for the replacement
solution.
2016-05-15 15:20:01 +02:00

51 lines
1.6 KiB
Bash

# Template file for 'zfs'
pkgname=zfs
version=0.6.5.7
revision=2
patch_args="-Np1"
wrksrc="${pkgname}-${pkgname}-${version/r/-}"
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 --with-blkid"
hostmakedepends="dracut automake libtool pkg-config"
makedepends="spl-devel zlib-devel libuuid-devel libblkid-devel libtirpc-devel"
conf_files="/etc/zfs/zed.d/zed.rc"
short_desc="Z File System -- userland and kernel modules (using DKMS)"
maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="CDDL"
homepage="http://zfsonlinux.org/"
distfiles="https://github.com/zfsonlinux/${pkgname}/archive/${pkgname}-${version/r/-}.tar.gz"
checksum=50fa48dd45d261e79d88e456f125996a86b32b80b1d4138c3b640a2a3575edb5
triggers="dkms"
dkms_modules="zfs ${version/r/-}"
depends="dkms>=2.2.0.3_9 spl>=${version}"
pre_configure() {
autoreconf -fi
tar czf ../clean.tar.gz .
}
post_install() {
vlicense COPYRIGHT
vlicense OPENSOLARIS.LICENSE
vmkdir usr/src/${pkgname}-${version/r/-}
tar xf ../clean.tar.gz -C ${DESTDIR}/usr/src/${pkgname}-${version/r/-}
scripts/dkms.mkconf -v ${version/r/-} -f ${DESTDIR}/usr/src/${pkgname}-${version/r/-}/dkms.conf -n zfs
rm -rf ${DESTDIR}/usr/lib/systemd
rm -rf ${DESTDIR}/usr/share/initramfs-tools
}
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
}