From: "Andrea Postiglione" <andrea.postiglione@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-admin/customrescuecd-x86_64/
Date: Tue, 8 Mar 2022 19:10:01 +0000 (UTC) [thread overview]
Message-ID: <1646766566.9d9dff76d208f81126995381ed3455ae80dbabb5.andrea_postiglione@gentoo> (raw)
commit: 9d9dff76d208f81126995381ed3455ae80dbabb5
Author: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com>
AuthorDate: Tue Mar 8 19:09:26 2022 +0000
Commit: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com>
CommitDate: Tue Mar 8 19:09:26 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9d9dff76
app-admin/customrescuecd-0.12.6: version bump
Signed-off-by: Andrea Postiglione <andrea.postiglione <AT> gmail.com>
app-admin/customrescuecd-x86_64/Manifest | 2 +-
.../customrescuecd-x86_64-0.12.6.ebuild | 55 ++++++++++++++++++++++
2 files changed, 56 insertions(+), 1 deletion(-)
diff --git a/app-admin/customrescuecd-x86_64/Manifest b/app-admin/customrescuecd-x86_64/Manifest
index 4a298abf9..661a4b605 100644
--- a/app-admin/customrescuecd-x86_64/Manifest
+++ b/app-admin/customrescuecd-x86_64/Manifest
@@ -1 +1 @@
-DIST CUSTOMRESCUECD-x86_64-0.12.5.iso 1610612736 BLAKE2B 6acba5a50e4693308a3653d0fa0eef8abe3a62f180d6712a4306626f625f022ddfcfaf160ecdacfe35554df5b730f3477dfe5ab6af5930af7e988a7df5e397db SHA512 2b9e43f1b375db5cce9684489710e289c64bc2967cfd92d8d4bdace9b803b6f0d73732b3e80cfa3060ee2ac072ecb2d3bd5dbfc2bf10fc1acbdb4129d8a44d7f
+DIST CUSTOMRESCUECD-x86_64-0.12.6.iso 1613086720 BLAKE2B 3f09ad7bae1f8847476d9b1ae58bfb3c463ff4131438bc3f0aa605146db93ebcc90b6164ef7cfc201ae8bba46ba61b6d578e55444c04c647c6d972d6dc211e85 SHA512 6cf6136070ebafdcb934949ad41294e8c6753723c6ea4be56283b5299f51ae27856a9daeff74c7a67991139e4eb9bd172b0ea9f0e4cec645e170e6a6516e2c9a
diff --git a/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.12.6.ebuild b/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.12.6.ebuild
new file mode 100644
index 000000000..d57a8059d
--- /dev/null
+++ b/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.12.6.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_P="CUSTOMRESCUECD-x86_64"
+DESCRIPTION="A system rescue cd or usbstick for desktop and server based on gentoo"
+HOMEPAGE="https://sourceforge.net/projects/customrescuecd"
+SRC_URI="mirror://sourceforge/customrescuecd/"${MY_P}"-"${PV}".iso"
+
+LICENSE="GPL-3"
+SLOT="${PV}"
+KEYWORDS="~amd64"
+RESTRICT="bindist mirror"
+
+S=${WORKDIR}
+
+src_unpack() { :; }
+
+src_install() {
+ insinto "/usr/share/${PN%-*}"
+ doins "${DISTDIR}/${MY_P}-${PV}.iso"
+}
+
+pkg_postinst() {
+ local f=${EROOT}/usr/share/${PN%-*}/${PN}-newest.iso
+
+ # no version newer than ours? we're the newest!
+ if ! has_version ">${CATEGORY}/${PF}"; then
+ ln -f -s -v "${MY_P}-${PV}.iso" "${f}" || die
+ fi
+}
+
+pkg_postrm() {
+ local f=${EROOT}/usr/share/${PN%-*}/${PN}-newest.iso
+
+ # if there is no version newer than ours installed
+ if ! has_version ">${CATEGORY}/${PF}"; then
+ # and we are truly and completely uninstalled...
+ if [[ ! ${REPLACED_BY_VERSION} ]]; then
+ # then find an older version to set the symlink to
+ local newest_version=$(best_version "<${CATEGORY}/${PF}")
+
+ if [[ ${newest_version} ]]; then
+ # update the symlink
+ ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die
+ else
+ # last version removed? clean up the symlink
+ rm -v "${f}" || die
+ # and the parent directory
+ rmdir "${f%/*}" || die
+ fi
+ fi
+ fi
+}
next reply other threads:[~2022-03-08 19:10 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-08 19:10 Andrea Postiglione [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-08-02 0:34 [gentoo-commits] repo/proj/guru:dev commit in: app-admin/customrescuecd-x86_64/ Yuan Liao
2022-08-01 14:37 Andrea Postiglione
2022-05-02 17:59 [gentoo-commits] repo/proj/guru:master " Arthur Zamarin
2022-05-02 17:50 ` [gentoo-commits] repo/proj/guru:dev " Arthur Zamarin
2022-05-01 16:22 Andrea Postiglione
2022-03-10 16:57 Mathieu Tortuyaux
2022-02-09 0:24 Anna Vyalkova
2022-02-08 15:38 Andrea Postiglione
2022-02-02 8:43 Andrea Postiglione
2021-11-02 3:40 Alessandro Barbieri
2021-10-29 16:49 Andrea Postiglione
2021-09-27 16:34 Andrea Postiglione
2021-09-27 16:33 Andrea Postiglione
2021-03-28 9:39 Andrew Ammerlaan
2021-03-21 20:46 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-03-21 20:29 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-03-21 17:00 Andrea Postiglione
2021-01-04 19:55 Andrea Postiglione
2020-12-31 20:43 Andrea Postiglione
2020-10-23 14:04 Andrea Postiglione
2020-10-20 8:58 Andrea Postiglione
2020-10-19 17:01 Andrea Postiglione
2020-10-17 12:20 Andrea Postiglione
2020-10-16 17:43 Andrea Postiglione
2020-08-14 19:25 Andrea Postiglione
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1646766566.9d9dff76d208f81126995381ed3455ae80dbabb5.andrea_postiglione@gentoo \
--to=andrea.postiglione@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox