2008-10-25 03:39:51 +02:00
|
|
|
# Template file for 'sysklogd'
|
|
|
|
pkgname=sysklogd
|
|
|
|
version=1.5
|
|
|
|
distfiles="
|
2008-10-28 23:57:52 +01:00
|
|
|
http://www.infodrom.org/projects/sysklogd/download/$pkgname-$version.tar.gz"
|
2008-10-25 03:39:51 +02:00
|
|
|
build_style=gnu_makefile
|
|
|
|
make_install_target="prefix=$XBPS_DESTDIR/$pkgname-$version install"
|
|
|
|
short_desc="Kernel and system logging daemons"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
checksum=6169b8e91d29288e90404f01462b69e7f2afb1161aa419826fe4736c7f9eb773
|
|
|
|
long_desc="
|
|
|
|
This package implements two system log daemons. The syslogd daemon is an
|
|
|
|
enhanced version of the standard Berkeley utility program. This daemon is
|
|
|
|
responsible for providing logging of messages received from programs and
|
|
|
|
facilities on the local host as well as from remote hosts.
|
|
|
|
|
|
|
|
The klogd daemon listens to kernel message sources and is responsible for
|
|
|
|
prioritizing and processing operating system messages. The klogd daemon can
|
|
|
|
run as a client of syslogd or optionally as a standalone program.
|
|
|
|
Klogd can now be used to decode EIP addresses if it can determine a
|
|
|
|
System.map file."
|
|
|
|
|
|
|
|
run_depends="glibc-2.8"
|
2008-11-26 16:29:05 +01:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
|
|
|
|
|
|
|
# Create a default syslog.conf.
|
|
|
|
mkdir -p $destdir/etc
|
|
|
|
( \
|
|
|
|
echo "auth,authpriv.* -/var/log/auth.log"; \
|
|
|
|
echo "*.*;auth,authpriv.none -/var/log/sys.log"; \
|
|
|
|
echo "daemon.* -/var/log/daemon.log"; \
|
|
|
|
echo "kern.* -/var/log/kern.log"; \
|
|
|
|
echo "mail.* -/var/log/mail.log"; \
|
|
|
|
echo "user.* -/var/log/user.log"; \
|
|
|
|
echo "*.emerg *"; \
|
|
|
|
) > $destdir/etc/syslog.conf
|
|
|
|
}
|