# Description: For logging system messages, such as those given by the kernel.
# URL: http://www.infodrom.org/projects/sysklogd/
# Maintainer: Dr. Greg Wettstein, greg at wind dot enjellic dot com
# Packager: milisarge@gmail.com
name=sysklogd
version=1.5.1
release=1

source=(http://www.infodrom.org/projects/sysklogd/download/sysklogd-$version.tar.gz)

build()
{
cd sysklogd-$version

sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c

mkdir -p $PKG/{/sbin,etc,usr/share/man/man{5,8}}

make

make BINDIR=$PKG/sbin MANDIR=$PKG/usr/share/man install

cat > $PKG/etc/syslog.conf << "EOF"
# Begin /etc/syslog.conf

auth,authpriv.* -/var/log/auth.log
*.*;auth,authpriv.none -/var/log/sys.log
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log
local7.* -/var/log/pkg-get.log
cron.* -/var/log/cron.log
*.emerg *

# End /etc/syslog.conf
EOF
}