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