summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/tzdata/tzdata_2015g.bb207
1 files changed, 207 insertions, 0 deletions
diff --git a/meta/recipes-extended/tzdata/tzdata_2015g.bb b/meta/recipes-extended/tzdata/tzdata_2015g.bb
new file mode 100644
index 0000000000..039a7c1795
--- /dev/null
+++ b/meta/recipes-extended/tzdata/tzdata_2015g.bb
@@ -0,0 +1,207 @@
1DESCRIPTION = "Timezone data"
2HOMEPAGE = "http://www.iana.org/time-zones"
3SECTION = "base"
4LICENSE = "PD & BSD"
5LIC_FILES_CHKSUM = "file://asia;beginline=2;endline=3;md5=996a9811747aa48db91ed239e5b355a1"
6DEPENDS = "tzcode-native"
7
8SRC_URI = "ftp://ftp.iana.org/tz/releases/tzdata${PV}.tar.gz;name=tzdata"
9
10SRC_URI[tzdata.md5sum] = "8d46e8b225b9a04c75f5c39636435ad6"
11SRC_URI[tzdata.sha256sum] = "b923cdbf078491696b17bc8d069c74bce73fabc5774629da2f410c9b31576161"
12
13inherit allarch
14
15RCONFLICTS_${PN} = "timezones timezone-africa timezone-america timezone-antarctica \
16 timezone-arctic timezone-asia timezone-atlantic \
17 timezone-australia timezone-europe timezone-indian \
18 timezone-iso3166.tab timezone-pacific timezone-zone.tab"
19
20S = "${WORKDIR}"
21
22DEFAULT_TIMEZONE ?= "Universal"
23
24TZONES= "africa antarctica asia australasia europe northamerica southamerica \
25 factory etcetera backward systemv \
26 "
27# pacificnew
28
29do_compile () {
30 for zone in ${TZONES}; do \
31 ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo -L /dev/null \
32 -y ${S}/yearistype.sh ${S}/${zone} ; \
33 ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo/posix -L /dev/null \
34 -y ${S}/yearistype.sh ${S}/${zone} ; \
35 ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo/right -L ${S}/leapseconds \
36 -y ${S}/yearistype.sh ${S}/${zone} ; \
37 done
38}
39
40do_install () {
41 install -d ${D}/$exec_prefix ${D}${datadir}/zoneinfo
42 cp -pPR ${S}/$exec_prefix ${D}/
43 # libc is removing zoneinfo files from package
44 cp -pP "${S}/zone.tab" ${D}${datadir}/zoneinfo
45 cp -pP "${S}/iso3166.tab" ${D}${datadir}/zoneinfo
46
47 # Install default timezone
48 if [ -e ${D}${datadir}/zoneinfo/${DEFAULT_TIMEZONE} ]; then
49 install -d ${D}${sysconfdir}
50 echo ${DEFAULT_TIMEZONE} > ${D}${sysconfdir}/timezone
51 ln -s ${datadir}/zoneinfo/${DEFAULT_TIMEZONE} ${D}${sysconfdir}/localtime
52 else
53 bberror "DEFAULT_TIMEZONE is set to an invalid value."
54 exit 1
55 fi
56
57 chown -R root:root ${D}
58}
59
60pkg_postinst_${PN} () {
61 etc_lt="$D${sysconfdir}/localtime"
62 src="$D${sysconfdir}/timezone"
63
64 if [ -e ${src} ] ; then
65 tz=$(sed -e 's:#.*::' -e 's:[[:space:]]*::g' -e '/^$/d' "${src}")
66 fi
67
68 if [ -z "${tz}" ] ; then
69 exit 0
70 fi
71
72 if [ ! -e "$D${datadir}/zoneinfo/${tz}" ] ; then
73 echo "You have an invalid TIMEZONE setting in ${src}"
74 echo "Your ${etc_lt} has been reset to Universal; enjoy!"
75 tz="Universal"
76 echo "Updating ${etc_lt} with $D${datadir}/zoneinfo/${tz}"
77 if [ -L ${etc_lt} ] ; then
78 rm -f "${etc_lt}"
79 fi
80 ln -s "${datadir}/zoneinfo/${tz}" "${etc_lt}"
81 fi
82}
83
84# Packages primarily organized by directory with a major city
85# in most time zones in the base package
86
87PACKAGES = "tzdata tzdata-misc tzdata-posix tzdata-right tzdata-africa \
88 tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia \
89 tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific"
90
91FILES_tzdata-africa += "${datadir}/zoneinfo/Africa/*"
92RPROVIDES_tzdata-africa = "tzdata-africa"
93
94FILES_tzdata-americas += "${datadir}/zoneinfo/America/* \
95 ${datadir}/zoneinfo/US/* \
96 ${datadir}/zoneinfo/Brazil/* \
97 ${datadir}/zoneinfo/Canada/* \
98 ${datadir}/zoneinfo/Mexico/* \
99 ${datadir}/zoneinfo/Chile/*"
100RPROVIDES_tzdata-americas = "tzdata-americas"
101
102FILES_tzdata-antarctica += "${datadir}/zoneinfo/Antarctica/*"
103RPROVIDES_tzdata-antarctica = "tzdata-antarctica"
104
105FILES_tzdata-arctic += "${datadir}/zoneinfo/Arctic/*"
106RPROVIDES_tzdata-arctic = "tzdata-arctic"
107
108FILES_tzdata-asia += "${datadir}/zoneinfo/Asia/* \
109 ${datadir}/zoneinfo/Indian/* \
110 ${datadir}/zoneinfo/Mideast/*"
111RPROVIDES_tzdata-asia = "tzdata-asia"
112
113FILES_tzdata-atlantic += "${datadir}/zoneinfo/Atlantic/*"
114RPROVIDES_tzdata-atlantic = "tzdata-atlantic"
115
116FILES_tzdata-australia += "${datadir}/zoneinfo/Australia/*"
117RPROVIDES_tzdata-australia = "tzdata-australia"
118
119FILES_tzdata-europe += "${datadir}/zoneinfo/Europe/*"
120RPROVIDES_tzdata-europe = "tzdata-europe"
121
122FILES_tzdata-pacific += "${datadir}/zoneinfo/Pacific/*"
123RPROVIDES_tzdata-pacific = "tzdata-pacific"
124
125FILES_tzdata-posix += "${datadir}/zoneinfo/posix/*"
126RPROVIDES_tzdata-posix = "tzdata-posix"
127
128FILES_tzdata-right += "${datadir}/zoneinfo/right/*"
129RPROVIDES_tzdata-right = "tzdata-right"
130
131
132FILES_tzdata-misc += "${datadir}/zoneinfo/Cuba \
133 ${datadir}/zoneinfo/Egypt \
134 ${datadir}/zoneinfo/Eire \
135 ${datadir}/zoneinfo/Factory \
136 ${datadir}/zoneinfo/GB-Eire \
137 ${datadir}/zoneinfo/Hongkong \
138 ${datadir}/zoneinfo/Iceland \
139 ${datadir}/zoneinfo/Iran \
140 ${datadir}/zoneinfo/Israel \
141 ${datadir}/zoneinfo/Jamaica \
142 ${datadir}/zoneinfo/Japan \
143 ${datadir}/zoneinfo/Kwajalein \
144 ${datadir}/zoneinfo/Libya \
145 ${datadir}/zoneinfo/Navajo \
146 ${datadir}/zoneinfo/Poland \
147 ${datadir}/zoneinfo/Portugal \
148 ${datadir}/zoneinfo/Singapore \
149 ${datadir}/zoneinfo/Turkey"
150RPROVIDES_tzdata-misc = "tzdata-misc"
151
152
153FILES_${PN} += "${datadir}/zoneinfo/Pacific/Honolulu \
154 ${datadir}/zoneinfo/America/Anchorage \
155 ${datadir}/zoneinfo/America/Los_Angeles \
156 ${datadir}/zoneinfo/America/Denver \
157 ${datadir}/zoneinfo/America/Chicago \
158 ${datadir}/zoneinfo/America/New_York \
159 ${datadir}/zoneinfo/America/Caracas \
160 ${datadir}/zoneinfo/America/Sao_Paulo \
161 ${datadir}/zoneinfo/Europe/London \
162 ${datadir}/zoneinfo/Europe/Paris \
163 ${datadir}/zoneinfo/Africa/Cairo \
164 ${datadir}/zoneinfo/Europe/Moscow \
165 ${datadir}/zoneinfo/Asia/Dubai \
166 ${datadir}/zoneinfo/Asia/Karachi \
167 ${datadir}/zoneinfo/Asia/Dhaka \
168 ${datadir}/zoneinfo/Asia/Bankok \
169 ${datadir}/zoneinfo/Asia/Hong_Kong \
170 ${datadir}/zoneinfo/Asia/Tokyo \
171 ${datadir}/zoneinfo/Australia/Darwin \
172 ${datadir}/zoneinfo/Australia/Adelaide \
173 ${datadir}/zoneinfo/Australia/Brisbane \
174 ${datadir}/zoneinfo/Australia/Sydney \
175 ${datadir}/zoneinfo/Pacific/Noumea \
176 ${datadir}/zoneinfo/CET \
177 ${datadir}/zoneinfo/CST6CDT \
178 ${datadir}/zoneinfo/EET \
179 ${datadir}/zoneinfo/EST \
180 ${datadir}/zoneinfo/EST5EDT \
181 ${datadir}/zoneinfo/GB \
182 ${datadir}/zoneinfo/GMT \
183 ${datadir}/zoneinfo/GMT+0 \
184 ${datadir}/zoneinfo/GMT-0 \
185 ${datadir}/zoneinfo/GMT0 \
186 ${datadir}/zoneinfo/Greenwich \
187 ${datadir}/zoneinfo/HST \
188 ${datadir}/zoneinfo/MET \
189 ${datadir}/zoneinfo/MST \
190 ${datadir}/zoneinfo/MST7MDT \
191 ${datadir}/zoneinfo/NZ \
192 ${datadir}/zoneinfo/NZ-CHAT \
193 ${datadir}/zoneinfo/PRC \
194 ${datadir}/zoneinfo/PST8PDT \
195 ${datadir}/zoneinfo/ROC \
196 ${datadir}/zoneinfo/ROK \
197 ${datadir}/zoneinfo/UCT \
198 ${datadir}/zoneinfo/UTC \
199 ${datadir}/zoneinfo/Universal \
200 ${datadir}/zoneinfo/W-SU \
201 ${datadir}/zoneinfo/WET \
202 ${datadir}/zoneinfo/Zulu \
203 ${datadir}/zoneinfo/zone.tab \
204 ${datadir}/zoneinfo/iso3166.tab \
205 ${datadir}/zoneinfo/Etc/*"
206
207CONFFILES_${PN} += "${sysconfdir}/timezone ${sysconfdir}/localtime"