1 # hdw - linux bzip2 package
3 # author: hackbard@hackdaworld.dyndns.org
7 # [D] bzip2-1.0.2.tar.gz ftp://sources.redhat.com/pub/bzip2/v102/
9 e_ver=`echo $ver | awk -F. '{ print $1 "." $2 }'`
11 if [ "$hdw_status" = "2" ] ; then
13 make -f Makefile-libbz2_so
15 rm -f $prefix/bin/bz{cat,cmp,diff,grep,ip2*,less,more}
19 cp bzip2-shared $root/bin/bzip2 &&
20 cp -a libbz2.so* $root/lib &&
21 ln -svf ../../lib/libbz2.so.${e_ver} $root/usr/lib/libbz2.so &&
22 rm $root/usr/bin/{bunzip2,bzcat,bzip2} &&
23 mv $root/usr/bin/{bzip2recover,bzless,bzmore} $root/bin &&
24 ln -svf bzip2 $root/bin/bunzip2 &&
25 ln -svf bzip2 $root/bin/bzcat