From e5c0d3efb3bfe11172f90659631dd0c6165405ab Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 6 Aug 2014 21:16:47 +0200 Subject: [PATCH] New package: zfs-0.6.3 --- srcpkgs/zfs-devel | 1 + srcpkgs/zfs/template | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 120000 srcpkgs/zfs-devel create mode 100644 srcpkgs/zfs/template diff --git a/srcpkgs/zfs-devel b/srcpkgs/zfs-devel new file mode 120000 index 0000000000..eb97035e11 --- /dev/null +++ b/srcpkgs/zfs-devel @@ -0,0 +1 @@ +zfs \ No newline at end of file diff --git a/srcpkgs/zfs/template b/srcpkgs/zfs/template new file mode 100644 index 0000000000..e91bb84a03 --- /dev/null +++ b/srcpkgs/zfs/template @@ -0,0 +1,44 @@ +# Template file for 'zfs' +pkgname=zfs +version=0.6.3 +revision=1 +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" +hostmakedepends="dracut" +makedepends="spl-devel>=${version} zlib-devel libuuid-devel" +conf_files="/etc/zfs/zed.d/zed.rc" +short_desc="Z File System -- userland and kernel modules (using DKMS)" +maintainer="Christian Neukirchen " +license="CDDL" +homepage="http://zfsonlinux.org/" +distfiles="http://archive.zfsonlinux.org/downloads/zfsonlinux/zfs/zfs-${version}.tar.gz" +checksum=29bcfdd4161521692d2ca2515ad27a9edd9491c9cb5c6fb1e923d8eed28d391b + +triggers="dkms" +dkms_modules="zfs ${version}" +depends="dkms spl>=${version}" + +post_install() { + # mount.zfs needs to be in /usr/sbin. + mv ${DESTDIR}/sbin ${DESTDIR}/usr + rm ${DESTDIR}/etc/init.d/zfs + + vlicense COPYRIGHT + vlicense OPENSOLARIS.LICENSE + + vmkdir usr/src + tar xzf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tar.gz -C ${DESTDIR}/usr/src + scripts/dkms.mkconf -v ${version} -f ${DESTDIR}/usr/src/${pkgname}-${version}/dkms.conf -n zfs +} + +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" + } +}