--- plamo/00_base/old/timezone-20160609/PlamoBuild.timezone-2015g 2016-06-09 08:15:41.000000000 +0900 +++ plamo/00_base/timezone/PlamoBuild.timezone-2016f 2016-09-10 23:56:28.000000000 +0900 @@ -1,16 +1,18 @@ #!/bin/sh ###################################################################### -url="http://www.iana.org/time-zones/repository/releases/tzcode2015g.tar.gz - http://www.iana.org/time-zones/repository/releases/tzdata2015g.tar.gz +url="http://www.iana.org/time-zones/repository/releases/tzcode2016f.tar.gz + http://www.iana.org/time-zones/repository/releases/tzdata2016f.tar.gz ftp://plamo.linet.gr.jp/pub/Plamo-src.new/plamo/00_base/timezone/plamo_timeconfig.tar.gz" pkgbase=timezone -vers=2015g +vers=2016f arch=`uname -m` -build=P3 +build=P1 src=$pkgbase-$vers +patchfiles="" OPT_CONFIG="" -DOCS="CONTRIBUTING NEWS README Theory tz-art.htm tz-link.htm" +DOCS="CONTRIBUTING LICENSE NEWS README Theory tz-art.htm + tz-how-to.html tz-link.htm" ###################################################################### fscheck() { @@ -218,9 +220,9 @@ xz|txz) tar xvpJf ${i##*/} ;; esac done - mkdir timezone-2015g - tar xvpzf tzcode2015g.tar.gz -C timezone-2015g - tar xvpzf tzdata2015g.tar.gz -C timezone-2015g + mkdir timezone-2016f + tar xvpzf tzcode2016f.tar.gz -C timezone-2016f + tar xvpzf tzdata2016f.tar.gz -C timezone-2016f tar xvpzf plamo_timeconfig.tar.gz fi if [ $opt_config -eq 1 ] ; then @@ -229,6 +231,17 @@ done for i in `seq 0 $((${#B[@]} - 1))` ; do cd ${B[$i]} + for j in ${patchfiles[$i]} ; do + case ${j##*.} in + gz) gunzip -c $W/$j | patch -Np1 -i - ;; + bz2) bunzip2 -c $W/j | patch -Np1 -i - ;; + xz) unxz -c $W/$j | patch -Np1 -i - ;; + *) patch -Np1 -i $W/$j ;; + esac + done + done + for i in `seq 0 $((${#B[@]} - 1))` ; do + cd ${B[$i]} if [ -f Makefile ] ; then make clean fi @@ -269,6 +282,7 @@ done install -d $P/usr/sbin install $W/plamo_timeconfig/usr/sbin/timeconfig $P/usr/sbin + mv $P/usr/share/zoneinfo{,.new} install -d $P/var/log/setup for i in {,e}setup.timeconfig ; do install $W/plamo_timeconfig/var/log/setup/$i $P/var/log/setup @@ -298,9 +312,22 @@ touch -t `date '+%m%d0900'` $docdir/$src convert prune_symlink $P/usr/share + cat <<- "EOF" >> $P/install/doinst.sh + + if [ -h usr/share/zoneinfo/localtime ] ; then + ln -sf `readlink usr/share/zoneinfo/localtime` \ + usr/share/zoneinfo.new/localtime + fi + mkdir usr/share/zoneinfo.tmp + mv usr/share/zoneinfo.new usr/share/zoneinfo.tmp + rm -rf usr/share/zoneinfo + mv usr/share/zoneinfo.tmp/zoneinfo.new usr/share/zoneinfo + rmdir usr/share/zoneinfo.tmp + EOF + touch -t `date '+%m%d0900'` $P/install/doinst.sh tar cvpf $pkg.tar -C $P `cd $P ; find usr/sbin | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir | tail -n+2` - tar rvpf $pkg.tar -C $P usr/share/zoneinfo{,-posix,-leaps} + tar rvpf $pkg.tar -C $P usr/share/zoneinfo{.new,-posix,-leaps} tar rvpf $pkg.tar -C $P var/log/setup tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man3 | tail -n+2` tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man5 | tail -n+2`