summaryrefslogtreecommitdiff
path: root/sys-kernel/ugrd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-09 04:26:33 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-09 04:26:33 +0100
commit6ee17dd82a3bcd0e90af4ebfbb3e411d342761be (patch)
tree5ade54018efa76614b79d832bbe15a22021b6d8c /sys-kernel/ugrd
parent325837835fc86686829aaa6acace3d3c06c74cea (diff)
gentoo auto-resync : 09:10:2024 - 04:26:32
Diffstat (limited to 'sys-kernel/ugrd')
-rw-r--r--sys-kernel/ugrd/Manifest4
-rw-r--r--sys-kernel/ugrd/ugrd-1.23.0.ebuild75
-rw-r--r--sys-kernel/ugrd/ugrd-9999.ebuild1
3 files changed, 79 insertions, 1 deletions
diff --git a/sys-kernel/ugrd/Manifest b/sys-kernel/ugrd/Manifest
index a6428ddce3cc..b17186869c67 100644
--- a/sys-kernel/ugrd/Manifest
+++ b/sys-kernel/ugrd/Manifest
@@ -2,9 +2,11 @@ DIST ugrd-1.13.0.tar.gz 63781 BLAKE2B 3f2d3095c6303b16947121071dabdbef81baaea5a7
DIST ugrd-1.17.0.tar.gz 69517 BLAKE2B 2acadac8ab3830791146522ccfff6f8c5e98eff4cea355dafd5f5498bedf5d0f200ec2bc2ee4a20c62e3920590c70b2c788c776c148e7291cd3391eb2e0018df SHA512 5caeebadb579536a60cecd6c9fd9036c178ab5c5700418b95841e7102ac0c3c5fa14ceebc9994a86f65bd0623ca819ed7cb7a986f412e0358c9597c0e579f90c
DIST ugrd-1.20.0.tar.gz 64541 BLAKE2B d85241e6c0822d3df0d65cc07cb17014b4d66554476caf4d37ebc77943c57ef3004e1e01b4eb504974b2ab9d1a03015812e8b0cb19ebf03667a9f6c7a1bded03 SHA512 88f137fa5fc4cb61418cda03c0c58ff7632c1e61b7688ad9e8cce538842d817e973c1d2293b8bb92b9697a29511cb535059ca060793ba6353d95d5ddad417f3a
DIST ugrd-1.22.0.tar.gz 65955 BLAKE2B 0573364964ce8d874ff126e87e003aeb90d3f6460ecaca7aaf5f231fe9069dca9239c0ee9e68157eebaab8651401df0c22695d5a81e2984dbfb89b4a38f5a0aa SHA512 78598f0b0d81a9528b84fd829269b7ce0588830bf95ce5e6455c02053e38a25dd9eecb664057ea6bfed653590c39f73dd3f4a4235e056d27c9c100b166a29996
+DIST ugrd-1.23.0.tar.gz 67477 BLAKE2B 12980f3620f9d6c98ee652d957f96961f2b1456719b2806a72c9512bd7f74a74a162f57aefbf2f92967becb7d3e05feebaf4fe590d0be4884c7d99b5f5037ad5 SHA512 ccf4af7fae729142203f5f4e619273705c8d9d9ee56b65e90736aed9f2f7cd0b886f12e84ca3ac4e8f754606bc91e9dc80a14721059e90e76e622ecac3b8e408
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 1991 BLAKE2B 0db47c00e898694c37b7f0ae4d626b81d941d8014d88187b02652ce137dccf4cdc51ebac7999ff2da70e63b2e714b89c0d464727dbfe6055a92ab5e881adac1d SHA512 a856a599f75758fd6afb9d3027aeb351d572601c553b631ad778fd8dde642a81f6fa24496eba16f7c7f83f9d433a41f44e2aa2937b6bfb657e1f599ef06b4154
EBUILD ugrd-1.22.0.ebuild 1991 BLAKE2B 0db47c00e898694c37b7f0ae4d626b81d941d8014d88187b02652ce137dccf4cdc51ebac7999ff2da70e63b2e714b89c0d464727dbfe6055a92ab5e881adac1d SHA512 a856a599f75758fd6afb9d3027aeb351d572601c553b631ad778fd8dde642a81f6fa24496eba16f7c7f83f9d433a41f44e2aa2937b6bfb657e1f599ef06b4154
-EBUILD ugrd-9999.ebuild 1931 BLAKE2B d768579786527265b6a221631aa3fdd1c25823dfe407949e5653e36b2e7f6aaaeab2c09d1467e751f095032cce86663470d73c3e6d0b7edc1aa443f596553e79 SHA512 be266b431abdb0ca0b0854e14023dfd20b17441399900ec64757b435c12f8781b57ed95d32290001b916c2687e7ee22f0c04005d4c8ec734b4ec87a7b8662a7b
+EBUILD ugrd-1.23.0.ebuild 2041 BLAKE2B c457d8cc9c84ac3d6ea3765a72dc267a2db827a87b79af91643c97c4bb56c4305649074c26666d700a240e37b4b899be6227a663eb427fd95609e6693defe705 SHA512 73d8d2720cc762c5cd81173f37066d68869a45f0034ef89f1cd189ce04460dae4d81e798f34f88bd362aa11d7d7f8b56160e1d7c971eb0beae07d8d92984b579
+EBUILD ugrd-9999.ebuild 1981 BLAKE2B 0b5cde4d6cc50754fd9bd76c8d11062c6a2c040f55c075ba408d46ba84573d389cd886964668d33391e24ea2185460db9c9d3948b8b4ec26dfb5b2e2910fce28 SHA512 5bbd8d1559b89c3b54ed28affafba75a9777f3da867b8aac3657845ccf5bc715d2bb8ac083e5045ea4ac3a6cc6537c4f73ae0d8529bc986e406cd72c8977cf71
MISC metadata.xml 459 BLAKE2B 4b2afaf098699bd77c60b089a853528c9f8c054623c8c317ec99090572dc5d2e686150303fa69b739f0e654e35e6fe2f43f71df8920cfdb83b17393a67425c22 SHA512 78b8572050924ef651f833821bc1b15ce6e989311a30f0970d966fae78287263f14d67db59b4fc93dd0d8d1c07b89b9b05c42f325b61337f497589b769fdf103
diff --git a/sys-kernel/ugrd/ugrd-1.23.0.ebuild b/sys-kernel/ugrd/ugrd-1.23.0.ebuild
new file mode 100644
index 000000000000..b8d3f75a0f20
--- /dev/null
+++ b/sys-kernel/ugrd/ugrd-1.23.0.ebuild
@@ -0,0 +1,75 @@
+# 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]
+ optfeature "ugrd.fs.mdraid support" sys-fs/mdadm
+}
+
+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 6f4810071f2d..12d394fa29fe 100644
--- a/sys-kernel/ugrd/ugrd-9999.ebuild
+++ b/sys-kernel/ugrd/ugrd-9999.ebuild
@@ -51,6 +51,7 @@ pkg_postinst() {
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
}
distutils_enable_tests unittest