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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7E74A138359 for ; Fri, 14 Aug 2020 19:41:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B38B6E083B; Fri, 14 Aug 2020 19:41:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9A16FE083B for ; Fri, 14 Aug 2020 19:41:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 511C534F1AC for ; Fri, 14 Aug 2020 19:41:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 08722315 for ; Fri, 14 Aug 2020 19:41:40 +0000 (UTC) From: "Andrea Postiglione" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrea Postiglione" Message-ID: <1597434053.bc6b76c53ce768f2651581738ed6619b3b7f9e00.andrea_postiglione@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-admin/customrescuecd-x86/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-admin/customrescuecd-x86/Manifest app-admin/customrescuecd-x86/customrescuecd-x86-0.3.1.ebuild app-admin/customrescuecd-x86/metadata.xml X-VCS-Directories: app-admin/customrescuecd-x86/ X-VCS-Committer: andrea_postiglione X-VCS-Committer-Name: Andrea Postiglione X-VCS-Revision: bc6b76c53ce768f2651581738ed6619b3b7f9e00 X-VCS-Branch: dev Date: Fri, 14 Aug 2020 19:41:40 +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: 8fac611e-264f-4e5e-8a89-a9899ca47e03 X-Archives-Hash: 9fa215fa1c23262d51c76f405b771785 commit: bc6b76c53ce768f2651581738ed6619b3b7f9e00 Author: Andrea Postiglione gmail com> AuthorDate: Fri Aug 14 19:40:53 2020 +0000 Commit: Andrea Postiglione gmail com> CommitDate: Fri Aug 14 19:40:53 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bc6b76c5 app-admin/customrescuecd-x86: initial ebuild Signed-off-by: Andrea Postiglione gmail.com> app-admin/customrescuecd-x86/Manifest | 1 + .../customrescuecd-x86-0.3.1.ebuild | 55 ++++++++++++++++++++++ app-admin/customrescuecd-x86/metadata.xml | 19 ++++++++ 3 files changed, 75 insertions(+) diff --git a/app-admin/customrescuecd-x86/Manifest b/app-admin/customrescuecd-x86/Manifest new file mode 100644 index 0000000..047efe1 --- /dev/null +++ b/app-admin/customrescuecd-x86/Manifest @@ -0,0 +1 @@ +DIST CUSTOMRESCUECD-x86-0.3.1.iso 1426063360 BLAKE2B 8116b657aed9f5fb9ac0d56f6284bc45a4e050ad7e84cd4cb7c5217b07c9151c82776589aefa3c030cf766106bca7948d48cde2055c408c4e32ea081297b6117 SHA512 3aa0d2ab54920a19046fc1038313e01a99287301b06f25b1346c54d680c4ca2395e9c9010b3299cdc94a0198ec0f63209d09a1d086243e3b82216e7f4d63e0e6 diff --git a/app-admin/customrescuecd-x86/customrescuecd-x86-0.3.1.ebuild b/app-admin/customrescuecd-x86/customrescuecd-x86-0.3.1.ebuild new file mode 100644 index 0000000..4c3a5f6 --- /dev/null +++ b/app-admin/customrescuecd-x86/customrescuecd-x86-0.3.1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_P="CUSTOMRESCUECD-x86" +DESCRIPTION="A system rescue cd or usbstick for desktop and server based on gentoo" +HOMEPAGE="https://sourceforge.net/projects/customrescuecd" +SRC_URI="mirror://sourceforge/customrescuecd/"${MY_P}"-"${PV}".iso" + +LICENSE="GPL-3" +SLOT="${PV}" +KEYWORDS="~x86" +RESTRICT="bindist mirror" + +S=${WORKDIR} + +src_unpack() { :; } + +src_install() { + insinto "/usr/share/${PN%-*}" + doins "${DISTDIR}/${MY_P}-${PV}.iso" +} + +pkg_postinst() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # no version newer than ours? we're the newest! + if ! has_version ">${CATEGORY}/${PF}"; then + ln -f -s -v "${MY_P}-${PV}.iso" "${f}" || die + fi +} + +pkg_postrm() { + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso + + # if there is no version newer than ours installed + if ! has_version ">${CATEGORY}/${PF}"; then + # and we are truly and completely uninstalled... + if [[ ! ${REPLACED_BY_VERSION} ]]; then + # then find an older version to set the symlink to + local newest_version=$(best_version "<${CATEGORY}/${PF}") + + if [[ ${newest_version} ]]; then + # update the symlink + ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die + else + # last version removed? clean up the symlink + rm -v "${f}" || die + # and the parent directory + rmdir "${f%/*}" || die + fi + fi + fi +} diff --git a/app-admin/customrescuecd-x86/metadata.xml b/app-admin/customrescuecd-x86/metadata.xml new file mode 100644 index 0000000..47af661 --- /dev/null +++ b/app-admin/customrescuecd-x86/metadata.xml @@ -0,0 +1,19 @@ + + + + + andrea.postiglione@gmail.com + Andrea Postiglione + + + + + Pass downloaded images through isohybrid in order to make it + possible to copy them directly to USB media and boot (requires + sys-boot/syslinux at build time). + + + + customrescuecd + +