source: scripts/native-scripts/native-sysklogd.sh@ 23b6afb

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 23b6afb was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.5 KB
Line 
1#!/bin/bash
2
3# cross-lfs native sysklogd build
4# -------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=sysklogd-native.log
13
14set_libdirname
15setup_multiarch
16
17unpack_tarball sysklogd-${SYSKLOGD_VER} &&
18cd ${PKGDIR}
19
20# If using 2.5+ kernels, patch (klogd linux/modules.h)
21case ${KERNEL_VER} in
22 2.[56].* )
23 case ${SYSKLOGD_VER} in
24 1.4.[1-9]* )
25 apply_patch sysklogd-${SYSKLOGD_VER}
26 ;;
27 esac
28 ;;
29esac
30
31# This package defaults to optimisation level -O3
32# Following strips this out, allowing us to set CFLAGS
33# with whatever optimisation we want via RPM_OPT_FLAGS
34test -f Makefile-ORIG ||
35 cp Makefile Makefile-ORIG
36sed 's@CFLAGS= $(RPM_OPT_FLAGS) -O3@CFLAGS= $(RPM_OPT_FLAGS)@g' \
37 Makefile-ORIG > Makefile
38
39max_log_init Sysklogd ${SYSKLOGD_VER} "native (shared)" ${BUILDLOGS} ${LOG}
40make CC="${CC-gcc} ${ARCH_CFLAGS}" \
41 LDFLAGS="-s" RPM_OPT_FLAGS="-O2 -pipe ${TGT_CFLAGS}" \
42 >> ${LOGFILE} 2>&1 &&
43echo " o Build OK" &&
44
45min_log_init ${INSTLOGS} &&
46make MANDIR=/usr/share/man install \
47 >> ${LOGFILE} 2>&1 &&
48echo " o ALL OK" || barf
49
50# Create /etc/syslog.conf
51# NOTE: Using LFS syslog.conf, copy in real one later
52cat > /etc/syslog.conf << "EOF"
53# Begin /etc/syslog.conf
54
55auth,authpriv.* -/var/log/auth.log
56*.*;auth,authpriv.none -/var/log/sys.log
57daemon.* -/var/log/daemon.log
58kern.* -/var/log/kern.log
59mail.* -/var/log/mail.log
60user.* -/var/log/user.log
61*.emerg *
62
63# End /etc/syslog.conf
64EOF
65
Note: See TracBrowser for help on using the repository browser.