Project import
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..61b4558 --- /dev/null +++ b/Makefile
@@ -0,0 +1,91 @@ +# +# Copyright (c) 2010-2011 Nest, Inc. +# All rights reserved. +# +# This document is the property of Nest. It is considered +# confidential and proprietary information. +# +# This document may not be reproduced or transmitted in any form, +# in whole or in part, without the express written permission of +# Nest. +# +# Description: +# This file is the make file tzcode and tzdata, executables and +# data required for the implementation of standard local time +# for many representative locations around the globe. +# + +.NOTPARALLEL: + + +include pre.mak + +SubMakefiles := tzcode.mak \ + tzdata.mak + +# Override the build directory so that the three make files that make +# up this collective package all build in the same directory. + +BuildDirectory := $(call GenerateConditionalBuildQualifiedDirectory,$(BuildBaseDirectory)) + +all: $(PackageDefaultGoal) + +# Prepare the sources. While there's nothing to do here, we need to +# recurse through the sub-make files. + +$(BuildDirectory)/source: $(SubMakefiles) | $(BuildDirectory) + $(Verbose)touch $@ + +# Patch the sources, if necessary (nothing to do, this is handled by +# the sub-make files). + +$(BuildDirectory)/patch: $(BuildDirectory)/source | $(BuildDirectory) + $(Verbose)touch $@ + +# Configure the source for building (nothing to do, this is handled by +# the sub-make files). + +$(BuildDirectory)/configure: $(BuildDirectory)/source | $(BuildDirectory) + $(Verbose)touch $@ + +# Build the source. +# +# We have to unset MAKEFLAGS since they confuse the package build otherwise. + +$(BuildDirectory)/build: $(BuildDirectory)/configure | $(ResultDirectory) $(BuildDirectory) + $(Verbose)unset MAKEFLAGS && \ + $(MAKE) $(JOBSFLAG) -C $(BuildDirectory) \ + INSTALL="$(INSTALL) $(INSTALLFLAGS)" \ + TOPDIR=$(ResultDirectory) \ + all + $(Verbose)touch $@ + +# Stage the build to a temporary installation area. + +$(BuildDirectory)/stage: $(BuildDirectory)/stage-default $(BuildDirectory)/stage-header + +# We have to unset MAKEFLAGS since they confuse the package build otherwise. + +$(BuildDirectory)/stage-default: $(BuildDirectory)/build | $(ResultDirectory) $(BuildDirectory) + $(Verbose)unset MAKEFLAGS && \ + $(MAKE) $(JOBSFLAG) -C $(BuildDirectory) \ + INSTALL="$(INSTALL) $(INSTALLFLAGS)" \ + TOPDIR=$(ResultDirectory) \ + install + $(Verbose)touch $@ + +# Other packages depend on the header, tzfile.h. Manually and +# explicitly stage this in the results directory so they can find it. + +$(BuildDirectory)/stage-header: $(BuildDirectory)/build | $(ResultDirectory) $(BuildDirectory) + $(Verbose)$(INSTALL) $(INSTALLFLAGS) -d $(call GenerateResultPaths,,usr/include) + $(Verbose)$(INSTALL) $(INSTALLFLAGS) $(BuildDirectory)/tzfile.h $(call GenerateResultPaths,,usr/include/tzfile.h) + $(Verbose)touch $@ + +.PHONY: stage +stage: $(BuildDirectory)/stage + +clean: + $(Verbose)$(RM) $(RMFLAGS) -r $(ResultDirectory) + +include post.mak
diff --git a/tzcode.mak b/tzcode.mak new file mode 100644 index 0000000..fe7270e --- /dev/null +++ b/tzcode.mak
@@ -0,0 +1,103 @@ +# +# Copyright (c) 2010-2012 Nest Labs, Inc. +# All rights reserved. +# +# This document is the property of Nest. It is considered +# confidential and proprietary information. +# +# This document may not be reproduced or transmitted in any form, +# in whole or in part, without the express written permission of +# Nest. +# +# Description: +# This file is the make file tzcode, executables required for +# the implementation of standard local time for many +# representative locations around the globe. +# + +include pre.mak + +# Override the build directory so that the three make files that make +# up this collective package all build in the same directory. + +BuildDirectory := $(call GenerateConditionalBuildQualifiedDirectory,$(BuildBaseDirectory)) + +PackageName := tzcode + +PackageExtension := tar.gz +PackageSeparator := + +PackagePatchArgs := -p1 + +PackageArchive := $(PackageName).$(PackageExtension) +PackageSourceDir := $(PackageName)$(PackageSeparator)$(PackageVersion) + +PackageBuildMakefile := $(call GenerateBuildPaths,Makefile) + +PackageLicenseInputs := $(PackageSourceDir)/tzfile.h + +CleanPaths += $(PackageLicenseFile) + +SOURCEDIRS = $(PackageSourceDir) +$(PackageSourceDir)_RULE_TARGET = $(BuildDirectory)/configure + +all: $(PackageDefaultGoal) + +# Generate the package license contents. + +$(PackageLicenseInputs): $(BuildDirectory)/source + +$(PackageLicenseFile): $(PackageLicenseInputs) + $(Verbose)$(SED) -n -e '/^\/\*/,/\*\/$$/{;p;/\*\/$$/q;}' < $< > $@ + +# Extract the source from the archive and apply patches, if any. +# +# Unlike most third-party software packages, the tzcode archive does not +# contain a directory that encloses its sources. So, we have to create one +# manually to avoid cluttering up our "glue" directory with its sources. + +$(PackageSourceDir): $(PackageArchive) $(PackagePatchPaths) + $(create-directory) + $(call expand-archive,$(PackageArchive),$(@)) + $(Verbose)touch $(@) + $(call patch-directory,$(@),$(PackagePatchArgs),$(PackagePatchPaths)) + +# Prepare the sources. + +$(BuildDirectory)/source: | $(PackageSourceDir) + $(Verbose)touch $@ + +# Patch the sources, if necessary. + +$(BuildDirectory)/patch: $(BuildDirectory)/source + $(Verbose)touch $@ + +# Generate the package build makefile. + +$(PackageBuildMakefile): | $(PackageSourceDir) $(BuildDirectory) + $(call create-links,$(CURDIR)/$(PackageSourceDir),$(BuildDirectory)) + +# Configure the source for building. + +$(BuildDirectory)/configure: $(BuildDirectory)/source $(PackageBuildMakefile) + $(Verbose)touch $@ + +# Build the source (there's nothing to do here). + +$(BuildDirectory)/build: $(BuildDirectory)/configure + $(Verbose)touch $@ + +# Stage the build to a temporary installation area (there's nothing to +# do here). + +$(BuildDirectory)/stage: $(BuildDirectory)/build + $(Verbose)touch $@ + +.PHONY: stage +stage: $(BuildDirectory)/stage + +clean: + $(Verbose)$(RM) $(RMFLAGS) -r $(PackageSourceDir) + $(Verbose)$(RM) $(RMFLAGS) -r $(BuildDirectory) + +include post.mak
diff --git a/tzcode.tar.gz b/tzcode.tar.gz new file mode 100644 index 0000000..75b91e1 --- /dev/null +++ b/tzcode.tar.gz Binary files differ
diff --git a/tzcode.url b/tzcode.url new file mode 100644 index 0000000..5c28c74 --- /dev/null +++ b/tzcode.url
@@ -0,0 +1 @@ +https://www.iana.org/time-zones/repository/releases/tzcode2015g.tar.gz
diff --git a/tzcode.version b/tzcode.version new file mode 100644 index 0000000..6d1891e --- /dev/null +++ b/tzcode.version
@@ -0,0 +1 @@ +2015g
diff --git a/tzdata.mak b/tzdata.mak new file mode 100644 index 0000000..0cb4529 --- /dev/null +++ b/tzdata.mak
@@ -0,0 +1,93 @@ +# +# Copyright (c) 2010-2012 Nest Labs, Inc. +# All rights reserved. +# +# This document is the property of Nest. It is considered +# confidential and proprietary information. +# +# This document may not be reproduced or transmitted in any form, +# in whole or in part, without the express written permission of +# Nest. +# +# Description: +# This file is the make file tzdata, data required for +# the implementation of standard local time for many +# representative locations around the globe. +# + + +include pre.mak + +# Override the build directory so that the three make files that make +# up this collective package all build in the same directory. + +BuildDirectory := $(call GenerateConditionalBuildQualifiedDirectory,$(BuildBaseDirectory)) + +PackageName := tzdata + +PackageExtension := tar.gz +PackageSeparator := + +PackagePatchArgs := -p1 + +PackageArchive := $(PackageName).$(PackageExtension) +PackageSourceDir := $(PackageName)$(PackageSeparator)$(PackageVersion) + +PackageBuildScript := $(call GenerateBuildPaths,yearistype.sh) + +SOURCEDIRS = $(PackageSourceDir) +$(PackageSourceDir)_RULE_TARGET = $(BuildDirectory)/configure + +all: $(PackageDefaultGoal) + +# Extract the source from the archive and apply patches, if any. +# +# Unlike most third-party software packages, the tzdata archive does not +# contain a directory that encloses its sources. So, we have to create one +# manually to avoid cluttering up our "glue" directory with its sources. + +$(PackageSourceDir): $(PackageArchive) $(PackagePatchPaths) + $(create-directory) + $(call expand-archive,$(PackageArchive),$(@)) + $(Verbose)touch $(@) + $(call patch-directory,$(@),$(PackagePatchArgs),$(PackagePatchPaths)) + +# Prepare the sources. + +$(BuildDirectory)/source: | $(PackageSourceDir) + $(Verbose)touch $@ + +# Patch the sources, if necessary. + +$(BuildDirectory)/patch: $(BuildDirectory)/source + $(Verbose)touch $@ + +# Generate the package build makefile. + +$(PackageBuildScript): | $(PackageSourceDir) $(BuildDirectory) + $(call create-links,$(CURDIR)/$(PackageSourceDir),$(BuildDirectory)) + +# Configure the source for building. + +$(BuildDirectory)/configure: $(BuildDirectory)/source $(PackageBuildScript) + $(Verbose)touch $@ + +# Build the source (there's nothing to do here). + +$(BuildDirectory)/build: $(BuildDirectory)/configure + $(Verbose)touch $@ + +# Stage the build to a temporary installation area (there's nothing to +# do here). + +$(BuildDirectory)/stage: $(BuildDirectory)/build + $(Verbose)touch $@ + +.PHONY: stage +stage: $(BuildDirectory)/stage + +clean: + $(Verbose)$(RM) $(RMFLAGS) -r $(PackageSourceDir) + $(Verbose)$(RM) $(RMFLAGS) -r $(BuildDirectory) + +include post.mak
diff --git a/tzdata.tar.gz b/tzdata.tar.gz new file mode 100644 index 0000000..26908de --- /dev/null +++ b/tzdata.tar.gz Binary files differ
diff --git a/tzdata.url b/tzdata.url new file mode 100644 index 0000000..94dc4f3 --- /dev/null +++ b/tzdata.url
@@ -0,0 +1 @@ +https://www.iana.org/time-zones/repository/releases/tzdata2015g.tar.gz
diff --git a/tzdata.version b/tzdata.version new file mode 100644 index 0000000..6d1891e --- /dev/null +++ b/tzdata.version
@@ -0,0 +1 @@ +2015g