app-admin/customrescuecd-x86: treeclean

Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2024-10-22 11:23:29 +02:00
parent 3a5cf790f9
commit bd033c7cc2
4 changed files with 0 additions and 69 deletions

View File

@@ -1 +0,0 @@
DIST CUSTOMRESCUECD-x86-0.4.1.iso 1322811392 BLAKE2B bd63d40baf6426ed525c13e91ce65469f8f2a263072003c4dc1adea1ca75f894d2517c94063488fa75e1fa6012202ddbbf5281378c17a26edad683ce49996391 SHA512 46f1a2f20697b666fc4506abb405a8ebf58b63a83c5faacfc70e352c9eb9cd4a75ca742ac0011119e8baadd6fb467cfb306d8009994dbf2879a45486ccfe57bc

View File

@@ -1,55 +0,0 @@
# Copyright 1999-2024 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="https://downloads.sourceforge.net/customrescuecd/"${MY_P}"-"${PV}".iso"
S=${WORKDIR}
LICENSE="GPL-3"
SLOT="${PV}"
KEYWORDS="~x86"
RESTRICT="bindist mirror"
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
}

View File

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>andrea.postiglione@gmail.com</email>
<name>Andrea Postiglione</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="sourceforge">customrescuecd</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -126,7 +126,6 @@ app-misc/tai
# David Roman <davidroman96@gmail.com> (2024-09-21) # David Roman <davidroman96@gmail.com> (2024-09-21)
# Dead SRC_URI for two years # Dead SRC_URI for two years
# Removal on 2024-10-21 # Removal on 2024-10-21
app-admin/customrescuecd-x86
sys-boot/customrescuecd-x86-grub sys-boot/customrescuecd-x86-grub
# Julien Roy <julien@jroy.ca> (2024-03-21) # Julien Roy <julien@jroy.ca> (2024-03-21)