From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D744F1581F0 for ; Sat, 25 Jan 2025 19:25:28 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id BBD38343160 for ; Sat, 25 Jan 2025 19:25:28 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id B12651103C3; Sat, 25 Jan 2025 19:25:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id A592A1103C3 for ; Sat, 25 Jan 2025 19:25:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4DBDC3430C3 for ; Sat, 25 Jan 2025 19:25:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9ABEF97F for ; Sat, 25 Jan 2025 19:25:25 +0000 (UTC) From: "Nowa Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nowa Ammerlaan" Message-ID: <1737832915.78e69b47dd63a1c3d9676af2e205f6aabb0a8f01.nowa@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/ugrd/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/ugrd/Manifest sys-kernel/ugrd/ugrd-1.31.2.ebuild X-VCS-Directories: sys-kernel/ugrd/ X-VCS-Committer: nowa X-VCS-Committer-Name: Nowa Ammerlaan X-VCS-Revision: 78e69b47dd63a1c3d9676af2e205f6aabb0a8f01 X-VCS-Branch: master Date: Sat, 25 Jan 2025 19:25:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3e0e51d1-cd02-4aae-a995-ad96d9b35caa X-Archives-Hash: 673e31b0f6274edfc93b0fdd423ae882 commit: 78e69b47dd63a1c3d9676af2e205f6aabb0a8f01 Author: Zen pyl onl> AuthorDate: Sat Jan 25 00:15:54 2025 +0000 Commit: Nowa Ammerlaan gentoo org> CommitDate: Sat Jan 25 19:21:55 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78e69b47 sys-kernel/ugrd: add 1.31.2 Fixes an issue introduced in 1.30.1 adds support for new installkernel hooks Closes: https://bugs.gentoo.org/948675 Signed-off-by: Zen pyl.onl> Signed-off-by: Nowa Ammerlaan gentoo.org> sys-kernel/ugrd/Manifest | 1 + sys-kernel/ugrd/ugrd-1.31.2.ebuild | 73 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/sys-kernel/ugrd/Manifest b/sys-kernel/ugrd/Manifest index fb5fb0e49fd8..bdf57d7a7d29 100644 --- a/sys-kernel/ugrd/Manifest +++ b/sys-kernel/ugrd/Manifest @@ -6,3 +6,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.30.1.tar.gz 86277 BLAKE2B ce45778d9e14894b7b77e52eb86b982200f8acb9c06efcf33d07813a0e8611c9a2062fe1ba893d86a96580c8e557ecee3fb93b633554564f32b0508c781ecd74 SHA512 a9c7ae0f2ed2daf77eb36366c31ca1728f54b1a9c1b047809fe30311b152f825276b3314410dcb782c3f4fda603c643521f7e318eab2fb09a567c15659a56f78 DIST ugrd-1.31.1.tar.gz 87705 BLAKE2B 79c773e39ce8fbfeabebe3169d3765c6f6c91142b16895a33623ad7343c811fcee9c7708b17d6334e2c5d07e188e60c57edbf7ba64d25dc5d8595f995ebd6473 SHA512 675a72d2af9d09f86a58f3ae31db4654fbf23d57a0080dcd815ebed0dfe7c5b7eca48ae5b9f80f57ab6a6120a097e6c6e882360ff1bec636f91dc0956f1ec0de +DIST ugrd-1.31.2.tar.gz 87959 BLAKE2B 2a569154d871fac0efde0eaab914a5ddc48d84b3b4d207514b3fa038b9f6403ecba3096af44374880ebe0a652f22198c5b95c3589e6114aa28a4637cc199d01f SHA512 fa1147ba61075868d1ade76bc8ad2913902c21cfea9879a2709511650673f06728570a0b8bb11ad3166ee034cbb113115bbe617855356e01af74ce383882bff8 diff --git a/sys-kernel/ugrd/ugrd-1.31.2.ebuild b/sys-kernel/ugrd/ugrd-1.31.2.ebuild new file mode 100644 index 000000000000..33f1b50d73ac --- /dev/null +++ b/sys-kernel/ugrd/ugrd-1.31.2.ebuild @@ -0,0 +1,73 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..13} ) +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" +RESTRICT="test" +PROPERTIES="test_privileged" + +RDEPEND=" + app-misc/pax-utils + >=dev-python/zenlib-3.0.2[${PYTHON_USEDEP}] + >=dev-python/pycpio-1.4.2[${PYTHON_USEDEP}] + sys-apps/pciutils +" + +BDEPEND=" + test? ( + sys-fs/btrfs-progs + sys-fs/xfsprogs + sys-fs/cryptsetup + amd64? ( app-emulation/qemu[qemu_softmmu_targets_x86_64] ) + arm64? ( app-emulation/qemu[qemu_softmmu_targets_aarch64] ) + ) +" + +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.lvm support" sys-fs/lvm2[lvm] + optfeature "ugrd.fs.mdraid support" sys-fs/mdadm + optfeature "ugrd.base.plymouth support" sys-boot/plymouth +} + +distutils_enable_tests unittest + +src_test() { + addwrite /dev/kvm + distutils-r1_src_test +} + +python_test() { + eunittest tests/ +}