diff options
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/syslogread/ChangeLog | 11 | ||||
-rw-r--r-- | app-admin/syslogread/Manifest | 7 | ||||
-rw-r--r-- | app-admin/syslogread/files/0.92/klogd.run | 4 | ||||
-rw-r--r-- | app-admin/syslogread/files/0.92/syslogread-log.run | 3 | ||||
-rw-r--r-- | app-admin/syslogread/files/0.92/syslogread.init | 23 | ||||
-rw-r--r-- | app-admin/syslogread/files/0.92/syslogread.run | 2 | ||||
-rw-r--r-- | app-admin/syslogread/files/digest-syslogread-0.92 | 1 | ||||
-rw-r--r-- | app-admin/syslogread/metadata.xml | 13 | ||||
-rw-r--r-- | app-admin/syslogread/syslogread-0.92.ebuild | 86 |
9 files changed, 150 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..3288c032ab96 --- /dev/null +++ b/app-admin/syslogread/Manifest @@ -0,0 +1,7 @@ +MD5 5c5b21caa3064bf82a33afb611e73b5b files/0.92/klogd.run 84 +MD5 84576263116d99da02062a90bb977921 files/0.92/syslogread-log.run 129 +MD5 45f34ac0ad45972afd4ec10db389f15d files/0.92/syslogread.init 467 +MD5 ebe9a8b57bc182da441215d444f4f142 files/0.92/syslogread.run 56 +MD5 a282495362222238b84745d11e1d1047 files/digest-syslogread-0.92 66 +MD5 5cfab3469cc46dfd651eac091bee53da metadata.xml 408 +MD5 3ca4249baeb9f6ccde0d0b2653d23075 syslogread-0.92.ebuild 2146 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 +} + |