source: scripts/native-scripts/native-tar.sh@ d5e4fdc0

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since d5e4fdc0 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.0 KB
RevLine 
[617118d]1#!/bin/bash
2
3# cross-lfs native tar build
4# --------------------------
5# $LastChangedBy$
6# $LastChangedDate$
7# $LastChangedRevision$
8# $HeadURL$
9#
10
11# 20030419 - make libexecdir /usr/lib/tar (FHS Compliant)
12
13cd ${SRC}
14LOG=tar-native.log
15unpack_tarball tar-${TAR_VER}
16set_libdirname
17setup_multiarch
18
19cd ${PKGDIR}
20case ${TAR_VER} in
21 1.13 ) apply_patch tar-${TAR_VER} ;;
22 1.15.1 ) apply_patch tar-1.15.1-sparse_fix-1
23 apply_patch tar-1.15.1-gcc4_fix_tests ;;
24esac
25
26max_log_init Tar ${TAR_VER} "native (shared)" ${CONFLOGS} ${LOG}
27CFLAGS="-O2 -pipe ${ARCH_CFLAGS} ${TGT_CFLAGS}" \
28./configure --prefix=/usr --bindir=/bin \
29 --libexecdir=/usr/${libdirname}/tar \
30 >> ${LOGFILE} 2>&1 &&
31echo " o Configure OK" &&
32
33min_log_init ${BUILDLOGS} &&
34make ${PMFLAGS} LDFLAGS="-s" \
35 >> ${LOGFILE} 2>&1 &&
36echo " o Build OK" &&
37
38min_log_init ${TESTLOGS} &&
39make check \
40 >> ${LOGFILE} 2>&1 &&
41echo " o Test OK" &&
42
43min_log_init ${INSTLOGS} &&
44make install \
45 >> ${LOGFILE} 2>&1 &&
46echo " o ALL OK" || barf
47
Note: See TracBrowser for help on using the repository browser.