[Buildroot] [git commit] tzdump: new host package

Peter Korsgaard peter at korsgaard.com
Tue Apr 8 22:25:19 UTC 2014


commit: http://git.buildroot.net/buildroot/commit/?id=75622c75fa6ea1309419d805f23c6f1fba5919f1
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

tzdump takes timezone info in the installed tzdata format, and
outputs timezone info parseable by uClibc.

[Peter: adjust host-zip dep, simplify build/install, use INSTALL variable]
Signed-off-by: Alexandre Belloni <alexandre.belloni at free-electrons.com>
[yann.morin.1998 at free.fr: split zic header-install to its own cset]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/tzdump/tzdump.mk |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/package/tzdump/tzdump.mk b/package/tzdump/tzdump.mk
new file mode 100644
index 0000000..3f035a5
--- /dev/null
+++ b/package/tzdump/tzdump.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# tzdump
+#
+################################################################################
+
+TZDUMP_VERSION = 65a10105564801094b18c3fcacf4dde4c44e4ab8
+TZDUMP_SITE = $(call github,alexandrebelloni,tzdump,$(TZDUMP_VERSION))
+HOST_TZDUMP_DEPENDENCIES = host-zic
+
+define HOST_TZDUMP_BUILD_CMDS
+	cd $(@D) && $(HOSTCC) $(HOST_CFLAGS) $(HOST_LDFLAGS) -o tzdump tzdump.c
+endef
+
+define HOST_TZDUMP_INSTALL_CMDS
+	$(INSTALL) -m 0755 -D $(@D)/tzdump $(HOST_DIR)/usr/sbin/tzdump
+endef
+
+$(eval $(host-generic-package))
+
+TZDUMP = $(HOST_DIR)/usr/sbin/tzdump


More information about the buildroot mailing list