add package: app-admin/mkosi

This commit is contained in:
2024-10-23 19:27:51 +03:00
parent 330f77fde5
commit 5399a82cb3
13 changed files with 71 additions and 82 deletions

3
app-admin/mkosi/Manifest Normal file
View File

@@ -0,0 +1,3 @@
DIST mkosi-24.3_p20241022.tar.gz 378045 BLAKE2B 93c884f11fc917d52c67db947f72558b91df957ebc68435e51122e47c907d9d36e7638bfb4795af305fb4dd578fec475d810fe011d35dc7ad59c9c7e531d52a8 SHA512 ef8a825ed6f800fd4e7972c6954d92fdc654f1007fc96ecec4af3889ad9fc3abbccccfdee66857503b0a7a6b2deb50f0f80a617ec29c8252a6d9f5ebbbae59d3
EBUILD mkosi-24.3_p20241022.ebuild 1144 BLAKE2B 35d6224cb1cf13e7942dfbf84a125645db60d996b6f0375e6c566c9af92267e4e1688586a3733bc6214ec2e4b07bb5425299787249148cfd2c93a68ccd21b133 SHA512 dbe6d8cfb70d4d4287d989be8885f1572bc141cdf41367be4699bdf707558a7901f06a7b94f288623dbe4af2f46db8df877806184d8a7374581456653d50a050
MISC metadata.xml 479 BLAKE2B 3921ab722bcee7cc126528e3b204251ef5fddb5abb333ef3317e8e5fb0a596eced1619ce8bb3670aa8c78f60987d59fc7f6992dc5b14c407f2be3b16581389de SHA512 d02e7a8f4e9295ea13e9bd8a451f1b87463c7d15cb49529e348aa483350fb0553b5a4485999abd876d40a658b457b4de46d3e7561ff3b512f9c1865b1b901e35

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>darwinskernel@gmail.com</email>
<name>Paymon MARANDI</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="github">systemd/mkosi</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,53 @@
# Copyright 2021-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} )
EGIT_COMMIT=fcacc94b9f72d9b6b1f03779b0c6e07209ceb54b
inherit distutils-r1 optfeature
DESCRIPTION="Build Bespoke OS Images"
HOMEPAGE="https://github.com/systemd/mkosi"
SRC_URI="https://github.com/systemd/mkosi/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
IUSE="qemu systemd kernel-install"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
qemu? ( app-emulation/qemu )
sys-apps/bubblewrap
systemd? ( sys-apps/systemd )
|| ( sys-firmware/edk2-ovmf-bin sys-firmware/edk2-ovmf )"
BDEPEND="virtual/pandoc"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
distutils_enable_tests pytest
src_compile() {
distutils-r1_src_compile
./tools/make-man-page.sh || die
}
src_install() {
distutils-r1_src_install
doman mkosi/resources/man/*.1
doman mkosi/resources/man/*.7
if use kernel-install; then
exeinto /usr/lib/kernel/install.d
doexe kernel-install/50-mkosi.install
fi
}
pkg_postinst() {
optfeature "debian support" dev-util/debootstrap
}