Gentoo Archives: gentoo-commits

From: "Doug Klima (cardoe)" <cardoe@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/openrc: openrc-0.2_pre20080325.ebuild
Date: Tue, 25 Mar 2008 21:09:45
Message-Id: E1JeGOt-0005rO-1o@stork.gentoo.org
1 cardoe 08/03/25 21:09:43
2
3 Modified: openrc-0.2_pre20080325.ebuild
4 Log:
5 sys-libs/timezone-data-2008b was silently updated to prefer /etc/timezone. Add migration to that file.
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.5 sys-apps/openrc/openrc-0.2_pre20080325.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-0.2_pre20080325.ebuild?rev=1.5&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-0.2_pre20080325.ebuild?rev=1.5&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/openrc/openrc-0.2_pre20080325.ebuild?r1=1.4&r2=1.5
14
15 Index: openrc-0.2_pre20080325.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.2_pre20080325.ebuild,v
18 retrieving revision 1.4
19 retrieving revision 1.5
20 diff -u -r1.4 -r1.5
21 --- openrc-0.2_pre20080325.ebuild 25 Mar 2008 20:15:38 -0000 1.4
22 +++ openrc-0.2_pre20080325.ebuild 25 Mar 2008 21:09:42 -0000 1.5
23 @@ -1,6 +1,6 @@
24 # Copyright 1999-2008 Gentoo Foundation
25 # Distributed under the terms of the GNU General Public License v2
26 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.2_pre20080325.ebuild,v 1.4 2008/03/25 20:15:38 cardoe Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/openrc/openrc-0.2_pre20080325.ebuild,v 1.5 2008/03/25 21:09:42 cardoe Exp $
28
29 inherit eutils flag-o-matic multilib toolchain-funcs
30
31 @@ -87,7 +87,15 @@
32 }
33
34 pkg_preinst() {
35 - # skip migration if we already have openrc installed
36 + # upgrade timezone file
37 + if [ ! -e ${ROOT}/etc/timezone ] ; then
38 + (
39 + source "${ROOT}"/etc/conf.d/clock
40 + [[ -n ${TIMEZONE} ]] && echo "${TIMEZONE}" > "${ROOT}"/etc/timezone
41 + )
42 + fi
43 +
44 + # skip remaining migration if we already have openrc installed
45 has_version sys-apps/openrc && return 0
46
47 # baselayout bootmisc init script has been split out in OpenRC
48
49
50
51 --
52 gentoo-commits@l.g.o mailing list