[oe-commits] Jeremy Lainé : tzdata: make it possible to set default timezone
GIT User account
git at amethyst.openembedded.net
Wed Jan 21 16:06:29 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 378f7f0fbf124308792d6b6171178c5588135dc2
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=378f7f0fbf124308792d6b6171178c5588135dc2
Author: Jeremy Lainé <jeremy.laine at m4x.org>
Date: Wed Jan 21 17:04:44 2009 +0100
tzdata: make it possible to set default timezone
* make it possible to choose the default timezone by
setting the DEFAULT_TIMEZONE variable
---
packages/tzdata/tzdata_2007k.bb | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/packages/tzdata/tzdata_2007k.bb b/packages/tzdata/tzdata_2007k.bb
index 75c9f34..b1d7d39 100644
--- a/packages/tzdata/tzdata_2007k.bb
+++ b/packages/tzdata/tzdata_2007k.bb
@@ -3,7 +3,9 @@ SECTION = "base"
PRIORITY = "optional"
DEPENDS = "tzcode-native"
-PR = "r3.01"
+PR = "r4"
+
+DEFAULT_TIMEZONE ?= "Europe/London"
RCONFLICTS= "timezones timezone-africa timezone-america timezone-antarctica \
timezone-arctic timezone-asia timezone-atlantic \
@@ -38,8 +40,8 @@ do_install () {
# 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
+ echo ${DEFAULT_TIMEZONE} > ${D}${sysconfdir}/timezone
+ cp -pPR ${S}/usr/share/zoneinfo/${DEFAULT_TIMEZONE} ${D}${sysconfdir}/localtime
}
# Packages primarily organized by directory with a major city
More information about the Openembedded-commits
mailing list