clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
|
Last change
on this file since 8080e7a was 16fbfc51, checked in by Jim Gifford <clfs@…>, 20 years ago |
r575@server (orig r573): ryan | 2005-06-09 08:51:24 -0700
Add ncompress build script
gcc-3.4 fixes patch is from gentoo
ncompress_4.2.4-15 patch (add bounds checking to fix buffer overflow) from
debian
|
-
Property mode
set to
100755
|
|
File size:
879 bytes
|
| Rev | Line | |
|---|
| [16fbfc51] | 1 | #!/bin/bash
|
|---|
| 2 | #
|
|---|
| 3 | # ncompress
|
|---|
| 4 | #
|
|---|
| 5 |
|
|---|
| 6 | cd ${SRC}
|
|---|
| 7 | LOG=blfs-ncompress.log
|
|---|
| 8 |
|
|---|
| 9 | set_libdirname
|
|---|
| 10 | setup_multiarch
|
|---|
| 11 |
|
|---|
| 12 | unpack_tarball ncompress-${NCOMPRESS_VER} &&
|
|---|
| 13 | cd ${PKGDIR}
|
|---|
| 14 |
|
|---|
| 15 | case ${NCOMPRESS_VER} in
|
|---|
| 16 | 4.2.4 )
|
|---|
| 17 | apply_patch ncompress-4.2.4-gcc34
|
|---|
| 18 | apply_patch ncompress_4.2.4-15
|
|---|
| 19 | ;;
|
|---|
| 20 | * )
|
|---|
| 21 | echo "*** Please check if ncompress ${NCOMPRESS_VER} requires patching ***"
|
|---|
| 22 | echo "*** then please update this script (and send patch) ***"
|
|---|
| 23 | exit 1
|
|---|
| 24 | ;;
|
|---|
| 25 | esac
|
|---|
| 26 |
|
|---|
| 27 | max_log_init ncompress ${NCOMPRESS_VER} "blfs (shared)" ${BUILDLOGS} ${LOG}
|
|---|
| 28 |
|
|---|
| 29 | sed -e "s@options= @options= -O3 ${TGT_CFLAGS} @" \
|
|---|
| 30 | -e "s@CC=cc@CC=${CC-gcc} ${ARCH_CFLAGS}@" \
|
|---|
| 31 | Makefile.def > Makefile
|
|---|
| 32 |
|
|---|
| 33 | make \
|
|---|
| 34 | >> ${LOGFILE} 2>&1 &&
|
|---|
| 35 | echo " o Build OK" || barf
|
|---|
| 36 |
|
|---|
| 37 | if [ -f /usr/bin/compress ]; then rm -f /usr/bin/compress ; fi
|
|---|
| 38 | rm -f /usr/bin/uncompress
|
|---|
| 39 | cp compress /usr/bin/compress
|
|---|
| 40 | ln -sf compress /usr/bin/uncompress
|
|---|
| 41 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.