PATCH_LIST="old-timezone-systemv.patch" FILE_LIST= SRC_FETCH_METHOD=ftp # retrieval method : # can be svn, git, http, ftp, filesystem # SRC_FETCH_METHOD=http # SRC_FETCH_PATH="ftp://ftp.iana.org/tz/releases/tzdata${PKGVER}.tar.gz" # retrieval path : # SRC_FETCH_PATH=http://foo.com/test.tar.bz2 # # Use FLXHOSTOS, FLXHOSTARCH, HOSTCC, HOSTCXX for the machine used to build. # Use FLXTARGOS, FLXTARGARCH, CC, CXX, LD, for the target machine. # FLXMAKE usually is 'make', FLXPMAKE usually is 'make -j 2' # Build tools are in /$FLXTOOLDIR, toolchain root dir is /$FLXROOTDIR. # Current dir is /$CURDIR, package dir is /$PKGDIR, dest root dir is /$ROOTDIR. # Package name is $PKGRADIX-$PKGVER-$DISTVER # optimize for size #FLXARCH=$FLX_ARCH_SMALL FLXARCH=noarch #MAKEDEPENDS=( 'glibc-2.*:::private.h' ) MAKEDEPENDS= # format : # MAKEDEPENDS='packagename:versfx:architecture:globbing' # # exemple : # MAKEDEPENDS='tplparser-0local-flx0.0:albdev:i586:*.a *.h' function do_config { tar xzf .flxpkg/add-ons/tzcode-latest.tar.gz make zic } export TAR_STRIP_COMP=0 ZONEINFO=.build function do_clean() { make clean rm -rf $ZONEINFO } function do_compile_only { local tz mkdir -pv $ZONEINFO/{posix,right} # tar xvzf .src [ -e Makefile ] && make leapseconds for tz in etcetera southamerica northamerica europe africa antarctica \ asia australasia backward pacificnew solar87 solar88 solar89 \ systemv; do echo -n "Producing ${tz} ... " ./zic -L /dev/null -d $ZONEINFO -y "sh yearistype.sh" ${tz} &&\ ./zic -L /dev/null -d $ZONEINFO/posix -y "sh yearistype.sh" ${tz} &&\ ./zic -L leapseconds -d $ZONEINFO/right -y "sh yearistype.sh" ${tz} &&\ echo "OK" || echo "ERROR" done # tz="systemv" # sed -ei "s,^## Zone,Zone," ${tz} # ./zic -L /dev/null -d $ZONEINFO_OLDS -y "sh yearistype.sh" ${tz} # ./zic -L /dev/null -d $ZONEINFO_OLDS/posix -y "sh yearistype.sh" ${tz} # ./zic -L /dev/null -d $ZONEINFO_OLDS/right -y "sh yearistype.sh" ${tz} cp -v zone.tab iso3166.tab $ZONEINFO echo -n "Producing America/New_York ... " ./zic -d $ZONEINFO -p America/New_York && echo "OK" || echo "ERROR" unset ZONEINFO } function do_prepack { mkdir -pv $ROOTDIR/usr/share/zoneinfo cp -arf .build/* $ROOTDIR/usr/share/zoneinfo set_default_perm $ROOTDIR/usr/share/zoneinfo }