The Sysklogd package contains programs for logging system messages, such as those given by the kernel when unusual things happen.
The following patch fixes various issues, including a problem building Sysklogd with Linux 2.6 series kernels:
patch -Np1 -i ../sysklogd-1.4.1-fixes-1.patch
The following sed prevents changing the owner of the installed man pages and prevents install from trying to strip the installed binaries:
cp Makefile{,.orig}
sed -e 's/-o ${MAN_USER} -g ${MAN_GROUP}//' \
-e 's/500 -s/500/' Makefile.orig > Makefile
Compile the package:
make CC="${CC}"
Install the package:
make prefix=${CLFS} install
Create a new ${CLFS}/etc/syslog.conf file by running the following:
cat > ${CLFS}/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
*.info;mail.none;authpriv.none;cron.none -/var/log/messages
*.emerg *
# log the bootscript output:
local2.* -/var/log/boot.log
# End /etc/syslog.conf
EOF