diff options
Diffstat (limited to 'package/syslog-ng')
-rw-r--r-- | package/syslog-ng/Config.in | 32 | ||||
-rw-r--r-- | package/syslog-ng/Makefile | 34 | ||||
-rw-r--r-- | package/syslog-ng/files/syslog-ng.conf | 16 | ||||
-rw-r--r-- | package/syslog-ng/files/syslog-ng.init | 30 | ||||
-rw-r--r-- | package/syslog-ng/ipkg/syslog-ng.conffiles | 1 | ||||
-rw-r--r-- | package/syslog-ng/ipkg/syslog-ng.control | 5 | ||||
-rw-r--r-- | package/syslog-ng/ipkg/syslog-ng.postinst | 3 | ||||
-rw-r--r-- | package/syslog-ng/patches/patch-Makefile_in | 12 | ||||
-rw-r--r-- | package/syslog-ng/patches/patch-configure | 21 | ||||
-rw-r--r-- | package/syslog-ng/patches/patch-src_Makefile_in | 12 | ||||
-rw-r--r-- | package/syslog-ng/patches/patch-src_cfg-lex_c | 14 |
11 files changed, 180 insertions, 0 deletions
diff --git a/package/syslog-ng/Config.in b/package/syslog-ng/Config.in new file mode 100644 index 000000000..df21ab0fd --- /dev/null +++ b/package/syslog-ng/Config.in @@ -0,0 +1,32 @@ +config ADK_PACKAGE_SYSLOG_NG + prompt "syslog-ng......................... A powerful syslog daemon" + tristate + default n + select ADK_PACKAGE_LIBOL + select ADK_PACKAGE_LIBWRAP + help + syslog-ng reads and logs messages to the system console, log + files, other machines and/or users as specified by its + configuration file. + + The configuration file is read at startup and is reread after + receipt of a hangup (HUP) signal. When reloading the + configuration file, all destination files are closed and + reopened as appropriate. For more information about the + configuration file, see syslog-ng.conf(5). + + Typically messages are sent to syslog-ng via a Unix domain + socket (/dev/log) or via UDP, to port 514 or to whatever + syslog/udp is defined to be in /etc/services. To receive + messages from the kernel, /dev/klog is opened for reading. + + Messages sent to syslog-ng should be an entire line, prefixed + by a pri- ority code in between '<' and '>'. Definititions + of the recognised values can be found in the include file + <sys/syslog.h>. + + syslog-ng can be configured to pass messages on to other + syslog-ng's and when doing so, it sends the message on with the + priority as a pre- fix. + + http://www.balabit.com/products/syslog_ng/ diff --git a/package/syslog-ng/Makefile b/package/syslog-ng/Makefile new file mode 100644 index 000000000..4a8141750 --- /dev/null +++ b/package/syslog-ng/Makefile @@ -0,0 +1,34 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= syslog-ng +PKG_VERSION:= 1.6.12 +PKG_RELEASE:= 1 +PKG_MD5SUM:= a3cbfdb6e1e5beea181a7349749719f3 +MASTER_SITES:= http://www.balabit.com/downloads/files/syslog-ng/sources/1.6/src/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,SYSLOG_NG,syslog-ng,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= gnu +CONFIGURE_ARGS+= --enable-full-dynamic \ + --enable-tcp-wrapper +CONFIGURE_ENV+= ac_cv_path_libol_config=${STAGING_DIR}/usr/bin +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +post-install: + ${INSTALL_DIR} ${IDIR_SYSLOG_NG}/usr/sbin + ${INSTALL_BIN} ${WRKINST}/usr/sbin/syslog-ng ${IDIR_SYSLOG_NG}/usr/sbin/ + ${INSTALL_DIR} ${IDIR_SYSLOG_NG}/etc/init.d + ${INSTALL_BIN} ./files/syslog-ng.init \ + ${IDIR_SYSLOG_NG}/etc/init.d/${PKG_NAME} + ${INSTALL_DIR} ${IDIR_SYSLOG_NG}/etc/syslog-ng + ${INSTALL_DATA} ./files/syslog-ng.conf ${IDIR_SYSLOG_NG}/etc/syslog-ng/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/syslog-ng/files/syslog-ng.conf b/package/syslog-ng/files/syslog-ng.conf new file mode 100644 index 000000000..658abead2 --- /dev/null +++ b/package/syslog-ng/files/syslog-ng.conf @@ -0,0 +1,16 @@ +options { + chain_hostnames(off); + sync(0); + + # The default action of syslog-ng 1.6.0 is to log a STATS line + # to the file every 10 minutes. That's pretty ugly after a while. + # Change it to every 12 hours so you get a nice daily update of + # how many messages syslog-ng missed (0). + stats(43200); +}; + +source src { unix-stream("/dev/log"); internal(); }; + +destination messages { file("/var/log/messages"); }; + +log { source(src); destination(messages); }; diff --git a/package/syslog-ng/files/syslog-ng.init b/package/syslog-ng/files/syslog-ng.init new file mode 100644 index 000000000..bdfa0c96e --- /dev/null +++ b/package/syslog-ng/files/syslog-ng.init @@ -0,0 +1,30 @@ +#!/bin/sh +#FWINIT 05 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${syslog_ng:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + [ -f /etc/syslog-ng/syslog-ng.conf ] || { + echo "/etc/syslog-ng/syslog-ng.conf does not exist !"; + exit 0; + }; + [ -x /usr/sbin/syslog-ng ] && /usr/sbin/syslog-ng + ;; +stop) + killall syslog-ng + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? diff --git a/package/syslog-ng/ipkg/syslog-ng.conffiles b/package/syslog-ng/ipkg/syslog-ng.conffiles new file mode 100644 index 000000000..453ebbe66 --- /dev/null +++ b/package/syslog-ng/ipkg/syslog-ng.conffiles @@ -0,0 +1 @@ +/etc/syslog-ng/syslog-ng.conf diff --git a/package/syslog-ng/ipkg/syslog-ng.control b/package/syslog-ng/ipkg/syslog-ng.control new file mode 100644 index 000000000..93f193d6c --- /dev/null +++ b/package/syslog-ng/ipkg/syslog-ng.control @@ -0,0 +1,5 @@ +Package: syslog-ng +Priority: optional +Section: admin +Depends: libol libwrap +Description: A powerful syslog daemon diff --git a/package/syslog-ng/ipkg/syslog-ng.postinst b/package/syslog-ng/ipkg/syslog-ng.postinst new file mode 100644 index 000000000..254f67872 --- /dev/null +++ b/package/syslog-ng/ipkg/syslog-ng.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf syslog_ng syslog_ng NO diff --git a/package/syslog-ng/patches/patch-Makefile_in b/package/syslog-ng/patches/patch-Makefile_in new file mode 100644 index 000000000..aaab22e64 --- /dev/null +++ b/package/syslog-ng/patches/patch-Makefile_in @@ -0,0 +1,12 @@ +$Id$ +--- syslog-ng-1.6.11.orig/Makefile.in 2006-05-03 11:10:52.000000000 +0000 ++++ syslog-ng-1.6.11/Makefile.in 2007-02-15 20:40:14.000000000 +0000 +@@ -64,7 +64,7 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ + INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ + LDFLAGS = @LDFLAGS@ + LEX = @LEX@ +-LEXLIB = @LEXLIB@ ++LEXLIB = + LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ + LIBOBJS = @LIBOBJS@ + LIBOL_DIR = @LIBOL_DIR@ diff --git a/package/syslog-ng/patches/patch-configure b/package/syslog-ng/patches/patch-configure new file mode 100644 index 000000000..9eb1f51a9 --- /dev/null +++ b/package/syslog-ng/patches/patch-configure @@ -0,0 +1,21 @@ +$Id$ +--- syslog-ng-1.6.11.orig/configure 2006-05-03 11:10:53.000000000 +0000 ++++ syslog-ng-1.6.11/configure 2007-02-15 20:42:56.000000000 +0000 +@@ -3160,7 +3160,7 @@ if test "${ac_cv_lib_fl_yywrap+set}" = s + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-lfl $LIBS" ++LIBS="$LIBS" + cat >conftest.$ac_ext <<_ACEOF + /* confdefs.h. */ + _ACEOF +@@ -7609,7 +7609,7 @@ echo "$as_me: error: Bundled libol not f + else + LIBOL_VERSION=`libol-config --version` + LIBOL_CFLAGS=`libol-config --cflags` +- LIBOL_LIBS=`libol-config --static-libs` ++ LIBOL_LIBS=`libol-config --libs` + MAKE_CLASS="make_class" + fi + fi diff --git a/package/syslog-ng/patches/patch-src_Makefile_in b/package/syslog-ng/patches/patch-src_Makefile_in new file mode 100644 index 000000000..5f497f00a --- /dev/null +++ b/package/syslog-ng/patches/patch-src_Makefile_in @@ -0,0 +1,12 @@ +$Id$ +--- syslog-ng-1.6.11.orig/src/Makefile.in 2006-05-03 11:10:53.000000000 +0000 ++++ syslog-ng-1.6.11/src/Makefile.in 2007-02-15 20:40:14.000000000 +0000 +@@ -64,7 +64,7 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ + INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ + LDFLAGS = @LDFLAGS@ + LEX = @LEX@ +-LEXLIB = @LEXLIB@ ++LEXLIB = + LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ + LIBOBJS = @LIBOBJS@ + LIBOL_DIR = @LIBOL_DIR@ diff --git a/package/syslog-ng/patches/patch-src_cfg-lex_c b/package/syslog-ng/patches/patch-src_cfg-lex_c new file mode 100644 index 000000000..b9d37d779 --- /dev/null +++ b/package/syslog-ng/patches/patch-src_cfg-lex_c @@ -0,0 +1,14 @@ +$Id$ +--- syslog-ng-1.6.11.orig/src/cfg-lex.c 2006-03-27 14:44:46.000000000 +0000 ++++ syslog-ng-1.6.11/src/cfg-lex.c 2007-02-15 20:40:14.000000000 +0000 +@@ -667,7 +667,9 @@ static void append_char(char c); + #ifdef __cplusplus + extern "C" int yywrap (void ); + #else +-extern int yywrap (void ); ++int yywrap (void ) { ++ return 1; ++} + #endif + #endif + |