summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-11-06 22:52:31 +0100
committerMichał Górny <mgorny@gentoo.org>2015-11-06 22:52:31 +0100
commit6b71ec3dd0794250b6baadd260f9a13098ab2bad (patch)
tree1085300bd2c0bc00e6d6f97425e43c2747e0c4bb
parent6bb036d6f6a3c91e85c132a3162d47748fc7b2cc (diff)
downloadgentoo-6b71ec3dd0794250b6baadd260f9a13098ab2bad.tar.gz
gentoo-6b71ec3dd0794250b6baadd260f9a13098ab2bad.tar.xz
app-admin/systemrescuecd-x86: Add 4.6.1
-rw-r--r--app-admin/systemrescuecd-x86/Manifest1
-rw-r--r--app-admin/systemrescuecd-x86/systemrescuecd-x86-4.6.1.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/app-admin/systemrescuecd-x86/Manifest b/app-admin/systemrescuecd-x86/Manifest
index af9e335e88f..aa6fe7700cf 100644
--- a/app-admin/systemrescuecd-x86/Manifest
+++ b/app-admin/systemrescuecd-x86/Manifest
@@ -5,3 +5,4 @@ DIST systemrescuecd-x86-4.5.2.iso 456060928 SHA256 e8805433699acd7b6df38ff893edd
DIST systemrescuecd-x86-4.5.3.iso 458467328 SHA256 16aadc8bef95a0f409a7865054e8597b1001d815b22d976556c103379ea6aba3 SHA512 14774e9a882d5a505532ab8bee85e81867f5d30674df471eb76cae84678eae00fa3992c894b6c90b85c7eaa20bdc04ffe910a7a432092faf3329c08bf54eff49 WHIRLPOOL 7fa6a4e708453bc149d50b56fc05e77ed0d14a6ebab0c939f4e33d92ccbf2409de0da1154425f633e7e4415a3de7f9dc705131259e290b5a40b51f4f43b0f7dd
DIST systemrescuecd-x86-4.5.4.iso 459102208 SHA256 333827d5375cbb9bb201aa2c36871d941e78eeb66652c18c76664154a30eb9a4 SHA512 c32904413516af917de3d58b8eaf3b5701b9c49b1249daf1f8eca060497d5278fedbb0c0d86907bf94ddeab716dc8bf014e0baed0aee66141e8967207805d446 WHIRLPOOL 75c46f12dd92b093e4194e3b67ca020aefc43a3d9e27d94088a2c2f7f0ccad5cd44f7d7fbec4185956756fc3a3bf8845a82ab7a3d171c6ce3d8672f76e9c46e0
DIST systemrescuecd-x86-4.6.0.iso 467294208 SHA256 cdf1db091a7d963e3395f4d9b90f40b2b0b939c99ae9138178d5abc6dfa31e0f SHA512 f90d46adb8ab19b19eae589744808bcbd50aa0b0eac22eca92a09e8407c77e7a2bf573c2c72b37f497a9d287c90b20164b213bf007b538063f758b12b1da11eb WHIRLPOOL f6f8a674d3971309361997b2c5a06ddcec15bbdf069a5177dab3a0701c95f55723bcd835f8e3bac0e5b756d9a5115f4828ceac0af7edef903af16ece0c24e81a
+DIST systemrescuecd-x86-4.6.1.iso 470530048 SHA256 5812ea8198831b15db9ab37e772524a047c5750a9ee79789bcb4f77e117bf4d5 SHA512 3ae7c4f3f2196190c8bac44da35878450ef5455240e10f5bf2063a28f0f1c59d35458c7db42a3324e8b963a9e8b250a1b54ffa85e5cb6cf27c9e94ae1fb593d3 WHIRLPOOL fc389a182b2942efea89da1fc088c6d38e2c3a8df35d6012e3a3d560b3022866fed169dea2249f3d236cb1e559fe3bb44ec15c78a7740e93c843cebcaaf6dd5e
diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.6.1.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.6.1.ebuild
new file mode 100644
index 00000000000..d7cc39e4ee1
--- /dev/null
+++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.6.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant"
+HOMEPAGE="http://www.sysresccd.org/"
+SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso"
+
+LICENSE="GPL-2"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S=${WORKDIR}
+
+RESTRICT="mirror"
+
+src_install() {
+ insinto "/usr/share/${PN%-*}"
+ doins "${DISTDIR}/${P}.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 "${P}.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
+}