# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/tzdata/tzdata.conf # Copyright (C) 2013 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- makeopt= makeinstopt= runconf=0 custextract='tzcode_extract' hook_add prepatch 5 'tzdata_extract' tzcode_extract() { local taropt_orig="$taropt" mkdir -p "${xsrctar%%.*}" taropt="-C ${xsrctar%%.*} $taropt_orig" autoextract_tar "$@" taropt="$taropt_orig" } tzdata_extract() { tar -v $taropt $(match_source_file -p tzdata) } tzdata_install() { TIMEZONES="africa antarctica asia australasia europe northamerica southamerica etcetera backward" mkdir -p $root/usr/share/zoneinfo/{,posix,right} zic -y ./yearistype -d $root/usr/share/zoneinfo -L /dev/null $TIMEZONES zic -y ./yearistype -d $root/usr/share/zoneinfo/posix -L /dev/null $TIMEZONES zic -y ./yearistype -d $root/usr/share/zoneinfo/right -L leapseconds $TIMEZONES zic -y ./yearistype -d $root/usr/share/zoneinfo -L/dev/null -p America/New_York install -p -m 644 zone.tab iso3166.tab $root/usr/share/zoneinfo/ install -m644 leap-seconds.list $root/usr/share/zoneinfo/ } hook_add inmake 5 tzdata_install