commit:     2ab821c772ca1fa63f8af18ef1cdf251ba328f7f
Author:     Zen <z <AT> pyl <DOT> onl>
AuthorDate: Sat Mar  7 21:59:28 2026 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Mon Mar  9 07:16:06 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ab821c7

sys-kernel/ugrd: add 2.2.0

improved resume support, plymouth support, udev support
basic testing on new arches

Signed-off-by: Zen <z <AT> pyl.onl>
Part-of: https://github.com/gentoo/gentoo/pull/45902
Closes: https://github.com/gentoo/gentoo/pull/45902
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 sys-kernel/ugrd/Manifest          |  1 +
 sys-kernel/ugrd/ugrd-2.2.0.ebuild | 84 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)

diff --git a/sys-kernel/ugrd/Manifest b/sys-kernel/ugrd/Manifest
index 2498c4450379..0ec95007322f 100644
--- a/sys-kernel/ugrd/Manifest
+++ b/sys-kernel/ugrd/Manifest
@@ -3,3 +3,4 @@ DIST ugrd-1.28.2.tar.gz 79970 BLAKE2B 
545d9a21e3fa5dbee3a29adad5f3df4f4c60c36386
 DIST ugrd-1.29.0.tar.gz 81078 BLAKE2B 
6f0e25d325878a0bfba442fafd4dcd4ed0f51312339c3cfc8ef4a43b90020b143c34d7f9fddaa7e4af90260e25c5a9776842a61f6ad7483b7dd9e3c3c02049b2
 SHA512 
68ecfb9694e789df5de12068b4fac97d578d1ce1bc046e67f5859c5742e6cc3c33d3d87703c80d50603a4b1d504fed57a27d8e2a609f243f236f9040ddbf85bf
 DIST ugrd-1.31.2.tar.gz 87959 BLAKE2B 
2a569154d871fac0efde0eaab914a5ddc48d84b3b4d207514b3fa038b9f6403ecba3096af44374880ebe0a652f22198c5b95c3589e6114aa28a4637cc199d01f
 SHA512 
fa1147ba61075868d1ade76bc8ad2913902c21cfea9879a2709511650673f06728570a0b8bb11ad3166ee034cbb113115bbe617855356e01af74ce383882bff8
 DIST ugrd-2.0.2.tar.gz 107640 BLAKE2B 
31a8307fc1e516c94eac5a75ff70e10adcec041359d065fcb24e708f3578b219907ce8144a6d8ad0fb168127040c620cb5bbdcdaedd9e9dd86a61ff72fb7ce00
 SHA512 
cb91622ef0fd93aeb491bbc8fc05a549a3ee1f36afc59e4e47e824f6aba6e95e8d8047e320295815c830c47f91b9197bc60d5ab6d64f77a81f806c1225c2e5b3
+DIST ugrd-2.2.0.tar.gz 123567 BLAKE2B 
315ee56b7b24d8a6c43ea7d191ad2287bfdffcc62d6fef55c8321d5ab3e416643af7782ef2d0eef3b5d9daa85973f98c302eadd93c297dca9a710e358fd6495d
 SHA512 
3f83ada28efa6b89c550114132efb2850c799e0727f945ae50fb0b8c793f5ebe752a99e3b321f2d15be0c413604fd211382ca4758cfcfc9cbd2bd41fc52dfb2f

diff --git a/sys-kernel/ugrd/ugrd-2.2.0.ebuild 
b/sys-kernel/ugrd/ugrd-2.2.0.ebuild
new file mode 100644
index 000000000000..7819408e27b1
--- /dev/null
+++ b/sys-kernel/ugrd/ugrd-2.2.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 2023-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..14} )
+inherit distutils-r1 optfeature shell-completion
+
+DESCRIPTION="Python based POSIX initramfs generator with TOML definitions"
+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 ~arm64 ~riscv ~x86"
+RESTRICT="test"
+PROPERTIES="test_privileged"
+
+RDEPEND="
+       app-misc/pax-utils
+       sys-apps/coreutils
+       sys-apps/kmod
+       sys-apps/util-linux
+       sys-devel/bc
+       >=dev-python/zenlib-3.3.0[${PYTHON_USEDEP}]
+       >=dev-python/pycpio-1.7.0[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+       test? (
+               sys-fs/cryptsetup
+               sys-fs/btrfs-progs
+               sys-fs/e2fsprogs
+               sys-fs/f2fs-tools
+               sys-fs/xfsprogs
+               sys-fs/squashfs-tools
+               dev-python/zstandard
+               amd64? ( app-emulation/qemu[qemu_softmmu_targets_x86_64] )
+               arm64? ( app-emulation/qemu[qemu_softmmu_targets_aarch64] )
+       )
+"
+
+distutils_enable_tests unittest
+
+src_test() {
+       addwrite /dev/kvm
+       distutils-r1_src_test
+}
+
+python_test() {
+       eunittest tests/
+}
+
+python_install_all() {
+       # Call the distutils-r1_python_install_all function
+       distutils-r1_python_install_all
+       # Install the example config into /etc/ugrd/config.toml
+       # Do not overwrite an existing config
+       insinto /etc/ugrd
+       newins examples/example.toml config.toml
+
+       # Install the kernel preinst.d hook
+       exeinto /usr/lib/kernel/preinst.d
+       doexe hooks/installkernel/52-ugrd.install
+       exeinto /usr/lib/kernel/install.d
+       doexe hooks/kernel-install/52-ugrd.install
+
+       dobashcomp completion/ugrd  # Install bash autocomplete script
+       dozshcomp completion/_ugrd  # Install zsh autocomplete script
+}
+
+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.ext4 support" sys-fs/e2fsprogs
+       optfeature "ugrd.fs.f2s support" sys-fs/f2fs-tools
+       optfeature "ugrd.fs.lvm support" sys-fs/lvm2[lvm]
+       optfeature "ugrd.fs.zfs support" sys-fs/zfs
+       optfeature "ugrd.fs.mdraid support" sys-fs/mdadm
+       optfeature "ugrd.base.plymouth support" sys-boot/plymouth
+       optfeature "ZSTD compression support" dev-python/zstandard
+}

Reply via email to