LFS buld scripts.
http://linuxfromscratch.org/lfs/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
540 B
33 lines
540 B
#!/bin/bash |
|
|
|
#### bzip2 |
|
|
|
cd /sources |
|
|
|
tar -xf bzip2-1.0.6.tar.gz |
|
|
|
cd bzip2-1.0.6 |
|
|
|
patch -Np1 -i ../bzip2-1.0.6-install_docs-1.patch |
|
|
|
sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile |
|
sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile |
|
|
|
make -f Makefile-libbz2_so |
|
make clean |
|
|
|
make |
|
|
|
make PREFIX=/usr install |
|
|
|
cp -v bzip2-shared /bin/bzip2 |
|
cp -av libbz2.so* /lib |
|
ln -svf ../../lib/libbz2.so.1.0 /usr/lib/libbz2.so |
|
rm -vf /usr/bin/{bunzip2,bzcat,bzip2} |
|
ln -svf bzip2 /bin/bunzip2 |
|
ln -svf bzip2 /bin/bzcat |
|
|
|
cd /sources |
|
|
|
rm -rf bzip2-1.0.6 |
|
|
|
|