mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-22 15:22:56 +00:00
Add 8.75 - Build sysklogd
This commit is contained in:
parent
94d62870a3
commit
27d3cc483b
2 changed files with 45 additions and 0 deletions
34
scripts/chapter8/8.75-sysklogd.sh
Normal file
34
scripts/chapter8/8.75-sysklogd.sh
Normal 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
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue