diff options
author | Bruce A. Locke <blocke@gentoo.org> | 2001-09-10 03:04:22 +0000 |
---|---|---|
committer | Bruce A. Locke <blocke@gentoo.org> | 2001-09-10 03:04:22 +0000 |
commit | ee53c9f3dd647866bd01346980136ff588809853 (patch) | |
tree | 5bfd22a9802363723002b16d63ee55305e32f953 /app-admin | |
parent | now supports rc5/rc6 systems. small changes only, mostly to just (diff) | |
download | gentoo-2-ee53c9f3dd647866bd01346980136ff588809853.tar.gz gentoo-2-ee53c9f3dd647866bd01346980136ff588809853.tar.bz2 gentoo-2-ee53c9f3dd647866bd01346980136ff588809853.zip |
we now install a working sample config file
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/syslog-ng/files/syslog-ng.conf.sample | 89 | ||||
-rw-r--r-- | app-admin/syslog-ng/syslog-ng-1.4.12-r7.ebuild | 39 |
2 files changed, 128 insertions, 0 deletions
diff --git a/app-admin/syslog-ng/files/syslog-ng.conf.sample b/app-admin/syslog-ng/files/syslog-ng.conf.sample new file mode 100644 index 000000000000..5ba4dc8b240b --- /dev/null +++ b/app-admin/syslog-ng/files/syslog-ng.conf.sample @@ -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.1 2001/09/10 03:04:22 blocke Exp $ +# +# Syslog-ng configuration file, compatible with default Debian syslogd +# installation. +# + +options { long_hostnames(off); sync(0); }; + +source src { unix-stream("/dev/log"); internal(); }; +source kernsrc { file("/proc/kmsg"); }; +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(ppp); }; +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(kernsrc); 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); }; + diff --git a/app-admin/syslog-ng/syslog-ng-1.4.12-r7.ebuild b/app-admin/syslog-ng/syslog-ng-1.4.12-r7.ebuild new file mode 100644 index 000000000000..f3896ddb9991 --- /dev/null +++ b/app-admin/syslog-ng/syslog-ng-1.4.12-r7.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Donny Davies <woodchip@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/syslog-ng-1.4.12-r7.ebuild,v 1.1 2001/09/10 03:04:22 blocke Exp $ + +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="Syslog-ng is a syslog replacement with advanced filtering features" +SRC_URI="http://www.balabit.hu/downloads/syslog-ng/1.4/${A}" +HOMEPAGE="http://www.balabit.hu/en/products/syslog-ng/" + +RDEPEND="virtual/glibc >=dev-libs/libol-0.2.23" +DEPEND="sys-devel/flex" + +src_compile() { + ./configure --host=${CHOST} --prefix=/usr || die + emake CFLAGS="${CFLAGS} -I/usr/include/libol -D_GNU_SOURCE" \ + prefix=${D}/usr all || die "compile problem" +} + +src_install() { + make prefix=${D}/usr install || die + rm -rf ${D}/usr/share/man + + dodoc AUTHORS COPYING ChangeLog INSTALL NEWS PORTS README + cd doc + dodoc syslog-ng.conf.sample syslog-ng.conf.demo stresstest.sh + doman syslog-ng.8 syslog-ng.conf.5 + cd ${S}/doc/sgml + dodoc syslog-ng.dvi syslog-ng.html.tar.gz syslog-ng.ps syslog-ng.sgml syslog-ng.txt + + cd ${S} + dodir /etc/syslog-ng + insinto /etc/syslog-ng + cp ${FILESDIR}/syslog-ng.conf.sample ${D}/etc/syslog-ng + + exeinto /etc/init.d + newexe ${FILESDIR}/syslog-ng.rc6 syslog-ng +} |