1 |
commit: a02d8a4f9a3c263a77e295b3ab8e75ac2056ca29 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 30 05:37:26 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 30 05:46:34 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a02d8a4f |
7 |
|
8 |
app-admin/systemrescuecd-x86: Bump to 5.0.3 |
9 |
|
10 |
app-admin/systemrescuecd-x86/Manifest | 1 + |
11 |
.../systemrescuecd-x86-5.0.3.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 091cd731aff..32ec6861e00 100644 |
16 |
--- a/app-admin/systemrescuecd-x86/Manifest |
17 |
+++ b/app-admin/systemrescuecd-x86/Manifest |
18 |
@@ -24,3 +24,4 @@ DIST systemrescuecd-x86-4.9.6.iso 566126592 SHA256 345600159383a70cfd6dd8c32831c |
19 |
DIST systemrescuecd-x86-5.0.0.iso 484790272 SHA256 0f04739b9a4c5b3174e4ffe462e23f8b700f9fdff37c75b64e7913b768bd9427 SHA512 67e442f229c55d16a13a46619134afee14fd7cf71e9d5e3d6f54a7b2ce3646e9ff89a17605c05f7a255b251c3bc56004aa9a59bd06f3ed69f7f4b9057ea6ea6c WHIRLPOOL 67b5ccec685746845361aa710e936aa6c693e08cd514283ad4805b44c385de19f5d3ba45cc349ae4b284c28046919ff8cd117a7f458a52fd488a2860f97359b4 |
20 |
DIST systemrescuecd-x86-5.0.1.iso 485711872 SHA256 17f56dc7779d3716539a39a312ddb07d27f2cb1aa55b12420960bd67b00f6c9f SHA512 b18663574e54f1b6b5a147aa947d8faa4ad7eff7d756e8c3cee5397fdf3ac97c1c907f65a61403b2f0a7583fb9ad0fb74c920a8040365f6caad649371deeb1c4 WHIRLPOOL c33d81ebcec3d5f6744c7a8ccb5d33ae1b1847e31fcf43f66bfa4fdfdeeb226950562665f2a8b41d67c6077ec9cbea62ec8836135b3c391865f4171e147cc04a |
21 |
DIST systemrescuecd-x86-5.0.2.iso 495773696 SHA256 a2abdaf5750b09886cedcc5233d91ad3d1083e10380e555c7ca50849befbf487 SHA512 eaf5c080fbf810c0f966335c1f2f797f8e756c03a6246c8f2e2dd13637a66a160fd0d966095849d16b94664bf973bb9064e1f9f91785f0fd51372820c90b905f WHIRLPOOL 1b2cef05c0d8dff99757cfcf15c21ca3de42d6a5d41ec876bd4196af7f44209387b695e0e75ea03b00f1615be9a7b2c94eb41c1a72326c0c67df1e4129db4362 |
22 |
+DIST systemrescuecd-x86-5.0.3.iso 501446656 SHA256 e892d3e0aeabec2c435484f0a6913d56b5cc4505e61032bd86f39443e3ab162e SHA512 a6748224f3f8cac5f9751648278bbc06acfc123c64b7c0a3b6e47f00b0a3c255082e9ffc43fd0fd3df26322cf154797ea6a02c6b37087ae832219ec4f3bec673 WHIRLPOOL 3f197342689fa764bf66b269f3afd1213774cba16b04b3bcb45d408f2e650e503499303120bb233f3b15c4e254953f703c2b042ae1cfcbe0f1119330562952c0 |
23 |
|
24 |
diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.0.3.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.0.3.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..a15aecbe41c |
27 |
--- /dev/null |
28 |
+++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.0.3.ebuild |
29 |
@@ -0,0 +1,61 @@ |
30 |
+# Copyright 1999-2017 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 |
+} |