app-admin/customrescuecd-x86_64: version bump 0.11.1

Signed-off-by: Andrea Postiglione <andrea.postiglione@gmail.com>
This commit is contained in:
Andrea Postiglione
2020-10-19 19:00:40 +02:00
parent 400bbcdef3
commit 8932a9e0ca
2 changed files with 56 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST CUSTOMRESCUECD-x86_64-0.10.3.iso 1537474560 BLAKE2B d4812074013323d8372bd71bea1c81cbe8cb88e0cf87dd1ec7c4373a1c4f4023cfec383ea3327cb75aa903021d929ac7a29290a2a9a7a75857c591827af7a148 SHA512 1092dc85a82c1f17c362b19e91d36602debaab7d52a98945ebb494f9d8bec03fb07b16649c7401233a060ce95905c3f9259107c2eb9f80bd63d759740754105e
DIST CUSTOMRESCUECD-x86_64-0.11.0.iso 1265106944 BLAKE2B f6732d1f903c02a49ed13525e19f957ccc5a78466cdc62d609579d2aaf2bfa5bcdf5cf2597089d3634fa8124cff3293030703e95187771c7517d890226997245 SHA512 6099c5a344c701936743bbbfad02206dca7937b6c6b796fa7cb42ad42a544c731fa2e0895a94d138cd3d91d34791a5ed88d723973e2e383e900ad1a385a27482
DIST CUSTOMRESCUECD-x86_64-0.11.1.iso 1261371392 BLAKE2B b00310a571d5a2ac8134b2e6fd529605684f3d45ce46cac5c6e310d90d65e69991198c3b4f5e09cd12e12042c6d7b63d0970b9531667b4497e415ca7b34c28c7 SHA512 38e8515d4ba5ca1af9741dc61831d1d9a5ce2a01d1d0f633ca9065e8adee7f1f8df549ab7473804cbeb528a54ada5021b872407aacb6726cf78f10c289278f20

View File

@@ -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_64"
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="~amd64"
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
}