Skip to content

Commit

Permalink
[sys-boot/ventoy-bin] v1.1.00
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeufer committed Jan 22, 2025
1 parent d0ccd22 commit 6b6afab
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys-boot/ventoy-bin/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ DIST ventoy-1.0.96-linux.tar.gz 19957166 BLAKE2B 035f7e9d1f71ac58eeaf4b1ff7ea6c8
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
DIST ventoy-1.0.99-linux.tar.gz 19976935 BLAKE2B ec0eae263cb4e0ec408e3e225961eb99a41b107259a309bf3ff1ad10be50d2a28fb57fc894113984ff7b2aee671acb1fb273e0194018e7788e565ec5f5b7f1ee SHA512 7af18e030448d2753bcf0e41bc60873a1931e08621b5d9dda0a4a3aee00f8480f7d8788332c902512567e46169f4dbb3d01545526497c588b70576f4325b16b5
DIST ventoy-1.1.00-linux.tar.gz 19980935 BLAKE2B 035f38d45070e30c89728327d19943a3d1bb4027384aea5463dc9bd49d9b6f1b4d2b1b959b03dda21189f3da7a3f2859dcc78fff69a3dd8dc434fe46d448b440 SHA512 a36e60e056a1774b4b8b5b78afa30bb9ed3030a8c0c3d1a92c81380d03a664ce9eac29733dfb37093e629db1e6dfc575c6eaf814d0aa680399a1268df480811a
EBUILD ventoy-bin-1.0.96.ebuild 1957 BLAKE2B 585c2dc7a2d74e151ffdf0f7baec78eb6cffd5bf51523c4b034b74d71dda73421f298918546f537c13cc3ea172354a4a30fa76e778acedc02f16aa96159a280a SHA512 8527e9354e282990442632a2345293f398d7eb81638370cd92c5f63e90758560e24d5a8047df5ed059beedf489c622e3939d708b32db13be65dd924720a103a4
EBUILD ventoy-bin-1.0.97.ebuild 1957 BLAKE2B 585c2dc7a2d74e151ffdf0f7baec78eb6cffd5bf51523c4b034b74d71dda73421f298918546f537c13cc3ea172354a4a30fa76e778acedc02f16aa96159a280a SHA512 8527e9354e282990442632a2345293f398d7eb81638370cd92c5f63e90758560e24d5a8047df5ed059beedf489c622e3939d708b32db13be65dd924720a103a4
EBUILD ventoy-bin-1.0.98.ebuild 1957 BLAKE2B 585c2dc7a2d74e151ffdf0f7baec78eb6cffd5bf51523c4b034b74d71dda73421f298918546f537c13cc3ea172354a4a30fa76e778acedc02f16aa96159a280a SHA512 8527e9354e282990442632a2345293f398d7eb81638370cd92c5f63e90758560e24d5a8047df5ed059beedf489c622e3939d708b32db13be65dd924720a103a4
EBUILD ventoy-bin-1.0.99.ebuild 1957 BLAKE2B 585c2dc7a2d74e151ffdf0f7baec78eb6cffd5bf51523c4b034b74d71dda73421f298918546f537c13cc3ea172354a4a30fa76e778acedc02f16aa96159a280a SHA512 8527e9354e282990442632a2345293f398d7eb81638370cd92c5f63e90758560e24d5a8047df5ed059beedf489c622e3939d708b32db13be65dd924720a103a4
EBUILD ventoy-bin-1.1.00.ebuild 1957 BLAKE2B 585c2dc7a2d74e151ffdf0f7baec78eb6cffd5bf51523c4b034b74d71dda73421f298918546f537c13cc3ea172354a4a30fa76e778acedc02f16aa96159a280a SHA512 8527e9354e282990442632a2345293f398d7eb81638370cd92c5f63e90758560e24d5a8047df5ed059beedf489c622e3939d708b32db13be65dd924720a103a4
92 changes: 92 additions & 0 deletions sys-boot/ventoy-bin/ventoy-bin-1.1.00.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit desktop xdg

DESCRIPTION="A new multiboot USB solution"
HOMEPAGE="http://www.ventoy.net"
SRC_URI="https://github.com/ventoy/Ventoy/releases/download/v${PV}/ventoy-${PV}-linux.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

RESTRICT="strip mirror"

DEPEND="
sys-fs/dosfstools
sys-fs/exfatprogs
sys-block/parted
"
RDEPEND="${DEPEND}"

S=${WORKDIR}/ventoy-${PV}

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
}

0 comments on commit 6b6afab

Please sign in to comment.