[oe-commits] org.oe.dev syslog-ng: Add modified syslog-ng.conf which enables kernel logging by default

rpurdie commit openembedded-commits at lists.openembedded.org
Sat Aug 26 17:57:25 UTC 2006


syslog-ng: Add modified syslog-ng.conf which enables kernel logging by default

Author: rpurdie at openembedded.org
Branch: org.openembedded.dev
Revision: 73cf0a318b1b84e8654ced45a301d96cd45db206
ViewMTN: http://monotone.openembedded.org/revision.psp?id=73cf0a318b1b84e8654ced45a301d96cd45db206
Files:
1
packages/syslog-ng/files/syslog-ng.conf
packages/syslog-ng/syslog-ng_1.6.8.bb
Diffs:

#
# mt diff -r7842d28eba733ac46c5cbf3209c33dcd61b0c296 -r73cf0a318b1b84e8654ced45a301d96cd45db206
#
# 
# 
# add_file "packages/syslog-ng/files/syslog-ng.conf"
#  content [4c4bb21679866fbdd67a007539e969438a5e155e]
# 
# patch "packages/syslog-ng/syslog-ng_1.6.8.bb"
#  from [f5b3bdbecd4e372f5d615450da8e0e5cef1887b0]
#    to [623a7957ddad3283352fe61d2595d2f31e644200]
# 
============================================================
--- packages/syslog-ng/files/syslog-ng.conf	4c4bb21679866fbdd67a007539e969438a5e155e
+++ packages/syslog-ng/files/syslog-ng.conf	4c4bb21679866fbdd67a007539e969438a5e155e
@@ -0,0 +1,89 @@
+#
+# Syslog-ng example configuration for for Debian GNU/Linux
+#
+# Copyright (c) 1999 anonymous
+# Copyright (c) 1999 Balazs Scheidler
+# $Id: syslog-ng.conf.sample,v 1.3 2003/05/20 08:57:27 asd Exp $
+#
+# Syslog-ng configuration file, compatible with default Debian syslogd
+# installation. 
+#
+
+options { long_hostnames(off); sync(0); };
+
+source src { file("/proc/kmsg"); unix-stream("/dev/log"); internal(); };
+source net { udp(); };
+
+destination authlog { file("/var/log/auth.log"); };
+destination syslog { file("/var/log/syslog"); };
+destination cron { file("/var/log/cron.log"); };
+destination daemon { file("/var/log/daemon.log"); };
+destination kern { file("/var/log/kern.log"); };
+destination lpr { file("/var/log/lpr.log"); };
+destination user { file("/var/log/user.log"); };
+destination uucp { file("/var/log/uucp.log"); };
+destination ppp { file("/var/log/ppp.log"); };
+destination mail { file("/var/log/mail.log"); };
+
+destination mailinfo { file("/var/log/mail.info"); };
+destination mailwarn { file("/var/log/mail.warn"); };
+destination mailerr { file("/var/log/mail.err"); };
+
+destination newscrit { file("/var/log/news/news.crit"); };
+destination newserr { file("/var/log/news/news.err"); };
+destination newsnotice { file("/var/log/news/news.notice"); };
+
+destination debug { file("/var/log/debug"); };
+destination messages { file("/var/log/messages"); };
+destination console { usertty("root"); };
+destination console_all { file("/dev/tty12"); };
+#destination loghost { udp("loghost" port(999)); };
+
+
+destination xconsole { pipe("/dev/xconsole"); };
+
+filter f_auth { facility(auth); };
+filter f_authpriv { facility(auth, authpriv); };
+filter f_syslog { not facility(authpriv, mail); };
+filter f_cron { facility(cron); };
+filter f_daemon { facility(daemon); };
+filter f_kern { facility(kern); };
+filter f_lpr { facility(lpr); };
+filter f_mail { facility(mail); };
+filter f_user { facility(user); };
+filter f_uucp { facility(cron); };
+filter f_ppp { facility(local2); };
+filter f_news { facility(news); };
+filter f_debug { not facility(auth, authpriv, news, mail); };
+filter f_messages { level(info..warn) 
+	and not facility(auth, authpriv, mail, news); };
+filter f_emergency { level(emerg); };
+
+filter f_info { level(info); };
+filter f_notice { level(notice); };
+filter f_warn { level(warn); };
+filter f_crit { level(crit); };
+filter f_err { level(err); };
+
+log { source(src); filter(f_authpriv); destination(authlog); };
+log { source(src); filter(f_syslog); destination(syslog); };
+log { source(src); filter(f_cron); destination(cron); };
+log { source(src); filter(f_daemon); destination(daemon); };
+log { source(src); filter(f_kern); destination(kern); };
+log { source(src); filter(f_lpr); destination(lpr); };
+log { source(src); filter(f_mail); destination(mail); };
+log { source(src); filter(f_user); destination(user); };
+log { source(src); filter(f_uucp); destination(uucp); };
+log { source(src); filter(f_mail); filter(f_info); destination(mailinfo); };
+log { source(src); filter(f_mail); filter(f_warn); destination(mailwarn); };
+log { source(src); filter(f_mail); filter(f_err); destination(mailerr); };
+log { source(src); filter(f_news); filter(f_crit); destination(newscrit); };
+log { source(src); filter(f_news); filter(f_err); destination(newserr); };
+log { source(src); filter(f_news); filter(f_notice); destination(newsnotice); };
+log { source(src); filter(f_debug); destination(debug); };
+log { source(src); filter(f_messages); destination(messages); };
+log { source(src); filter(f_emergency); destination(console); };
+log { source(src); filter(f_ppp); destination(ppp); };
+log { source(src); destination(console_all); };
+
+
============================================================
--- packages/syslog-ng/syslog-ng_1.6.8.bb	f5b3bdbecd4e372f5d615450da8e0e5cef1887b0
+++ packages/syslog-ng/syslog-ng_1.6.8.bb	623a7957ddad3283352fe61d2595d2f31e644200
@@ -1,9 +1,10 @@
-PR = "r8"
+PR = "r9"
 MAINTAINER = "Oyvind Repvik <nail at nslu2-linux.org"
 DESCRIPTION = "Alternative system logger daemon"
 DEPENDS = "libol flex"
 
 SRC_URI = "http://www.balabit.com/downloads/syslog-ng/1.6/src/${PN}-${PV}.tar.gz \
+          file://syslog-ng.conf \
 	  file://initscript"
 
 S = "${WORKDIR}/${PN}-${PV}"
@@ -16,7 +17,7 @@ do_install_append() {
 
 do_install_append() {
 	install -d ${D}/${sysconfdir}/${PN}
-	install ${S}/doc/syslog-ng.conf.sample ${D}${sysconfdir}/${PN}/syslog-ng.conf
+	install ${WORKDIR}/syslog-ng.conf ${D}${sysconfdir}/${PN}/syslog-ng.conf
 	install -d ${D}/${sysconfdir}/init.d
 	install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog-ng
 }






More information about the Openembedded-commits mailing list