sys-boot/ubuntu-desktop-amd64-iso-download: new package

Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
Vitaly Zdanevich
2024-03-26 03:32:25 +04:00
parent 8a0256fc10
commit 0a7b62b8af
3 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST ubuntu-22.04.4-desktop-amd64.iso 5017356288 BLAKE2B 987cc9796b9902c6874ffeccd1df5ed6e17873ca4a8f4a8f986a1527aab6d98096eccc56bdcbc6f9cb5cc90515fbe4da5b0f279ee74705efdd445737c62a44df SHA512 0035fbb414daa32f928cf5e3776ad4c67f51592892447c8b4e25ec919db5ee77141833eef124d7d52e506f4eef7601fb09c8a31543b56d3c7608cddbfe2712ae

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>Vitaly Zdanevich</name>
<email>zdanevich.vitaly@ya.ru</email>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,52 @@
# Copyright 1999-2024 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Downloaded from Yandex mirror (Russia), to /opt/distribs/ - no other actions"
HOMEPAGE="https://ubuntu.com/download/desktop"
f="ubuntu-$PV-desktop-amd64.iso"
SRC_URI="https://mirror.yandex.ru/ubuntu-releases/$PV/$f"
# TODO how to choose the closest/fastest mirror?
S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0"
PROPERTIES="live"
RESTRICT="strip"
QA_PREBUILT="*"
src_install() {
cd "$DISTDIR"
mkdir -p "$ED/opt/distribs/" || die
cp $f "$ED/opt/distribs/" || die
}
pkg_postinst() {
einfo "To write to USB we have many options, but the simplest one without installing any software:"
einfo "sudo cp $f /dev/sdX"
einfo "it will override the data on USB"
einfo "Instead of sdX - choose the letter of your USB flash from lsblk"
einfo ""
einfo "or"
einfo "sudo dd if=$f of=/dev/sdX"
einfo "With dd you can press Ctrl-T to see the progress"
einfo ""
einfo "or"
einfo "sys-boot/ventoy-bin"
einfo "(just copy the iso to the usb, with optional persistence storage)"
einfo ""
einfo "or"
einfo "sys-boot/mkusb"
einfo ""
einfo "or"
einfo "or Rufus on Windows (also with optional persistence) https://rufus.ie"
einfo "See related documentation https://wiki.gentoo.org/wiki/LiveUSB"
einfo ""
einfo "ISO is saved to /opt/distribs/"
}