3.74. sysklogd-1.5.1
#!/bin/sh # Copyright © 1999-2022 Gerard Beekmans # Copyright © 2017-2022 Random Crew # Distributed under the terms of MIT License.
Configuration
src_config()
{
sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c
sed -i 's/union wait/int/' syslogd.c
}
Compilation
src_compile()
{
make ${MAKEOPTS}
}
Installation
There are more options for make install. They are needed for installation from non-privileged user and to custom directory D.
src_install()
{
mkdir -p \
${D}/sbin/ \
${D}/usr/share/man/man8/ \
${D}/usr/share/man/man5/
make install ${MAKEOPTS} prefix=${D} BINDIR=${D}/sbin \
MAN_USER="$(id -un)" MAN_GROUP="$(id -gn)"
mkdir -p ${D}/etc/
cat > ${D}/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
*.emerg *
# End /etc/syslog.conf
EOF
}
Unit testing
src_check()
{
make check
}
Build code
Other files
Links
- url.lfs: https://linuxfromscratch.org/lfs/view/11.0/chapter08/sysklogd.html
- url.lfs.stage1: