Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/systemrescuecd-x86/
Date: Thu, 18 Apr 2019 11:50:56
Message-Id: 1555587883.7b0dca5a1d72333e8f54743a40a0f106507a14ef.mgorny@gentoo
1 commit: 7b0dca5a1d72333e8f54743a40a0f106507a14ef
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 18 11:40:31 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 18 11:44:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b0dca5a
7
8 app-admin/systemrescuecd-x86: Bump to 6.0.3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-admin/systemrescuecd-x86/Manifest | 1 +
13 .../systemrescuecd-x86-6.0.3.ebuild | 70 ++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/app-admin/systemrescuecd-x86/Manifest b/app-admin/systemrescuecd-x86/Manifest
17 index 48cc05c134e..c7245dab001 100644
18 --- a/app-admin/systemrescuecd-x86/Manifest
19 +++ b/app-admin/systemrescuecd-x86/Manifest
20 @@ -1,4 +1,5 @@
21 DIST systemrescuecd-6.0.0.iso 931135488 BLAKE2B 82879883780ff11a35f2fe635a5ee1a268de590bac79326ac2c49c960cd18755b3c10548d65eb5fb7ce5749c00f5040bb10c5ad5b196e48033fb70e3ff466026 SHA512 9bd8c06338357882fd8e3f17ddfb918e1f69e25fff6460957f9c50d496ccc3d4501e39b4596e3f387e4f7a481c9b33d18ba18fb49d74f6d916a7c5997b24c03a
22 +DIST systemrescuecd-6.0.3.iso 881852416 BLAKE2B ab1064237902542845e11869f7076a829e9593d29b8d106f0309c61a1371173cd5b3ef3fa3b84910cc81bcec485d27c8e297f269820aa96b0043df7c441121a2 SHA512 21b77e38999f56457a4c0a096eb58b2e74a8b376af33290b2e75995762e12a977435e8a9ed2ad9448799c3246d85f3bddfcafea020a1336b14f4f81644e06bb9
23 DIST systemrescuecd-x86-5.1.2.iso 523479040 BLAKE2B abf6f1e3e05e382b48dcfd4ecde9f70896462418cf36057e3a42dc2366e0b56133deeb6f00363d15d94238c22fb8ac5c88b57ca6c213c9dcc299fa04def5e2cd SHA512 516e60632459dd5408f83035aa265ed4169b13f978a23960a85837c9c8b5bbab70776e22a6e6727184bd9df81cbbeff4a5819d5927ff0ff3a79036bc4c54cfdc
24 DIST systemrescuecd-x86-5.2.2.iso 572006400 BLAKE2B 2cc95acc529ae8e0525664ffbdfefaf6e4513e8135fa6af120121b0b7930b0203bd17d5d70ccafacfe0064bb8615f45aa22b6e6e3fcee8a005a0315fd9b5cf62 SHA512 7dd1ccd63775e35f6589808416468c4a9314f4a7a5d0cb1f2bc34ffb9eef3a450b0da244dfc9e325d828c39404c0cdcce27cc990eade33762c17a1e32f8db9b5
25 DIST systemrescuecd-x86-5.3.2.iso 585920512 BLAKE2B e68bb4e765359ac0e8124c9cb6090ed2ec9340a09e3ebafbcaa4acc175f8afe3985a57f193cd4be4192dfb23a6042a68328a29bbfb962f73fbe010c32d66e020 SHA512 c9da6a63556836bd38f7072b49a5408f2f9e5fa310dbae3f229c9b7af4fe6e073cdfc95b942bc1a6d9c42d41527fc54e8c6c15379082bc3ee0f025da80b01e5a
26
27 diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-6.0.3.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-6.0.3.ebuild
28 new file mode 100644
29 index 00000000000..7cfd100cadf
30 --- /dev/null
31 +++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-6.0.3.ebuild
32 @@ -0,0 +1,70 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +MY_P=${P/-x86/}
39 +DESCRIPTION="The .iso image of SystemRescueCD rescue disk, amd64 variant"
40 +HOMEPAGE="http://www.sysresccd.org/"
41 +SRC_URI="https://osdn.net/projects/systemrescuecd/storage/releases/${PV}/${MY_P}.iso"
42 +
43 +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"
44 +SLOT="${PV}"
45 +KEYWORDS="~amd64 ~x86"
46 +IUSE="+isohybrid"
47 +RESTRICT="bindist mirror"
48 +
49 +DEPEND="isohybrid? ( >=sys-boot/syslinux-4 )"
50 +
51 +S=${WORKDIR}
52 +
53 +pkg_pretend() {
54 + ewarn "Please note that starting with version 6.0.0, upstream has switched"
55 + ewarn "to Arch Linux as base of their distribution, and running on 32-bit"
56 + ewarn "systems is no longer supported."
57 +}
58 +
59 +src_unpack() { :; }
60 +
61 +src_install() {
62 + insinto "/usr/share/${PN%-*}"
63 + doins "${DISTDIR}/${MY_P}.iso"
64 +
65 + if use isohybrid; then
66 + set -- isohybrid -u "${ED%/}/usr/share/${PN%-*}/${MY_P}.iso"
67 + echo "${@}"
68 + "${@}" || die "${*} failed"
69 + fi
70 +}
71 +
72 +pkg_postinst() {
73 + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso
74 +
75 + # no version newer than ours? we're the newest!
76 + if ! has_version ">${CATEGORY}/${PF}"; then
77 + ln -f -s -v "${MY_P}.iso" "${f}" || die
78 + fi
79 +}
80 +
81 +pkg_postrm() {
82 + local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso
83 +
84 + # if there is no version newer than ours installed
85 + if ! has_version ">${CATEGORY}/${PF}"; then
86 + # and we are truly and completely uninstalled...
87 + if [[ ! ${REPLACED_BY_VERSION} ]]; then
88 + # then find an older version to set the symlink to
89 + local newest_version=$(best_version "<${CATEGORY}/${PF}")
90 +
91 + if [[ ${newest_version} ]]; then
92 + # update the symlink
93 + ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die
94 + else
95 + # last version removed? clean up the symlink
96 + rm -v "${f}" || die
97 + # and the parent directory
98 + rmdir "${f%/*}" || die
99 + fi
100 + fi
101 + fi
102 +}