summaryrefslogtreecommitdiff
path: root/packages/tzdata/tzdata_2007k.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tzdata/tzdata_2007k.bb')
-rw-r--r--packages/tzdata/tzdata_2007k.bb11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/tzdata/tzdata_2007k.bb b/packages/tzdata/tzdata_2007k.bb
index 76bbfe9ca3..20a77faf0c 100644
--- a/packages/tzdata/tzdata_2007k.bb
+++ b/packages/tzdata/tzdata_2007k.bb
@@ -19,6 +19,8 @@ TZONES= "africa antarctica asia australasia europe northamerica southamerica \
# pacificnew \
"
+CONFFILES_${PN} = "${sysconfdir}/timezone"
+
do_compile () {
for zone in ${TZONES}; do \
${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo -L /dev/null \
@@ -33,6 +35,11 @@ do_compile () {
do_install () {
install -d ${D}/usr ${D}${datadir}/zoneinfo
cp -pPR ${S}/usr ${D}/
+
+ # Install a sane default for timezones
+ install -d ${D}${sysconfdir}
+ echo "Europe/London" > ${D}${sysconfdir}/timezone
+ cp -pPR ${S}/usr/share/zoneinfo/Europe/London ${D}${sysconfdir}/localtime
}
# Packages primarily organized by directory with a major city
@@ -157,4 +164,6 @@ FILES_${PN} += "${datadir}/zoneinfo/Pacific/Honolulu \
${datadir}/zoneinfo/W-SU \
${datadir}/zoneinfo/WET \
${datadir}/zoneinfo/Zulu \
- ${datadir}/zoneinfo/Etc/*"
+ ${datadir}/zoneinfo/Etc/* \
+ ${sysconfdir}/localtime \
+ ${sysconfdir}/timezone "