mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
app-admin/customrescuecd-0.12.6: version bump
Signed-off-by: Andrea Postiglione <andrea.postiglione@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
DIST CUSTOMRESCUECD-x86_64-0.12.5.iso 1610612736 BLAKE2B 6acba5a50e4693308a3653d0fa0eef8abe3a62f180d6712a4306626f625f022ddfcfaf160ecdacfe35554df5b730f3477dfe5ab6af5930af7e988a7df5e397db SHA512 2b9e43f1b375db5cce9684489710e289c64bc2967cfd92d8d4bdace9b803b6f0d73732b3e80cfa3060ee2ac072ecb2d3bd5dbfc2bf10fc1acbdb4129d8a44d7f
|
||||
DIST CUSTOMRESCUECD-x86_64-0.12.6.iso 1613086720 BLAKE2B 3f09ad7bae1f8847476d9b1ae58bfb3c463ff4131438bc3f0aa605146db93ebcc90b6164ef7cfc201ae8bba46ba61b6d578e55444c04c647c6d972d6dc211e85 SHA512 6cf6136070ebafdcb934949ad41294e8c6753723c6ea4be56283b5299f51ae27856a9daeff74c7a67991139e4eb9bd172b0ea9f0e4cec645e170e6a6516e2c9a
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2021 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
|
||||
}
|
||||
Reference in New Issue
Block a user