source: scripts/native-scripts/native-inetutils.sh@ 0fd3a9e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0fd3a9e 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.2 KB
RevLine 
[617118d]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.