summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/tzdata/tzdata.inc
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-04-10 13:24:47 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2011-04-10 14:43:41 +0200
commit89500c583e0f1dc1b4ffdf72914e08e505e427e0 (patch)
treeb073036cc61aa34ca5ac9eec4d617366e0dcb3d5 /meta-oe/recipes-extended/tzdata/tzdata.inc
parente66079da37992abd54486488aa06a99bf7a4198c (diff)
downloadmeta-openembedded-89500c583e0f1dc1b4ffdf72914e08e505e427e0.tar.gz
recipes,classes: import a lot of recipes from meta-shr
* tested on shr-lite-image for om-gta02 and nokia900 (with meta-shr layer)
Diffstat (limited to 'meta-oe/recipes-extended/tzdata/tzdata.inc')
-rw-r--r--meta-oe/recipes-extended/tzdata/tzdata.inc178
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 @@
1DESCRIPTION = "Timezone data"
2SECTION = "base"
3PRIORITY = "optional"
4DEPENDS = "tzcode-native"
5
6INC_PR = "r9"
7
8DEFAULT_TIMEZONE ?= "Europe/London"
9
10RCONFLICTS_${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
15SRC_URI = "ftp://elsie.nci.nih.gov/pub/tzdata${PV}.tar.gz;subdir=${BPN}-${PV}"
16
17TZONES= "africa antarctica asia australasia europe northamerica southamerica \
18 factory solar87 solar88 solar89 etcetera backward systemv \
19 "
20# pacificnew \
21
22CONFFILES_${PN} = "${sysconfdir}/timezone ${sysconfdir}/localtime"
23
24do_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
36do_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
51PACKAGE_ARCH = "all"
52# Packages primarily organized by directory with a major city
53# in most time zones in the base package
54
55PACKAGES = "${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
59ALLOW_EMPTY_${PN}-dbg = "1"
60
61FILES_tzdata-africa += "${datadir}/zoneinfo/Africa/*"
62RPROVIDES_tzdata-africa = "tzdata-africa"
63
64FILES_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/*"
70RPROVIDES_tzdata-americas = "tzdata-americas"
71
72FILES_tzdata-antarctica += "${datadir}/zoneinfo/Antarctica/*"
73RPROVIDES_tzdata-antarctica = "tzdata-antarctica"
74
75FILES_tzdata-arctic += "${datadir}/zoneinfo/Arctic/*"
76RPROVIDES_tzdata-arctic = "tzdata-arctic"
77
78FILES_tzdata-asia += "${datadir}/zoneinfo/Asia/* \
79 ${datadir}/zoneinfo/Indian/* \
80 ${datadir}/zoneinfo/Mideast/*"
81RPROVIDES_tzdata-asia = "tzdata-asia"
82
83FILES_tzdata-atlantic += "${datadir}/zoneinfo/Atlantic/*"
84RPROVIDES_tzdata-atlantic = "tzdata-atlantic"
85
86FILES_tzdata-australia += "${datadir}/zoneinfo/Australia/*"
87RPROVIDES_tzdata-australia = "tzdata-australia"
88
89FILES_tzdata-europe += "${datadir}/zoneinfo/Europe/*"
90RPROVIDES_tzdata-europe = "tzdata-europe"
91
92FILES_tzdata-pacific += "${datadir}/zoneinfo/Pacific/*"
93RPROVIDES_tzdata-pacific = "tzdata-pacific"
94
95FILES_tzdata-posix += "${datadir}/zoneinfo/posix/*"
96RPROVIDES_tzdata-posix = "tzdata-posix"
97
98FILES_tzdata-right += "${datadir}/zoneinfo/right/*"
99RPROVIDES_tzdata-right = "tzdata-right"
100
101
102FILES_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"
120RPROVIDES_tzdata-misc = "tzdata-misc"
121
122
123FILES_${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 "