From 5287b695e6961ff4941aa0e0e5ba743334415234 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 13 Mar 2008 14:24:32 +0000 Subject: cleaned up new relp code files to make them suitable for implementation --- ChangeLog | 1 + Makefile.am | 10 +- configure.ac | 8 +- doc/rsyslog_conf.html | 4 +- plugins/imrelp/imrelp.c | 16 +- plugins/omrelp/omrelp.c | 503 +++++++++++++++++++----------------------------- relputil.c | 113 +++++++++++ 7 files changed, 330 insertions(+), 325 deletions(-) create mode 100644 relputil.c diff --git a/ChangeLog b/ChangeLog index ac3a045a..8d8f2cc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ --------------------------------------------------------------------------- Version 3.12.3 (rgerhards), 2008-03-?? +- some more internal cleanup ;) --------------------------------------------------------------------------- Version 3.12.2 (rgerhards), 2008-03-13 - added RSYSLOGD_MODDIR environment variable diff --git a/Makefile.am b/Makefile.am index d8dbff6c..104b962a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -156,11 +156,11 @@ endif # relp support # if ENABLE_RELP -#pkglib_LTLIBRARIES += lmrelp.la -#lmrelp_la_SOURCES = gss-misc.c gss-misc.h -#lmrelp_la_CPPFLAGS = $(pthreads_cflags) $(relp_cflags) -#lmrelp_la_LDFLAGS = -module -avoid-version -#lmrelp_la_LIBADD = $(relp_libs) +pkglib_LTLIBRARIES += lmrelputil.la +lmrelputil_la_SOURCES = relputil.c relputil.h +lmrelputil_la_CPPFLAGS = $(pthreads_cflags) $(relp_cflags) +lmrelputil_la_LDFLAGS = -module -avoid-version +lmrelputil_la_LIBADD = $(relp_libs) endif man_MANS = rfc3195d.8 rsyslogd.8 rsyslog.conf.5 diff --git a/configure.ac b/configure.ac index bb8c065c..4712e86e 100644 --- a/configure.ac +++ b/configure.ac @@ -455,10 +455,10 @@ AC_ARG_ENABLE(relp, [enable_relp=no] ) if test "x$enable_relp" = "xyes"; then -# AC_CHECK_HEADERS( -# [net-relp/net-relp-config.h],, -# [AC_MSG_FAILURE([Net-RELP is missing])] -# ) + AC_CHECK_HEADERS( + [relp.h],, + [AC_MSG_FAILURE([RELP library is missing (no headers)])] + ) AC_CHECK_LIB( [relp], [relpInit], diff --git a/doc/rsyslog_conf.html b/doc/rsyslog_conf.html index 03b15c17..1dc53944 100644 --- a/doc/rsyslog_conf.html +++ b/doc/rsyslog_conf.html @@ -26,7 +26,7 @@ number of modules. Here is the entry point to their documentation and what they do (list is currently not complete)