1 |
commit: 75ca4770f0093e0474200b575b5e62636d984904 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 4 07:41:43 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 4 08:44:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75ca4770 |
7 |
|
8 |
app-admin/systemrescuecd-x86: Bump to 5.2.0 |
9 |
|
10 |
app-admin/systemrescuecd-x86/Manifest | 1 + |
11 |
.../systemrescuecd-x86-5.2.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 b4379744b41..af6ffa27745 100644 |
16 |
--- a/app-admin/systemrescuecd-x86/Manifest |
17 |
+++ b/app-admin/systemrescuecd-x86/Manifest |
18 |
@@ -29,3 +29,4 @@ DIST systemrescuecd-x86-5.0.4.iso 501141504 BLAKE2B 01acafdb8e7ac8343f0e30ed7be7 |
19 |
DIST systemrescuecd-x86-5.1.0.iso 505047040 BLAKE2B 3653bdd2733cfe214275ab8d3a95a1cab142f72a12da7fa7f76af8faa1801a1ab4da74493efeb2e1b759e871b1ddf8a847825a4f37ae6c3b009fd90e4dcfdd4b SHA512 15d019bbb91019f1b6d1847fc786e6c02f3f768826241e0823842bca9745ff1fa48fe7d32828f899b90845b2f4ce948a1f98e093edf8ca4c0c39cc0da72b4aa8 |
20 |
DIST systemrescuecd-x86-5.1.1.iso 517359616 BLAKE2B f139a521076f0345a65bddfd999f7dd4479a9fd26e3621f2c419804228922af53f2e6d99a97919db0041e4199a95ea745d674a7b0a61f86dc5d9e10ff562d314 SHA512 a4063305da50ea8b73fb7157f46bf386b80d3ef777adabdcdd944814c801d078fe63778f166b80788b0851549b35bf6ada5940ca5a40a6c1a3e0f4c66efbea91 |
21 |
DIST systemrescuecd-x86-5.1.2.iso 523479040 BLAKE2B abf6f1e3e05e382b48dcfd4ecde9f70896462418cf36057e3a42dc2366e0b56133deeb6f00363d15d94238c22fb8ac5c88b57ca6c213c9dcc299fa04def5e2cd SHA512 516e60632459dd5408f83035aa265ed4169b13f978a23960a85837c9c8b5bbab70776e22a6e6727184bd9df81cbbeff4a5819d5927ff0ff3a79036bc4c54cfdc |
22 |
+DIST systemrescuecd-x86-5.2.0.iso 569669632 BLAKE2B fe31a68df650b46bd875b91c643c8f1daaa60042ea6c59ac452bb99a2792dcdcee62f1b60c329a70c95689af22c1a0fc52a966631af347258d665f55d2f6d8c0 SHA512 42da80a419aa27bea891339dc163a62bff8ba34d74c202a7fd0317592e8870a71ddc7fa9e9ded5e9d2f75dc36ec8417673074ffde60ea472815405456e34876c |
23 |
|
24 |
diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.2.0.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.2.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..7bfc35a7dd2 |
27 |
--- /dev/null |
28 |
+++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-5.2.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 |
+} |