From d51d0a5dcea970b7797259fbe78f5d1776fe528e Mon Sep 17 00:00:00 2001
From: Alexander Varnin <fenixk19@mail.ru>
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
@@ -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"
new file mode 100644
@@ -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
new file mode 100644
@@ -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