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

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since e0507947 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 18 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100755
File size: 1.0 KB
Line 
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.