aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZen <z@pyl.onl>2024-05-20 17:54:55 -0500
committerZen <z@pyl.onl>2024-05-20 17:54:55 -0500
commit2537abd5525aeca4543fe57f7c28af79e2a2fc62 (patch)
tree97cb15b6820608a120bba1dd21e30f35b65fb7a1 /sys-kernel
parentgui-apps/nwg-dock-hyprland: drop 0.1.7 (diff)
downloadguru-2537abd5525aeca4543fe57f7c28af79e2a2fc62.tar.gz
guru-2537abd5525aeca4543fe57f7c28af79e2a2fc62.tar.bz2
guru-2537abd5525aeca4543fe57f7c28af79e2a2fc62.zip
sys-kernel/ugrd: Add 1.7.0
Signed-off-by: Zen <z@pyl.onl>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/ugrd/Manifest1
-rw-r--r--sys-kernel/ugrd/ugrd-1.7.0.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/sys-kernel/ugrd/Manifest b/sys-kernel/ugrd/Manifest
index 8268dd39d..f6e9b617b 100644
--- a/sys-kernel/ugrd/Manifest
+++ b/sys-kernel/ugrd/Manifest
@@ -4,3 +4,4 @@ DIST ugrd-1.4.0.tar.gz 50372 BLAKE2B aa5b253d78f82d9a35d812d8090441e7c068c048530
DIST ugrd-1.4.2.tar.gz 50984 BLAKE2B 5b69cbaaefdcfe5b427f781806a58b39e6539b7f790e7ab1c6d1e72b3bd904d2f9a44c60079400266e7a8b88d7d7b0de2932fe93cf07739e62dbcc8658179f85 SHA512 8d63d782da7cd6ea6c0342ab46190af66c564cd73601eee1da514f8a52722d86212678f70d5b847432bc9c4c133f6cdf06a7b9e0fc2eed7dc806b112e23ddefa
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.0.tar.gz 52886 BLAKE2B 23a940c6b5dd06eab7355c19eaf1554b43526d0aa928c892823369fddfeefe12022f64f49b5f4fa010e1cc7a270518b7eda73e19090ed3e20a3b9b429398273b SHA512 8f8e9645e4d8da93528a92f3c0bc2be7ef573d60923df39673686383157ba7d2cb078ca36d96e6757c081f7405228c2e348b5078ad362cd801278dbd77e6e4e5
diff --git a/sys-kernel/ugrd/ugrd-1.7.0.ebuild b/sys-kernel/ugrd/ugrd-1.7.0.ebuild
new file mode 100644
index 000000000..ca3d0f508
--- /dev/null
+++ b/sys-kernel/ugrd/ugrd-1.7.0.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
+
+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
+ >=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
+}