diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2000-12-10 04:21:36 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2000-12-10 04:21:36 +0000 |
commit | 489fbea981af9b9a2c62cea3d634f9f996e20235 (patch) | |
tree | fc342d82dfd0cc7e0dd48ae8fcaa84f5a3eecdf8 /sys-apps/gluelog | |
parent | openmotif in a new location (diff) | |
download | gentoo-2-489fbea981af9b9a2c62cea3d634f9f996e20235.tar.gz gentoo-2-489fbea981af9b9a2c62cea3d634f9f996e20235.tar.bz2 gentoo-2-489fbea981af9b9a2c62cea3d634f9f996e20235.zip |
new gluelog, openssh update
Diffstat (limited to 'sys-apps/gluelog')
-rwxr-xr-x | sys-apps/gluelog/files/klog-run | 2 | ||||
-rwxr-xr-x | sys-apps/gluelog/files/sysklogd | 37 | ||||
-rwxr-xr-x | sys-apps/gluelog/files/syslog-run | 2 | ||||
-rw-r--r-- | sys-apps/gluelog/gluelog-1.0.ebuild | 52 |
4 files changed, 93 insertions, 0 deletions
diff --git a/sys-apps/gluelog/files/klog-run b/sys-apps/gluelog/files/klog-run new file mode 100755 index 000000000000..499183ce2f89 --- /dev/null +++ b/sys-apps/gluelog/files/klog-run @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/sbin/glueklog /usr/bin/multilog t /var/log/klog.d diff --git a/sys-apps/gluelog/files/sysklogd b/sys-apps/gluelog/files/sysklogd new file mode 100755 index 000000000000..f69975f5d85b --- /dev/null +++ b/sys-apps/gluelog/files/sysklogd @@ -0,0 +1,37 @@ +#!/bin/sh +#RCUPDATE:1 2 3 4 5:20:This line is required for script management + +klog="/usr/sbin/klogd" +slog="/usr/sbin/syslogd" + +. /etc/rc.d/config/functions + +SERVICE=sysklogd +opts="start stop status" + +start() { + ebegin "Starting supervised syslog and klog" + local retval + local x + retval=0 + + for x in klog syslog + do + /usr/bin/svc -u /etc/svc.d/control/${x} + retval=$(( $? + $retval )) + done + eend $retval +} + +stop() { + ebegin "Stopping supervised syslog and klog" + /usr/bin/svc -d /etc/svc.d/control/klog /etc/svc.d/control/syslog + eend $? +} + +status() { + einfo "syslog and klog status:" + /usr/bin/svstat /etc/svc.d/control/klog /etc/svc.d/control/syslog +} + +doservice ${@} diff --git a/sys-apps/gluelog/files/syslog-run b/sys-apps/gluelog/files/syslog-run new file mode 100755 index 000000000000..fda7b3111c3d --- /dev/null +++ b/sys-apps/gluelog/files/syslog-run @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/sbin/gluelog /usr/bin/multilog t /var/log/syslog.d diff --git a/sys-apps/gluelog/gluelog-1.0.ebuild b/sys-apps/gluelog/gluelog-1.0.ebuild new file mode 100644 index 000000000000..5db5b44862f2 --- /dev/null +++ b/sys-apps/gluelog/gluelog-1.0.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2000 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Author Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/sys-apps/gluelog/gluelog-1.0.ebuild,v 1.1 2000/12/10 04:21:36 drobbins Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Pipe and socket fittings for the system and kernel logs" +SRC_URI="" + +src_compile() { + mkdir ${S} + cd ${FILESDIR} + gcc ${CFLAGS} gluelog.c -o ${S}/gluelog + gcc ${CFLAGS} glueklog.c -o ${S}/glueklog +} + +src_unpack() { + echo +} + +src_install() { + dodir /usr/sbin + dosbin ${S}/gluelog ${S}/glueklog + exeopts -m0750 -g wheel + install -d -m0750 -o root -g wheel ${D}/etc/svc.d/control + dodir /var/log + local x + for x in syslog klog + do + exeinto /etc/svc.d/services/${x} + newexe ${FILESDIR}/${x}-run run + ln -s ../services/${x} ${D}/etc/svc.d/control/${x} + touch ${D}/etc/svc.d/services/${x}/down + install -d -m0750 -o daemon -g wheel ${D}/var/log/${x}.d + done + exeopts -m0755 + exeinto /etc/rc.d/init.d + doexe ${FILESDIR}/sysklogd +} + +pkg_preinst() { + if [ -e ${ROOT}/etc/rc.d/init.d/sysklogd ] + then + ${ROOT}/etc/rc.d/init.d/sysklogd stop + fi + ${ROOT}/usr/sbin/rc-update del sysklogd +} + +pkg_postinst() { + ${ROOT}/usr/sbin/rc-update add sysklogd + ${ROOT}/etc/rc.d/init.d/sysklogd start +} |