#!/bin/bash # tzdata # # Douglas Thrift # # $Id$ name=tzdata version=2007c revision=0 categories=(base misc) description='Time zone and daylight saving time data' url='ftp://elsie.nci.nih.gov/pub/' depends=('base/glibc') sources=(ftp://elsie.nci.nih.gov/pub/$name$version.tar.gz) # XXX: add install/upgrade to set /etc/localtime function build() { install -dv $package/usr/share/zoneinfo || return $? for zone in africa antarctica asia australasia europe northamerica southamerica etcetera factory solar8[7-9] backward systemv; do zic -d $package/usr/share/zoneinfo -y yearistype.sh $zone || return $? zic -d $package/usr/share/zoneinfo/posix -y yearistype.sh $zone || return $? zic -d $package/usr/share/zoneinfo/right -L leapseconds -y yearistype.sh $zone || return $? done zic -d $package/usr/share/zoneinfo -p America/New_York || return $? install -v -m 0644 *.tab $package/usr/share/zoneinfo }