summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThilo Bangert <bangert@gentoo.org>2006-06-11 11:52:56 +0000
committerThilo Bangert <bangert@gentoo.org>2006-06-11 11:52:56 +0000
commit2018541e62585f30b6871717999f4ebaf21ae219 (patch)
tree7ff2d02b088ac6dfdb06bd17b8f1a2816d2fb74d /app-admin
parentstable amd64 (diff)
downloadhistorical-2018541e62585f30b6871717999f4ebaf21ae219.tar.gz
historical-2018541e62585f30b6871717999f4ebaf21ae219.tar.bz2
historical-2018541e62585f30b6871717999f4ebaf21ae219.zip
This package is a set of tools that are useful in receiving, analyzing, or producing syslog messages.
Package-Manager: portage-2.0.54-r2
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/syslogread/ChangeLog11
-rw-r--r--app-admin/syslogread/Manifest8
-rw-r--r--app-admin/syslogread/files/0.92/klogd.run4
-rw-r--r--app-admin/syslogread/files/0.92/syslogread-log.run3
-rw-r--r--app-admin/syslogread/files/0.92/syslogread.init23
-rw-r--r--app-admin/syslogread/files/0.92/syslogread.run2
-rw-r--r--app-admin/syslogread/files/digest-syslogread-0.921
-rw-r--r--app-admin/syslogread/metadata.xml13
-rw-r--r--app-admin/syslogread/syslogread-0.92.ebuild86
9 files changed, 151 insertions, 0 deletions
diff --git a/app-admin/syslogread/ChangeLog b/app-admin/syslogread/ChangeLog
new file mode 100644
index 000000000000..c3604175ed03
--- /dev/null
+++ b/app-admin/syslogread/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-admin/syslogread
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/syslogread/ChangeLog,v 1.1 2006/06/11 11:52:56 bangert Exp $
+
+*syslogread-0.92 (11 Jun 2006)
+
+ 11 Jun 2006; Thilo Bangert <bangert@gentoo.org> +files/0.92/klogd.run,
+ +files/0.92/syslogread.init, +files/0.92/syslogread.run,
+ +files/0.92/syslogread-log.run, +metadata.xml, +syslogread-0.92.ebuild:
+ initial import
+
diff --git a/app-admin/syslogread/Manifest b/app-admin/syslogread/Manifest
new file mode 100644
index 000000000000..219d6e80d2f1
--- /dev/null
+++ b/app-admin/syslogread/Manifest
@@ -0,0 +1,8 @@
+MD5 a30e37f94562d4f09f2ddb2d182d8c51 ChangeLog 470
+MD5 5c5b21caa3064bf82a33afb611e73b5b files/0.92/klogd.run 84
+MD5 84576263116d99da02062a90bb977921 files/0.92/syslogread-log.run 129
+MD5 780a68e4700d8591b5bb5e0f62dfa09e files/0.92/syslogread.init 473
+MD5 ebe9a8b57bc182da441215d444f4f142 files/0.92/syslogread.run 56
+MD5 a282495362222238b84745d11e1d1047 files/digest-syslogread-0.92 66
+MD5 5cfab3469cc46dfd651eac091bee53da metadata.xml 408
+MD5 a00589e359af748903b420aae3706e84 syslogread-0.92.ebuild 2152
diff --git a/app-admin/syslogread/files/0.92/klogd.run b/app-admin/syslogread/files/0.92/klogd.run
new file mode 100644
index 000000000000..b6d0fb27795e
--- /dev/null
+++ b/app-admin/syslogread/files/0.92/klogd.run
@@ -0,0 +1,4 @@
+#!/bin/sh
+exec 2>&1
+exec < /proc/kmsg
+exec /usr/bin/multilog t n64 /var/log/klogd
diff --git a/app-admin/syslogread/files/0.92/syslogread-log.run b/app-admin/syslogread/files/0.92/syslogread-log.run
new file mode 100644
index 000000000000..f53cd0199571
--- /dev/null
+++ b/app-admin/syslogread/files/0.92/syslogread-log.run
@@ -0,0 +1,3 @@
+#!/bin/sh
+#exec setuidgid syslog syslogxlate '*.*' | multilog t /var/log/syslog
+exec setuidgid syslog multilog t /var/log/syslog
diff --git a/app-admin/syslogread/files/0.92/syslogread.init b/app-admin/syslogread/files/0.92/syslogread.init
new file mode 100644
index 000000000000..83a53179f838
--- /dev/null
+++ b/app-admin/syslogread/files/0.92/syslogread.init
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/syslogread/files/0.92/syslogread.init,v 1.1 2006/06/11 11:52:56 bangert Exp $
+
+opts="depend start stop"
+
+depend() {
+ need svscan
+ provide logger
+}
+
+start() {
+ ebegin "Starting logger"
+ true
+ eend $? "Failed to start logger"
+}
+
+stop() {
+ ebegin "Stopping logger"
+ true
+ eend $? "Failed to stop logger"
+}
diff --git a/app-admin/syslogread/files/0.92/syslogread.run b/app-admin/syslogread/files/0.92/syslogread.run
new file mode 100644
index 000000000000..fdcb018c3066
--- /dev/null
+++ b/app-admin/syslogread/files/0.92/syslogread.run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec envuidgid syslog sysloglread -U /dev/log
diff --git a/app-admin/syslogread/files/digest-syslogread-0.92 b/app-admin/syslogread/files/digest-syslogread-0.92
new file mode 100644
index 000000000000..cc5fdefc5087
--- /dev/null
+++ b/app-admin/syslogread/files/digest-syslogread-0.92
@@ -0,0 +1 @@
+MD5 6e77e324d106d952ad6a8920f16aabdb syslogread-0.92.tar.gz 21807
diff --git a/app-admin/syslogread/metadata.xml b/app-admin/syslogread/metadata.xml
new file mode 100644
index 000000000000..73a018caef87
--- /dev/null
+++ b/app-admin/syslogread/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>bangert@gentoo.org</email>
+ <name>Thilo Bangert</name>
+ </maintainer>
+ <longdescription lang="en">
+ This package is a set of tools that are useful in receiving, analyzing,
+ or producing syslog messages.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-admin/syslogread/syslogread-0.92.ebuild b/app-admin/syslogread/syslogread-0.92.ebuild
new file mode 100644
index 000000000000..6f846ffd622f
--- /dev/null
+++ b/app-admin/syslogread/syslogread-0.92.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/syslogread/syslogread-0.92.ebuild,v 1.1 2006/06/11 11:52:56 bangert Exp $
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Syslog message handling tools"
+HOMEPAGE="http://untroubled.org/syslogread/"
+SRC_URI="${HOMEPAGE}archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=">=dev-libs/bglibs-1.019-r1"
+RDEPEND="sys-process/daemontools"
+PROVIDE="virtual/logger"
+
+pkg_preinst() {
+ enewgroup syslog
+ enewuser syslog -1 -1 /nonexistent syslog
+}
+
+src_compile() {
+ echo "/usr/include/bglibs/" > conf-bgincs
+ echo "/usr/lib/bglibs/" > conf-bglibs
+ echo "${D}/usr/bin" > conf-bin
+ echo "${D}/usr/share/man" > conf-man
+ echo "$(tc-getCC) ${CFLAGS}" > conf-cc
+ echo "$(tc-getCC) ${LDFLAGS}" > conf-ld
+ make || die #don't use emake b/c of jobserver
+}
+
+src_install() {
+ dodir /usr/bin
+ dodir /usr/share/man
+ ./installer || die
+
+ #newinitd "${FILESDIR}/${PV}/syslogread.init" syslogread
+
+ dodoc ANNOUNCEMENT ChangeLog README
+
+ insinto /var/lib/supervise/klogd
+ newins "${FILESDIR}/${PV}/klogd.run" klogd.run
+
+ insinto /var/lib/supervise/syslogd
+ newins "${FILESDIR}/${PV}/syslogread.run" syslogread.run
+
+ insinto /var/lib/supervise/syslogd/log
+ newins "${FILESDIR}/${PV}/syslogread-log.run" syslogread-log.run
+
+ keepdir /var/log/klogd
+ keepdir /var/log/syslog
+
+ fowners syslog:syslog /var/log/syslog
+ fperms o-rwx /var/log/syslog
+}
+
+pkg_postinst() {
+ echo
+ einfo "Run "
+ einfo "emerge --config =${PF}"
+ einfo "to create or update your run files (backups are created) in"
+ einfo " /var/lib/supervise/klogd (kernel logger)"
+ einfo " /var/lib/supervise/syslog (system logger)"
+ echo
+}
+
+pkg_config() {
+ cd /var/lib/supervise/klogd
+ [ -e run ] && cp run klogd.run.`date +%Y%m%d%H%M%S`
+ cp klogd.run run
+ chmod u+x run
+
+ cd /var/lib/supervise/syslogd
+ [ -e run ] && cp run syslogread.run.`date +%Y%m%d%H%M%S`
+ cp syslogread.run run
+ chmod u+x run
+
+ cd /var/lib/supervise/syslogd/log
+ [ -e run ] && cp run syslogread-log.run.`date +%Y%m%d%H%M%S`
+ cp syslogread-log.run run
+ chmod u+x run
+}
+