1 |
commit: 44974188dfcc149af093b94a5e0b9d6d5560b365 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 7 15:14:47 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 7 15:58:15 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44974188 |
7 |
|
8 |
app-admin/systemrescuecd-x86: Bump to 4.9.3, #611960 |
9 |
|
10 |
app-admin/systemrescuecd-x86/Manifest | 1 + |
11 |
.../systemrescuecd-x86-4.9.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 4764cf1e748..7df490de816 100644 |
16 |
--- a/app-admin/systemrescuecd-x86/Manifest |
17 |
+++ b/app-admin/systemrescuecd-x86/Manifest |
18 |
@@ -17,3 +17,4 @@ DIST systemrescuecd-x86-4.8.3.iso 498751488 SHA256 1a4a1d35e32a812f42415596695e4 |
19 |
DIST systemrescuecd-x86-4.9.0.iso 504498176 SHA256 1e84a298fd156826fc0a066f559b894bb89d6ab1ff13594233d7aa3499157de7 SHA512 04c89f0140245992aac2659b2b0114ae2961bd382ca302a70fe8dc2348286099601011b16c339cb95ca13345aaed94749272a61f86223dec30cb31328565665b WHIRLPOOL 0734747c4546f367b110688282be293e768cfdd1fb0bb1ff405c1cee4b4bd42c8f2f59639a417513fe0dd28b01dfa67db38641ebe95c07af0a6839089230e8ff |
20 |
DIST systemrescuecd-x86-4.9.1.iso 513009664 SHA256 d6ad5d97b676fa224bae172fbd2681d207f62031e8597e46dd2e97e0751368db SHA512 ac4c2bc65611a575c2f4d12012e9bcaf8bd94283aa8d8c0ad571352b8f33161dded68de091839c9d8a4d5101a2413864838596eed1aedcf20d9441dd59f96dfa WHIRLPOOL 123af2cc99388add86681acb3b6377275b906ccba8163b4be97f8b049ff29460c0015681a042e4d1fa1c3b134a3da1c6cb610b4873ca050200dd0f997f94a503 |
21 |
DIST systemrescuecd-x86-4.9.2.iso 512159744 SHA256 40c028b4ae2f8289f8113533fdfdfeae17d998fbd7d5c284a5d21c6774d871fe SHA512 2d99c0e432ecf5b5635d597d6899518c6ee03bb79911d992d22bda993d38376028407c98ba15f9510c8723c5fba6bf8f0958574542c6035e7cce4c5096ad0a18 WHIRLPOOL 7a1a26a8a60a39217d934a59ba96eec281e197021d8f639c1950f5eb35c7916c7eebf56a5fc09d9dea6de05724faa6ea6bb1543db1934e65665374900a062e1c |
22 |
+DIST systemrescuecd-x86-4.9.3.iso 515739648 SHA256 47c87b4ebebb9a3739d3434bf1cc8939d692182e39f0768e45b22ed1c8ba0382 SHA512 d60b3ba1548c98faba24e2c56ffe70be2e271b0946d2dde46cf766e6f206881f1e0450998af05c439f37edbcac67f0649830914c4354c2212518f63faa140254 WHIRLPOOL c67bb66ad0023dde57c1e1a6081de21671a49c8533cfbc9847886a1bac8321b8d80e331d94d27460918c89a193c57ae1c1078426aac0e42db7934c2005b1f7d4 |
23 |
|
24 |
diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.9.3.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.9.3.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..a15aecbe41c |
27 |
--- /dev/null |
28 |
+++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.9.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 |
+} |