2014-08-06 19:16:47 +00:00
|
|
|
# Template file for 'zfs'
|
|
|
|
pkgname=zfs
|
2015-04-10 10:03:09 +00:00
|
|
|
version=0.6.4
|
2015-03-18 23:46:34 +00:00
|
|
|
revision=1
|
2015-03-20 14:20:10 +00:00
|
|
|
wrksrc="${pkgname}-${pkgname}-${version/r/-}"
|
2014-08-06 19:16:47 +00:00
|
|
|
build_style=gnu-configure
|
|
|
|
configure_args="--with-config=user --sbindir=/usr/bin
|
|
|
|
--with-udevdir=/usr/lib/udev --with-udevruledir=/usr/lib/udev/rules.d
|
|
|
|
--with-dracutdir=/usr/lib/dracut"
|
2015-03-20 14:20:10 +00:00
|
|
|
hostmakedepends="dracut automake libtool"
|
2015-03-27 09:50:40 +00:00
|
|
|
makedepends="spl-devel zlib-devel libuuid-devel libblkid-devel"
|
2014-08-06 19:16:47 +00:00
|
|
|
conf_files="/etc/zfs/zed.d/zed.rc"
|
|
|
|
short_desc="Z File System -- userland and kernel modules (using DKMS)"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="CDDL"
|
|
|
|
homepage="http://zfsonlinux.org/"
|
2015-03-20 12:02:33 +00:00
|
|
|
distfiles="https://github.com/zfsonlinux/${pkgname}/archive/${pkgname}-${version/r/-}.tar.gz"
|
2015-04-10 10:03:09 +00:00
|
|
|
checksum=7f37aaaa1fc15201dde58bb84e0f191ccac462f19ffec0c889b6f6ed3f73a804
|
2015-04-10 10:08:19 +00:00
|
|
|
nocross=yes
|
2014-08-06 19:16:47 +00:00
|
|
|
|
|
|
|
triggers="dkms"
|
2015-03-20 14:20:10 +00:00
|
|
|
dkms_modules="zfs ${version/r/-}"
|
|
|
|
depends="dkms>=2.2.0.3_9 spl>=${version} glibc-devel"
|
2014-08-06 19:16:47 +00:00
|
|
|
|
2015-03-20 14:20:10 +00:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
tar czf ../clean.tar.gz .
|
|
|
|
}
|
2014-08-06 19:16:47 +00:00
|
|
|
post_install() {
|
|
|
|
# mount.zfs needs to be in /usr/sbin.
|
2015-04-10 10:03:09 +00:00
|
|
|
vmkdir usr/sbin
|
|
|
|
mv ${DESTDIR}/usr/bin/mount.zfs ${DESTDIR}/usr/sbin/mount.zfs
|
2014-08-06 19:16:47 +00:00
|
|
|
rm ${DESTDIR}/etc/init.d/zfs
|
|
|
|
|
|
|
|
vlicense COPYRIGHT
|
|
|
|
vlicense OPENSOLARIS.LICENSE
|
|
|
|
|
2015-03-20 14:20:10 +00:00
|
|
|
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
|
2014-11-23 13:59:18 +00:00
|
|
|
}
|
2014-08-06 19:16:47 +00:00
|
|
|
zfs-devel_package() {
|
2014-11-23 13:59:18 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
|
|
short_desc="Z File System -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove "usr/lib/*.so"
|
|
|
|
}
|
2014-08-06 19:16:47 +00:00
|
|
|
}
|
2015-03-20 14:20:10 +00:00
|
|
|
do_clean() {
|
|
|
|
rm -f ../clean.tar.gz
|
|
|
|
}
|