Gentoo Archives: gentoo-commits

From: Andrea Postiglione <andrea.postiglione@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-admin/customrescuecd-x86_64/
Date: Fri, 29 Oct 2021 16:49:38
Message-Id: 1635526146.0229c0e4fea011b9433a66710e68f96ad5d3ee23.andrea_postiglione@gentoo
1 commit: 0229c0e4fea011b9433a66710e68f96ad5d3ee23
2 Author: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com>
3 AuthorDate: Fri Oct 29 16:49:06 2021 +0000
4 Commit: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com>
5 CommitDate: Fri Oct 29 16:49:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0229c0e4
7
8 app-admin/customrescuecd-x86_64: version bump to 0.12.3
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.3.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 4fa64e256..62803dab4 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.2.iso 1516290048 BLAKE2B c9d2b857948c09a16b86bb9ccb7373f1908f52f97ed21c64ef422e6d7c3501278fd7871b34c035a70554b494926325d1be2978df729ffd93cb7f3bee6b0c5adc SHA512 f215116878557ada9d321ba018970723a1e3905cbebf12aac5e1e65e97c9180f852fcfff5c2133c28e97bb3d1eb8fb80ca26bbf307de8b202fa39eb02a474abd
22 +DIST CUSTOMRESCUECD-x86_64-0.12.3.iso 1531445248 BLAKE2B a4873c26660cebb9f12b70df9aba0fef8dc64d2e15184f8054d252c3f893c967dcbc00b6b5cc154e726379c6a8cf6d024e432eba41de35a5488715f9a1ddb877 SHA512 fa2d535918f1bc321f65ae111b806c91aa34e09d32907fc1c12ee186b2ed4e96494d0c555101fe3d969f3364b95bae5496ff8a2ed6b350f6321b8f084cac6192
23
24 diff --git a/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.12.3.ebuild b/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.12.3.ebuild
25 new file mode 100644
26 index 000000000..d57a8059d
27 --- /dev/null
28 +++ b/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.12.3.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 +}