source: scripts/untested/blfs-scripts/blfs-ncompress.sh@ def3913

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since def3913 was 16fbfc51, checked in by Jim Gifford <clfs@…>, 19 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
RevLine 
[16fbfc51]1#!/bin/bash
2#
3# ncompress
4#
5
6cd ${SRC}
7LOG=blfs-ncompress.log
8
9set_libdirname
10setup_multiarch
11
12unpack_tarball ncompress-${NCOMPRESS_VER} &&
13cd ${PKGDIR}
14
15case ${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 ;;
25esac
26
27max_log_init ncompress ${NCOMPRESS_VER} "blfs (shared)" ${BUILDLOGS} ${LOG}
28
29sed -e "s@options= @options= -O3 ${TGT_CFLAGS} @" \
30 -e "s@CC=cc@CC=${CC-gcc} ${ARCH_CFLAGS}@" \
31 Makefile.def > Makefile
32
33make \
34 >> ${LOGFILE} 2>&1 &&
35echo " o Build OK" || barf
36
37if [ -f /usr/bin/compress ]; then rm -f /usr/bin/compress ; fi
38rm -f /usr/bin/uncompress
39cp compress /usr/bin/compress
40ln -sf compress /usr/bin/uncompress
41
Note: See TracBrowser for help on using the repository browser.