source: scripts_home/scripts/target-scripts/target-tcp-wrappers.sh@ 1c9c5c3

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

r624@server (orig r622): jim | 2005-10-31 12:40:28 -0800
Rearranging Archive

  • Property mode set to 100755
File size: 1.5 KB
Line 
1#!/bin/bash
2
3# cross-lfs target tcp-wrappers build
4# -----------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG="tcp-wrappers-target.log"
13libdirname=lib
14
15# Test if the 64 script has been called.
16# This should only really get called during bi-arch builds
17SELF=`basename ${0}`
18set_buildenv
19set_libdirname
20setup_multiarch
21
22if [ "${USE_SYSROOT}" = "Y" ]; then
23 BUILD_PREFIX=/usr
24 INSTALL_PREFIX="${LFS}${BUILD_PREFIX}"
25 INSTALL_OPTIONS="DESTDIR=${LFS}"
26else
27 BUILD_PREFIX="${TGT_TOOLS}"
28 INSTALL_PREFIX="${TGT_TOOLS}"
29 INSTALL_OPTIONS=""
30fi
31
32unpack_tarball tcp_wrappers_${TCPWRAP_VER}
33
34cd ${PKGDIR}
35apply_patch tcp_wrappers-7.6-shared_lib_plus_plus-1
36apply_patch tcp_wrappers-7.6-gcc34-1
37
38if [ ! "${libdirname}" = "lib" ]; then
39 sed -i -e "s@/lib/@/${libdirname}/@g" Makefile
40fi
41
42if [ ! "${USE_SYSROOT}" = "Y" ]; then
43 sed -i -e "s@\(\${DESTDIR}\)/usr@\1${TGT_TOOLS}@g" Makefile
44fi
45
46max_log_init tcp-wrappers ${TCPWRAP_VER} "target (shared)" ${BUILDLOGS} ${LOG}
47make CC="${TARGET}-gcc ${ARCH_CFLAGS}" \
48 AR="${TARGET}-ar" RANLIB="${TARGET}-ranlib" \
49 REAL_DAEMON_DIR="${BUILD_PREFIX}/sbin" \
50 STYLE="-DPROCESS_OPTIONS" linux \
51 >> ${LOGFILE} 2>&1 &&
52echo " o Build OK" &&
53
54min_log_init ${INSTLOGS} &&
55#su -c "mkdir -p ${TGT_TOOLS}/share/man/man{5,8} ; make install" \
56mkdir -p ${INSTALL_PREFIX}/share/man/man{5,8} &&
57su -c "make ${INSTALL_OPTIONS} install" \
58 >> ${LOGFILE} 2>&1 &&
59echo " o ALL OK" || barf
60
Note: See TracBrowser for help on using the repository browser.