diff options
author | Koen Kooi <koen@openembedded.org> | 2007-03-04 13:49:17 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-03-04 13:49:17 +0000 |
commit | 62b6b808de09df06357be12e5692edc95c785200 (patch) | |
tree | cb3ed20b37a29944927df5e0a49445abe7c575f2 | |
parent | 151a8207b45bb70ebcdd8978af6f66ce566d591a (diff) |
tzcode, tzdata: update to something that actually is fetchable, remove hardcoded paths, install binaries in correct staging dir and make sure we use the correct 'zic'
-rw-r--r-- | packages/tzcode/tzcode-native_2007c.bb (renamed from packages/tzcode/tzcode-native_2007a.bb) | 8 | ||||
-rw-r--r-- | packages/tzdata/tzdata_2007a.bb | 158 | ||||
-rw-r--r-- | packages/tzdata/tzdata_2007c.bb | 156 |
3 files changed, 160 insertions, 162 deletions
diff --git a/packages/tzcode/tzcode-native_2007a.bb b/packages/tzcode/tzcode-native_2007c.bb index 1c6e2f59b8..126658bd39 100644 --- a/packages/tzcode/tzcode-native_2007a.bb +++ b/packages/tzcode/tzcode-native_2007c.bb @@ -1,6 +1,6 @@ DESCRIPTION = "tzcode, timezone zoneinfo utils -- zic, zdump, tzselect" -PR = "r0" +PR = "r1" SRC_URI = "ftp://elsie.nci.nih.gov/pub/tzcode${PV}.tar.gz \ ftp://elsie.nci.nih.gov/pub/tzdata${PV}.tar.gz" @@ -10,9 +10,9 @@ S = "${WORKDIR}" inherit native do_stage () { - install -m 755 zic ${STAGING_BINDIR} - install -m 755 zdump ${STAGING_BINDIR} - install -m 755 tzselect ${STAGING_BINDIR} + install -m 755 zic ${STAGING_BINDIR_NATIVE} + install -m 755 zdump ${STAGING_BINDIR_NATIVE} + install -m 755 tzselect ${STAGING_BINDIR_NATIVE} } do_install () { diff --git a/packages/tzdata/tzdata_2007a.bb b/packages/tzdata/tzdata_2007a.bb deleted file mode 100644 index e5007e8310..0000000000 --- a/packages/tzdata/tzdata_2007a.bb +++ /dev/null @@ -1,158 +0,0 @@ -DESCRIPTION = "Timezone data" -SECTION = "base" -PRIORITY = "optional" -DEPENDS = "tzcode-native" - -PROVIDES = "tzdata tzdata-misc tzdata-posix tzdata-right tzdata-africa \ - tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia \ - tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific" -RPROVIDES = "tzdata" -RCONFLICTS= "timezone-africa timezone-america timezone-antarctica \ - timezone-arctic timezone-asia timezone-atlantic \ - timezone-australia timezone-europe timezone-indian \ - timezone-iso3166.tab timezone-pacific timezone-zone.tab" - -PR = "r0" - -SRC_URI = "ftp://elsie.nci.nih.gov/pub/tzdata${PV}.tar.gz" - -S = "${WORKDIR}" - -TZONES= "africa antarctica asia australasia europe northamerica southamerica \ - factory solar87 solar88 solar89 etcetera backward systemv \ -# pacificnew \ - " - -do_compile () { - for zone in ${TZONES}; do \ - zic -d ${WORKDIR}/usr/share/zoneinfo -L /dev/null \ - -y ${S}/yearistype.sh ${S}/${zone} ; \ - zic -d ${WORKDIR}/usr/share/zoneinfo/posix -L /dev/null \ - -y ${S}/yearistype.sh ${S}/${zone} ; \ - zic -d ${WORKDIR}/usr/share/zoneinfo/right -L ${S}/leapseconds \ - -y ${S}/yearistype.sh ${S}/${zone} ; \ - done -} - -do_install () { - install -d ${D}/usr ${D}/usr/share ${D}/usr/share/zoneinfo - cp -pPR ${S}/usr ${D}/ -} - -# Packages primarily organized by directory with a major city -# in most time zones in the base package - -PACKAGES = "tzdata tzdata-misc tzdata-posix tzdata-right tzdata-africa \ - tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia \ - tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific" - -FILES_tzdata-africa += "/usr/share/zoneinfo/Africa/*" -RPROVIDES_tzdata-africa = "tzdata-africa" - -FILES_tzdata-americas += "/usr/share/zoneinfo/America/* \ - /usr/share/zoneinfo/US/* \ - /usr/share/zoneinfo/Brazil/* \ - /usr/share/zoneinfo/Canada/* \ - /usr/share/zoneinfo/Mexico/* \ - /usr/share/zoneinfo/Chile/*" -RPROVIDES_tzdata-americas = "tzdata-americas" - -FILES_tzdata-antarctica += "/usr/share/zoneinfo/Antarctica/*" -RPROVIDES_tzdata-antarctica = "tzdata-antarctica" - -FILES_tzdata-arctic += "/usr/share/zoneinfo/Arctic/*" -RPROVIDES_tzdata-arctic = "tzdata-arctic" - -FILES_tzdata-asia += "/usr/share/zoneinfo/Asia/* \ - /usr/share/zoneinfo/Indian/* \ - /usr/share/zoneinfo/Mideast/*" -RPROVIDES_tzdata-asia = "tzdata-asia" - -FILES_tzdata-atlantic += "/usr/share/zoneinfo/Atlantic/*" -RPROVIDES_tzdata-atlantic = "tzdata-atlantic" - -FILES_tzdata-australia += "/usr/share/zoneinfo/Australia/*" -RPROVIDES_tzdata-australia = "tzdata-australia" - -FILES_tzdata-europe += "/usr/share/zoneinfo/Europe/*" -RPROVIDES_tzdata-europe = "tzdata-europe" - -FILES_tzdata-pacific += "/usr/share/zoneinfo/Pacific/*" -RPROVIDES_tzdata-pacific = "tzdata-pacific" - -FILES_tzdata-posix += "/usr/share/zoneinfo/posix/*" -RPROVIDES_tzdata-posix = "tzdata-posix" - -FILES_tzdata-right += "/usr/share/zoneinfo/right/*" -RPROVIDES_tzdata-right = "tzdata-right" - - -FILES_tzdata-misc += "/usr/share/zoneinfo/Cuba \ - /usr/share/zoneinfo/Egypt \ - /usr/share/zoneinfo/Eire \ - /usr/share/zoneinfo/Factory \ - /usr/share/zoneinfo/GB-Eire \ - /usr/share/zoneinfo/Hongkong \ - /usr/share/zoneinfo/Iceland \ - /usr/share/zoneinfo/Iran \ - /usr/share/zoneinfo/Israel \ - /usr/share/zoneinfo/Jamaica \ - /usr/share/zoneinfo/Japan \ - /usr/share/zoneinfo/Kwajalein \ - /usr/share/zoneinfo/Libya \ - /usr/share/zoneinfo/Navajo \ - /usr/share/zoneinfo/Poland \ - /usr/share/zoneinfo/Portugal \ - /usr/share/zoneinfo/Singapore \ - /usr/share/zoneinfo/Turkey" -RPROVIDES_tzdata-misc = "tzdata-misc" - - -FILES_${PN} += "/usr/share/zoneinfo/Pacific/Honolulu \ - /usr/share/zoneinfo/America/Anchorage \ - /usr/share/zoneinfo/America/Los_Angeles \ - /usr/share/zoneinfo/America/Denver \ - /usr/share/zoneinfo/America/Chicago \ - /usr/share/zoneinfo/America/New_York \ - /usr/share/zoneinfo/America/Caracas \ - /usr/share/zoneinfo/America/Sao_Paulo \ - /usr/share/zoneinfo/Europe/London \ - /usr/share/zoneinfo/Europe/Paris \ - /usr/share/zoneinfo/Africa/Cairo \ - /usr/share/zoneinfo/Europe/Moscow \ - /usr/share/zoneinfo/Asia/Dubai \ - /usr/share/zoneinfo/Asia/Karachi \ - /usr/share/zoneinfo/Asia/Dhaka \ - /usr/share/zoneinfo/Asia/Bankok \ - /usr/share/zoneinfo/Asia/Hong_Kong \ - /usr/share/zoneinfo/Asia/Tokyo \ - /usr/share/zoneinfo/Australia/Sydney \ - /usr/share/zoneinfo/Pacific/Noumea \ - /usr/share/zoneinfo/CET \ - /usr/share/zoneinfo/CST6CDT \ - /usr/share/zoneinfo/EET \ - /usr/share/zoneinfo/EST \ - /usr/share/zoneinfo/EST5EDT \ - /usr/share/zoneinfo/GB \ - /usr/share/zoneinfo/GMT \ - /usr/share/zoneinfo/GMT+0 \ - /usr/share/zoneinfo/GMT-0 \ - /usr/share/zoneinfo/GMT0 \ - /usr/share/zoneinfo/Greenwich \ - /usr/share/zoneinfo/HST \ - /usr/share/zoneinfo/MET \ - /usr/share/zoneinfo/MST \ - /usr/share/zoneinfo/MST7MDT \ - /usr/share/zoneinfo/NZ \ - /usr/share/zoneinfo/NZ-CHAT \ - /usr/share/zoneinfo/PRC \ - /usr/share/zoneinfo/PST8PDT \ - /usr/share/zoneinfo/ROC \ - /usr/share/zoneinfo/ROK \ - /usr/share/zoneinfo/UCT \ - /usr/share/zoneinfo/UTC \ - /usr/share/zoneinfo/Universal \ - /usr/share/zoneinfo/W-SU \ - /usr/share/zoneinfo/WET \ - /usr/share/zoneinfo/Zulu \ - /usr/share/zoneinfo/Etc/*" diff --git a/packages/tzdata/tzdata_2007c.bb b/packages/tzdata/tzdata_2007c.bb new file mode 100644 index 0000000000..3b6c45502b --- /dev/null +++ b/packages/tzdata/tzdata_2007c.bb @@ -0,0 +1,156 @@ +DESCRIPTION = "Timezone data" +SECTION = "base" +PRIORITY = "optional" +DEPENDS = "tzcode-native" + +PROVIDES = "tzdata tzdata-misc tzdata-posix tzdata-right tzdata-africa \ + tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia \ + tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific" +RPROVIDES = "tzdata" +RCONFLICTS= "timezone-africa timezone-america timezone-antarctica \ + timezone-arctic timezone-asia timezone-atlantic \ + timezone-australia timezone-europe timezone-indian \ + timezone-iso3166.tab timezone-pacific timezone-zone.tab" + +SRC_URI = "ftp://elsie.nci.nih.gov/pub/tzdata${PV}.tar.gz" + +S = "${WORKDIR}" + +TZONES= "africa antarctica asia australasia europe northamerica southamerica \ + factory solar87 solar88 solar89 etcetera backward systemv \ +# pacificnew \ + " + +do_compile () { + for zone in ${TZONES}; do \ + ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo -L /dev/null \ + -y ${S}/yearistype.sh ${S}/${zone} ; \ + ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo/posix -L /dev/null \ + -y ${S}/yearistype.sh ${S}/${zone} ; \ + ${STAGING_BINDIR_NATIVE}/zic -d ${WORKDIR}${datadir}/zoneinfo/right -L ${S}/leapseconds \ + -y ${S}/yearistype.sh ${S}/${zone} ; \ + done +} + +do_install () { + install -d ${D}/usr ${D}${datadir}/zoneinfo + cp -pPR ${S}/usr ${D}/ +} + +# Packages primarily organized by directory with a major city +# in most time zones in the base package + +PACKAGES = "tzdata tzdata-misc tzdata-posix tzdata-right tzdata-africa \ + tzdata-americas tzdata-antarctica tzdata-arctic tzdata-asia \ + tzdata-atlantic tzdata-australia tzdata-europe tzdata-pacific" + +FILES_tzdata-africa += "${datadir}/zoneinfo/Africa/*" +RPROVIDES_tzdata-africa = "tzdata-africa" + +FILES_tzdata-americas += "${datadir}/zoneinfo/America/* \ + ${datadir}/zoneinfo/US/* \ + ${datadir}/zoneinfo/Brazil/* \ + ${datadir}/zoneinfo/Canada/* \ + ${datadir}/zoneinfo/Mexico/* \ + ${datadir}/zoneinfo/Chile/*" +RPROVIDES_tzdata-americas = "tzdata-americas" + +FILES_tzdata-antarctica += "${datadir}/zoneinfo/Antarctica/*" +RPROVIDES_tzdata-antarctica = "tzdata-antarctica" + +FILES_tzdata-arctic += "${datadir}/zoneinfo/Arctic/*" +RPROVIDES_tzdata-arctic = "tzdata-arctic" + +FILES_tzdata-asia += "${datadir}/zoneinfo/Asia/* \ + ${datadir}/zoneinfo/Indian/* \ + ${datadir}/zoneinfo/Mideast/*" +RPROVIDES_tzdata-asia = "tzdata-asia" + +FILES_tzdata-atlantic += "${datadir}/zoneinfo/Atlantic/*" +RPROVIDES_tzdata-atlantic = "tzdata-atlantic" + +FILES_tzdata-australia += "${datadir}/zoneinfo/Australia/*" +RPROVIDES_tzdata-australia = "tzdata-australia" + +FILES_tzdata-europe += "${datadir}/zoneinfo/Europe/*" +RPROVIDES_tzdata-europe = "tzdata-europe" + +FILES_tzdata-pacific += "${datadir}/zoneinfo/Pacific/*" +RPROVIDES_tzdata-pacific = "tzdata-pacific" + +FILES_tzdata-posix += "${datadir}/zoneinfo/posix/*" +RPROVIDES_tzdata-posix = "tzdata-posix" + +FILES_tzdata-right += "${datadir}/zoneinfo/right/*" +RPROVIDES_tzdata-right = "tzdata-right" + + +FILES_tzdata-misc += "${datadir}/zoneinfo/Cuba \ + ${datadir}/zoneinfo/Egypt \ + ${datadir}/zoneinfo/Eire \ + ${datadir}/zoneinfo/Factory \ + ${datadir}/zoneinfo/GB-Eire \ + ${datadir}/zoneinfo/Hongkong \ + ${datadir}/zoneinfo/Iceland \ + ${datadir}/zoneinfo/Iran \ + ${datadir}/zoneinfo/Israel \ + ${datadir}/zoneinfo/Jamaica \ + ${datadir}/zoneinfo/Japan \ + ${datadir}/zoneinfo/Kwajalein \ + ${datadir}/zoneinfo/Libya \ + ${datadir}/zoneinfo/Navajo \ + ${datadir}/zoneinfo/Poland \ + ${datadir}/zoneinfo/Portugal \ + ${datadir}/zoneinfo/Singapore \ + ${datadir}/zoneinfo/Turkey" +RPROVIDES_tzdata-misc = "tzdata-misc" + + +FILES_${PN} += "${datadir}/zoneinfo/Pacific/Honolulu \ + ${datadir}/zoneinfo/America/Anchorage \ + ${datadir}/zoneinfo/America/Los_Angeles \ + ${datadir}/zoneinfo/America/Denver \ + ${datadir}/zoneinfo/America/Chicago \ + ${datadir}/zoneinfo/America/New_York \ + ${datadir}/zoneinfo/America/Caracas \ + ${datadir}/zoneinfo/America/Sao_Paulo \ + ${datadir}/zoneinfo/Europe/London \ + ${datadir}/zoneinfo/Europe/Paris \ + ${datadir}/zoneinfo/Africa/Cairo \ + ${datadir}/zoneinfo/Europe/Moscow \ + ${datadir}/zoneinfo/Asia/Dubai \ + ${datadir}/zoneinfo/Asia/Karachi \ + ${datadir}/zoneinfo/Asia/Dhaka \ + ${datadir}/zoneinfo/Asia/Bankok \ + ${datadir}/zoneinfo/Asia/Hong_Kong \ + ${datadir}/zoneinfo/Asia/Tokyo \ + ${datadir}/zoneinfo/Australia/Sydney \ + ${datadir}/zoneinfo/Pacific/Noumea \ + ${datadir}/zoneinfo/CET \ + ${datadir}/zoneinfo/CST6CDT \ + ${datadir}/zoneinfo/EET \ + ${datadir}/zoneinfo/EST \ + ${datadir}/zoneinfo/EST5EDT \ + ${datadir}/zoneinfo/GB \ + ${datadir}/zoneinfo/GMT \ + ${datadir}/zoneinfo/GMT+0 \ + ${datadir}/zoneinfo/GMT-0 \ + ${datadir}/zoneinfo/GMT0 \ + ${datadir}/zoneinfo/Greenwich \ + ${datadir}/zoneinfo/HST \ + ${datadir}/zoneinfo/MET \ + ${datadir}/zoneinfo/MST \ + ${datadir}/zoneinfo/MST7MDT \ + ${datadir}/zoneinfo/NZ \ + ${datadir}/zoneinfo/NZ-CHAT \ + ${datadir}/zoneinfo/PRC \ + ${datadir}/zoneinfo/PST8PDT \ + ${datadir}/zoneinfo/ROC \ + ${datadir}/zoneinfo/ROK \ + ${datadir}/zoneinfo/UCT \ + ${datadir}/zoneinfo/UTC \ + ${datadir}/zoneinfo/Universal \ + ${datadir}/zoneinfo/W-SU \ + ${datadir}/zoneinfo/WET \ + ${datadir}/zoneinfo/Zulu \ + ${datadir}/zoneinfo/Etc/*" |