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
+}

Reply via email to