From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-admin/customrescuecd-x86_64/
Date: Sat, 15 Aug 2020 18:15:11 +0000 (UTC) [thread overview]
Message-ID: <1597433069.2b3f9846ef74ac866097cba990d02f564f03f66e.andrewammerlaan@gentoo> (raw)
commit: 2b3f9846ef74ac866097cba990d02f564f03f66e
Author: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com>
AuthorDate: Fri Aug 14 19:24:29 2020 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Fri Aug 14 19:24:29 2020 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2b3f9846
app-admin/customrescuecd-x86_64 : initial ebuild
Signed-off-by: Andrea Postiglione <andrea.postiglione <AT> gmail.com>
app-admin/customrescuecd-x86_64/Manifest | 1 +
.../customrescuecd-x86_64-0.10.3.ebuild | 55 ++++++++++++++++++++++
app-admin/customrescuecd-x86_64/metadata.xml | 12 +++++
3 files changed, 68 insertions(+)
diff --git a/app-admin/customrescuecd-x86_64/Manifest b/app-admin/customrescuecd-x86_64/Manifest
new file mode 100644
index 0000000..3a08f60
--- /dev/null
+++ b/app-admin/customrescuecd-x86_64/Manifest
@@ -0,0 +1 @@
+DIST CUSTOMRESCUECD-x86_64-0.10.3.iso 1537474560 BLAKE2B d4812074013323d8372bd71bea1c81cbe8cb88e0cf87dd1ec7c4373a1c4f4023cfec383ea3327cb75aa903021d929ac7a29290a2a9a7a75857c591827af7a148 SHA512 1092dc85a82c1f17c362b19e91d36602debaab7d52a98945ebb494f9d8bec03fb07b16649c7401233a060ce95905c3f9259107c2eb9f80bd63d759740754105e
diff --git a/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.10.3.ebuild b/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.10.3.ebuild
new file mode 100644
index 0000000..96d32df
--- /dev/null
+++ b/app-admin/customrescuecd-x86_64/customrescuecd-x86_64-0.10.3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2019 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
+}
diff --git a/app-admin/customrescuecd-x86_64/metadata.xml b/app-admin/customrescuecd-x86_64/metadata.xml
new file mode 100644
index 0000000..002f90c
--- /dev/null
+++ b/app-admin/customrescuecd-x86_64/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>andrea.postiglione@gmail.com</email>
+ <name>Andrea Postiglione</name>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="sourceforge">customrescuecd</remote-id>
+ </upstream>
+</pkgmetadata>
next reply other threads:[~2020-08-15 18:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-15 18:15 Andrew Ammerlaan [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-10-17 18:16 [gentoo-commits] repo/proj/guru:master commit in: app-admin/customrescuecd-x86_64/ Andrew Ammerlaan
2020-10-17 18:16 Andrew Ammerlaan
2020-10-21 9:02 Andrew Ammerlaan
2020-10-21 9:02 Andrew Ammerlaan
2020-10-23 14:51 Andrew Ammerlaan
2021-01-01 13:14 Andrew Ammerlaan
2021-01-04 20:19 Andrew Ammerlaan
2021-03-21 20:46 Andrew Ammerlaan
2021-03-21 20:46 Andrew Ammerlaan
2021-11-03 11:12 Andrew Ammerlaan
2022-02-04 11:44 Florian Schmaus
2022-05-02 7:17 Florian Schmaus
2022-05-02 17:59 Arthur Zamarin
2022-08-02 10:55 Haelwenn Monnier
2022-08-02 10:55 Haelwenn Monnier
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=1597433069.2b3f9846ef74ac866097cba990d02f564f03f66e.andrewammerlaan@gentoo \
--to=andrewammerlaan@riseup.net \
--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