From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3B26E1581D3 for ; Sun, 26 May 2024 00:35:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 053D3E2A12; Sun, 26 May 2024 00:35:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DCADEE2A12 for ; Sun, 26 May 2024 00:35:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 85CFF33BEBE for ; Sun, 26 May 2024 00:35:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BDCD51889 for ; Sun, 26 May 2024 00:35:53 +0000 (UTC) From: "Joe Kappus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joe Kappus" Message-ID: <1716683742.5dfc8f5266d62e814fec15f5f26be2bdad192138.joe@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-boot/ventoy-bin/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-boot/ventoy-bin/Manifest sys-boot/ventoy-bin/ventoy-bin-1.0.98.ebuild X-VCS-Directories: sys-boot/ventoy-bin/ X-VCS-Committer: joe X-VCS-Committer-Name: Joe Kappus X-VCS-Revision: 5dfc8f5266d62e814fec15f5f26be2bdad192138 X-VCS-Branch: dev Date: Sun, 26 May 2024 00:35:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 26383fb5-0400-4163-be29-9ae73612201d X-Archives-Hash: 8800645a25f11ad6920ff4adc4a1040b commit: 5dfc8f5266d62e814fec15f5f26be2bdad192138 Author: Joe Kappus wt gd> AuthorDate: Sun May 26 00:35:42 2024 +0000 Commit: Joe Kappus wt gd> CommitDate: Sun May 26 00:35:42 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5dfc8f52 sys-boot/ventoy-bin: add 1.0.98 Signed-off-by: Joe Kappus wt.gd> sys-boot/ventoy-bin/Manifest | 1 + sys-boot/ventoy-bin/ventoy-bin-1.0.98.ebuild | 90 ++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) diff --git a/sys-boot/ventoy-bin/Manifest b/sys-boot/ventoy-bin/Manifest index f0af723d6..aa5cb9913 100644 --- a/sys-boot/ventoy-bin/Manifest +++ b/sys-boot/ventoy-bin/Manifest @@ -1 +1,2 @@ DIST ventoy-1.0.97-linux.tar.gz 19964906 BLAKE2B c1f7235838ed5fe55028424dd160d4322b8fe96f99404149cf3c25f00afe06dd9d35970f6cbd2b8f04432e8380b412495eae18b2f02a24d0003c63a644be6315 SHA512 af6d4a0c3c06009de3fd55377656d678ab037cc0b808421269551891502de32605ed3e17012395aa6ed58ca9c74bd52b19ed7fe43eda39a78b2c42cca1cd9b5f +DIST ventoy-1.0.98-linux.tar.gz 19840507 BLAKE2B 4d1f3c6e727c70ff4c1fda7dcf59467b54d9b50edf880170cd69df2fdab995bcee370635b44be091247d5e687c2a2367c57de33b4e48823cbc5bc33b050cdea2 SHA512 40914e5a13e78b72fe677c99cfa68c0bb46fceddc979a7dd1f1a3e2fa30568f3b21250cbf02df59f4a06373a47a4c181d44e46f7f4eb08f413ad6c24cd2a1a65 diff --git a/sys-boot/ventoy-bin/ventoy-bin-1.0.98.ebuild b/sys-boot/ventoy-bin/ventoy-bin-1.0.98.ebuild new file mode 100644 index 000000000..a4b98ca99 --- /dev/null +++ b/sys-boot/ventoy-bin/ventoy-bin-1.0.98.ebuild @@ -0,0 +1,90 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop xdg + +DESCRIPTION="Creator of bootable USBs, with ability to copy ISOs, persistence storage" +HOMEPAGE="https://www.ventoy.net" +SRC_URI="https://github.com/ventoy/Ventoy/releases/download/v${PV}/ventoy-${PV}-linux.tar.gz" + +S="${WORKDIR}"/ventoy-${PV} + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="strip mirror" + +DEPEND=" + sys-fs/dosfstools + sys-fs/exfat-utils + sys-fs/fuse-exfat + sys-block/parted +" +# sys-fs/fuse-exfat is needed for mount, without it: +# mount: /mnt: unknown filesystem type 'exfat' + +QA_PREBUILT="*" # Against "does not respect LDFLAGS" + +CARCH="x86_64" + +src_prepare() { + # Decompress tools + pushd tool/$CARCH || die + for file in *.xz; do + xzcat "$file" >"${file%.xz}" || die + chmod +x "${file%.xz}" || die + done + + # Cleanup .xz crap + rm -fv ./*.xz || die + popd || die + + # Apply sanitize patch + eapply -p0 "${FILESDIR}/sanitize.patch" + + # Log location + sed -i 's|log\.txt|/var/log/ventoy.log|g' WebUI/static/js/languages.js tool/languages.json || die + + # Non-POSIX compliant scripts + sed -i 's|bin/sh|usr/bin/env bash|g' tool/{ventoy_lib.sh,VentoyWorker.sh} || die + + # Clean up unused binaries + # Preserving mkexfatfs and mount.exfat-fuse because exfatprogs is incompatible + for binary in xzcat hexdump; do + rm -fv tool/$CARCH/$binary || die + done + default +} + +src_install() { + insopts -m0644 + insinto /opt/ventoy/boot/ + doins boot/* + insinto /opt/ventoy/ventoy/ + doins ventoy/* + insopts -m0755 + insinto /opt/ventoy/tool/ + doins tool/*.{cer,glade,json,sh,xz} + insinto /opt/ventoy/tool/$CARCH/ + doins tool/$CARCH/* + insinto /opt/ventoy/ + doins ./*.sh plugin WebUI "VentoyGUI.$CARCH" + + # Install .desktop + insopts -m0644 + insinto /usr/share/pixmaps/ + newins WebUI/static/img/VentoyLogo.png ventoy.png + domenu "${FILESDIR}/ventoy.desktop" + + # Link system binaries + for binary in xzcat hexdump; do + dosym -r /usr/bin/$binary /opt/ventoy/tool/$CARCH/$binary + done + + dobin "${FILESDIR}"/ventoy{,gui,web,plugson,-{,extend-}persistent} + + rm "${D}"/opt/ventoy/tool/x86_64/Ventoy2Disk.gtk2 || die +}