clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since d3d48d51 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
|
Rev | Line | |
---|
[617118d] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | # cross-lfs native sysklogd build
|
---|
| 4 | # -------------------------------
|
---|
| 5 | # $LastChangedBy$
|
---|
| 6 | # $LastChangedDate$
|
---|
| 7 | # $LastChangedRevision$
|
---|
| 8 | # $HeadURL$
|
---|
| 9 | #
|
---|
| 10 |
|
---|
| 11 | cd ${SRC}
|
---|
| 12 | LOG=sysklogd-native.log
|
---|
| 13 |
|
---|
| 14 | set_libdirname
|
---|
| 15 | setup_multiarch
|
---|
| 16 |
|
---|
| 17 | unpack_tarball sysklogd-${SYSKLOGD_VER} &&
|
---|
| 18 | cd ${PKGDIR}
|
---|
| 19 |
|
---|
| 20 | # If using 2.5+ kernels, patch (klogd linux/modules.h)
|
---|
| 21 | case ${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 | ;;
|
---|
| 29 | esac
|
---|
| 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
|
---|
| 34 | test -f Makefile-ORIG ||
|
---|
| 35 | cp Makefile Makefile-ORIG
|
---|
| 36 | sed 's@CFLAGS= $(RPM_OPT_FLAGS) -O3@CFLAGS= $(RPM_OPT_FLAGS)@g' \
|
---|
| 37 | Makefile-ORIG > Makefile
|
---|
| 38 |
|
---|
| 39 | max_log_init Sysklogd ${SYSKLOGD_VER} "native (shared)" ${BUILDLOGS} ${LOG}
|
---|
| 40 | make CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
| 41 | LDFLAGS="-s" RPM_OPT_FLAGS="-O2 -pipe ${TGT_CFLAGS}" \
|
---|
| 42 | >> ${LOGFILE} 2>&1 &&
|
---|
| 43 | echo " o Build OK" &&
|
---|
| 44 |
|
---|
| 45 | min_log_init ${INSTLOGS} &&
|
---|
| 46 | make MANDIR=/usr/share/man install \
|
---|
| 47 | >> ${LOGFILE} 2>&1 &&
|
---|
| 48 | echo " o ALL OK" || barf
|
---|
| 49 |
|
---|
| 50 | # Create /etc/syslog.conf
|
---|
| 51 | # NOTE: Using LFS syslog.conf, copy in real one later
|
---|
| 52 | cat > /etc/syslog.conf << "EOF"
|
---|
| 53 | # Begin /etc/syslog.conf
|
---|
| 54 |
|
---|
| 55 | auth,authpriv.* -/var/log/auth.log
|
---|
| 56 | *.*;auth,authpriv.none -/var/log/sys.log
|
---|
| 57 | daemon.* -/var/log/daemon.log
|
---|
| 58 | kern.* -/var/log/kern.log
|
---|
| 59 | mail.* -/var/log/mail.log
|
---|
| 60 | user.* -/var/log/user.log
|
---|
| 61 | *.emerg *
|
---|
| 62 |
|
---|
| 63 | # End /etc/syslog.conf
|
---|
| 64 | EOF
|
---|
| 65 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.