commit:     7b0dca5a1d72333e8f54743a40a0f106507a14ef
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 18 11:40:31 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Apr 18 11:44:43 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b0dca5a

app-admin/systemrescuecd-x86: Bump to 6.0.3

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-admin/systemrescuecd-x86/Manifest              |  1 +
 .../systemrescuecd-x86-6.0.3.ebuild                | 70 ++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/app-admin/systemrescuecd-x86/Manifest 
b/app-admin/systemrescuecd-x86/Manifest
index 48cc05c134e..c7245dab001 100644
--- a/app-admin/systemrescuecd-x86/Manifest
+++ b/app-admin/systemrescuecd-x86/Manifest
@@ -1,4 +1,5 @@
 DIST systemrescuecd-6.0.0.iso 931135488 BLAKE2B 
82879883780ff11a35f2fe635a5ee1a268de590bac79326ac2c49c960cd18755b3c10548d65eb5fb7ce5749c00f5040bb10c5ad5b196e48033fb70e3ff466026
 SHA512 
9bd8c06338357882fd8e3f17ddfb918e1f69e25fff6460957f9c50d496ccc3d4501e39b4596e3f387e4f7a481c9b33d18ba18fb49d74f6d916a7c5997b24c03a
+DIST systemrescuecd-6.0.3.iso 881852416 BLAKE2B 
ab1064237902542845e11869f7076a829e9593d29b8d106f0309c61a1371173cd5b3ef3fa3b84910cc81bcec485d27c8e297f269820aa96b0043df7c441121a2
 SHA512 
21b77e38999f56457a4c0a096eb58b2e74a8b376af33290b2e75995762e12a977435e8a9ed2ad9448799c3246d85f3bddfcafea020a1336b14f4f81644e06bb9
 DIST systemrescuecd-x86-5.1.2.iso 523479040 BLAKE2B 
abf6f1e3e05e382b48dcfd4ecde9f70896462418cf36057e3a42dc2366e0b56133deeb6f00363d15d94238c22fb8ac5c88b57ca6c213c9dcc299fa04def5e2cd
 SHA512 
516e60632459dd5408f83035aa265ed4169b13f978a23960a85837c9c8b5bbab70776e22a6e6727184bd9df81cbbeff4a5819d5927ff0ff3a79036bc4c54cfdc
 DIST systemrescuecd-x86-5.2.2.iso 572006400 BLAKE2B 
2cc95acc529ae8e0525664ffbdfefaf6e4513e8135fa6af120121b0b7930b0203bd17d5d70ccafacfe0064bb8615f45aa22b6e6e3fcee8a005a0315fd9b5cf62
 SHA512 
7dd1ccd63775e35f6589808416468c4a9314f4a7a5d0cb1f2bc34ffb9eef3a450b0da244dfc9e325d828c39404c0cdcce27cc990eade33762c17a1e32f8db9b5
 DIST systemrescuecd-x86-5.3.2.iso 585920512 BLAKE2B 
e68bb4e765359ac0e8124c9cb6090ed2ec9340a09e3ebafbcaa4acc175f8afe3985a57f193cd4be4192dfb23a6042a68328a29bbfb962f73fbe010c32d66e020
 SHA512 
c9da6a63556836bd38f7072b49a5408f2f9e5fa310dbae3f229c9b7af4fe6e073cdfc95b942bc1a6d9c42d41527fc54e8c6c15379082bc3ee0f025da80b01e5a

diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-6.0.3.ebuild 
b/app-admin/systemrescuecd-x86/systemrescuecd-x86-6.0.3.ebuild
new file mode 100644
index 00000000000..7cfd100cadf
--- /dev/null
+++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-6.0.3.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_P=${P/-x86/}
+DESCRIPTION="The .iso image of SystemRescueCD rescue disk, amd64 variant"
+HOMEPAGE="http://www.sysresccd.org/";
+SRC_URI="https://osdn.net/projects/systemrescuecd/storage/releases/${PV}/${MY_P}.iso";
+
+LICENSE="Apache-1.0 Apache-2.0 Artistic Artistic-2 BEER-WARE BSD BSD-2 BSD-4 
CC0-1.0 CC-BY-SA-3.0 FDL-1.3+ GPL-2 GPL-2+ GPL-3+ icu ISC JasPer2.0 LGPL-2+ 
LGPL-2.1+ LGPL-3+ linux-firmware MaxMind2 MIT MPL-1.1 MPL-2.0 no-source-code 
OFL Old-MIT OPENLDAP openssl PSF-2 public-domain Sleepycat unRAR UoI-NCSA vim 
ZLIB"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="+isohybrid"
+RESTRICT="bindist mirror"
+
+DEPEND="isohybrid? ( >=sys-boot/syslinux-4 )"
+
+S=${WORKDIR}
+
+pkg_pretend() {
+       ewarn "Please note that starting with version 6.0.0, upstream has 
switched"
+       ewarn "to Arch Linux as base of their distribution, and running on 
32-bit"
+       ewarn "systems is no longer supported."
+}
+
+src_unpack() { :; }
+
+src_install() {
+       insinto "/usr/share/${PN%-*}"
+       doins "${DISTDIR}/${MY_P}.iso"
+
+       if use isohybrid; then
+               set -- isohybrid -u "${ED%/}/usr/share/${PN%-*}/${MY_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 "${MY_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
+}

Reply via email to