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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 973C01581D3 for ; Tue, 21 May 2024 21:10:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 354C9E2A65; Tue, 21 May 2024 21:10:14 +0000 (UTC) Received: from smtp.gentoo.org (dev.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DC00BE2A5B for ; Tue, 21 May 2024 21:10:13 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AA2FD342FFB for ; Tue, 21 May 2024 21:10:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A57AC1B08 for ; Tue, 21 May 2024 21:10:09 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1716245957.8c04ba9740d500227c14c3cd3c63c3f7a59766b5.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-kernel/ugrd/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-kernel/ugrd/ugrd-9999.ebuild X-VCS-Directories: sys-kernel/ugrd/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 8c04ba9740d500227c14c3cd3c63c3f7a59766b5 X-VCS-Branch: master Date: Tue, 21 May 2024 21:10:09 +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: 11f85569-6a37-46c4-948e-3fba9f117e4d X-Archives-Hash: d38f9052ed373162487afa9371cfe3a2 commit: 8c04ba9740d500227c14c3cd3c63c3f7a59766b5 Author: Zen pyl onl> AuthorDate: Mon May 20 22:59:17 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Mon May 20 22:59:17 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8c04ba97 sys-kernel/ugrd: Add 9999 ebuild Signed-off-by: Zen pyl.onl> sys-kernel/ugrd/ugrd-9999.ebuild | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/sys-kernel/ugrd/ugrd-9999.ebuild b/sys-kernel/ugrd/ugrd-9999.ebuild new file mode 100644 index 0000000000..fe1d076ecd --- /dev/null +++ b/sys-kernel/ugrd/ugrd-9999.ebuild @@ -0,0 +1,50 @@ +# 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..12} ) +inherit distutils-r1 optfeature shell-completion git-r3 + +DESCRIPTION="Python based initramfs generator with TOML defintions" +HOMEPAGE="https://github.com/desultory/ugrd" +EGIT_REPO_URI="https://github.com/desultory/${PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" + +RDEPEND=" + app-misc/pax-utils + >=dev-python/zenlib-2.1.2[${PYTHON_USEDEP}] + >=dev-python/pycpio-1.1.2[${PYTHON_USEDEP}] + sys-apps/pciutils +" + +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 + # Install the example config into /etc/ugrd/config.toml + # Do not overwrite an existing config + insinto /etc/ugrd + newins examples/example.toml config.toml + # Create the kernel preinst.d directory if it doesn't exist + # Install the kernel preinst.d hook + keepdir /etc/kernel/preinst.d + exeinto /etc/kernel/preinst.d + doexe hooks/installkernel/51-ugrd.install + exeinto /lib/kernel/install.d + doexe hooks/kernel-install/51-ugrd.install + # Install bash autocomplete script + dobashcomp completion/ugrd + dozshcomp completion/_ugrd +} + +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 +}