diff options
author | Holger Hans Peter Freyther <zecke@openmoko.org> | 2008-05-22 16:56:12 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2008-11-16 02:55:50 +0100 |
commit | c0adc285b189a273ea74abd5bd2505512175cbc3 (patch) | |
tree | 860da05c8aee94520d5c70f5d5db893d850332e6 /packages/tzdata | |
parent | e13eb6ed3ee15de931a517361ad80f9248798873 (diff) |
tzdata: Write a default /etc/timezone, install a /etc/localtime
Diffstat (limited to 'packages/tzdata')
-rw-r--r-- | packages/tzdata/tzdata_2007k.bb | 11 |
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 " |