summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Vasquez <fearedbliss@gentoo.org>2016-11-05 14:43:11 -0400
committerJonathan Vasquez <fearedbliss@gentoo.org>2016-11-05 14:43:11 -0400
commit0547d4e67af864de41fce249710763384a96b40d (patch)
treea531b19d5af05916a59a2172e7998bf43efa0219 /sys-kernel/bliss-initramfs
parentnet-misc/ps3mediaserver: remove old (diff)
downloadgentoo-0547d4e67af864de41fce249710763384a96b40d.tar.gz
gentoo-0547d4e67af864de41fce249710763384a96b40d.tar.bz2
gentoo-0547d4e67af864de41fce249710763384a96b40d.zip
sys-kernel/bliss-initramfs: adding new package (alternative to genkernel)
Package-Manager: portage-2.2.28
Diffstat (limited to 'sys-kernel/bliss-initramfs')
-rw-r--r--sys-kernel/bliss-initramfs/Manifest1
-rw-r--r--sys-kernel/bliss-initramfs/bliss-initramfs-6.8.0.ebuild54
-rw-r--r--sys-kernel/bliss-initramfs/metadata.xml14
3 files changed, 69 insertions, 0 deletions
diff --git a/sys-kernel/bliss-initramfs/Manifest b/sys-kernel/bliss-initramfs/Manifest
new file mode 100644
index 000000000000..2a6b314131a0
--- /dev/null
+++ b/sys-kernel/bliss-initramfs/Manifest
@@ -0,0 +1 @@
+DIST bliss-initramfs-6.8.0.tar.gz 42297 SHA256 137b913c311c6be836afb0e0af6d74bb99ce6dc320d2994adeab3104fe66e990 SHA512 5544f72f7caab66e67917fc00f5a825ccd78d80cbbb8b68898220ed7530f3565bee648060d0e96b2e5c2e1236b595877fca345396c3dc306ba59b13bffbed538 WHIRLPOOL 9f981fb913286740814c2205ad44f4c08f5cec97d9c9b91f62f220b402b4518d2f453cebf9133a1fbcbd8bdc71e6a1b8d4ca9bdd0cbe5e9e9e4f97a530185786
diff --git a/sys-kernel/bliss-initramfs/bliss-initramfs-6.8.0.ebuild b/sys-kernel/bliss-initramfs/bliss-initramfs-6.8.0.ebuild
new file mode 100644
index 000000000000..c97002e5ea6d
--- /dev/null
+++ b/sys-kernel/bliss-initramfs/bliss-initramfs-6.8.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+GITHUB_USER="fearedbliss"
+GITHUB_REPO="bliss-initramfs"
+GITHUB_TAG="${PV}"
+
+DESCRIPTION="Boot your system's rootfs from ZFS, LVM, RAID, or a variety of other configs."
+HOMEPAGE="https://github.com/${GITHUB_USER}/${GITHUB_REPO}"
+SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_REPO}/archive/${GITHUB_TAG}.tar.gz -> ${P}.tar.gz"
+
+RESTRICT="strip"
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+IUSE="luks raid lvm zfs"
+
+RDEPEND="
+ >=dev-lang/python-3.3
+ app-arch/cpio
+ virtual/udev
+
+ luks? ( sys-fs/cryptsetup
+ app-crypt/gnupg )
+
+ raid? ( sys-fs/mdadm )
+
+ lvm? ( sys-fs/lvm2 )
+
+ zfs? ( sys-kernel/spl
+ sys-fs/zfs
+ sys-fs/zfs-kmod )"
+
+S="${WORKDIR}/${GITHUB_REPO}-${GITHUB_TAG}"
+
+src_install() {
+ # Copy the main executable
+ local executable="mkinitrd.py"
+ exeinto "/opt/${PN}"
+ doexe "${executable}"
+
+ # Copy the libraries required by this executable
+ cp -r "${S}/files" "${D}/opt/${PN}" || die
+ cp -r "${S}/pkg" "${D}/opt/${PN}" || die
+
+ # Copy documentation files
+ dodoc CHANGES README USAGE
+
+ # Make a symbolic link: /sbin/bliss-initramfs
+ dosym "/opt/${PN}/${executable}" "/sbin/${PN}"
+}
diff --git a/sys-kernel/bliss-initramfs/metadata.xml b/sys-kernel/bliss-initramfs/metadata.xml
new file mode 100644
index 000000000000..b37dd7c0916d
--- /dev/null
+++ b/sys-kernel/bliss-initramfs/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>fearedbliss@gentoo.org</email>
+ <name>Jonathan Vasquez</name>
+ </maintainer>
+ <use>
+ <flag name="luks">Encryption support</flag>
+ <flag name="raid">RAID support</flag>
+ <flag name="lvm">Logical Volume support</flag>
+ <flag name="zfs">ZFS support</flag>
+ </use>
+</pkgmetadata>