summaryrefslogtreecommitdiff
path: root/sys-kernel/ugrd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-28 03:04:40 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-10-28 03:04:40 +0000
commit5d4291ee2ba8b85e8515b5f47b814a5c872eed04 (patch)
tree154246a13fd11756f110f04fee093e44a6cdea82 /sys-kernel/ugrd
parent83d9fce566bb89f6976f36f5314bfc88b6d261fa (diff)
gentoo auto-resync : 28:10:2024 - 03:04:40
Diffstat (limited to 'sys-kernel/ugrd')
-rw-r--r--sys-kernel/ugrd/Manifest4
-rw-r--r--sys-kernel/ugrd/ugrd-1.26.0.ebuild76
-rw-r--r--sys-kernel/ugrd/ugrd-9999.ebuild2
3 files changed, 80 insertions, 2 deletions
diff --git a/sys-kernel/ugrd/Manifest b/sys-kernel/ugrd/Manifest
index 97d64c1d9c64..e0e80f73f204 100644
--- a/sys-kernel/ugrd/Manifest
+++ b/sys-kernel/ugrd/Manifest
@@ -4,11 +4,13 @@ DIST ugrd-1.20.0.tar.gz 64541 BLAKE2B d85241e6c0822d3df0d65cc07cb17014b4d6655447
DIST ugrd-1.22.0.tar.gz 65955 BLAKE2B 0573364964ce8d874ff126e87e003aeb90d3f6460ecaca7aaf5f231fe9069dca9239c0ee9e68157eebaab8651401df0c22695d5a81e2984dbfb89b4a38f5a0aa SHA512 78598f0b0d81a9528b84fd829269b7ce0588830bf95ce5e6455c02053e38a25dd9eecb664057ea6bfed653590c39f73dd3f4a4235e056d27c9c100b166a29996
DIST ugrd-1.24.2.tar.gz 68762 BLAKE2B 2def2144381f66ac79d5c2246f49cacdde3aafd3ee7909cc9bfbfbb31dc554d501b240854452f51e4fd8e66d2af20c7380ee2552eb546f6728d56d59f9a2e9a1 SHA512 d5c756950212509d5a94c8f82b27da2cefdf6b7328f2871a9a56231e8e15d0fde1aea1850066935bdc5c143172fb3b2b09fb9fb131c3f52813d5b609541136d5
DIST ugrd-1.25.0.tar.gz 70221 BLAKE2B 7f3403dd4c5b6131c61c92679d447df6ef49e6dc6d7f17cef67b90d5d2c06087417fc0700a42be41e73749b127e11df807a93c14e91a50827e6043214ca6990c SHA512 6e4b74ee6d4cf38f76063cb5a15a2b853422a6a9ee25887830dbc158e61b1ea2a25dd36522d3e8642eb05ba875baa03ce18db1d66407f0ea55a4261cdd6df5da
+DIST ugrd-1.26.0.tar.gz 73284 BLAKE2B b96785a408b6a631d6708bf2bd6d570c95b0ba4a7d7bea297f36674d4625f16472256b8470578ff2b973ed162e9c0465a24937d38aead4da19d9085e220c8d1f SHA512 4b2309c53d5d28741974cdfe2f5a58b939afb523f8ba8f30e10b70bd1d0ed44aa925d64a3fcd60ff46d46df6c79250ca21cd1a712ef9e9f77af4512f9ff3874d
EBUILD ugrd-1.13.0.ebuild 1462 BLAKE2B 52d73a0564a64c31a1fa9cb02377f6735e883ee3f7c68f1fbdf404ebedf12faad5641e815cd09b9797e52378a462a56036d7a3106d5c35f9c15f1fe074712fd8 SHA512 6568990c8bf6f20fc49f8ae8d1080cfff04593b8255b361efe18e0e5a09fe8eeb1160cdbff2b1b2276f12860f5b3e0a7dd08302cc2d6f073f2759d72a35467b0
EBUILD ugrd-1.17.0.ebuild 1462 BLAKE2B c57694a328f9ee661569bac819216461fa9545f3ff00f2514994f8bc7ca0b5137dcda1d4e8ddf880fddb2fb7a515fa3c49dd62b99aa82349c46e57529d951ea0 SHA512 c7216215e70de33ee35007c89a717ac9c175e47c18bdfd70663a62b25f3e9bf79297679c05a030b8be913387498c6101d3a60da56f748345c467d8c4fa7dd1d6
EBUILD ugrd-1.20.0.ebuild 1989 BLAKE2B bd566233e7efc496d327595ab36e1010401f1529f11c638e9ea560be6b9458ed2b6bfc241adc25a4214741c399f8f50bfd4bd61b2526316cdccfbec89333937e SHA512 9440fcda80d0198338c659da3f5168a98ea0dd580d748726c70ca46253d72662cf89df99d36ab6262d7e57ec69927a6b8d11d88a625f528f789cf66f07663b4e
EBUILD ugrd-1.22.0.ebuild 1989 BLAKE2B bd566233e7efc496d327595ab36e1010401f1529f11c638e9ea560be6b9458ed2b6bfc241adc25a4214741c399f8f50bfd4bd61b2526316cdccfbec89333937e SHA512 9440fcda80d0198338c659da3f5168a98ea0dd580d748726c70ca46253d72662cf89df99d36ab6262d7e57ec69927a6b8d11d88a625f528f789cf66f07663b4e
EBUILD ugrd-1.24.2.ebuild 2041 BLAKE2B c457d8cc9c84ac3d6ea3765a72dc267a2db827a87b79af91643c97c4bb56c4305649074c26666d700a240e37b4b899be6227a663eb427fd95609e6693defe705 SHA512 73d8d2720cc762c5cd81173f37066d68869a45f0034ef89f1cd189ce04460dae4d81e798f34f88bd362aa11d7d7f8b56160e1d7c971eb0beae07d8d92984b579
EBUILD ugrd-1.25.0.ebuild 2100 BLAKE2B a2c38544c309497094cdce787b120afd9c1f84affe6618d25344c14672caa6fe32b42190bb83f7b41ec054300bf037410b5a750952cd909dec261ea2af8e3cc2 SHA512 47ffca4f779070dc389c2f9e0052d4b0639945898edf9472d6cd9ea92b4b1a85daf8ad67bc21659362413ae2ced770add057dd0d55edc61999c5cab28722c7ae
-EBUILD ugrd-9999.ebuild 2040 BLAKE2B c05630b0a2d0028e44326a11f26070fc2544576f8a6ffe7628613d866d2175c6b14aa154034c27800a80f060aca277a07c0ce441e39729ac6aeb3ebe6c162d49 SHA512 c91d8023b14d3a4f7ab24d652c939e8022a9b61c746fc58a413513377c9d1729c65fdc90360d7a6d7c6917847221ce9e39da0020f602157f4b88cee01ec9bd2c
+EBUILD ugrd-1.26.0.ebuild 2100 BLAKE2B 46c9b67c522fe592a3b103321f164336665d7c77979e270865fe4bad31788a71eafbd481fa406988e6d3c44ba0c2d411e78cb2dc55ce67b7b922df1a60b6712e SHA512 6d7d01fe5b8590f259853b5bb8e39a5626c094862fac3fbb96582711407fd67722f4694f1ec3ffd5dab57872b968a4a27b26d6fc1f6d0c78da862caf1065749d
+EBUILD ugrd-9999.ebuild 2040 BLAKE2B 48e238608be1b40e4462e03de15ae5ef1013423c6a476d943f56c597c184cdb7fd271764e57ed79dcb18bfd40e972cfc4ecdae9a400ffc97f087809c48f342a3 SHA512 82cd4708dfd97a8b66b8e1de5b7eee1bbbaa5f2b6ad26bf9393b1d522caab54566eb0cacd4168045ab5bf35f13c30ea77b38e9fb95a5680c237300611a931f7e
MISC metadata.xml 459 BLAKE2B 4b2afaf098699bd77c60b089a853528c9f8c054623c8c317ec99090572dc5d2e686150303fa69b739f0e654e35e6fe2f43f71df8920cfdb83b17393a67425c22 SHA512 78b8572050924ef651f833821bc1b15ce6e989311a30f0970d966fae78287263f14d67db59b4fc93dd0d8d1c07b89b9b05c42f325b61337f497589b769fdf103
diff --git a/sys-kernel/ugrd/ugrd-1.26.0.ebuild b/sys-kernel/ugrd/ugrd-1.26.0.ebuild
new file mode 100644
index 000000000000..add9d2aec5b3
--- /dev/null
+++ b/sys-kernel/ugrd/ugrd-1.26.0.ebuild
@@ -0,0 +1,76 @@
+# 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..13} )
+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.3.0[${PYTHON_USEDEP}]
+ >=dev-python/pycpio-1.4.0[${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]
+ optfeature "ugrd.fs.mdraid support" sys-fs/mdadm
+ optfeature "ugrd.base.plymouth support" sys-boot/plymouth
+}
+
+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/
+}
diff --git a/sys-kernel/ugrd/ugrd-9999.ebuild b/sys-kernel/ugrd/ugrd-9999.ebuild
index a1497e8e00c7..06f07ae98c16 100644
--- a/sys-kernel/ugrd/ugrd-9999.ebuild
+++ b/sys-kernel/ugrd/ugrd-9999.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{11..12} )
+PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1 git-r3 optfeature shell-completion
DESCRIPTION="Python based initramfs generator with TOML defintions"