mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
app-admin/customrescuecd-x86: version bump to 0.4.1
Signed-off-by: Andrea Postiglione <andrea.postiglione@gmail.com>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST CUSTOMRESCUECD-x86-0.3.1.iso 1426063360 BLAKE2B 8116b657aed9f5fb9ac0d56f6284bc45a4e050ad7e84cd4cb7c5217b07c9151c82776589aefa3c030cf766106bca7948d48cde2055c408c4e32ea081297b6117 SHA512 3aa0d2ab54920a19046fc1038313e01a99287301b06f25b1346c54d680c4ca2395e9c9010b3299cdc94a0198ec0f63209d09a1d086243e3b82216e7f4d63e0e6
|
||||
DIST CUSTOMRESCUECD-x86-0.4.0.iso 1322811392 BLAKE2B f93550977a41d1d19a35f7ff2cc2cb7cdd94eb1ca1ade9fed6db7d7963297366b839c5590a17f85f2dec13e86588d651e94792dd12064f094eaffe3608117e03 SHA512 45bb47fc2b72e653c8f9d23a483aa5c59a92aabd306240d06f33d1c7249c905d7961670cbefc6d9d132a9a5fe1fdc7743ee3f1356a8e58724fea6a3073b08a86
|
||||
DIST CUSTOMRESCUECD-x86-0.4.1.iso 1322811392 BLAKE2B bd63d40baf6426ed525c13e91ce65469f8f2a263072003c4dc1adea1ca75f894d2517c94063488fa75e1fa6012202ddbbf5281378c17a26edad683ce49996391 SHA512 46f1a2f20697b666fc4506abb405a8ebf58b63a83c5faacfc70e352c9eb9cd4a75ca742ac0011119e8baadd6fb467cfb306d8009994dbf2879a45486ccfe57bc
|
||||
|
||||
55
app-admin/customrescuecd-x86/customrescuecd-x86-0.4.1.ebuild
Normal file
55
app-admin/customrescuecd-x86/customrescuecd-x86-0.4.1.ebuild
Normal 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"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user