diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2018-12-24 16:01:14 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2018-12-24 16:01:47 +0300 |
commit | 8657ff72b4b8a6cc7e2a477368a7d6a1cd1758c5 (patch) | |
tree | 539790a7bc43b902804ae3dd03c8e9b734aaa41d /app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.3.ebuild | |
parent | sys-kernel/gentoo-sources: Linux 4.20.0 and Genpatches (diff) | |
download | gentoo-8657ff72b4b8a6cc7e2a477368a7d6a1cd1758c5.tar.gz gentoo-8657ff72b4b8a6cc7e2a477368a7d6a1cd1758c5.tar.bz2 gentoo-8657ff72b4b8a6cc7e2a477368a7d6a1cd1758c5.zip |
app-admin/systemrescuecd-x86: Drop old
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.3.ebuild')
-rw-r--r-- | app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.3.ebuild | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.3.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.3.ebuild deleted file mode 100644 index cce5e34e9e34..000000000000 --- a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.3.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant" -HOMEPAGE="http://www.sysresccd.org/" -# Large ISO mirroring explicitly approved by infra in bug #588766 -SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso" - -LICENSE="GPL-2" -SLOT="${PV}" -KEYWORDS="~amd64 ~x86" -IUSE="+isohybrid" - -DEPEND="isohybrid? ( >=sys-boot/syslinux-4 )" - -S=${WORKDIR} - -src_install() { - insinto "/usr/share/${PN%-*}" - doins "${DISTDIR}/${P}.iso" - - if use isohybrid; then - set -- isohybrid -u "${ED}usr/share/${PN%-*}/${P}.iso" - echo "${@}" - "${@}" || die "${*} failed" - fi -} - -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 "${P}.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 -} |