clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 0ee931e 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 native bzip2 build
|
---|
4 | # ----------------------------
|
---|
5 | # $LastChangedBy$
|
---|
6 | # $LastChangedDate$
|
---|
7 | # $LastChangedRevision$
|
---|
8 | # $HeadURL$
|
---|
9 | #
|
---|
10 |
|
---|
11 | cd ${SRC}
|
---|
12 | LOG="bzip2-native.log"
|
---|
13 |
|
---|
14 | SELF=`basename ${0}`
|
---|
15 | set_buildenv
|
---|
16 | set_libdirname
|
---|
17 | setup_multiarch
|
---|
18 |
|
---|
19 | unpack_tarball bzip2-${BZIP2_VER} &&
|
---|
20 | cd ${PKGDIR}
|
---|
21 |
|
---|
22 | # Edit Makefiles
|
---|
23 | for file in Makefile-libbz2_so Makefile ; do
|
---|
24 | test -f ${file}-ORIG ||
|
---|
25 | mv ${file} ${file}-ORIG
|
---|
26 |
|
---|
27 | sed -e "s@/lib\(/\| \|$\)@/${libdirname}\1@g" \
|
---|
28 | ${file}-ORIG > ${file}
|
---|
29 | done
|
---|
30 |
|
---|
31 | max_log_init Bzip2 ${BZIP2_VER} "target (shared)" ${BUILDLOGS} ${LOG}
|
---|
32 | make \
|
---|
33 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
34 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
35 | LDFLAGS="-s" -f Makefile-libbz2_so \
|
---|
36 | >> ${LOGFILE} 2>&1 &&
|
---|
37 | echo -e "\n${BRKLN}" >> ${LOGFILE} &&
|
---|
38 | make ${PMFLAGS} \
|
---|
39 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
40 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
41 | LDFLAGS="-s" \
|
---|
42 | -f Makefile-libbz2_so \
|
---|
43 | >> ${LOGFILE} 2>&1 &&
|
---|
44 | echo " o Build OK" || barf
|
---|
45 |
|
---|
46 | # Remove existing symlinks/files
|
---|
47 | rm -f /usr/bin/bz* /bin/bz* &&
|
---|
48 |
|
---|
49 | min_log_init ${INSTLOGS} &&
|
---|
50 | make \
|
---|
51 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
52 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
53 | PREFIX=/usr install \
|
---|
54 | >> ${LOGFILE} 2>&1 &&
|
---|
55 | echo " o ALL OK" || barf
|
---|
56 |
|
---|
57 | cp -f bzip2-shared /bin/bzip2
|
---|
58 | cp -af libbz2.so* /${libdirname} &&
|
---|
59 | ln -sf ../../${libdirname}/libbz2.so.1.0 /usr/${libdirname}/libbz2.so &&
|
---|
60 | rm -f /usr/bin/{bunzip2,bzcat,bzip2} &&
|
---|
61 | mv -f /usr/bin/{bzip2recover,bzless,bzmore} /bin &&
|
---|
62 | ln -sf bzip2 /bin/bunzip2 &&
|
---|
63 | ln -sf bzip2 /bin/bzcat &&
|
---|
64 |
|
---|
65 | /sbin/ldconfig
|
---|
66 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.