SF.net SVN: gar:[25144] csw/mgar/pkg

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed Jul 1 14:36:13 CEST 2015


Revision: 25144
          http://sourceforge.net/p/gar/code/25144
Author:   dmichelsen
Date:     2015-07-01 12:36:12 +0000 (Wed, 01 Jul 2015)
Log Message:
-----------
liblognorm/trunk: Initial commit

Added Paths:
-----------
    csw/mgar/pkg/liblognorm/
    csw/mgar/pkg/liblognorm/Makefile
    csw/mgar/pkg/liblognorm/branches/
    csw/mgar/pkg/liblognorm/tags/
    csw/mgar/pkg/liblognorm/trunk/
    csw/mgar/pkg/liblognorm/trunk/Makefile
    csw/mgar/pkg/liblognorm/trunk/checksums
    csw/mgar/pkg/liblognorm/trunk/files/
    csw/mgar/pkg/liblognorm/trunk/files/0001-Use-substitute-for-strndup.patch

Added: csw/mgar/pkg/liblognorm/Makefile
===================================================================
--- csw/mgar/pkg/liblognorm/Makefile	                        (rev 0)
+++ csw/mgar/pkg/liblognorm/Makefile	2015-07-01 12:36:12 UTC (rev 25144)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*

Index: csw/mgar/pkg/liblognorm/trunk
===================================================================
--- csw/mgar/pkg/liblognorm/trunk	2015-06-29 08:59:05 UTC (rev 25143)
+++ csw/mgar/pkg/liblognorm/trunk	2015-07-01 12:36:12 UTC (rev 25144)

Property changes on: csw/mgar/pkg/liblognorm/trunk
___________________________________________________________________
Added: svn:ignore
## -0,0 +1 ##
+work
Added: csw/mgar/pkg/liblognorm/trunk/Makefile
===================================================================
--- csw/mgar/pkg/liblognorm/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/liblognorm/trunk/Makefile	2015-07-01 12:36:12 UTC (rev 25144)
@@ -0,0 +1,47 @@
+# $Id$
+# TODO (release-critical prefixed with !, non release-critical with *)
+#
+NAME = liblognorm
+VERSION = 1.1.1
+GARTYPE = v2
+
+DESCRIPTION = Liblognorm shall help to make sense out of syslog data
+
+MASTER_SITES = http://www.liblognorm.com/files/download/
+DISTFILES += $(DISTNAME).tar.gz
+
+# Use patch until this is fixed:
+#   http://bugzilla.adiscon.com/show_bug.cgi?id=539
+PATCHFILES += 0001-Use-substitute-for-strndup.patch
+
+VENDOR_URL = http://www.liblognorm.com/
+
+BUILD_DEP_PKGS += CSWpy-sphinx
+BUILD_DEP_PKGS += CSWlibjson-c-dev
+BUILD_DEP_PKGS += CSWlibestr-dev
+
+PACKAGES += CSWliblognorm2
+SPKG_DESC_CSWliblognorm2 = Liblognorm shall help to make sense out of syslog data, liblognorm.so.2
+PKGFILES_CSWliblognorm2 += $(call pkgfiles_lib,liblognorm.so.2)
+RUNTIME_DEP_PKGS_CSWliblognorm2 += CSWlibjson-c3
+RUNTIME_DEP_PKGS_CSWliblognorm2 += CSWlibpcre1
+RUNTIME_DEP_PKGS_CSWliblognorm2 += CSWlibestr0
+
+PACKAGES += CSWliblognorm-dev
+SPKG_DESC_CSWliblognorm-dev = Deevelopment files for liblognorm
+RUNTIME_DEP_PKGS_CSWliblognorm-dev += CSWliblognorm2
+RUNTIME_DEP_PKGS_CSWliblognorm-dev += CSWlibjson-c3
+RUNTIME_DEP_PKGS_CSWliblognorm-dev += CSWlibestr0
+
+BUILD64 = 1
+ISAEXEC = 1
+
+CONFIGURE_ARGS += $(DIRPATHS)
+CONFIGURE_ARGS += --enable-regexp
+CONFIGURE_ARGS += --enable-docs
+
+# We GNU find as 'find'
+INSTALL_ENV_PATH = /opt/csw/gnu:$(PATH)
+
+include gar/category.mk
+


Property changes on: csw/mgar/pkg/liblognorm/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: csw/mgar/pkg/liblognorm/trunk/checksums
===================================================================
--- csw/mgar/pkg/liblognorm/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/liblognorm/trunk/checksums	2015-07-01 12:36:12 UTC (rev 25144)
@@ -0,0 +1 @@
+a5a452be3d0f187cdd589236d5e7e936  liblognorm-1.1.1.tar.gz

Added: csw/mgar/pkg/liblognorm/trunk/files/0001-Use-substitute-for-strndup.patch
===================================================================
--- csw/mgar/pkg/liblognorm/trunk/files/0001-Use-substitute-for-strndup.patch	                        (rev 0)
+++ csw/mgar/pkg/liblognorm/trunk/files/0001-Use-substitute-for-strndup.patch	2015-07-01 12:36:12 UTC (rev 25144)
@@ -0,0 +1,41 @@
+From 9c393161ed8256970b56aac6487bc73d13433565 Mon Sep 17 00:00:00 2001
+From: Dagobert Michelsen <dam at opencsw.org>
+Date: Wed, 1 Jul 2015 14:10:08 +0200
+Subject: [PATCH] Use substitute for strndup
+
+---
+ src/liblognorm.c | 18 ++++++++++++++++++
+ 1 file changed, 18 insertions(+)
+
+diff --git a/src/liblognorm.c b/src/liblognorm.c
+index a530b99..ea73f63 100644
+--- a/src/liblognorm.c
++++ b/src/liblognorm.c
+@@ -42,6 +42,24 @@
+ 	}
+ 
+ char *
++strndup (const char *s, size_t n)
++{
++  char *result;
++  size_t len = strlen (s);
++
++  if (n < len)
++    len = n;
++
++  result = (char *) malloc (len + 1);
++  if (!result)
++    return 0;
++
++  result[len] = '\0';
++  return (char *) memcpy (result, s, len);
++}
++
++
++char *
+ ln_version(void)
+ {
+ 	return VERSION;
+-- 
+2.4.0
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list