Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/systemrescuecd-x86: systemrescuecd-x86-4.5.1.ebuild ChangeLog
Date: Sun, 01 Mar 2015 17:48:00
Message-Id: 20150301174755.7308E12D21@oystercatcher.gentoo.org
1 mgorny 15/03/01 17:47:55
2
3 Modified: ChangeLog
4 Added: systemrescuecd-x86-4.5.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.5 app-admin/systemrescuecd-x86/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/systemrescuecd-x86/ChangeLog?rev=1.5&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/systemrescuecd-x86/ChangeLog?rev=1.5&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/systemrescuecd-x86/ChangeLog?r1=1.4&r2=1.5
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-admin/systemrescuecd-x86/ChangeLog,v
20 retrieving revision 1.4
21 retrieving revision 1.5
22 diff -u -r1.4 -r1.5
23 --- ChangeLog 5 Feb 2015 11:06:42 -0000 1.4
24 +++ ChangeLog 1 Mar 2015 17:47:55 -0000 1.5
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-admin/systemrescuecd-x86
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-admin/systemrescuecd-x86/ChangeLog,v 1.4 2015/02/05 11:06:42 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/systemrescuecd-x86/ChangeLog,v 1.5 2015/03/01 17:47:55 mgorny Exp $
30 +
31 +*systemrescuecd-x86-4.5.1 (01 Mar 2015)
32 +
33 + 01 Mar 2015; Michał Górny <mgorny@g.o>
34 + +systemrescuecd-x86-4.5.1.ebuild:
35 + Version bump.
36
37 *systemrescuecd-x86-4.5.0 (05 Feb 2015)
38
39
40
41
42 1.1 app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: systemrescuecd-x86-4.5.1.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-admin/systemrescuecd-x86/systemrescuecd-x86-4.5.1.ebuild,v 1.1 2015/03/01 17:47:55 mgorny Exp $
52
53 EAPI=5
54
55 DESCRIPTION="The .iso image of SystemRescueCD rescue disk, x86 (+ amd64) variant"
56 HOMEPAGE="http://www.sysresccd.org/"
57 SRC_URI="mirror://sourceforge/systemrescuecd/sysresccd-${PN#*-}/${PV}/${P}.iso"
58
59 LICENSE="GPL-2"
60 SLOT="${PV}"
61 KEYWORDS="~amd64 ~x86"
62 IUSE=""
63
64 S=${WORKDIR}
65
66 RESTRICT="mirror"
67
68 src_install() {
69 insinto "/usr/share/${PN%-*}"
70 doins "${DISTDIR}/${P}.iso"
71 }
72
73 pkg_postinst() {
74 local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso
75
76 # no version newer than ours? we're the newest!
77 if ! has_version ">${CATEGORY}/${PF}"; then
78 ln -f -s -v "${P}.iso" "${f}" || die
79 fi
80 }
81
82 pkg_postrm() {
83 local f=${EROOT%/}/usr/share/${PN%-*}/${PN}-newest.iso
84
85 # if there is no version newer than ours installed
86 if ! has_version ">${CATEGORY}/${PF}"; then
87 # and we are truly and completely uninstalled...
88 if [[ ! ${REPLACED_BY_VERSION} ]]; then
89 # then find an older version to set the symlink to
90 local newest_version=$(best_version "<${CATEGORY}/${PF}")
91
92 if [[ ${newest_version} ]]; then
93 # update the symlink
94 ln -f -s -v "${newest_version%-r*}.iso" "${f}" || die
95 else
96 # last version removed? clean up the symlink
97 rm -v "${f}" || die
98 # and the parent directory
99 rmdir "${f%/*}" || die
100 fi
101 fi
102 fi
103 }