From patchwork Fri Sep 28 16:20:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Varnin X-Patchwork-Id: 187830 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 1FB8A2C00B6 for ; Sat, 29 Sep 2012 02:20:28 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 51BA410BB39; Fri, 28 Sep 2012 16:20:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RX5nnDLU+PKS; Fri, 28 Sep 2012 16:20:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8057A10B8FF; Fri, 28 Sep 2012 16:20: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 8B08E8F74B for ; Fri, 28 Sep 2012 16:20:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 76C228E869 for ; Fri, 28 Sep 2012 16:20:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6ZNG4o5vRxvA for ; Fri, 28 Sep 2012 16:20:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp3.mail.ru (smtp3.mail.ru [94.100.176.131]) by whitealder.osuosl.org (Postfix) with ESMTPS id 69F158D6E7 for ; Fri, 28 Sep 2012 16:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=Content-Type:In-Reply-To:References:Subject:To:MIME-Version:From:Date:Message-ID; bh=MFCAmbtXHjekTjMQIh0m4I9bzFxcspzxD/UPfBHQ0pQ=; b=VcsS7rv6oeMmOVA8fYuA/9WCRArf1CJz/3LMceZdFgFJkAqLaID7rJMO7JljjmftWc3TMIKxhZX18hwA9OGnnyl31YtpU1bMSJ/OY4pHUAtlGzYKgDoixgYKygLvbUaj; Received: from [46.28.89.34] (port=59850 helo=[10.1.1.191]) by smtp3.mail.ru with esmtpa (envelope-from ) id 1THdIX-000528-3Y for buildroot@busybox.net; Fri, 28 Sep 2012 20:20:17 +0400 Message-ID: <5065CE40.70500@mail.ru> Date: Fri, 28 Sep 2012 20:20:16 +0400 From: Alexander Varnin User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: buildroot@busybox.net References: <5065CDD1.2000502@mail.ru> In-Reply-To: <5065CDD1.2000502@mail.ru> X-Spam: Not detected X-Mras: Ok Subject: Re: [Buildroot] Support for package liblog4c-localtime 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Sorry, forget to include patch file. 28.09.2012 20:18, Alexander Varnin пишет: > Hello. > I've added package to buildroot to support liblog4c logging library > (the version with localtime patch). > Please, include it in the main tree. > Alexander. > _______________________________________________ > buildroot mailing list > buildroot@busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot From d51d0a5dcea970b7797259fbe78f5d1776fe528e Mon Sep 17 00:00:00 2001 From: Alexander Varnin Date: Fri, 28 Sep 2012 13:37:55 +0400 Subject: [PATCH] New package liblog4c-localtime --- package/Config.in | 1 + package/liblog4c-localtime/Config.in | 9 +++++ package/liblog4c-localtime/liblog4c-localtime.mk | 35 ++++++++++++++++++++++ 3 files changed, 45 insertions(+), 0 deletions(-) create mode 100644 package/liblog4c-localtime/Config.in create mode 100644 package/liblog4c-localtime/liblog4c-localtime.mk diff --git a/package/Config.in b/package/Config.in index 8a7c9c4..25752e5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -387,6 +387,7 @@ source "package/lttng-libust/Config.in" source "package/orc/Config.in" source "package/poco/Config.in" source "package/startup-notification/Config.in" +source "package/liblog4c-localtime/Config.in" endmenu menu "Text and terminal handling" diff --git a/package/liblog4c-localtime/Config.in b/package/liblog4c-localtime/Config.in new file mode 100644 index 0000000..db1a76f --- /dev/null +++ b/package/liblog4c-localtime/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_LIBLOG4C + bool "liblog4c" + help + Log4c is a library of C for flexible logging to files, syslog + and other destinations. + This version is with localtime patch, to make lib show times in + local timezone. + + https://github.com/rcmadruga/log4c-localtime diff --git a/package/liblog4c-localtime/liblog4c-localtime.mk b/package/liblog4c-localtime/liblog4c-localtime.mk new file mode 100644 index 0000000..c80c3e7 --- /dev/null +++ b/package/liblog4c-localtime/liblog4c-localtime.mk @@ -0,0 +1,35 @@ + ############################################################# + # + # liblog4c + # + ############################################################# + LIBLOG4C_VERSION = 1.2.1 + LIBLOG4C_SOURCE = libfoo-$(LIBLOG4C_VERSION).tar.gz + LIBLOG4C_SITE = git://github.com/rcmadruga/log4c-localtime.git + LIBLOG4C_INSTALL_STAGING = NO + LIBLOG4C_DEPENDENCIES = + + define LIBLOG4C_BUILD_CMDS + $(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all + endef + + define LIBLOG4C_INSTALL_STAGING_CMDS + $(INSTALL) -D -m 0755 $(@D)/liblog4c.a $(STAGING_DIR)/usr/lib/liblog4c.a + $(INSTALL) -D -m 0644 $(@D)/liblog4c.h $(STAGING_DIR)/usr/include/liblog4c.h + $(INSTALL) -D -m 0755 $(@D)/liblog4c.so* $(STAGING_DIR)/usr/lib + endef + + define LIBLOG4C_INSTALL_TARGET_CMDS + $(INSTALL) -D -m 0755 $(@D)/liblog4c.so* $(TARGET_DIR)/usr/lib + #$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/foo.d + endef + + define LIBLOG4C_DEVICES + #/dev/foo c 666 0 0 42 0 - - - + endef + + define LIBLOG4C_PERMISSIONS + # /bin/foo f 4755 0 0 - - - - - + endef + + $(eval $(generic-package)) -- 1.7.2.5