From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1635780-garchives=archives.gentoo.org@lists.gentoo.org>
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 792621581D3
	for <garchives@archives.gentoo.org>; Sun, 26 May 2024 22:47:31 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B71F0E29F2;
	Sun, 26 May 2024 22:47:30 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.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 97CE2E29F2
	for <gentoo-commits@lists.gentoo.org>; Sun, 26 May 2024 22:47:30 +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 A9690342F94
	for <gentoo-commits@lists.gentoo.org>; Sun, 26 May 2024 22:47:29 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 4408C149C
	for <gentoo-commits@lists.gentoo.org>; Sun, 26 May 2024 22:47:28 +0000 (UTC)
From: "George Zenner" <dev@pyl.onl>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "George Zenner" <dev@pyl.onl>
Message-ID: <1716763639.a2eb7cba03023eb55694e34317a24c43e5fd0960.dev@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-kernel/ugrd/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: sys-kernel/ugrd/Manifest sys-kernel/ugrd/ugrd-1.8.3.ebuild
X-VCS-Directories: sys-kernel/ugrd/
X-VCS-Committer: dev
X-VCS-Committer-Name: George Zenner
X-VCS-Revision: a2eb7cba03023eb55694e34317a24c43e5fd0960
X-VCS-Branch: dev
Date: Sun, 26 May 2024 22:47:28 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 1296e8f3-9ebe-4cec-aaaa-835e89c0073a
X-Archives-Hash: 57d143004d93864bf69ce4a0091af6a8

commit:     a2eb7cba03023eb55694e34317a24c43e5fd0960
Author:     Zen <z <AT> pyl <DOT> onl>
AuthorDate: Sun May 26 22:46:41 2024 +0000
Commit:     George Zenner <dev <AT> pyl <DOT> onl>
CommitDate: Sun May 26 22:47:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a2eb7cba

sys-kernel/ugrd: Add 1.8.3 with new installkernel hooks

Signed-off-by: Zen <z <AT> pyl.onl>

 sys-kernel/ugrd/Manifest          |  1 +
 sys-kernel/ugrd/ugrd-1.8.3.ebuild | 51 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/sys-kernel/ugrd/Manifest b/sys-kernel/ugrd/Manifest
index 049fe24ca..870b971a0 100644
--- a/sys-kernel/ugrd/Manifest
+++ b/sys-kernel/ugrd/Manifest
@@ -5,3 +5,4 @@ DIST ugrd-1.4.2.tar.gz 50984 BLAKE2B 5b69cbaaefdcfe5b427f781806a58b39e6539b7f790
 DIST ugrd-1.5.1.tar.gz 51574 BLAKE2B 5058e515e3d9aa543eb9ddd51335a5aa197ddf79395a193a4a4440706c2d940e77a0a26d470fc1ae86965d605e9889004d404e6ab5a4e1b4c12aaac92b872d2d SHA512 0a83180ed2947ce71cfb91c0fe65ddf20a3cbcb7f98f04efb4a95f904489153cb2e32e7efdb85c8ded8c4f29d95361bb7dc93e7eba72e74f1531c91aa03c1912
 DIST ugrd-1.6.0.tar.gz 52219 BLAKE2B 34168eb5c553efe804ac9d5034ada96634f2323f26ecaad89eb5e0c0cc4eeb1ce6182d850186c3d439fa5470679ed08a73531966e9e742c1a018f84bf4dd851c SHA512 ea4843d5c21aa09e992478236395cdb3262110ffa3b5caec8db6712ea132851e9daa471a959437a37d2ca29cd62b9275dfe5515cdeb5c557c1268d797468dfb9
 DIST ugrd-1.7.1.tar.gz 52946 BLAKE2B a41be0e5177b1883060a1693a8ec68179cf69d74713a95c51d2b2d2b8f3faca74f8f80d32e7767719e8de4b7190162f3b41bc779d487fdcbfe3e40a416f86c89 SHA512 f042106ec8843f738968e16d51d9deda010179678cf82daf2d162d3a3125eb9106dfdc5453c8555d8ba097caa2af22b74b2e1c5c38dc5083b97ac49cb7cea225
+DIST ugrd-1.8.3.tar.gz 53150 BLAKE2B 02a1429ac73c039b269fb289e2112ec485c3765d2d7f57c73808f243745e5f92b367267010d333b190695562cab529d3502780b741a730d6ddff5a216e616626 SHA512 224c956d1f3e53ab4e62067c1f6fcfe44424c560e0df1f9a645406d95381a16c5e0a8dd19156048fd64ead5fd41b05d6e0b84fc830b284813d4bf6e428ca8c20

diff --git a/sys-kernel/ugrd/ugrd-1.8.3.ebuild b/sys-kernel/ugrd/ugrd-1.8.3.ebuild
new file mode 100644
index 000000000..2c55118ef
--- /dev/null
+++ b/sys-kernel/ugrd/ugrd-1.8.3.ebuild
@@ -0,0 +1,51 @@
+# 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
+
+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"
+
+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
+	exeinto /usr/lib/kernel/preinst.d
+	doexe hooks/installkernel/51-ugrd.install
+	exeinto /usr/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
+	ewarn "UGRD will not be used with installkernel unless 'ugrd' is set as the"
+	ewarn "'initrd_generator' in /usr/lib/kernel/install.conf."
+}