Add 8.75 - Build sysklogd

This commit is contained in:
Aditya 2023-01-12 20:04:00 +05:30
parent 94d62870a3
commit 27d3cc483b
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,34 @@
#!/bin/bash
cd /sources
tar xf sysklogd-1.5.1.tar.gz
cd sysklogd-1.5.1
sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c
sed -i 's/union wait/int/' syslogd.c
make -j5
if [ $? -ne 0 ]
then
exit 1
fi
make BINDIR=/sbin install
cat > /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
cd /sources
rm -rf sysklogd-1.5.1

View file

@ -1437,4 +1437,15 @@ if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.74-e2fsprogs.sh"
fi
# chapter8.75
# ===========
echo "Building sysklogd"
su -c "bash $SCRIPT/chapter8/8.75-sysklogd.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter8/8.75-sysklogd.sh"
fi