1 |
commit: 08b961e265a83575072951077e5ff4a46e633227 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 14:41:29 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 14:43:23 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08b961e2 |
7 |
|
8 |
app-admin/systemrescuecd-x86: Bump to 4.8.2 |
9 |
|
10 |
app-admin/systemrescuecd-x86/Manifest | 1 + |
11 |
.../systemrescuecd-x86-4.8.2.ebuild | 62 ++++++++++++++++++++++ |
12 |
2 files changed, 63 insertions(+) |
13 |
|
14 |
diff --git a/app-admin/systemrescuecd-x86/Manifest b/app-admin/systemrescuecd-x86/Manifest |
15 |
index 8c7107f..bb51454 100644 |
16 |
--- a/app-admin/systemrescuecd-x86/Manifest |
17 |
+++ b/app-admin/systemrescuecd-x86/Manifest |
18 |
@@ -12,3 +12,4 @@ DIST systemrescuecd-x86-4.7.2.iso 482217984 SHA256 b0a3333c091ec2f4658e2a1503050 |
19 |
DIST systemrescuecd-x86-4.7.3.iso 482799616 SHA256 f3a30a11ade9c5dd631522a9bfad4b2d5b7e5b14d9ba65ec94d1cf441635bc7a SHA512 42331496283b981661861e49448b17b0a4fd202f38024990a5aaf2572f300016e67f86ec3ec82adb4dc337a5275da858bf80fbb6a49886682298ffcea6c0d1f0 WHIRLPOOL 6f0ef187624b4a7da11e0a1f7d822ef964889c37bf5b66263ac3ccc83fba3b654c1d67a9831925608ecc20eeb42a40be5b3fc37fdcaedf06e4de30d1db7d7f2a |
20 |
DIST systemrescuecd-x86-4.8.0.iso 488042496 SHA256 06e6847384063bbb67c1c8f0824e995046c9ff125ad07a4214b129efb9b18241 SHA512 bfd3142149a9155e35d1add271265ae54074bfe2a8f658ca366dfdecfa893b683adb6206f11738d972df98cf7026c893d17ecebf8635c3cd5cd38cfd4c0b2e0e WHIRLPOOL 93959e6c55b30c696d82e62d48ea54cdc67f1b8c2951d4a895ebd6d526802ddce21795f4fb787b62f830c10ff549d55360217ce609df9bc486bbf6dd6886d287 |
21 |
DIST systemrescuecd-x86-4.8.1.iso 483315712 SHA256 144cc9e936c5fa9d11232ac4d1717a8d0ae4b95a2b5f9c8548afab6fbe9cfbd2 SHA512 0424fab36e2caf7e3e9dd7c334d57b7eb9a090e3d79c52ea8e003e05931558b48be5375ac49eaaa78141d179d7153c91c386a42d7ead8d56ef3113363b8ff692 WHIRLPOOL 5ded246b624cad86fa93c244e5b53f6edd28ddc8909c53fcfc8049de47a68a0811a4e83d78d94a95df559bdb99bfc22ef59d3b68326791199cdfe1b414ac6135 |
22 |
+DIST systemrescuecd-x86-4.8.2.iso 497338368 SHA256 0daf5602899ae41f419fc7027f8f77b2c96a3e2a7d923acf65761619dc6c54d8 SHA512 6467e383382edcd4a92aae60404b0f1451f6941c147dd911296f911a001d0002546d1fe4d4f49dc1eafc688aa53eaa07948b6f7f388fc87830ec1c58093b1135 WHIRLPOOL 4b2ac5f344abcd8974a30e092829ee4d9e32a7fe71aa7f598524394199f705b314ff535464dd31a4074dc3d9a0297fd7e583ef62b2bf8c1f262dd4a78d031229 |
23 |
|
24 |
diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.8.2.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.8.2.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..cb7c7b5 |
27 |
--- /dev/null |
28 |
+++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.8.2.ebuild |
29 |
@@ -0,0 +1,62 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant" |
37 |
+HOMEPAGE="http://www.sysresccd.org/" |
38 |
+# Large ISO mirroring explicitly approved by infra in bug #588766 |
39 |
+SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso" |
40 |
+ |
41 |
+LICENSE="GPL-2" |
42 |
+SLOT="${PV}" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="+isohybrid" |
45 |
+ |
46 |
+DEPEND="isohybrid? ( >=sys-boot/syslinux-4 )" |
47 |
+ |
48 |
+S=${WORKDIR} |
49 |
+ |
50 |
+src_install() { |
51 |
+ insinto "/usr/share/${PN%-*}" |
52 |
+ doins "${DISTDIR}/${P}.iso" |
53 |
+ |
54 |
+ if use isohybrid; then |
55 |
+ set -- isohybrid -u "${ED}usr/share/${PN%-*}/${P}.iso" |
56 |
+ echo "${@}" |
57 |
+ "${@}" || die "${*} failed" |
58 |
+ fi |
59 |
+} |
60 |
+ |
61 |
+pkg_postinst() { |
62 |
+ local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso |
63 |
+ |
64 |
+ # no version newer than ours? we're the newest! |
65 |
+ if ! has_version ">${CATEGORY}/${PF}"; then |
66 |
+ ln -f -s -v "${P}.iso" "${f}" || die |
67 |
+ fi |
68 |
+} |
69 |
+ |
70 |
+pkg_postrm() { |
71 |
+ local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso |
72 |
+ |
73 |
+ # if there is no version newer than ours installed |
74 |
+ if ! has_version ">${CATEGORY}/${PF}"; then |
75 |
+ # and we are truly and completely uninstalled... |
76 |
+ if [[ ! ${REPLACED_BY_VERSION} ]]; then |
77 |
+ # then find an older version to set the symlink to |
78 |
+ local newest_version=$(best_version "<${CATEGORY}/${PF}") |
79 |
+ |
80 |
+ if [[ ${newest_version} ]]; then |
81 |
+ # update the symlink |
82 |
+ ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die |
83 |
+ else |
84 |
+ # last version removed? clean up the symlink |
85 |
+ rm -v "${f}" || die |
86 |
+ # and the parent directory |
87 |
+ rmdir "${f%/*}" || die |
88 |
+ fi |
89 |
+ fi |
90 |
+ fi |
91 |
+} |