diff options
Diffstat (limited to 'meta/recipes-extended/tzdata/tzdata_2015e.bb')
-rw-r--r-- | meta/recipes-extended/tzdata/tzdata_2015e.bb | 205 |
1 files changed, 205 insertions, 0 deletions
diff --git a/meta/recipes-extended/tzdata/tzdata_2015e.bb b/meta/recipes-extended/tzdata/tzdata_2015e.bb new file mode 100644 index 0000000000..9179d7be4f --- /dev/null +++ b/meta/recipes-extended/tzdata/tzdata_2015e.bb | |||
@@ -0,0 +1,205 @@ | |||
1 | DESCRIPTION = "Timezone data" | ||
2 | HOMEPAGE = "http://www.iana.org/time-zones" | ||
3 | SECTION = "base" | ||
4 | LICENSE = "PD & BSD" | ||
5 | LIC_FILES_CHKSUM = "file://asia;beginline=2;endline=3;md5=996a9811747aa48db91ed239e5b355a1" | ||
6 | DEPENDS = "tzcode-native" | ||
7 | |||
8 | SRC_URI = "ftp://ftp.iana.org/tz/releases/tzdata${PV}.tar.gz;name=tzdata" | ||
9 | |||
10 | SRC_URI[tzdata.md5sum] = "36f9056efb432ca945c73397acfce0d4" | ||
11 | SRC_URI[tzdata.sha256sum] = "ffc9b5d38abda8277aa479e3f75aa7668819d0977cd1a0c8ef3b09128334ba6f" | ||
12 | |||
13 | inherit allarch | ||
14 | |||
15 | RCONFLICTS_${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 | |||
20 | S = "${WORKDIR}" | ||
21 | |||
22 | DEFAULT_TIMEZONE ?= "Universal" | ||
23 | |||
24 | TZONES= "africa antarctica asia australasia europe northamerica southamerica \ | ||
25 | factory etcetera backward systemv \ | ||
26 | " | ||
27 | # pacificnew | ||
28 | |||
29 | do_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 | |||
40 | do_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 | |||
60 | pkg_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 | |||
87 | PACKAGES = "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 | |||
91 | FILES_tzdata-africa += "${datadir}/zoneinfo/Africa/*" | ||
92 | RPROVIDES_tzdata-africa = "tzdata-africa" | ||
93 | |||
94 | FILES_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/*" | ||
100 | RPROVIDES_tzdata-americas = "tzdata-americas" | ||
101 | |||
102 | FILES_tzdata-antarctica += "${datadir}/zoneinfo/Antarctica/*" | ||
103 | RPROVIDES_tzdata-antarctica = "tzdata-antarctica" | ||
104 | |||
105 | FILES_tzdata-arctic += "${datadir}/zoneinfo/Arctic/*" | ||
106 | RPROVIDES_tzdata-arctic = "tzdata-arctic" | ||
107 | |||
108 | FILES_tzdata-asia += "${datadir}/zoneinfo/Asia/* \ | ||
109 | ${datadir}/zoneinfo/Indian/* \ | ||
110 | ${datadir}/zoneinfo/Mideast/*" | ||
111 | RPROVIDES_tzdata-asia = "tzdata-asia" | ||
112 | |||
113 | FILES_tzdata-atlantic += "${datadir}/zoneinfo/Atlantic/*" | ||
114 | RPROVIDES_tzdata-atlantic = "tzdata-atlantic" | ||
115 | |||
116 | FILES_tzdata-australia += "${datadir}/zoneinfo/Australia/*" | ||
117 | RPROVIDES_tzdata-australia = "tzdata-australia" | ||
118 | |||
119 | FILES_tzdata-europe += "${datadir}/zoneinfo/Europe/*" | ||
120 | RPROVIDES_tzdata-europe = "tzdata-europe" | ||
121 | |||
122 | FILES_tzdata-pacific += "${datadir}/zoneinfo/Pacific/*" | ||
123 | RPROVIDES_tzdata-pacific = "tzdata-pacific" | ||
124 | |||
125 | FILES_tzdata-posix += "${datadir}/zoneinfo/posix/*" | ||
126 | RPROVIDES_tzdata-posix = "tzdata-posix" | ||
127 | |||
128 | FILES_tzdata-right += "${datadir}/zoneinfo/right/*" | ||
129 | RPROVIDES_tzdata-right = "tzdata-right" | ||
130 | |||
131 | |||
132 | FILES_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" | ||
150 | RPROVIDES_tzdata-misc = "tzdata-misc" | ||
151 | |||
152 | |||
153 | FILES_${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/*" | ||