commit 7ddcfcdd2836575bdf6d7aec0c076ff7d133b66b Author: Jay Larson Date: Thu Oct 27 12:20:36 2016 -0500 First check in diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0f85ff4 --- /dev/null +++ b/Makefile @@ -0,0 +1,70 @@ +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation here: +# (http://www.gnu.org/licenses/gpl-2.0.html) +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +DEPENDS = +ARCH = x86_64 +URL = https://www.iana.org/time-zones +DESC = The Time Zone Database (often called tz or zoneinfo) contains code \ +and data that represent the history of local time for many representative \ +locations around the globe +SNAPVER = sr0 + +ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) +TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') +SRCDIR := SRCDIR +PATCHDIR := $(PWD)/SRC/patches +VERSION := $(shell echo $(ARCHIVE)|egrep -o '[0-9]+[a-z]+')$(SNAPVER) + +include /usr/share/snap/Makefile.snaplinux + +$(SRCDIR)/version: $(ARCHIVE) + @install -v -d -m 755 $(SRCDIR) + @if [ '$(TYPE)' == 'application/x-bzip2' ]; then \ + tar -jxf $(ARCHIVE) -C $(SRCDIR); \ + elif [ '$(TYPE)' == 'application/x-gzip' ]; then \ + tar -zxf $(ARCHIVE) -C $(SRCDIR); \ + elif [ '$(TYPE)' == 'application/x-tar' ]; then \ + tar -xf $(ARCHIVE) -C $(SRCDIR); \ + elif [ '$(TYPE)' == 'application/x-xz' ]; then \ + tar -xf $(ARCHIVE) -C $(SRCDIR); \ + else \ + echo 'Unable to determine archive type'; \ + exit 1; \ + fi + @touch $(SRCDIR)/version + +$(ROOT): $(SRCDIR)/version + @if [ -d $(ROOT) ]; then \ + touch $(ROOT); \ + else \ + mkdir -v $(ROOT); \ + fi + + @cd $(SRCDIR) && \ + install -v -d -m 755 $(ROOT)/usr/share/zoneinfo/{posix,right} && \ + for tz in etcetera southamerica northamerica europe africa \ + antarctica asia australasia backward pacificnew; do \ + pwd && \ + zic -L /dev/null -d $(ROOT)/usr/share/zoneinfo \ + -y "sh yearistype.sh" $$tz && \ + zic -L /dev/null -d $(ROOT)/usr/share/zoneinfo/posix \ + -y "sh yearistype.sh" $$tz && \ + zic -L leapseconds -d $(ROOT)/usr/share/zoneinfo/right \ + -y "sh yearistype.sh" $$tz; \ + done && \ + cp -v zone.tab iso3166.tab $(ROOT)/usr/share/zoneinfo + +clean: + @rm -rvf $(ROOT) \ + $(SNAPINFO) \ + $(MANIFEST) \ + $(FILES) \ + $(SRCDIR) + diff --git a/SNAP/README b/SNAP/README new file mode 100644 index 0000000..19a3ff1 --- /dev/null +++ b/SNAP/README @@ -0,0 +1,3 @@ +This is the directory where the manifest, snapinfo, and files.tar.gz +files will be created. It is also where the usher file should be +placed if it is required by the package. diff --git a/SRC/patches/README b/SRC/patches/README new file mode 100644 index 0000000..253cdcd --- /dev/null +++ b/SRC/patches/README @@ -0,0 +1,2 @@ +Place any patch files here and preface each with a number indicating +the order of execution. Patch files are expected to use a .patch extension. diff --git a/SRC/tzdata2016h.tar.gz b/SRC/tzdata2016h.tar.gz new file mode 100644 index 0000000..6f55781 Binary files /dev/null and b/SRC/tzdata2016h.tar.gz differ diff --git a/SRC/tzdata2016h.tar.gz.asc b/SRC/tzdata2016h.tar.gz.asc new file mode 100644 index 0000000..1bda81a --- /dev/null +++ b/SRC/tzdata2016h.tar.gz.asc @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1 + +iQIcBAABAgAGBQJYCGLlAAoJEO2X6Q5iqn40FNcP/RX7P5yEnZCRQ4FHHSFg9oIN +Hsbp+7R9J9ap5egW8qPVu4HXzmbIzVbED/iCYWah+OMHI9ivJhRTVgPMhHcGco/k +Qe8cb72EJIFc/N62BJyPoi48XqrDlw7bJGUuP0+bQGDG8Mik6RqTfOw3kUiUZT+y +9d/NfjQv8k/ASVxaag4FTKhcC9GeKHT51GDdFY9cRam4dgADXdqqsDAhPPeBeKrU +hcZEtXaFYZzYvdBjmR7jK/2OYsSGatFeZY5aHxUi4dEmQ2WTv5/3nj6uOe1oHTjw +X+xxrYcqINxPC3ss/VHT1fn8X1gQSsbAo/Vp9M9njdXCXCoOu/pSvpnyS4TZi/a6 +CGSeGOr3Bz2hYQ1zIegr1QQgcgaK8LP/kl9IJ7dm6yBLVo0NZulzsJ9hRyZwDgWV ++BhaPt5IZ0ktQNW8vU5HXrF7ic4qGdCKbcZOUr3DJaOcGHN92QpXS2cgvfZN/+8S +uOWGdbCJIcaBmdfe3v9m4I/CKXi8ymb5ZXMDrPwkY6mDokqCG6s6Wfo++zlh1PPT +E3Ix3HXfgYBrmByRxtJFwvI/l0VbzpfvOd4HcKuzWQltR5WYvPzdPB6HHLQGdsj7 +2BFVXkFPKm1c0NMwB7u5xxvQiVRn1fjz+nLcP9BgZqASCVtREDu91GbRsNntFjzM +MbBfIJc99AZIjc9hBjeI +=dGny +-----END PGP SIGNATURE-----