summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2002-04-24 09:03:17 +0000
committerThilo Bangert <bangert@gentoo.org>2002-04-24 09:03:17 +0000
commitc4cc8022afe59f1f99cf4e42e6c0ed729783f054 (patch)
treec929bdab5fe03a623065796a838647dd0db46067 /app-admin
parentupdated DEPEND and RDEPEND (diff)
downloadgentoo-2-c4cc8022afe59f1f99cf4e42e6c0ed729783f054.tar.gz
gentoo-2-c4cc8022afe59f1f99cf4e42e6c0ed729783f054.tar.bz2
gentoo-2-c4cc8022afe59f1f99cf4e42e6c0ed729783f054.zip
added support for console logging to metalog
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/metalog/ChangeLog16
-rw-r--r--app-admin/metalog/files/consolelog.sh14
-rw-r--r--app-admin/metalog/files/metalog.conf90
-rw-r--r--app-admin/metalog/metalog-0.6-r9.ebuild7
4 files changed, 124 insertions, 3 deletions
diff --git a/app-admin/metalog/ChangeLog b/app-admin/metalog/ChangeLog
index 2a73c0dd08a0..9c8d88533967 100644
--- a/app-admin/metalog/ChangeLog
+++ b/app-admin/metalog/ChangeLog
@@ -1,6 +1,20 @@
# ChangeLog for app-admin/metalog
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/ChangeLog,v 1.2 2002/03/11 22:30:15 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/ChangeLog,v 1.3 2002/04/24 09:03:17 bangert Exp $
+
+ 24 Apr 2002; Thilo Bangert <bangert@gentoo.org> files/metalog.conf :
+
+ initial release - added examples on how to use the consolelog.sh script
+ from LFS
+
+ 24 Apr 2002; Thilo Bangert <bangert@gentoo.org> files/consolelog.sh :
+
+ initial release
+
+ 24 Apr 2002; Thilo Bangert <bangert@gentoo.org> matalog-0.6-r9.ebuild :
+
+ added consolelog.sh - script to be able to log to a console - from LFS
+
*metalog-0.6-r9 (11 March 2002)
diff --git a/app-admin/metalog/files/consolelog.sh b/app-admin/metalog/files/consolelog.sh
new file mode 100644
index 000000000000..698fce5bbae3
--- /dev/null
+++ b/app-admin/metalog/files/consolelog.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# consolelog.sh
+# For metalog -- log to a console
+#
+# from LFS
+#
+
+echo "$1 [$2] $3" >/dev/vc/10
+
+#
+# of course, you can log to multiple devices
+#
+#echo "$1 [$2] $3" >/dev/console
diff --git a/app-admin/metalog/files/metalog.conf b/app-admin/metalog/files/metalog.conf
new file mode 100644
index 000000000000..1ef4c8b7b360
--- /dev/null
+++ b/app-admin/metalog/files/metalog.conf
@@ -0,0 +1,90 @@
+
+# Sample Metalog configuration file
+
+maxsize = 100000
+maxtime = 86400
+maxfiles = 5
+
+Kernel messages :
+
+ facility = "kern"
+ logdir = "/var/log/kernel"
+
+Crond :
+
+ program = "crond"
+ logdir = "/var/log/crond"
+
+Dudes firewalled by IPTrap :
+
+ program = "iptrap"
+ logdir = "/var/log/iptrap"
+
+Password failures :
+
+ regex = "(password|login|authentication)\s+(fail|invalid)"
+ regex = "(failed|invalid)\s+(password|login|authentication)"
+ regex = "ILLEGAL ROOT LOGIN"
+ logdir = "/var/log/pwdfail"
+# command = "/usr/local/sbin/mail_pwd_failures.sh"
+
+FTP Server :
+
+ program = "pure-ftpd"
+ logdir = "/var/log/ftpd"
+
+SSH Server :
+
+ program = "sshd"
+ logdir = "/var/log/sshd"
+
+Telnet :
+
+ program = "login"
+ logdir = "/var/log/telnet"
+
+Imap :
+
+ program = "/usr/sbin/imapd"
+ logdir = "/var/log/imap"
+
+POP Toaster :
+
+ program = "/usr/sbin/ipop3d"
+ logdir = "/var/log/pop"
+
+#Add authenticated IP addresses for SMTP relaying :
+
+# program = "/usr/sbin/ipop3d"
+# regex = "Login.+nmsgs="
+# command = "/usr/local/sbin/add_pop_address.sh"
+
+Mail :
+
+ facility = "mail"
+ logdir = "/var/log/mail"
+
+Everything important :
+
+ facility = "*"
+ minimum = 6
+ logdir = "/var/log/everything"
+
+Everything very important :
+
+ facility = "*"
+ minimum = 1
+ logdir = "/var/log/critical"
+
+#
+#Uncomment and adjust the following lines to
+#your needs to enable console logging
+#
+# Hint: you can change the device to which
+# should be logged in /usr/sbin/consolelog.sh
+#
+
+#console logging :
+#
+# facility = "*"
+# command = "/usr/sbin/consolelog.sh"
diff --git a/app-admin/metalog/metalog-0.6-r9.ebuild b/app-admin/metalog/metalog-0.6-r9.ebuild
index 90623dd9f496..3868b3c2109b 100644
--- a/app-admin/metalog/metalog-0.6-r9.ebuild
+++ b/app-admin/metalog/metalog-0.6-r9.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Jerry A! <jerry@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/metalog-0.6-r9.ebuild,v 1.1 2002/03/11 22:30:15 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/metalog/metalog-0.6-r9.ebuild,v 1.2 2002/04/24 09:03:17 bangert Exp $
S=${WORKDIR}/${P}
DESCRIPTION="A highly configurable replacement for syslogd/klogd"
@@ -33,8 +33,11 @@ src_install () {
dodoc AUTHORS COPYING ChangeLog README
newdoc metalog.conf metalog.conf.sample
- insinto /etc/metalog ; doins metalog.conf
+ insinto /etc/metalog ; doins ${FILESDIR}/metalog.conf
exeinto /etc/init.d ; newexe ${FILESDIR}/metalog.rc6 metalog
insinto /etc/conf.d ; newins ${FILESDIR}/metalog.confd metalog
+
+ exeinto /usr/sbin
+ doexe ${FILESDIR}/consolelog.sh
}