source: scripts/target-scripts/target-tcp-wrappers.sh @ 617118d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 617118d was 617118d, checked in by Jim Gifford <clfs@…>, 18 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 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.