summaryrefslogtreecommitdiff
path: root/recipes/metalog
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/metalog
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/metalog')
-rw-r--r--recipes/metalog/metalog-0.7/crosscompile.patch44
-rw-r--r--recipes/metalog/metalog_0.7.bb15
2 files changed, 59 insertions, 0 deletions
diff --git a/recipes/metalog/metalog-0.7/crosscompile.patch b/recipes/metalog/metalog-0.7/crosscompile.patch
new file mode 100644
index 0000000000..9c85eb30f0
--- /dev/null
+++ b/recipes/metalog/metalog-0.7/crosscompile.patch
@@ -0,0 +1,44 @@
+diff -ur metalog-0.7_org/configure.ac metalog-0.7_patch/configure.ac
+--- metalog-0.7_org/configure.ac 2003-04-06 23:21:05.000000000 +0200
++++ metalog-0.7_patch/configure.ac 2004-07-19 14:41:48.226352264 +0200
+@@ -162,39 +162,6 @@
+
+ dnl Custom checks
+
+-AC_MSG_CHECKING(whether snprintf is C99 conformant)
+-AC_TRY_RUN([
+-#include <stdio.h>
+-#ifdef STDC_HEADERS
+-# include <stdlib.h>
+-# include <stddef.h>
+-#else
+-# if HAVE_STDLIB_H
+-# include <stdlib.h>
+-# endif
+-#endif
+-#ifdef HAVE_UNISTD_H
+-# include <unistd.h>
+-#endif
+-
+-int main(void)
+-{
+- char buf[4];
+-
+- (void) fprintf(fopen("conftestval", "wt"), "%d\n",
+- (int) snprintf(buf, sizeof buf, "12345678"));
+- return 0;
+-}
+-],
+-CONF_SNPRINTF_TYPE=`cat conftestval`
+-)
+-AC_MSG_RESULT(done)
+-if test "x$CONF_SNPRINTF_TYPE" = "x" ; then
+- AC_MSG_WARN(your operating system doesn't implement snprintf)
+-else
+- AC_DEFINE_UNQUOTED(CONF_SNPRINTF_TYPE, $CONF_SNPRINTF_TYPE, [return value of an overflowed snprintf])
+-fi
+-
+ dnl Options
+
+ AM_WITH_DMALLOC
+
diff --git a/recipes/metalog/metalog_0.7.bb b/recipes/metalog/metalog_0.7.bb
new file mode 100644
index 0000000000..ac24694001
--- /dev/null
+++ b/recipes/metalog/metalog_0.7.bb
@@ -0,0 +1,15 @@
+DESCRIPTION = "Metalog is a replacement for syslogd."
+DEPENDS = "libpcre"
+LICENSE = "GPL"
+PR = "r0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/metalog/metalog-${PV}.tar.gz \
+ file://crosscompile.patch;patch=1"
+S = "${WORKDIR}/metalog-${PV}"
+
+inherit autotools
+
+do_install_append() {
+ install -d ${D}${sysconfdir}/metalog
+ install -m 0755 ${S}/metalog.conf ${D}${sysconfdir}/metalog/metalog.conf
+}