-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-emulation/fex-rootfs-gentoo: Add 20241116
Fixes dbus launch and prunes the image a lot Signed-off-by: Sasha Finkelstein <[email protected]>
- Loading branch information
1 parent
5db571a
commit e0dc658
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
DIST fex-rootfs-gentoo-20241114-root.sqfs 1446735872 BLAKE2B 00deefc908f134b87cd29036c4da989b1ba7675aca6de9127f690e17a5300cfdd24ae9d930b269f80be15ecf669d367486734310d24ff76944c83c4bac65c2a9 SHA512 48a8ca0abedf5d4cdac0e7de701f6bc2b772870761e5290e6ff54842dd96f9a26e78f15d0c4c276a489b8cdb65c5eea2a2a0ae50607edaa1e38062a78aa039b9 | ||
DIST fex-rootfs-gentoo-20241114.tar.gz 6935 BLAKE2B 60170457cf38c3c9f2e11d2ee4df7298022848f012c2021e3ccb5be22541adae54782b57bc6c638a81c551eb8513af5e28bdf28611e4aabd0179f619e262a05f SHA512 27a3e5b5f81a4067c8e82760fd181fe1faa2f348c53c8073c0532e73cf79a93a144922d63ec5be4326d78a923a9f5fea3f0a2c8af8b40be0953a761add146db1 | ||
DIST fex-rootfs-gentoo-20241116-root.sqfs 869285888 BLAKE2B 22eb0a27b41036bbe845830e5d287c9d033a9fd405bd08f9df166fe64b9b20940b460674e6c2dba05d40bdcede221ef8b7fddbc3d0dfcad5a8a657f0c2b1e439 SHA512 a7e7deab420484b2f972da8638ba327c200ec1af24ae5fe508ef3a016ff03be9436a9ce664e03cc26b8aa07f1ed126273bfcf22e4da4ed51508eb781b118d58c | ||
DIST fex-rootfs-gentoo-20241116.tar.gz 6930 BLAKE2B 7fbeccfdc93238d1e4bbf8acb5e9542ee0e45c5715a9690aca3a84cfdb16e8f4eefcba51d4b7c1dbfbaaf61c542d711e88e35136e432802719df2a4efdc1ef91 SHA512 4d3cfb7e515d09560d9733a1c6da9d85fa264e0e5fc17b39bdbf93bbcbc599560dae64c0ea977998b9a7f054ed99a872da14b8eb90b2d2a09a9feb4b96e2c3cb |
60 changes: 60 additions & 0 deletions
60
app-emulation/fex-rootfs-gentoo/fex-rootfs-gentoo-20241116.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit systemd linux-info | ||
|
||
DESCRIPTION="A x86 system image used for FEX" | ||
HOMEPAGE="https://github.com/WhatAmISupposedToPutHere/fex-rootfs" | ||
|
||
SRC_URI=" | ||
https://github.com/WhatAmISupposedToPutHere/fex-rootfs/releases/download/${PV}/fex-rootfs.sqfs -> ${P}-root.sqfs | ||
https://github.com/WhatAmISupposedToPutHere/fex-rootfs/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz | ||
" | ||
|
||
S="${WORKDIR}/fex-rootfs-${PV}" | ||
|
||
LICENSE="metapackage MIT" | ||
SLOT="0" | ||
KEYWORDS="-* ~arm64" | ||
RDEPEND=" | ||
gnome-extra/zenity | ||
sys-apps/xdg-desktop-portal | ||
systemd? ( sys-apps/systemd ) | ||
" | ||
DEPEND="${RDEPEND}" | ||
IUSE="systemd" | ||
|
||
pkg_pretend() { | ||
CONFIG_CHECK="~SQUASHFS ~SQUASHFS_ZSTD" | ||
check_extra_config | ||
[[ "${MERGE_TYPE}" != "buildonly" && "$(systemd_is_booted)" == 0 ]] || return | ||
ewarn "This package depends on systemd being the init system for correct operation" | ||
ewarn "On non-systemd systems assembling all the mount points correctly is left" | ||
ewarn "as an excercise for the user." | ||
} | ||
|
||
src_install() { | ||
local base="/usr/share/fex-emu-rootfs-layers/gentoo" | ||
insinto "${base}/images/" | ||
newins "${DISTDIR}/${P}-root.sqfs" 00-base.sqfs | ||
keepdir "${base}/work/" | ||
keepdir "${base}/writable/" | ||
gen_dir="$(systemd_get_systemgeneratordir)" | ||
exeinto "${gen_dir#"${EPREFIX}"}" | ||
doexe systemd/fex-gentoo-rootfs-generator | ||
systemd_dounit 'systemd/usr-share-fex\x2demu\x2drootfs\x2dlayers-gentoo-layers-00\x2dbase.mount' | ||
} | ||
|
||
pkg_prerm() { | ||
[[ "${MERGE_TYPE}" == "buildonly" || "$(systemd_is_booted)" == 0 ]] && return | ||
systemctl daemon-reload | ||
systemctl stop 'usr-share-fex\x2demu\x2drootfs\x2dlayers-gentoo-layers-00\x2dbase.mount' | ||
} | ||
|
||
pkg_postinst() { | ||
[[ "${MERGE_TYPE}" == "buildonly" || "$(systemd_is_booted)" == 0 ]] && return | ||
systemctl daemon-reload | ||
systemctl start 'usr-share-fex\x2demu-RootFS-Gentoo.mount' | ||
} |