diff options
Diffstat (limited to 'meta-oe/recipes-extended/tzdata/tzdata.inc')
-rw-r--r-- | meta-oe/recipes-extended/tzdata/tzdata.inc | 178 |
1 files changed, 178 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/tzdata/tzdata.inc b/meta-oe/recipes-extended/tzdata/tzdata.inc new file mode 100644 index 000000000..732ebb376 --- /dev/null +++ b/meta-oe/recipes-extended/tzdata/tzdata.inc | |||
@@ -0,0 +1,178 @@ | |||
1 | DESCRIPTION = "Timezone data" | ||
2 | SECTION = "base" | ||
3 | PRIORITY = "optional" | ||
4 | DEPENDS = "tzcode-native" | ||
5 | |||
6 | INC_PR = "r9" | ||
7 | |||
8 | DEFAULT_TIMEZONE ?= "Europe/London" | ||
9 | |||
10 | RCONFLICTS_${PN} = "timezones timezone-africa timezone-america timezone-antarctica \ | ||
11 | timezone-arctic timezone-asia timezone-atlantic \ | ||
12 | timezone-australia timezone-europe timezone-indian \ | ||
13 | timezone-iso3166.tab timezone-pacific timezone-zone.tab" | ||
14 | |||
15 | SRC_URI = "ftp://elsie.nci.nih.gov/pub/tzdata${PV}.tar.gz;subdir=${BPN}-${PV}" | ||
16 | |||
17 | TZONES= "africa antarctica asia australasia europe northamerica southamerica \ | ||
18 | factory solar87 solar88 solar89 etcetera backward systemv \ | ||
19 | " | ||
20 | # pacificnew \ | ||
21 | |||
22 | CONFFILES_${PN} = "${sysconfdir}/timezone ${sysconfdir}/localtime" | ||
23 | |||
24 | do_compile () { | ||
25 | mkdir -p build | ||
26 | for zone in ${TZONES}; do \ | ||
27 | ${STAGING_BINDIR_NATIVE}/zic -d ${S}/build${datadir}/zoneinfo -L /dev/null \ | ||
28 | -y ${S}/yearistype.sh ${S}/${zone} ; \ | ||
29 | ${STAGING_BINDIR_NATIVE}/zic -d ${S}/build${datadir}/zoneinfo/posix -L /dev/null \ | ||
30 | -y ${S}/yearistype.sh ${S}/${zone} ; \ | ||
31 | ${STAGING_BINDIR_NATIVE}/zic -d ${S}/build${datadir}/zoneinfo/right -L ${S}/leapseconds \ | ||
32 | -y ${S}/yearistype.sh ${S}/${zone} ; \ | ||
33 | done | ||
34 | } | ||
35 | |||
36 | do_install () { | ||
37 | install -d ${D}${prefix} ${D}${datadir}/zoneinfo | ||
38 | cp -pPR ${S}/build${prefix}/* ${D}${prefix} | ||
39 | # Only eglibc is removing zoneinfo files from package | ||
40 | if [ "${LIBC}"x = "eglibc"x ] ; then | ||
41 | cp -pP "${S}/zone.tab" ${D}${datadir}/zoneinfo | ||
42 | cp -pP "${S}/iso3166.tab" ${D}${datadir}/zoneinfo | ||
43 | fi | ||
44 | |||
45 | # Install a sane default for timezones | ||
46 | install -d ${D}${sysconfdir} | ||
47 | echo ${DEFAULT_TIMEZONE} > ${D}${sysconfdir}/timezone | ||
48 | cp -pPR ${S}/build${datadir}/zoneinfo/${DEFAULT_TIMEZONE} ${D}${sysconfdir}/localtime | ||
49 | } | ||
50 | |||
51 | PACKAGE_ARCH = "all" | ||
52 | # Packages primarily organized by directory with a major city | ||
53 | # in most time zones in the base package | ||
54 | |||
55 | PACKAGES = "${PN}-dbg tzdata tzdata-misc tzdata-posix tzdata-right tzdata-africa \ | ||
56 | tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia \ | ||
57 | tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific" | ||
58 | |||
59 | ALLOW_EMPTY_${PN}-dbg = "1" | ||
60 | |||
61 | FILES_tzdata-africa += "${datadir}/zoneinfo/Africa/*" | ||
62 | RPROVIDES_tzdata-africa = "tzdata-africa" | ||
63 | |||
64 | FILES_tzdata-americas += "${datadir}/zoneinfo/America/* \ | ||
65 | ${datadir}/zoneinfo/US/* \ | ||
66 | ${datadir}/zoneinfo/Brazil/* \ | ||
67 | ${datadir}/zoneinfo/Canada/* \ | ||
68 | ${datadir}/zoneinfo/Mexico/* \ | ||
69 | ${datadir}/zoneinfo/Chile/*" | ||
70 | RPROVIDES_tzdata-americas = "tzdata-americas" | ||
71 | |||
72 | FILES_tzdata-antarctica += "${datadir}/zoneinfo/Antarctica/*" | ||
73 | RPROVIDES_tzdata-antarctica = "tzdata-antarctica" | ||
74 | |||
75 | FILES_tzdata-arctic += "${datadir}/zoneinfo/Arctic/*" | ||
76 | RPROVIDES_tzdata-arctic = "tzdata-arctic" | ||
77 | |||
78 | FILES_tzdata-asia += "${datadir}/zoneinfo/Asia/* \ | ||
79 | ${datadir}/zoneinfo/Indian/* \ | ||
80 | ${datadir}/zoneinfo/Mideast/*" | ||
81 | RPROVIDES_tzdata-asia = "tzdata-asia" | ||
82 | |||
83 | FILES_tzdata-atlantic += "${datadir}/zoneinfo/Atlantic/*" | ||
84 | RPROVIDES_tzdata-atlantic = "tzdata-atlantic" | ||
85 | |||
86 | FILES_tzdata-australia += "${datadir}/zoneinfo/Australia/*" | ||
87 | RPROVIDES_tzdata-australia = "tzdata-australia" | ||
88 | |||
89 | FILES_tzdata-europe += "${datadir}/zoneinfo/Europe/*" | ||
90 | RPROVIDES_tzdata-europe = "tzdata-europe" | ||
91 | |||
92 | FILES_tzdata-pacific += "${datadir}/zoneinfo/Pacific/*" | ||
93 | RPROVIDES_tzdata-pacific = "tzdata-pacific" | ||
94 | |||
95 | FILES_tzdata-posix += "${datadir}/zoneinfo/posix/*" | ||
96 | RPROVIDES_tzdata-posix = "tzdata-posix" | ||
97 | |||
98 | FILES_tzdata-right += "${datadir}/zoneinfo/right/*" | ||
99 | RPROVIDES_tzdata-right = "tzdata-right" | ||
100 | |||
101 | |||
102 | FILES_tzdata-misc += "${datadir}/zoneinfo/Cuba \ | ||
103 | ${datadir}/zoneinfo/Egypt \ | ||
104 | ${datadir}/zoneinfo/Eire \ | ||
105 | ${datadir}/zoneinfo/Factory \ | ||
106 | ${datadir}/zoneinfo/GB-Eire \ | ||
107 | ${datadir}/zoneinfo/Hongkong \ | ||
108 | ${datadir}/zoneinfo/Iceland \ | ||
109 | ${datadir}/zoneinfo/Iran \ | ||
110 | ${datadir}/zoneinfo/Israel \ | ||
111 | ${datadir}/zoneinfo/Jamaica \ | ||
112 | ${datadir}/zoneinfo/Japan \ | ||
113 | ${datadir}/zoneinfo/Kwajalein \ | ||
114 | ${datadir}/zoneinfo/Libya \ | ||
115 | ${datadir}/zoneinfo/Navajo \ | ||
116 | ${datadir}/zoneinfo/Poland \ | ||
117 | ${datadir}/zoneinfo/Portugal \ | ||
118 | ${datadir}/zoneinfo/Singapore \ | ||
119 | ${datadir}/zoneinfo/Turkey" | ||
120 | RPROVIDES_tzdata-misc = "tzdata-misc" | ||
121 | |||
122 | |||
123 | FILES_${PN} += "${datadir}/zoneinfo/Pacific/Honolulu \ | ||
124 | ${datadir}/zoneinfo/America/Anchorage \ | ||
125 | ${datadir}/zoneinfo/America/Los_Angeles \ | ||
126 | ${datadir}/zoneinfo/America/Denver \ | ||
127 | ${datadir}/zoneinfo/America/Chicago \ | ||
128 | ${datadir}/zoneinfo/America/New_York \ | ||
129 | ${datadir}/zoneinfo/America/Caracas \ | ||
130 | ${datadir}/zoneinfo/America/Sao_Paulo \ | ||
131 | ${datadir}/zoneinfo/Europe/London \ | ||
132 | ${datadir}/zoneinfo/Europe/Paris \ | ||
133 | ${datadir}/zoneinfo/Africa/Cairo \ | ||
134 | ${datadir}/zoneinfo/Europe/Moscow \ | ||
135 | ${datadir}/zoneinfo/Asia/Dubai \ | ||
136 | ${datadir}/zoneinfo/Asia/Karachi \ | ||
137 | ${datadir}/zoneinfo/Asia/Dhaka \ | ||
138 | ${datadir}/zoneinfo/Asia/Bankok \ | ||
139 | ${datadir}/zoneinfo/Asia/Hong_Kong \ | ||
140 | ${datadir}/zoneinfo/Asia/Tokyo \ | ||
141 | ${datadir}/zoneinfo/Australia/Perth \ | ||
142 | ${datadir}/zoneinfo/Australia/Darwin \ | ||
143 | ${datadir}/zoneinfo/Australia/Adelaide \ | ||
144 | ${datadir}/zoneinfo/Australia/Brisbane \ | ||
145 | ${datadir}/zoneinfo/Australia/Sydney \ | ||
146 | ${datadir}/zoneinfo/Pacific/Noumea \ | ||
147 | ${datadir}/zoneinfo/CET \ | ||
148 | ${datadir}/zoneinfo/CST6CDT \ | ||
149 | ${datadir}/zoneinfo/EET \ | ||
150 | ${datadir}/zoneinfo/EST \ | ||
151 | ${datadir}/zoneinfo/EST5EDT \ | ||
152 | ${datadir}/zoneinfo/GB \ | ||
153 | ${datadir}/zoneinfo/GMT \ | ||
154 | ${datadir}/zoneinfo/GMT+0 \ | ||
155 | ${datadir}/zoneinfo/GMT-0 \ | ||
156 | ${datadir}/zoneinfo/GMT0 \ | ||
157 | ${datadir}/zoneinfo/Greenwich \ | ||
158 | ${datadir}/zoneinfo/HST \ | ||
159 | ${datadir}/zoneinfo/MET \ | ||
160 | ${datadir}/zoneinfo/MST \ | ||
161 | ${datadir}/zoneinfo/MST7MDT \ | ||
162 | ${datadir}/zoneinfo/NZ \ | ||
163 | ${datadir}/zoneinfo/NZ-CHAT \ | ||
164 | ${datadir}/zoneinfo/PRC \ | ||
165 | ${datadir}/zoneinfo/PST8PDT \ | ||
166 | ${datadir}/zoneinfo/ROC \ | ||
167 | ${datadir}/zoneinfo/ROK \ | ||
168 | ${datadir}/zoneinfo/UCT \ | ||
169 | ${datadir}/zoneinfo/UTC \ | ||
170 | ${datadir}/zoneinfo/Universal \ | ||
171 | ${datadir}/zoneinfo/W-SU \ | ||
172 | ${datadir}/zoneinfo/WET \ | ||
173 | ${datadir}/zoneinfo/Zulu \ | ||
174 | ${datadir}/zoneinfo/Etc/* \ | ||
175 | ${datadir}/zoneinfo/iso3166.tab \ | ||
176 | ${datadir}/zoneinfo/zone.tab \ | ||
177 | ${sysconfdir}/localtime \ | ||
178 | ${sysconfdir}/timezone " | ||