From patchwork Mon Feb 4 22:49:04 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 218102 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 46E512C02CB for ; Tue, 5 Feb 2013 09:49:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1F4EFA01BD; Mon, 4 Feb 2013 22:49:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EZrwIXSCau6k; Mon, 4 Feb 2013 22:49:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 54E27A01A6; Mon, 4 Feb 2013 22:49:21 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EA3868F753 for ; Mon, 4 Feb 2013 22:49:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CB27681C27 for ; Mon, 4 Feb 2013 22:49:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 42sL1WqEDELP for ; Mon, 4 Feb 2013 22:49:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2E59E84C65 for ; Mon, 4 Feb 2013 22:49:14 +0000 (UTC) Received: by mail-we0-f178.google.com with SMTP id x48so5562133wey.9 for ; Mon, 04 Feb 2013 14:49:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references; bh=u4ePbsuNc8RGIvLlmhH5RhVi3xgwCbxgbe7egeRTTOo=; b=IUUzvrpGDGHtmbEz27bwGPirLhm+l/NcZuPuxHTx3YHh8h3Z5CpuH+qFnPZjJAmfWl euXRXYSRkOFRXm6HdG5tcc9B/+njunfXu0S5zeZGx6oedJibD4n1PhVb6k8S2EnW1JNd g4kHvNVD+bb4f/xA1/FK2sqkzcGSEQEiTUA/g1yrJQHt+61OlYTDN2uWB97qk8EFyphj D6ZdKLggIrvzYc4SX0/1aF1J3FSN1vBU5NnK8EF3iLpZ+K8NuxkZADHOv39qL0Cq9KN/ 9NzdDKRChx3hLtyBYRvXBDRGuNcBpOrHIdzq7OHaiYboewV16DVrAjamg7kW3s0U13t+ OE7g== X-Received: by 10.194.216.5 with SMTP id om5mr3868050wjc.27.1360018153530; Mon, 04 Feb 2013 14:49:13 -0800 (PST) Received: from localhost.localdomain (ARennes-256-1-68-181.w90-32.abo.wanadoo.fr. [90.32.147.181]) by mx.google.com with ESMTPS id q13sm2003003wie.0.2013.02.04.14.49.12 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 04 Feb 2013 14:49:12 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Mon, 4 Feb 2013 23:49:04 +0100 Message-Id: <993882e19729f9067e31a82a7be6e6bd79a081f0.1360017945.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: References: In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 1/2] package/zic: new host package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Richard Braun This is the zone information compiler, used to compile the time zone database. Signed-off-by: Richard Braun [yann.morin.1998@free.fr: export ZIC for all to use] Signed-off-by: "Yann E. MORIN" --- package/zic/zic-fix-dependencies.patch | 27 +++++++++++++++++++++++++++ package/zic/zic.mk | 29 +++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 0 deletions(-) create mode 100644 package/zic/zic-fix-dependencies.patch create mode 100644 package/zic/zic.mk diff --git a/package/zic/zic-fix-dependencies.patch b/package/zic/zic-fix-dependencies.patch new file mode 100644 index 0000000..e1cbc12 --- /dev/null +++ b/package/zic/zic-fix-dependencies.patch @@ -0,0 +1,27 @@ +From 4a2a55a640dd9316dac5f31832064f28f59ab0ae Mon Sep 17 00:00:00 2001 +From: Richard Braun +Date: Fri, 4 Jan 2013 10:57:24 +0100 +Subject: [PATCH] zic: fix dependencies + +The yearistype script is provided by the tzdata package, and is required +at runtime only. +--- + Makefile | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/Makefile b/Makefile +index d76a81e..30df7dc 100644 +--- a/Makefile ++++ b/Makefile +@@ -349,7 +349,7 @@ version.h: + zdump: $(TZDOBJS) + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZDOBJS) $(LDLIBS) + +-zic: $(TZCOBJS) yearistype ++zic: $(TZCOBJS) + $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(TZCOBJS) $(LDLIBS) + + yearistype: yearistype.sh +-- +1.7.2.5 + diff --git a/package/zic/zic.mk b/package/zic/zic.mk new file mode 100644 index 0000000..3dec6af --- /dev/null +++ b/package/zic/zic.mk @@ -0,0 +1,29 @@ +############################################################# +# +# zic +# +############################################################# + +ZIC_VERSION = 2012j +ZIC_SOURCE = tzcode$(ZIC_VERSION).tar.gz +ZIC_SITE = http://www.iana.org/time-zones/repository/releases +ZIC_LICENSE = Public domain + +# Don't strip any path components during extraction. +define HOST_ZIC_EXTRACT_CMDS + gzip -d -c $(DL_DIR)/$(ZIC_SOURCE) \ + | $(TAR) --strip-components=0 -C $(@D) -xf - +endef + +define HOST_ZIC_BUILD_CMDS + $(HOST_MAKE_ENV) $(MAKE) -C $(@D) zic +endef + +define HOST_ZIC_INSTALL_CMDS + mkdir -p $(HOST_DIR)/usr/sbin + install -D -m 755 $(@D)/zic $(HOST_DIR)/usr/sbin/zic +endef + +$(eval $(host-generic-package)) + +ZIC = $(HOST_DIR)/usr/sbin/zic