Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/timezone-data: timezone-data-2008b.ebuild
Date: Tue, 25 Mar 2008 20:25:55
Message-Id: E1JeFiS-0005ZK-Ep@stork.gentoo.org
1 vapier 08/03/25 20:25:52
2
3 Modified: timezone-data-2008b.ebuild
4 Log:
5 looks like version bump lost some pieces
6 (Portage version: 2.2_pre5)
7
8 Revision Changes Path
9 1.2 sys-libs/timezone-data/timezone-data-2008b.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2008b.ebuild?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2008b.ebuild?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/timezone-data/timezone-data-2008b.ebuild?r1=1.1&r2=1.2
14
15 Index: timezone-data-2008b.ebuild
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2008b.ebuild,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- timezone-data-2008b.ebuild 24 Mar 2008 19:42:07 -0000 1.1
22 +++ timezone-data-2008b.ebuild 25 Mar 2008 20:25:51 -0000 1.2
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-libs/timezone-data/timezone-data-2008b.ebuild,v 1.1 2008/03/24 19:42:07 vapier Exp $
27 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/timezone-data/timezone-data-2008b.ebuild,v 1.2 2008/03/25 20:25:51 vapier Exp $
28
29 inherit eutils toolchain-funcs flag-o-matic
30
31 @@ -52,21 +52,29 @@
32
33 pkg_config() {
34 # make sure the /etc/localtime file does not get stale #127899
35 - local tz=$(unset TIMEZONE ; source "${ROOT}"/etc/conf.d/clock ; echo ${TIMEZONE-FOOKABLOIE})
36 - [[ -z ${tz} ]] && return 0
37 - if [[ ${tz} == "FOOKABLOIE" ]] ; then
38 - elog "You do not have TIMEZONE set in /etc/conf.d/clock."
39 - if [[ ! -e ${ROOT}/etc/localtime ]] ; then
40 - cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime
41 - elog "Setting /etc/localtime to Factory."
42 - else
43 - elog "Skipping auto-update of /etc/localtime."
44 + local tz src
45 +
46 + if [[ -e ${ROOT}/etc/timezone ]] ; then
47 + src="/etc/timezone"
48 + tz=$(<"${ROOT}"/etc/timezone)
49 + else
50 + src="/etc/conf.d/clock"
51 + tz=$(unset TIMEZONE ; source "${ROOT}"/etc/conf.d/clock ; echo ${TIMEZONE-FOOKABLOIE})
52 + [[ -z ${tz} ]] && return 0
53 + if [[ ${tz} == "FOOKABLOIE" ]] ; then
54 + elog "You do not have TIMEZONE set in /etc/conf.d/clock."
55 + if [[ ! -e ${ROOT}/etc/localtime ]] ; then
56 + cp -f "${ROOT}"/usr/share/zoneinfo/Factory "${ROOT}"/etc/localtime
57 + elog "Setting /etc/localtime to Factory."
58 + else
59 + elog "Skipping auto-update of /etc/localtime."
60 + fi
61 + return 0
62 fi
63 - return 0
64 fi
65
66 if [[ ! -e ${ROOT}/usr/share/zoneinfo/${tz} ]] ; then
67 - elog "You have an invalid TIMEZONE setting in /etc/conf.d/clock."
68 + elog "You have an invalid TIMEZONE setting in ${src}"
69 elog "Your /etc/localtime has been reset to Factory; enjoy!"
70 tz="Factory"
71 fi
72
73
74
75 --
76 gentoo-commits@l.g.o mailing list