Gentoo Archives: gentoo-commits

From: Haelwenn Monnier <contact@×××××××××.me>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-admin/customrescuecd-x86_64/
Date: Tue, 02 Aug 2022 10:55:23
Message-Id: 1659364633.c015388794cfad2ac926b9c7e40ef4630bfe429c.lanodan@gentoo
1 commit: c015388794cfad2ac926b9c7e40ef4630bfe429c
2 Author: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com>
3 AuthorDate: Mon Aug 1 14:37:13 2022 +0000
4 Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
5 CommitDate: Mon Aug 1 14:37:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c0153887
7
8 app-admin/customrescuecd-x86_64: version bump to 0.12.8
9
10 Signed-off-by: Andrea Postiglione <andrea.postiglione <AT> gmail.com>
11
12 app-admin/customrescuecd-x86_64/Manifest | 2 +-
13 .../customrescuecd-x86_64-0.12.8.ebuild | 55 ++++++++++++++++++++++
14 2 files changed, 56 insertions(+), 1 deletion(-)
15
16 diff --git a/app-admin/customrescuecd-x86_64/Manifest b/app-admin/customrescuecd-x86_64/Manifest
17 index 7e906b2df..990e5520c 100644
18 --- a/app-admin/customrescuecd-x86_64/Manifest
19 +++ b/app-admin/customrescuecd-x86_64/Manifest
20 @@ -1 +1 @@
21 -DIST CUSTOMRESCUECD-x86_64-0.12.7.iso 1656078336 BLAKE2B d3d23f3cd3beae62c5e9053533372426dcaed7b3a655fced37c21fd14127445f49679f6bc9db706d403a37b86331a78c6ccddcf55199985600f0f90b50498682 SHA512 03f397c21979e488cce4a75f33eca5acb7ae4231887744ba9c0826d8f0340b84d908a343181ca3412c74ae7750f4b510d42f5ff198d44240a8dc302e924f0a26
22 +DIST CUSTOMRESCUECD-x86_64-0.12.8.iso 1682915328 BLAKE2B 712c2d54fc785576f34c5c4051ef0662010b576fc32365ca56c2aee12ba27b7419b80e8713f1b84726dfa3104593e39c86950936eaecebe5168d4862776665fc SHA512 d709600cd5300a10a6a8fee99aebfa6e82e387747c3e105a12b849003eccd5bac0a9d9a0f51d45b2a9f3f203a9a36915d2beb60ff51a4cae3d230d29007f43d8
23
24 diff --git a/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.12.8.ebuild b/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.12.8.ebuild
25 new file mode 100644
26 index 000000000..97ae9bab2
27 --- /dev/null
28 +++ b/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.12.8.ebuild
29 @@ -0,0 +1,55 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +MY_P="CUSTOMRESCUECD-x86_64"
36 +DESCRIPTION="A system rescue cd or usbstick for desktop and server based on gentoo"
37 +HOMEPAGE="https://sourceforge.net/projects/customrescuecd/"
38 +SRC_URI="mirror://sourceforge/customrescuecd/"${MY_P}"-"${PV}".iso"
39 +
40 +LICENSE="GPL-3"
41 +SLOT="${PV}"
42 +KEYWORDS="~amd64"
43 +RESTRICT="bindist mirror"
44 +
45 +S=${WORKDIR}
46 +
47 +src_unpack() { :; }
48 +
49 +src_install() {
50 + insinto "/usr/share/${PN%-*}"
51 + doins "${DISTDIR}/${MY_P}-${PV}.iso"
52 +}
53 +
54 +pkg_postinst() {
55 + local f=${EROOT}/usr/share/${PN%-*}/${PN}-newest.iso
56 +
57 + # no version newer than ours? we're the newest!
58 + if ! has_version ">${CATEGORY}/${PF}"; then
59 + ln -f -s -v "${MY_P}-${PV}.iso" "${f}" || die
60 + fi
61 +}
62 +
63 +pkg_postrm() {
64 + local f=${EROOT}/usr/share/${PN%-*}/${PN}-newest.iso
65 +
66 + # if there is no version newer than ours installed
67 + if ! has_version ">${CATEGORY}/${PF}"; then
68 + # and we are truly and completely uninstalled...
69 + if [[ ! ${REPLACED_BY_VERSION} ]]; then
70 + # then find an older version to set the symlink to
71 + local newest_version=$(best_version "<${CATEGORY}/${PF}")
72 +
73 + if [[ ${newest_version} ]]; then
74 + # update the symlink
75 + ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die
76 + else
77 + # last version removed? clean up the symlink
78 + rm -v "${f}" || die
79 + # and the parent directory
80 + rmdir "${f%/*}" || die
81 + fi
82 + fi
83 + fi
84 +}