summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-02-05 11:06:42 +0000
committerJustin Lecher <jlec@gentoo.org>2015-02-05 11:06:42 +0000
commiteca8c458c2aba950be37ebce423f2c9f8832e835 (patch)
treed1b673ee696bb307d9ec69ff3ac7359c7dfb44d2 /app-admin
parentVersion bump. Remove old. (diff)
downloadgentoo-2-eca8c458c2aba950be37ebce423f2c9f8832e835.tar.gz
gentoo-2-eca8c458c2aba950be37ebce423f2c9f8832e835.tar.bz2
gentoo-2-eca8c458c2aba950be37ebce423f2c9f8832e835.zip
app-admin/systemrescuecd-x86: Version Bump
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/systemrescuecd-x86/ChangeLog8
-rw-r--r--app-admin/systemrescuecd-x86/metadata.xml8
-rw-r--r--app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.0.ebuild55
3 files changed, 66 insertions, 5 deletions
diff --git a/app-admin/systemrescuecd-x86/ChangeLog b/app-admin/systemrescuecd-x86/ChangeLog
index 52b4517e4bdb..d86015ed12ad 100644
--- a/app-admin/systemrescuecd-x86/ChangeLog
+++ b/app-admin/systemrescuecd-x86/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-admin/systemrescuecd-x86
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/systemrescuecd-x86/ChangeLog,v 1.3 2015/01/07 22:59:25 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/systemrescuecd-x86/ChangeLog,v 1.4 2015/02/05 11:06:42 jlec Exp $
+
+*systemrescuecd-x86-4.5.0 (05 Feb 2015)
+
+ 05 Feb 2015; Justin Lecher <jlec@gentoo.org>
+ +systemrescuecd-x86-4.5.0.ebuild, metadata.xml:
+ Version Bump
07 Jan 2015; Michał Górny <mgorny@gentoo.org> systemrescuecd-x86-4.4.1.ebuild:
Mention amd64 in description.
diff --git a/app-admin/systemrescuecd-x86/metadata.xml b/app-admin/systemrescuecd-x86/metadata.xml
index 5cb9324943ab..46720f594169 100644
--- a/app-admin/systemrescuecd-x86/metadata.xml
+++ b/app-admin/systemrescuecd-x86/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer>
- <email>mgorny@gentoo.org</email>
- <name>Michał Górny</name>
- </maintainer>
+ <maintainer>
+ <email>mgorny@gentoo.org</email>
+ <name>Michał Górny</name>
+ </maintainer>
</pkgmetadata>
diff --git a/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.0.ebuild b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.0.ebuild
new file mode 100644
index 000000000000..c059b92e8ad6
--- /dev/null
+++ b/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.0.ebuild,v 1.1 2015/02/05 11:06:42 jlec Exp $
+
+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
+}