sys-kernel/ugrd: Added 0.13 ebuild with basic installkernel hook script

Signed-off-by: Zen <z@pyl.onl>
This commit is contained in:
Zen
2023-12-22 17:41:45 -06:00
parent 2b860bfb4d
commit 29f4ddc3fd
2 changed files with 40 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST ugrd-0.11.3.tar.gz 45232 BLAKE2B 4d98f664b74bcf6ad04c5131b21185f53301de4388e0af66ea3817a27448f2a2a0ac9e3c7d416cf80d963108a38f37a3a2c915c99bd0c746938fbd312d7acfeb SHA512 84e7030a2a82860a89ae9be938610dea9d60ac950ae7f83470aeb37ecc5c80c1d5dbc655710e97fc47d8246e2f43b1e603b0960e57929fc60df346145ee57970
DIST ugrd-0.12.1.tar.gz 39929 BLAKE2B d4d2788c0d23907b87ea6c98607f3d36e25c895618668123089c2cb96dc8895be411c7c5865522b58a53a90c51e77f874ee13324c5602bceb325bb680dccf63b SHA512 3dec60f8535bb63525a0da07583d35c539de27e0d4ab2c79c033ce49a1b745b262a245e58224f5fabb1450af76d750578e47d60eb0961ac842eaed6e5f212c7d
DIST ugrd-0.13.0.tar.gz 40894 BLAKE2B 3e96979b9a645d18d746b11b7c41fecc4a4472f1af90cae2e70c09ca2e228b895681d468544272d604fed4105ff7a40dbd92b0b406664a334537111ce174b58d SHA512 4b0925f505d703776963b5c6ec01dc21dc63d3007af015aa50ec72fc963d401b08aa6ffd8d2463017285107e8b8856b5b79c3adb410b834749142a4c9c2e47f6

View File

@@ -0,0 +1,39 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..12} )
inherit distutils-r1 optfeature
DESCRIPTION="Python based initramfs generator with TOML defintions"
HOMEPAGE="https://github.com/desultory/ugrd"
SRC_URI="https://github.com/desultory/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="app-misc/pax-utils"
DEPEND=">=dev-python/zenlib-1.2.0
>=dev-python/pycpio-0.6.1"
src_install() {
# Call the distutils-r1_src_install function to install the package
distutils-r1_src_install
# Create the ugrd config directory
keepdir /etc/ugrd
# Create the kernel preinst.d directory if it doesn't exist
keepdir /etc/kernel/preinst.d
exeinto /etc/kernel/preinst.d
# Install the kernel preinst.d script
doexe hooks/51-ugrd.install
}
pkg_postinst() {
optfeature "ugrd.crypto.cryptsetup support" sys-fs/cryptsetup
optfeature "ugrd.fs.btrfs support" sys-fs/btrfs-progs
optfeature "ugrd.crypto.gpg support" app-crypt/gnupg
optfeature "ugrd.fs.zfs support" sys-fs/zfs
}