source: scripts/native-scripts/native-inetutils.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.2 KB
Line 
1#!/bin/bash
2
3# cross-lfs native inetutils build
4# --------------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11cd ${SRC}
12LOG=inetutils-native.log
13
14set_libdirname
15setup_multiarch
16
17unpack_tarball inetutils-${INETUTILS_VER}
18cd ${PKGDIR}
19
20# Retrieve target_gcc_ver from gcc -v output
21target_gcc_ver=`${TARGET}-gcc -v 2>&1 | grep " version " | \
22   sed 's@.*version \([0-9.]*\).*@\1@g'`
23
24case ${target_gcc_ver} in
25   4.* )
26      apply_patch inetutils-1.4.2-gcc4_fixes-1
27   ;;
28esac
29
30max_log_init inetutils ${INETUTILS_VER} "native (shared)" ${CONFLOGS} ${LOG}
31CC="${CC-gcc} ${ARCH_CFLAGS}" \
32CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
33./configure --prefix=/usr \
34   --libexecdir=/usr/${libdirname}/inetutils \
35   --sysconfdir=/etc --localstatedir=/var \
36   --mandir=/usr/share/man --infodir=/usr/share/info \
37   --disable-whois --disable-syslogd --disable-logger --disable-servers \
38   >> ${LOGFILE} 2>&1 &&
39echo " o Configure OK" &&
40
41min_log_init ${BUILDLOGS} &&
42make LDFLAGS="-s" \
43   >> ${LOGFILE} 2>&1 &&
44echo " o Build OK" &&
45
46min_log_init ${INSTLOGS} &&
47make install \
48   >> ${LOGFILE} 2>&1 &&
49echo " o ALL OK" || barf
50
51mv /usr/bin/ping /bin/
52
Note: See TracBrowser for help on using the repository browser.