commit:     3948cb4bc9b7cba44004e290fc3f9a992a740190
Author:     Zen <z <AT> pyl <DOT> onl>
AuthorDate: Tue Sep  3 02:25:22 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Sep  3 07:36:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3948cb4b

sys-kernel/ugrd: add 1.19.4

Signed-off-by: Zen <z <AT> pyl.onl>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sys-kernel/ugrd/Manifest           |  1 +
 sys-kernel/ugrd/ugrd-1.19.4.ebuild | 74 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

diff --git a/sys-kernel/ugrd/Manifest b/sys-kernel/ugrd/Manifest
index 23c8c935bd93..ad753f69ed79 100644
--- a/sys-kernel/ugrd/Manifest
+++ b/sys-kernel/ugrd/Manifest
@@ -1,3 +1,4 @@
 DIST ugrd-1.13.0.tar.gz 63781 BLAKE2B 
3f2d3095c6303b16947121071dabdbef81baaea5a7e208d53250e57edf136618497710ce3cca2906b87fbdc529b8a9ef119659365bba8c795594774cf8d096f6
 SHA512 
a745685668e981accfd32d1c47c6cf506ae63304ef5b3fdad200731db75b76fe56a4339876465bb1857c2fed35c273f95bbce390224fa0d01aebd67adbc31aa6
 DIST ugrd-1.17.0.tar.gz 69517 BLAKE2B 
2acadac8ab3830791146522ccfff6f8c5e98eff4cea355dafd5f5498bedf5d0f200ec2bc2ee4a20c62e3920590c70b2c788c776c148e7291cd3391eb2e0018df
 SHA512 
5caeebadb579536a60cecd6c9fd9036c178ab5c5700418b95841e7102ac0c3c5fa14ceebc9994a86f65bd0623ca819ed7cb7a986f412e0358c9597c0e579f90c
 DIST ugrd-1.19.3.tar.gz 63991 BLAKE2B 
f0eb6298504969eb2740b054e45fcb541980fa7ae6aa157ea4ab275f3c24d853656dda1df4aa82c59abaa294c14e8ad1ecfbb33fa41826aff96474ad2cfb627e
 SHA512 
0a0679a881f16fc42af6ee8b3de00da747ca685aa5dbd4ac0496097bf9642fd74d3a8f5dd6722f712065afe0574d75f5a4e4a90a2ba23f10c65015f004660206
+DIST ugrd-1.19.4.tar.gz 63998 BLAKE2B 
b6a0f7db7e962f84d695e478f79116329b622505393d17c94d3501ab461dafd3047c25f7ad14b8c4ceea9177b4fdb6e3536952a440096af6619fdf4154252254
 SHA512 
8504d1f673ed1c1510729376e4419166f88357ef655106c20783071b3dc6c442e9b9ae166781de55f60572ce24f8f31eb3079750d523d99340aafed822073729

diff --git a/sys-kernel/ugrd/ugrd-1.19.4.ebuild 
b/sys-kernel/ugrd/ugrd-1.19.4.ebuild
new file mode 100644
index 000000000000..6869d9c50265
--- /dev/null
+++ b/sys-kernel/ugrd/ugrd-1.19.4.ebuild
@@ -0,0 +1,74 @@
+# 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.2.3[${PYTHON_USEDEP}]
+       >=dev-python/pycpio-1.3.2[${PYTHON_USEDEP}]
+       sys-apps/pciutils
+"
+
+BDEPEND="
+       test? (
+               amd64? ( app-emulation/qemu[qemu_softmmu_targets_x86_64] )
+               arm64? ( app-emulation/qemu[qemu_softmmu_targets_aarch64] )
+       )
+"
+
+python_install_all() {
+       # Call the distutils-r1_python_install_all function
+       distutils-r1_python_install_all
+       # Install the example config into /etc/ugrd/config.toml
+       # Do not overwrite an existing config
+       insinto /etc/ugrd
+       newins examples/example.toml config.toml
+
+       # Install the kernel preinst.d hook
+       exeinto /usr/lib/kernel/preinst.d
+       doexe hooks/installkernel/52-ugrd.install
+       exeinto /usr/lib/kernel/install.d
+       doexe hooks/kernel-install/52-ugrd.install
+
+       dobashcomp completion/ugrd  # Install bash autocomplete script
+       dozshcomp completion/_ugrd  # Install zsh autocomplete script
+}
+
+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
+       optfeature "ugrd.fs.lvm support" sys-fs/lvm2[lvm]
+}
+
+distutils_enable_tests unittest
+
+src_test() {
+       if [[ ! -w '/dev/kvm' ]]; then
+               ewarn "Skipping tests: Cannot write to /dev/kvm."
+               return 1
+       fi
+       if [[ ! -r "$(command -v mount)" ]]; then
+               ewarn "Cannot read the mount binary, tests may fail until"
+               ewarn "util-linux is re-emerged without the sfperms feature."
+       fi
+
+       distutils-r1_src_test
+}
+
+python_test() {
+       eunittest tests/
+}

Reply via email to