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