From 543e531fe76cb5d596963f110a97146c65e081cd Mon Sep 17 00:00:00 2001 From: Micha Glave Date: Mon, 14 Sep 2015 15:18:44 +0200 Subject: [PATCH] adding zfs-dracut module --- sys-kernel/dracut-zfs/Manifest | 2 + sys-kernel/dracut-zfs/dracut-zfs-0.6.5.ebuild | 38 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 sys-kernel/dracut-zfs/Manifest create mode 100644 sys-kernel/dracut-zfs/dracut-zfs-0.6.5.ebuild diff --git a/sys-kernel/dracut-zfs/Manifest b/sys-kernel/dracut-zfs/Manifest new file mode 100644 index 0000000..7b5926a --- /dev/null +++ b/sys-kernel/dracut-zfs/Manifest @@ -0,0 +1,2 @@ +DIST zfs-0.6.5.tar.gz 1816180 SHA256 542121940122c922c9d21a2bb39bca4e4a9db2f6bbfd2e576630840e256d4c82 SHA512 58480ee9b0780f1f21d12504abc226be3e6df1939214f6a8f245315d1fa0b9da56b3a744df26426ee78f13684a4ca288df6dddc50f8f91d9d0b4c542980a9c53 WHIRLPOOL fdb5580ec8d4abe57069ce453c1d91225019758ecf5d31856a7897ac7e4b51c6a8ae3258e822f684fbd70a0a7d7410c65c37a569f37d132767522118c587cc24 +EBUILD dracut-zfs-0.6.5.ebuild 924 SHA256 50845533933ac4ecf484c5ec3bc9917e3b8234099951bf5b15854589fc04191b SHA512 6e76ebef9ffe34c2e3d1607f6f8a9646e18006c3f99541f39ef088259e8ee855c829e925916a85555b3943f40a34f02fdc4de11964e6c6c58ac91451302eabe6 WHIRLPOOL 5cb22a7c52ae6d103db4a23f69811f55fc06989108a1a291f89362263be421eede213772af90b9a7f2779cd1d08af3855bfd5472d31e0012fa7109b3a8157283 diff --git a/sys-kernel/dracut-zfs/dracut-zfs-0.6.5.ebuild b/sys-kernel/dracut-zfs/dracut-zfs-0.6.5.ebuild new file mode 100644 index 0000000..a64d77a --- /dev/null +++ b/sys-kernel/dracut-zfs/dracut-zfs-0.6.5.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +DESCRIPTION="ZFS module for dracut" +HOMEPAGE="https://dracut.wiki.kernel.org/index.php/Main_Page" +SRC_URI="https://github.com/zfsonlinux/zfs/archive/zfs-${PV}.tar.gz" +S="${WORKDIR}/zfs-zfs-${PV}/contrib/dracut" + +LICENSE="GPL" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="sys-kernel/dracut" +RDEPEND="${DEPEND}" + +src_configure() { :; } +src_compile() { :; } + +function conf() { + sed -e 's,@bindir\@,/usr/bin,g' \ + -e 's,@sbindir\@,/sbin/,g' \ + -e 's,@udevdir\@,/lib/udev,g' \ + -e 's,@udevruledir\@,/lib/udev/rules.d,g' \ + -e 's,@sysconfdir\@,/etc,g' \ + "${S}/90zfs/$1" > ${D}usr/lib64/dracut/modules.d/90zfs/${1%.in} +} + +src_install() { + dodir /usr/lib64/dracut/modules.d/90zfs + for f in $(ls ${S}/90zfs/*.in) ; do + conf ${f##/*/} + done +# dodoc README.dracut.markdown +}