install

installer
Log | Files | Refs | README | LICENSE | git clone https://git.ne02ptzero.me/git/install

commit 97f06d64b9bcec4a0c291ef17c778eee43225964
parent b19b04ee277dc503f507d195a05d8fbef12dfe61
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Wed, 14 Dec 2016 19:14:02 +0100

Finish(Glibc 2 Package): x2

Diffstat:
Mpkgs/glibc_p2/glibc_p2.py | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/pkgs/glibc_p2/glibc_p2.py b/pkgs/glibc_p2/glibc_p2.py @@ -90,9 +90,30 @@ class Glibc_P2: ("tr_TR", "UTF-8", "tr_TR.UTF-8"), ("zh_CN", "GB18030", "zh_CN.GB18030") ] + zoneinfo="/usr/share/zoneinfo" + locale_base = "America/New_York" + self.e(["cp", "-v", "../nscd/nscd.conf", "/etc/nscd.conf"]) self.e(["mkdir", "-pv", "/var/cache/nscd"]) self.e(["mkdir", "-pv", "/usr/lib/locale"]) for l in locales: self.e(["localedef", "-i", l[0], "-f", l[1], l[2]]) + + self.e(["tar", "xf", "../../tzdata2016f.tar.gz"]) + self.e(["mkdir", "-pv", zoneinfo + "/{posix,right}"], shell=True) + + self.e(["for tz in etcetera southamerica northamerica europe africa antarctica \ + asia australasia backward pacificnew systemv; do \ + 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} \ + done" + ], shell=True) + self.e(["cp", "-v", "zone.tab", "zone1970.tab", "iso3166.tab", zoneinfo]) + self.e(["zic", "-d", zoneinfo, "-p", "America/New_York"]) + self.e(["cp", "-v", "/usr/share/zoneinfo/" + locale_base, "/etc/localtime"]) + self.e(["mkdir", "-pv", "/etc/ld.so.conf.d"])