From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1585982-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 041BC15803E
	for <garchives@archives.gentoo.org>; Mon,  1 Jan 2024 02:16:47 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 46A422BC03F;
	Mon,  1 Jan 2024 02:16:46 +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))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 2A11B2BC03F
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 Jan 2024 02:16:46 +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 4239C33B864
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 Jan 2024 02:16:45 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 70DC414AA
	for <gentoo-commits@lists.gentoo.org>; Mon,  1 Jan 2024 02:16:42 +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: <1704075145.64fcbc014b878e1f118a101dfd6df7d121c2cbaa.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/ugrd-0.19.3.ebuild
X-VCS-Directories: sys-kernel/ugrd/
X-VCS-Committer: dev
X-VCS-Committer-Name: George Zenner
X-VCS-Revision: 64fcbc014b878e1f118a101dfd6df7d121c2cbaa
X-VCS-Branch: dev
Date: Mon,  1 Jan 2024 02:16:42 +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: 0fdb12a0-4b8f-4c49-91eb-b478ea20f25d
X-Archives-Hash: 8e8a2ffcd1ee99bdef6f30b60a7e6523

commit:     64fcbc014b878e1f118a101dfd6df7d121c2cbaa
Author:     Zen <z <AT> pyl <DOT> onl>
AuthorDate: Mon Jan  1 02:12:25 2024 +0000
Commit:     George Zenner <dev <AT> pyl <DOT> onl>
CommitDate: Mon Jan  1 02:12:25 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=64fcbc01

sys-kernel/ugrd: Add 0.19.3, add [${PYTHON_USEDEP}]

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

 sys-kernel/ugrd/ugrd-0.19.3.ebuild | 43 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/sys-kernel/ugrd/ugrd-0.19.3.ebuild b/sys-kernel/ugrd/ugrd-0.19.3.ebuild
new file mode 100644
index 0000000000..e3c323ba2d
--- /dev/null
+++ b/sys-kernel/ugrd/ugrd-0.19.3.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2023 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
+
+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"
+
+RDEPEND="app-misc/pax-utils"
+DEPEND=">=dev-python/zenlib-1.4.0[${PYTHON_USEDEP}]
+>=dev-python/pycpio-0.8.0[${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/51-ugrd.install
+}
+
+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
+}