From 5399a82cb33b4615189561ca139ee01a2019cecd Mon Sep 17 00:00:00 2001 From: Alexander Miroshnichenko Date: Wed, 23 Oct 2024 19:27:51 +0300 Subject: [PATCH] add package: app-admin/mkosi --- app-admin/mkosi/Manifest | 3 ++ app-admin/mkosi/metadata.xml | 15 ++++++ app-admin/mkosi/mkosi-24.3_p20241022.ebuild | 53 +++++++++++++++++++ profiles/eapi | 1 - profiles/hardened/musl/amd64/eapi | 1 - profiles/hardened/musl/amd64/parent | 1 - profiles/hardened/musl/amd64/systemd/eapi | 1 - .../musl/amd64/systemd/package.unmask | 46 ---------------- profiles/hardened/musl/amd64/systemd/parent | 3 -- profiles/hardened/musl/amd64/systemd/use.mask | 1 - profiles/package.unmask | 5 -- profiles/package.use.mask | 22 -------- profiles/profiles.desc | 1 - 13 files changed, 71 insertions(+), 82 deletions(-) create mode 100644 app-admin/mkosi/Manifest create mode 100644 app-admin/mkosi/metadata.xml create mode 100644 app-admin/mkosi/mkosi-24.3_p20241022.ebuild delete mode 100644 profiles/eapi delete mode 100644 profiles/hardened/musl/amd64/eapi delete mode 100644 profiles/hardened/musl/amd64/parent delete mode 100644 profiles/hardened/musl/amd64/systemd/eapi delete mode 100644 profiles/hardened/musl/amd64/systemd/package.unmask delete mode 100644 profiles/hardened/musl/amd64/systemd/parent delete mode 100644 profiles/hardened/musl/amd64/systemd/use.mask delete mode 100644 profiles/package.unmask delete mode 100644 profiles/package.use.mask delete mode 100644 profiles/profiles.desc diff --git a/app-admin/mkosi/Manifest b/app-admin/mkosi/Manifest new file mode 100644 index 0000000..d86b7bc --- /dev/null +++ b/app-admin/mkosi/Manifest @@ -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 diff --git a/app-admin/mkosi/metadata.xml b/app-admin/mkosi/metadata.xml new file mode 100644 index 0000000..a90d799 --- /dev/null +++ b/app-admin/mkosi/metadata.xml @@ -0,0 +1,15 @@ + + + + + darwinskernel@gmail.com + Paymon MARANDI + + + proxy-maint@gentoo.org + Proxy Maintainers + + + systemd/mkosi + + diff --git a/app-admin/mkosi/mkosi-24.3_p20241022.ebuild b/app-admin/mkosi/mkosi-24.3_p20241022.ebuild new file mode 100644 index 0000000..bd6408f --- /dev/null +++ b/app-admin/mkosi/mkosi-24.3_p20241022.ebuild @@ -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 +} diff --git a/profiles/eapi b/profiles/eapi deleted file mode 100644 index 1e8b314..0000000 --- a/profiles/eapi +++ /dev/null @@ -1 +0,0 @@ -6 diff --git a/profiles/hardened/musl/amd64/eapi b/profiles/hardened/musl/amd64/eapi deleted file mode 100644 index 7ed6ff8..0000000 --- a/profiles/hardened/musl/amd64/eapi +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/profiles/hardened/musl/amd64/parent b/profiles/hardened/musl/amd64/parent deleted file mode 100644 index 9f42810..0000000 --- a/profiles/hardened/musl/amd64/parent +++ /dev/null @@ -1 +0,0 @@ -gentoo::default/linux/amd64/23.0/musl/hardened diff --git a/profiles/hardened/musl/amd64/systemd/eapi b/profiles/hardened/musl/amd64/systemd/eapi deleted file mode 100644 index 7ed6ff8..0000000 --- a/profiles/hardened/musl/amd64/systemd/eapi +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/profiles/hardened/musl/amd64/systemd/package.unmask b/profiles/hardened/musl/amd64/systemd/package.unmask deleted file mode 100644 index e53f7c4..0000000 --- a/profiles/hardened/musl/amd64/systemd/package.unmask +++ /dev/null @@ -1,46 +0,0 @@ -app-admin/abrt -app-admin/calamares -app-admin/gnome-abrt -app-admin/mkosi -app-admin/systemdgenie -app-eselect/eselect-gnome-shell-extensions -app-office/wps-office -dev-java/openjdk-bin -dev-libs/libreport -dev-python/python-systemd -games-util/gamemode -gnome-base/gdm -gnome-base/gnome -gnome-base/gnome-applets -gnome-base/gnome-extra-apps -gnome-base/gnome-flashback -gnome-base/gnome-light -gnome-base/gnome-panel -gnome-base/gnome-shell -gnome-extra/chrome-gnome-shell -gnome-extra/gnome-logs -gnome-extra/gnome-shell-extension-appindicator -gnome-extra/gnome-shell-extension-applications-overview-tooltip -gnome-extra/gnome-shell-extension-bing-wallpaper -gnome-extra/gnome-shell-extension-bluetooth-quick-connect -gnome-extra/gnome-shell-extension-control-blur-effect-on-lock-screen -gnome-extra/gnome-shell-extension-dash-to-panel -gnome-extra/gnome-shell-extension-desktop-icons -gnome-extra/gnome-shell-extension-gsconnect -gnome-extra/gnome-shell-extensions -gnome-extra/gnome-shell-extensions-topicons-plus -gnome-extra/gnome-shell-frippery -gnome-extra/gnome-tweaks -gnome-extra/gnome-user-share -gnome-extra/office-runner -gnome-extra/pch-session -net-firewall/firewalld -sys-apps/dbus-broker -sys-apps/gentoo-systemd-integration -sys-apps/systemd -sys-apps/systemd-readahead -sys-block/wait-for-dri-devices-rules -sys-kernel/installkernel-systemd-boot -sys-process/systemd-cron -www-misc/profile-sync-daemon -x11-themes/zukitwo-shell diff --git a/profiles/hardened/musl/amd64/systemd/parent b/profiles/hardened/musl/amd64/systemd/parent deleted file mode 100644 index 8206f4c..0000000 --- a/profiles/hardened/musl/amd64/systemd/parent +++ /dev/null @@ -1,3 +0,0 @@ -.. -gentoo:targets/systemd -gentoo:features/merged-usr diff --git a/profiles/hardened/musl/amd64/systemd/use.mask b/profiles/hardened/musl/amd64/systemd/use.mask deleted file mode 100644 index 00e571a..0000000 --- a/profiles/hardened/musl/amd64/systemd/use.mask +++ /dev/null @@ -1 +0,0 @@ --systemd diff --git a/profiles/package.unmask b/profiles/package.unmask deleted file mode 100644 index b839cf5..0000000 --- a/profiles/package.unmask +++ /dev/null @@ -1,5 +0,0 @@ -dev-util/electron -app-text/goldendict -www-client/chromium -app-editors/vscode -dev-db/mongodb diff --git a/profiles/package.use.mask b/profiles/package.use.mask deleted file mode 100644 index 56d223e..0000000 --- a/profiles/package.use.mask +++ /dev/null @@ -1,22 +0,0 @@ -# Not ready for general use -www-client/chromium pgo - -# Requires >media-libs/libaom-3.6.0 -# See www-client/chromium-113 ->=dev-util/electron-25 system-av1 - -# Need clang-17 ->=dev-util/electron-25 pgo - -# Uses a function that is not available in media-video/ffmpeg. ->=dev-util/electron-15.3.0 system-ffmpeg - -# Mostly intended for development and not for general use. -dev-util/electron headless - -# Mostly intended for debugging and development, -# not recommended for general use. Build is also often -# broken. -dev-util/electron component-build - -www-client/firefox -clang -pgo diff --git a/profiles/profiles.desc b/profiles/profiles.desc deleted file mode 100644 index b115ac5..0000000 --- a/profiles/profiles.desc +++ /dev/null @@ -1 +0,0 @@ -amd64 hardened/musl/amd64/systemd exp