1 |
commit: 0f4400d0eb877a57868deecfd74dedffe402148a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 5 05:52:15 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 5 06:20:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f4400d0 |
7 |
|
8 |
app-admin/systemrescuecd-x86: Bump to 5.3.0 |
9 |
|
10 |
app-admin/systemrescuecd-x86/Manifest | 1 + |
11 |
.../systemrescuecd-x86-5.3.0.ebuild | 61 ++++++++++++++++++++++ |
12 |
2 files changed, 62 insertions(+) |
13 |
|
14 |
diff --git a/app-admin/systemrescuecd-x86/Manifest b/app-admin/systemrescuecd-x86/Manifest |
15 |
index bc0615e30a2..fa5fe331e43 100644 |
16 |
--- a/app-admin/systemrescuecd-x86/Manifest |
17 |
+++ b/app-admin/systemrescuecd-x86/Manifest |
18 |
@@ -32,3 +32,4 @@ DIST systemrescuecd-x86-5.1.2.iso 523479040 BLAKE2B abf6f1e3e05e382b48dcfd4ecde9 |
19 |
DIST systemrescuecd-x86-5.2.0.iso 569669632 BLAKE2B fe31a68df650b46bd875b91c643c8f1daaa60042ea6c59ac452bb99a2792dcdcee62f1b60c329a70c95689af22c1a0fc52a966631af347258d665f55d2f6d8c0 SHA512 42da80a419aa27bea891339dc163a62bff8ba34d74c202a7fd0317592e8870a71ddc7fa9e9ded5e9d2f75dc36ec8417673074ffde60ea472815405456e34876c |
20 |
DIST systemrescuecd-x86-5.2.1.iso 570523648 BLAKE2B 9bb6b2ff7b9930f658baddbf60ef89e86171febcfb48eb0a6ce1bfea8fd3348773a9da948370f9f310dd0e992c40aa64a4ef1442f5cd7f408f847d147074cf1f SHA512 6820f079c9e97ac0d383ed9096a120e7e31771e1d41465f4cf7f5db36a7cb83ccfaae5c5e561181c3b3cb169d4cc4a9a6904a707ecde06a6de4f2456d2a658e4 |
21 |
DIST systemrescuecd-x86-5.2.2.iso 572006400 BLAKE2B 2cc95acc529ae8e0525664ffbdfefaf6e4513e8135fa6af120121b0b7930b0203bd17d5d70ccafacfe0064bb8615f45aa22b6e6e3fcee8a005a0315fd9b5cf62 SHA512 7dd1ccd63775e35f6589808416468c4a9314f4a7a5d0cb1f2bc34ffb9eef3a450b0da244dfc9e325d828c39404c0cdcce27cc990eade33762c17a1e32f8db9b5 |
22 |
+DIST systemrescuecd-x86-5.3.0.iso 607547392 BLAKE2B 92aa82e54794adc1705111776b4df21bd39f96bdbed1c6e05bb24b01fd1a12d92fb1209241289f89adca7885fd441ddd61639d5168978b95dd0784faec65f32a SHA512 082a82a2882b62012944184107b2655de6c89f5a6c26145a3edb2b5a54ff6aad6a4ef43edc0468e62895daf4d5365d2722ffa8bf4f2f8e60f1ee7d9a727b013d |
23 |
|
24 |
diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.3.0.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..7bfc35a7dd2 |
27 |
--- /dev/null |
28 |
+++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.3.0.ebuild |
29 |
@@ -0,0 +1,61 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant" |
36 |
+HOMEPAGE="http://www.sysresccd.org/" |
37 |
+# Large ISO mirroring explicitly approved by infra in bug #588766 |
38 |
+SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso" |
39 |
+ |
40 |
+LICENSE="GPL-2" |
41 |
+SLOT="${PV}" |
42 |
+KEYWORDS="~amd64 ~x86" |
43 |
+IUSE="+isohybrid" |
44 |
+ |
45 |
+DEPEND="isohybrid? ( >=sys-boot/syslinux-4 )" |
46 |
+ |
47 |
+S=${WORKDIR} |
48 |
+ |
49 |
+src_install() { |
50 |
+ insinto "/usr/share/${PN%-*}" |
51 |
+ doins "${DISTDIR}/${P}.iso" |
52 |
+ |
53 |
+ if use isohybrid; then |
54 |
+ set -- isohybrid -u "${ED}usr/share/${PN%-*}/${P}.iso" |
55 |
+ echo "${@}" |
56 |
+ "${@}" || die "${*} failed" |
57 |
+ fi |
58 |
+} |
59 |
+ |
60 |
+pkg_postinst() { |
61 |
+ local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso |
62 |
+ |
63 |
+ # no version newer than ours? we're the newest! |
64 |
+ if ! has_version ">${CATEGORY}/${PF}"; then |
65 |
+ ln -f -s -v "${P}.iso" "${f}" || die |
66 |
+ fi |
67 |
+} |
68 |
+ |
69 |
+pkg_postrm() { |
70 |
+ local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso |
71 |
+ |
72 |
+ # if there is no version newer than ours installed |
73 |
+ if ! has_version ">${CATEGORY}/${PF}"; then |
74 |
+ # and we are truly and completely uninstalled... |
75 |
+ if [[ ! ${REPLACED_BY_VERSION} ]]; then |
76 |
+ # then find an older version to set the symlink to |
77 |
+ local newest_version=$(best_version "<${CATEGORY}/${PF}") |
78 |
+ |
79 |
+ if [[ ${newest_version} ]]; then |
80 |
+ # update the symlink |
81 |
+ ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die |
82 |
+ else |
83 |
+ # last version removed? clean up the symlink |
84 |
+ rm -v "${f}" || die |
85 |
+ # and the parent directory |
86 |
+ rmdir "${f%/*}" || die |
87 |
+ fi |
88 |
+ fi |
89 |
+ fi |
90 |
+} |