diff options
Diffstat (limited to 'extra/sysklogd')
-rw-r--r-- | extra/sysklogd/ChangeLog | 5 | ||||
-rw-r--r-- | extra/sysklogd/LICENSE | 16 | ||||
-rw-r--r-- | extra/sysklogd/PKGBUILD | 39 | ||||
-rwxr-xr-x | extra/sysklogd/klogd | 37 | ||||
-rw-r--r-- | extra/sysklogd/syslog.conf | 15 | ||||
-rw-r--r-- | extra/sysklogd/syslog.logrotate | 6 | ||||
-rwxr-xr-x | extra/sysklogd/syslogd | 37 |
7 files changed, 155 insertions, 0 deletions
diff --git a/extra/sysklogd/ChangeLog b/extra/sysklogd/ChangeLog new file mode 100644 index 000000000..aa374cfe0 --- /dev/null +++ b/extra/sysklogd/ChangeLog @@ -0,0 +1,5 @@ +2008-03-13 Eric Belanger <eric@archlinux.org> + + * Added support for > 2 GB logfiles (close FS#9831) + * FSH man pages + * Added ChangeLog file diff --git a/extra/sysklogd/LICENSE b/extra/sysklogd/LICENSE new file mode 100644 index 000000000..7e9b5d59c --- /dev/null +++ b/extra/sysklogd/LICENSE @@ -0,0 +1,16 @@ +/* + * Copyright (c) 1983, 1988 Regents of the University of California. + * All rights reserved. + * + * Redistribution and use in source and binary forms are permitted + * provided that the above copyright notice and this paragraph are + * duplicated in all such forms and that any documentation, + * advertising materials, and other materials related to such + * distribution and use acknowledge that the software was developed + * by the University of California, Berkeley. The name of the + * University may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. + */ diff --git a/extra/sysklogd/PKGBUILD b/extra/sysklogd/PKGBUILD new file mode 100644 index 000000000..a548a165c --- /dev/null +++ b/extra/sysklogd/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ +# Maintainer: Eric Belanger <eric@archlinux.org> +# Contributor: judd <jvinet@zeroflux.org> + +pkgname=sysklogd +pkgver=1.5 +pkgrel=2 +pkgdesc="System and kernel log daemons" +arch=('i686' 'x86_64') +url="http://www.infodrom.org/projects/sysklogd/" +license=('GPL' 'BSD') +depends=('glibc' 'logrotate') +provides=('logger') +backup=(etc/syslog.conf) +source=(http://www.infodrom.org/projects/sysklogd/download/$pkgname-$pkgver.tar.gz \ + syslog.conf syslog.logrotate syslogd klogd LICENSE) +md5sums=('e053094e8103165f98ddafe828f6ae4b' 'b8bc568494359fa932b7a5e17c4ba4de'\ + 'fb3fdb03959ff62ede00487c853bb950' '92531ee64cdc0ca978bbe9a81c269211'\ + 'c2fe75c82c35371972b6ceda72d6a861' '7930f7ff5038e1318511624e348581cc') +sha1sums=('070cce745b023f2ce7ca7d9888af434d6d61c236' + '35b4cb76109a6ffe9269021a6bfb4f8da614a4eb' + 'e67c0f78f13c94507d3f686b4e5b8340db4624fd' + '848beb23b9ca4de19c6022df03878dbe57e04c0a' + 'f46088f761c033562a59bc13d4888b7343bc02fc' + 'c416bcefd3d3d618139cc7912310caddf34c0c0b') + +build() { + cd $startdir/src/$pkgname-$pkgver + sed -i "s/-O3/${CFLAGS} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE/" Makefile || return 1 + make || return 1 + install -d $startdir/pkg/usr/sbin + install -d $startdir/pkg/usr/share/man/{man5,man8} + make INSTALL=/bin/install prefix=$startdir/pkg install + install -D -m644 ../syslog.conf $startdir/pkg/etc/syslog.conf + install -D -m644 ../syslog.logrotate $startdir/pkg/etc/logrotate.d/syslog + install -D -m755 ../syslogd $startdir/pkg/etc/rc.d/syslogd + install -D -m755 ../klogd $startdir/pkg/etc/rc.d/klogd + install -D -m644 ../LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE +} diff --git a/extra/sysklogd/klogd b/extra/sysklogd/klogd new file mode 100755 index 000000000..690e13ab4 --- /dev/null +++ b/extra/sysklogd/klogd @@ -0,0 +1,37 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/sbin/klogd` +case "$1" in + start) + stat_busy "Starting Kernel Logger" + [ -z "$PID" ] && /usr/sbin/klogd -c 4 + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon klogd + stat_done + fi + ;; + stop) + stat_busy "Stopping Kernel Logger" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm -f /var/run/klogd.pid + rm_daemon klogd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 diff --git a/extra/sysklogd/syslog.conf b/extra/sysklogd/syslog.conf new file mode 100644 index 000000000..7b0eae2e2 --- /dev/null +++ b/extra/sysklogd/syslog.conf @@ -0,0 +1,15 @@ +# +# /etc/syslog.conf +# + +*.emerg * +*.err /var/log/errors +kern.* /var/log/kernel +authpriv.*;auth.* /var/log/auth +mail.* /var/log/mail +*.info;*.!err;authpriv,auth,mail,kern.none /var/log/messages + +# Log everything to vc12 +# *.* /dev/vc/12 + +# End of file diff --git a/extra/sysklogd/syslog.logrotate b/extra/sysklogd/syslog.logrotate new file mode 100644 index 000000000..b3d8d8552 --- /dev/null +++ b/extra/sysklogd/syslog.logrotate @@ -0,0 +1,6 @@ +/var/log/messages /var/log/auth /var/log/mail /var/log/errors /var/log/kernel { + sharedscripts + postrotate + /bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2> /dev/null || true + endscript +} diff --git a/extra/sysklogd/syslogd b/extra/sysklogd/syslogd new file mode 100755 index 000000000..24c81ec8a --- /dev/null +++ b/extra/sysklogd/syslogd @@ -0,0 +1,37 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions + +PID=`pidof -o %PPID /usr/sbin/syslogd` +case "$1" in + start) + stat_busy "Starting System Logger" + [ -z "$PID" ] && /usr/sbin/syslogd -m 0 + if [ $? -gt 0 ]; then + stat_fail + else + add_daemon syslogd + stat_done + fi + ;; + stop) + stat_busy "Stopping System Logger" + [ ! -z "$PID" ] && kill $PID &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + rm -f /var/run/syslogd.pid + rm_daemon syslogd + stat_done + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac +exit 0 |