clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since c0a1333 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 target tcp-wrappers build
|
---|
4 | # -----------------------------------
|
---|
5 | # $LastChangedBy$
|
---|
6 | # $LastChangedDate$
|
---|
7 | # $LastChangedRevision$
|
---|
8 | # $HeadURL$
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG="tcp-wrappers-target.log"
|
---|
13 | libdirname=lib
|
---|
14 |
|
---|
15 | # Test if the 64 script has been called.
|
---|
16 | # This should only really get called during bi-arch builds
|
---|
17 | SELF=`basename ${0}`
|
---|
18 | set_buildenv
|
---|
19 | set_libdirname
|
---|
20 | setup_multiarch
|
---|
21 |
|
---|
22 | if [ "${USE_SYSROOT}" = "Y" ]; then
|
---|
23 | BUILD_PREFIX=/usr
|
---|
24 | INSTALL_PREFIX="${LFS}${BUILD_PREFIX}"
|
---|
25 | INSTALL_OPTIONS="DESTDIR=${LFS}"
|
---|
26 | else
|
---|
27 | BUILD_PREFIX="${TGT_TOOLS}"
|
---|
28 | INSTALL_PREFIX="${TGT_TOOLS}"
|
---|
29 | INSTALL_OPTIONS=""
|
---|
30 | fi
|
---|
31 |
|
---|
32 | unpack_tarball tcp_wrappers_${TCPWRAP_VER}
|
---|
33 |
|
---|
34 | cd ${PKGDIR}
|
---|
35 | apply_patch tcp_wrappers-7.6-shared_lib_plus_plus-1
|
---|
36 | apply_patch tcp_wrappers-7.6-gcc34-1
|
---|
37 |
|
---|
38 | if [ ! "${libdirname}" = "lib" ]; then
|
---|
39 | sed -i -e "s@/lib/@/${libdirname}/@g" Makefile
|
---|
40 | fi
|
---|
41 |
|
---|
42 | if [ ! "${USE_SYSROOT}" = "Y" ]; then
|
---|
43 | sed -i -e "s@\(\${DESTDIR}\)/usr@\1${TGT_TOOLS}@g" Makefile
|
---|
44 | fi
|
---|
45 |
|
---|
46 | max_log_init tcp-wrappers ${TCPWRAP_VER} "target (shared)" ${BUILDLOGS} ${LOG}
|
---|
47 | make 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 &&
|
---|
52 | echo " o Build OK" &&
|
---|
53 |
|
---|
54 | min_log_init ${INSTLOGS} &&
|
---|
55 | #su -c "mkdir -p ${TGT_TOOLS}/share/man/man{5,8} ; make install" \
|
---|
56 | mkdir -p ${INSTALL_PREFIX}/share/man/man{5,8} &&
|
---|
57 | su -c "make ${INSTALL_OPTIONS} install" \
|
---|
58 | >> ${LOGFILE} 2>&1 &&
|
---|
59 | echo " o ALL OK" || barf
|
---|
60 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.