From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4FD6915812D for ; Sat, 04 Jan 2025 15:30:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9D926E0794; Sat, 04 Jan 2025 15:30:04 +0000 (UTC) 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 pigeon.gentoo.org (Postfix) with ESMTPS id 82393E0794 for ; Sat, 04 Jan 2025 15:30:04 +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 6370C33BEB9 for ; Sat, 04 Jan 2025 15:30:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8279F1996 for ; Sat, 04 Jan 2025 15:29:59 +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: <1736004580.6c98dc6700f63a80842ddd6cdf1a2301ab0d945b.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.29.0.ebuild X-VCS-Directories: sys-kernel/ugrd/ X-VCS-Committer: nowa X-VCS-Committer-Name: Nowa Ammerlaan X-VCS-Revision: 6c98dc6700f63a80842ddd6cdf1a2301ab0d945b X-VCS-Branch: master Date: Sat, 04 Jan 2025 15:29:59 +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: ecdd368c-94fd-4e17-8a8d-0ce5c30a9eb6 X-Archives-Hash: 7d4bc38c4ebabdb034c4bc90cb4ea403 commit: 6c98dc6700f63a80842ddd6cdf1a2301ab0d945b Author: Filip Kobierski pm me> AuthorDate: Thu Jan 2 11:10:25 2025 +0000 Commit: Nowa Ammerlaan gentoo org> CommitDate: Sat Jan 4 15:29:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c98dc67 sys-kernel/ugrd: add 1.29.0 Signed-off-by: Filip Kobierski pm.me> Closes: https://github.com/gentoo/gentoo/pull/39942 Signed-off-by: Nowa Ammerlaan gentoo.org> sys-kernel/ugrd/Manifest | 1 + sys-kernel/ugrd/ugrd-1.29.0.ebuild | 73 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/sys-kernel/ugrd/Manifest b/sys-kernel/ugrd/Manifest index 197da6dc4f1e..3215f5833f29 100644 --- a/sys-kernel/ugrd/Manifest +++ b/sys-kernel/ugrd/Manifest @@ -7,3 +7,4 @@ DIST ugrd-1.25.0.tar.gz 70221 BLAKE2B 7f3403dd4c5b6131c61c92679d447df6ef49e6dc6d DIST ugrd-1.26.0.tar.gz 73284 BLAKE2B b96785a408b6a631d6708bf2bd6d570c95b0ba4a7d7bea297f36674d4625f16472256b8470578ff2b973ed162e9c0465a24937d38aead4da19d9085e220c8d1f SHA512 4b2309c53d5d28741974cdfe2f5a58b939afb523f8ba8f30e10b70bd1d0ed44aa925d64a3fcd60ff46d46df6c79250ca21cd1a712ef9e9f77af4512f9ff3874d DIST ugrd-1.27.2.tar.gz 76119 BLAKE2B 7a97f0189f1b39f0a1264c4ac9fbc8dc15f6bf93639db8c232dd6d7f488a98cac422b71d1214e9583491b6fd59064358419a39af14ac9e3c9b1e5f0573c1ec50 SHA512 6b079b31c286771619fbf6306bfbab8685e7b92e06c04fc9139c9bd1ade861816df15174b7e72109215ba941cf73b0514749650a8f0b2ff27c40b4d0d51ed48f DIST ugrd-1.28.2.tar.gz 79970 BLAKE2B 545d9a21e3fa5dbee3a29adad5f3df4f4c60c363866277520d0783c0e578d762301c94b0791b5a21b47ef8172cf9658ae47c43a5b696d311a76fea6649f80d17 SHA512 7598cf15869f3e8aca681fd1d8f239da66b84252978152559fa154d43ae06a1edab2cbee0b7fbaf8a48abc40e9b96c769534c95fed4e040e2f9ae7ab90694a6d +DIST ugrd-1.29.0.tar.gz 81078 BLAKE2B 6f0e25d325878a0bfba442fafd4dcd4ed0f51312339c3cfc8ef4a43b90020b143c34d7f9fddaa7e4af90260e25c5a9776842a61f6ad7483b7dd9e3c3c02049b2 SHA512 68ecfb9694e789df5de12068b4fac97d578d1ce1bc046e67f5859c5742e6cc3c33d3d87703c80d50603a4b1d504fed57a27d8e2a609f243f236f9040ddbf85bf diff --git a/sys-kernel/ugrd/ugrd-1.29.0.ebuild b/sys-kernel/ugrd/ugrd-1.29.0.ebuild new file mode 100644 index 000000000000..21ddb7fb455a --- /dev/null +++ b/sys-kernel/ugrd/ugrd-1.29.0.ebuild @@ -0,0 +1,73 @@ +# Copyright 2023-2024 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 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 ~arm64" +RESTRICT="test" +PROPERTIES="test_privileged" + +RDEPEND=" + app-misc/pax-utils + >=dev-python/zenlib-2.3.2[${PYTHON_USEDEP}] + >=dev-python/pycpio-1.4.0[${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/ +}