diff --git a/sys-kernel/mkinitramfs-ll/Manifest b/sys-kernel/mkinitramfs-ll/Manifest new file mode 100644 index 0000000..2406633 --- /dev/null +++ b/sys-kernel/mkinitramfs-ll/Manifest @@ -0,0 +1,2 @@ +DIST mkinitramfs-ll-0.22.10.tar.gz 57830 SHA256 4add5ee5b705790b066146ce9971cd36332196d7e2d22eb7d25400aba0a35549 SHA512 ac406054b3f55d07a9a8326a14b3388bea8881e4fb6439376406c1d564a7a6c070b1dd9735b6f95f569a14668c2ac1d95e49b33cffab0007e963f9282e9f2718 WHIRLPOOL 799c646a3c7aac0dfd904d45c2b040537fa6ea701fece988ac93260bc6362173d24d5ffbd2ae01043d73c9f711743e2b7deed36a7897327419e60f63abeae883 +DIST mkinitramfs-ll-0.22.9.tar.gz 57971 SHA256 3017d71ee6b7f09d6d35628c500a0d3587bd51ae6d7a9b851c4bcc6c7edb8d09 SHA512 e169d72a49ad2c197c41dfd6a2359968a8ac160091cd0ade93515609d719abf9d6927df1f11d39d0ba18eb0863406306e43f1cfcd7ac7beb3c9527dad46fbf78 WHIRLPOOL 41479691d79e62533dcdf188b54934c5ce0fe23afc702401c99cd3b56872c4b70d2bf2b449cac61a05423262a6be33975849e08c99835c8cab16aeb33a770ede diff --git a/sys-kernel/mkinitramfs-ll/metadata.xml b/sys-kernel/mkinitramfs-ll/metadata.xml new file mode 100644 index 0000000..3cc575d --- /dev/null +++ b/sys-kernel/mkinitramfs-ll/metadata.xml @@ -0,0 +1,36 @@ + + + + + Primary maintainer + tokiclover@gmail.com + + + Primary maintainer + bar-overlay@noreply.github.com + Gentoo Bar Overlay + + + + + Add Another Union FileSystem support + Install BaSh (Bourne Again Shell) (build) scripts + Add BtrFS FileSystem support + Add device-mapper LVM2 support + Add dm-crypt LUKS support + Add dm-raid Fake ATA RAID support + Add sys-fs/e2fsprogs (Extended FileSystem Tools) support + Add sys-fs/f2fs-tools (Flash-Friendly FileSystem) support + Add media-gfx/splashutils (FrameBuffer Splash) support + Add JFS FileSystem support + Enable support for LZ4 (de)compression + Add md-raid Software RAID support + Add ReiserFS FileSystem support + Add squashfs-tools support, +aufs adds squashed directory support + Add XFS FileSystem support + Enable support for XZ (de)compression + Add ZFS FileSystem support + Add zram init service support for zram devices initialization + Install ZSh (build) scripts + + diff --git a/sys-kernel/mkinitramfs-ll/mkinitramfs-ll-0.22.10.ebuild b/sys-kernel/mkinitramfs-ll/mkinitramfs-ll-0.22.10.ebuild new file mode 100644 index 0000000..5aa2be1 --- /dev/null +++ b/sys-kernel/mkinitramfs-ll/mkinitramfs-ll-0.22.10.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id: sys-kernel/mkinitramfs-ll/mkinitramfs-ll-9999.ebuild,v 1.16 2015/05/26 08:41:42 Exp $ + +EAPI=5 + +case "${PV}" in + (9999*) + KEYWORDS="" + VCS_ECLASS=git-2 + EGIT_REPO_URI="git://github.com/tokiclover/${PN}.git" + EGIT_PROJECT="${PN}.git" + ;; + (*) + KEYWORDS="~amd64 ~arm ~x86" + VCS_ECLASS=vcs-snapshot + SRC_URI="https://github.com/tokiclover/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + ;; +esac +inherit eutils linux-info ${VCS_ECLASS} + +DESCRIPTION="Lightweight, modular and powerfull initramfs genrating tool" +HOMEPAGE="https://github.com/tokiclover/mkinitramfs-ll" + +LICENSE="BSD-2" +SLOT="0" + +COMPRESSOR_USE=( bzip2 gzip lz4 lzo xz ) +FILESYSTEM_USE=( btrfs e2fs f2fs jfs reiserfs xfs ) +IUSE="aufs +bash dm-crypt device-mapper dmraid fbsplash lzma mdadm squashfs +zfs +zram zsh ${COMPRESSOR_USE[@]/xz/+xz} ${FILESYSTEM_USE[@]/e2fs/+e2fs}" + +REQUIRED_USE=" + || ( ${COMPRESSOR_USE[@]} ) + || ( ${FILESYSTEM_USE[@]} )" + +DEPEND="sys-apps/sed" +RDEPEND="app-arch/cpio + sys-apps/findutils + fbsplash? ( sys-apps/v86d media-gfx/splashutils[fbcondecor,png,truetype] ) + sys-apps/busybox[mdev] + dm-crypt? ( sys-fs/cryptsetup ) + device-mapper? ( sys-fs/lvm2 ) + dmraid? ( sys-fs/dmraid ) + mdadm? ( sys-fs/mdadm ) + aufs? ( sys-fs/aufs-util ) + btrfs? ( sys-fs/btrfs-progs ) + e2fs? ( sys-fs/e2fsprogs ) + f2fs? ( sys-fs/f2fs-tools ) + jfs? ( sys-fs/jfsutils ) + reiserfs? ( sys-fs/reiserfsprogs ) + squashfs? ( sys-fs/squashfs-tools[lz4?,lzma?,lzo?,xz?] ) + xfs? ( sys-fs/xfsprogs ) + zfs? ( sys-fs/zfs ) + lzma? ( || ( app-arch/xz-utils app-arch/lzma ) ) + lzo? ( app-arch/lzop ) + xz? ( app-arch/xz-utils ) + media-fonts/terminus-font[psf] + bash? ( app-shells/bash ) + zsh? ( app-shells/zsh[unicode] )" + +for (( i=0; i<$((${#COMPRESSOR_USE[@]} - 2)); i++ )); do + RDEPEND="${RDEPEND} + app-arch/${COMPRESSOR_USE[$i]}" +done +unset i + +pkg_setup() +{ + [[ -n "${PKG_SETUP_HAS_BEEN_RAN}" ]] && return + CONFIG_CHECK="BLK_DEV_INITRD PROC_FS SYSFS TMPFS" + local u U + + for u in "${COMPRESSOR_USE[@]}"; do + U="${u^^[a-z]}" + if use "${u}"; then + CONFIG_CHECK+=" ~RD_${U}" + eval : ERROR_"${U}"="no support of ${u} compressed initial ramdisk found" + fi + done + for u in ${FILESYSTEM_USE[@]/e2fs}; do + U="${u^^[a-z]}" + if use "${u}"; then + CONFIG_CHECK+=" ~${U}_FS" + eval : ERROR_"${U}"="no supprt of ${u} file system found" + fi + done + use e2fs && CONFIG_CHECK+=" ~EXT2_FS ~EXT3_FS ~EXT4_FS" + + linux-info_pkg_setup + export PKG_SETUP_HAS_BEEN_RAN=1 +} + +src_prepare() +{ + sed -e '/COPYING.*$/d' -i Makefile + epatch_user +} + +src_install() +{ + MAKEOPTS="-j1" + emake DESTDIR="${ED}" VERSION=${PV} PREFIX=/usr install + if use aufs && use squashfs; then + emake DESTDIR="${ED}" prefix=/usr install-squashdir-svc + fi + use zram && emake DESTDIR="${ED}" install-{zram,tmpdir}-svc + + local sh + for sh in {ba,z}sh; do + use ${sh} && + emake DESTDIR="${ED}" PREFIX=/usr install-${sh}-scripts + done + use bash || use zsh || emake DESTDIR="${ED}" PREFIX=/usr install-sh-scripts +} diff --git a/sys-kernel/mkinitramfs-ll/mkinitramfs-ll-0.22.9.ebuild b/sys-kernel/mkinitramfs-ll/mkinitramfs-ll-0.22.9.ebuild new file mode 100644 index 0000000..5aa2be1 --- /dev/null +++ b/sys-kernel/mkinitramfs-ll/mkinitramfs-ll-0.22.9.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id: sys-kernel/mkinitramfs-ll/mkinitramfs-ll-9999.ebuild,v 1.16 2015/05/26 08:41:42 Exp $ + +EAPI=5 + +case "${PV}" in + (9999*) + KEYWORDS="" + VCS_ECLASS=git-2 + EGIT_REPO_URI="git://github.com/tokiclover/${PN}.git" + EGIT_PROJECT="${PN}.git" + ;; + (*) + KEYWORDS="~amd64 ~arm ~x86" + VCS_ECLASS=vcs-snapshot + SRC_URI="https://github.com/tokiclover/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + ;; +esac +inherit eutils linux-info ${VCS_ECLASS} + +DESCRIPTION="Lightweight, modular and powerfull initramfs genrating tool" +HOMEPAGE="https://github.com/tokiclover/mkinitramfs-ll" + +LICENSE="BSD-2" +SLOT="0" + +COMPRESSOR_USE=( bzip2 gzip lz4 lzo xz ) +FILESYSTEM_USE=( btrfs e2fs f2fs jfs reiserfs xfs ) +IUSE="aufs +bash dm-crypt device-mapper dmraid fbsplash lzma mdadm squashfs +zfs +zram zsh ${COMPRESSOR_USE[@]/xz/+xz} ${FILESYSTEM_USE[@]/e2fs/+e2fs}" + +REQUIRED_USE=" + || ( ${COMPRESSOR_USE[@]} ) + || ( ${FILESYSTEM_USE[@]} )" + +DEPEND="sys-apps/sed" +RDEPEND="app-arch/cpio + sys-apps/findutils + fbsplash? ( sys-apps/v86d media-gfx/splashutils[fbcondecor,png,truetype] ) + sys-apps/busybox[mdev] + dm-crypt? ( sys-fs/cryptsetup ) + device-mapper? ( sys-fs/lvm2 ) + dmraid? ( sys-fs/dmraid ) + mdadm? ( sys-fs/mdadm ) + aufs? ( sys-fs/aufs-util ) + btrfs? ( sys-fs/btrfs-progs ) + e2fs? ( sys-fs/e2fsprogs ) + f2fs? ( sys-fs/f2fs-tools ) + jfs? ( sys-fs/jfsutils ) + reiserfs? ( sys-fs/reiserfsprogs ) + squashfs? ( sys-fs/squashfs-tools[lz4?,lzma?,lzo?,xz?] ) + xfs? ( sys-fs/xfsprogs ) + zfs? ( sys-fs/zfs ) + lzma? ( || ( app-arch/xz-utils app-arch/lzma ) ) + lzo? ( app-arch/lzop ) + xz? ( app-arch/xz-utils ) + media-fonts/terminus-font[psf] + bash? ( app-shells/bash ) + zsh? ( app-shells/zsh[unicode] )" + +for (( i=0; i<$((${#COMPRESSOR_USE[@]} - 2)); i++ )); do + RDEPEND="${RDEPEND} + app-arch/${COMPRESSOR_USE[$i]}" +done +unset i + +pkg_setup() +{ + [[ -n "${PKG_SETUP_HAS_BEEN_RAN}" ]] && return + CONFIG_CHECK="BLK_DEV_INITRD PROC_FS SYSFS TMPFS" + local u U + + for u in "${COMPRESSOR_USE[@]}"; do + U="${u^^[a-z]}" + if use "${u}"; then + CONFIG_CHECK+=" ~RD_${U}" + eval : ERROR_"${U}"="no support of ${u} compressed initial ramdisk found" + fi + done + for u in ${FILESYSTEM_USE[@]/e2fs}; do + U="${u^^[a-z]}" + if use "${u}"; then + CONFIG_CHECK+=" ~${U}_FS" + eval : ERROR_"${U}"="no supprt of ${u} file system found" + fi + done + use e2fs && CONFIG_CHECK+=" ~EXT2_FS ~EXT3_FS ~EXT4_FS" + + linux-info_pkg_setup + export PKG_SETUP_HAS_BEEN_RAN=1 +} + +src_prepare() +{ + sed -e '/COPYING.*$/d' -i Makefile + epatch_user +} + +src_install() +{ + MAKEOPTS="-j1" + emake DESTDIR="${ED}" VERSION=${PV} PREFIX=/usr install + if use aufs && use squashfs; then + emake DESTDIR="${ED}" prefix=/usr install-squashdir-svc + fi + use zram && emake DESTDIR="${ED}" install-{zram,tmpdir}-svc + + local sh + for sh in {ba,z}sh; do + use ${sh} && + emake DESTDIR="${ED}" PREFIX=/usr install-${sh}-scripts + done + use bash || use zsh || emake DESTDIR="${ED}" PREFIX=/usr install-sh-scripts +} diff --git a/sys-kernel/mkinitramfs-ll/mkinitramfs-ll-9999.ebuild b/sys-kernel/mkinitramfs-ll/mkinitramfs-ll-9999.ebuild new file mode 100644 index 0000000..5aa2be1 --- /dev/null +++ b/sys-kernel/mkinitramfs-ll/mkinitramfs-ll-9999.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id: sys-kernel/mkinitramfs-ll/mkinitramfs-ll-9999.ebuild,v 1.16 2015/05/26 08:41:42 Exp $ + +EAPI=5 + +case "${PV}" in + (9999*) + KEYWORDS="" + VCS_ECLASS=git-2 + EGIT_REPO_URI="git://github.com/tokiclover/${PN}.git" + EGIT_PROJECT="${PN}.git" + ;; + (*) + KEYWORDS="~amd64 ~arm ~x86" + VCS_ECLASS=vcs-snapshot + SRC_URI="https://github.com/tokiclover/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + ;; +esac +inherit eutils linux-info ${VCS_ECLASS} + +DESCRIPTION="Lightweight, modular and powerfull initramfs genrating tool" +HOMEPAGE="https://github.com/tokiclover/mkinitramfs-ll" + +LICENSE="BSD-2" +SLOT="0" + +COMPRESSOR_USE=( bzip2 gzip lz4 lzo xz ) +FILESYSTEM_USE=( btrfs e2fs f2fs jfs reiserfs xfs ) +IUSE="aufs +bash dm-crypt device-mapper dmraid fbsplash lzma mdadm squashfs +zfs +zram zsh ${COMPRESSOR_USE[@]/xz/+xz} ${FILESYSTEM_USE[@]/e2fs/+e2fs}" + +REQUIRED_USE=" + || ( ${COMPRESSOR_USE[@]} ) + || ( ${FILESYSTEM_USE[@]} )" + +DEPEND="sys-apps/sed" +RDEPEND="app-arch/cpio + sys-apps/findutils + fbsplash? ( sys-apps/v86d media-gfx/splashutils[fbcondecor,png,truetype] ) + sys-apps/busybox[mdev] + dm-crypt? ( sys-fs/cryptsetup ) + device-mapper? ( sys-fs/lvm2 ) + dmraid? ( sys-fs/dmraid ) + mdadm? ( sys-fs/mdadm ) + aufs? ( sys-fs/aufs-util ) + btrfs? ( sys-fs/btrfs-progs ) + e2fs? ( sys-fs/e2fsprogs ) + f2fs? ( sys-fs/f2fs-tools ) + jfs? ( sys-fs/jfsutils ) + reiserfs? ( sys-fs/reiserfsprogs ) + squashfs? ( sys-fs/squashfs-tools[lz4?,lzma?,lzo?,xz?] ) + xfs? ( sys-fs/xfsprogs ) + zfs? ( sys-fs/zfs ) + lzma? ( || ( app-arch/xz-utils app-arch/lzma ) ) + lzo? ( app-arch/lzop ) + xz? ( app-arch/xz-utils ) + media-fonts/terminus-font[psf] + bash? ( app-shells/bash ) + zsh? ( app-shells/zsh[unicode] )" + +for (( i=0; i<$((${#COMPRESSOR_USE[@]} - 2)); i++ )); do + RDEPEND="${RDEPEND} + app-arch/${COMPRESSOR_USE[$i]}" +done +unset i + +pkg_setup() +{ + [[ -n "${PKG_SETUP_HAS_BEEN_RAN}" ]] && return + CONFIG_CHECK="BLK_DEV_INITRD PROC_FS SYSFS TMPFS" + local u U + + for u in "${COMPRESSOR_USE[@]}"; do + U="${u^^[a-z]}" + if use "${u}"; then + CONFIG_CHECK+=" ~RD_${U}" + eval : ERROR_"${U}"="no support of ${u} compressed initial ramdisk found" + fi + done + for u in ${FILESYSTEM_USE[@]/e2fs}; do + U="${u^^[a-z]}" + if use "${u}"; then + CONFIG_CHECK+=" ~${U}_FS" + eval : ERROR_"${U}"="no supprt of ${u} file system found" + fi + done + use e2fs && CONFIG_CHECK+=" ~EXT2_FS ~EXT3_FS ~EXT4_FS" + + linux-info_pkg_setup + export PKG_SETUP_HAS_BEEN_RAN=1 +} + +src_prepare() +{ + sed -e '/COPYING.*$/d' -i Makefile + epatch_user +} + +src_install() +{ + MAKEOPTS="-j1" + emake DESTDIR="${ED}" VERSION=${PV} PREFIX=/usr install + if use aufs && use squashfs; then + emake DESTDIR="${ED}" prefix=/usr install-squashdir-svc + fi + use zram && emake DESTDIR="${ED}" install-{zram,tmpdir}-svc + + local sh + for sh in {ba,z}sh; do + use ${sh} && + emake DESTDIR="${ED}" PREFIX=/usr install-${sh}-scripts + done + use bash || use zsh || emake DESTDIR="${ED}" PREFIX=/usr install-sh-scripts +}