Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: gzip-1.2.4a   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code is available here.

Run these commands:

cd /sources/  &&
rm -rf gzip-1.2.4a &&
rm -f /bin/gunzip &&
rm -f /bin/zcat &&
rm -f /bin/uncompress &&
tar -xjf gzip-1.2.4a.tar.bz2 &&
cd gzip-1.2.4a &&
patch -Np1 -i ../gzip-1.2.4b.patch &&
./configure --prefix=/usr &&
cp gzexe.in{,.backup} &&
sed 's%"BINDIR"%/bin%' gzexe.in.backup > gzexe.in &&
make &&
make install &&
mv /usr/bin/gzip /bin &&
rm /usr/bin/{gunzip,zcat} &&
ln -s gzip /bin/gunzip &&
ln -s gzip /bin/zcat &&
ln -s gunzip /bin/uncompress

The output should look something like this:

patching file gzip.c
checking for gcc
checking how to run the C preprocessor
checking for underline in external names
checking for assembler
checking for install
checking for AIX
checking for minix/config.h
checking for POSIXized ISC
checking for DYNIX/ptx libseq
checking for ANSI C header files
checking for string.h
checking for stdlib.h
checking for memory.h
checking for fcntl.h
checking for time.h
checking for unistd.h
checking for utime.h
checking for directory library header
checking for dirent.h
checking for closedir return value
checking for Xenix
checking for return type of signal handlers
checking for size_t in sys/types.h
checking if `#!' works in shell scripts
creating config.status
creating Makefile
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O gzip.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O zip.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O deflate.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O trees.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O bits.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O unzip.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O inflate.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O util.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O crypt.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O lzw.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O unlzw.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O unpack.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O unlzh.c
gcc -c -DASMV -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 -DDIRENT=1
-O getopt.c
gcc -E -DNO_UNDERLINE ./match.S > _match.s
gcc -c _match.s
mv _match.o match.o
rm -f _match.s
gcc -O -o gzip gzip.o zip.o deflate.o trees.o bits.o
unzip.o inflate.o util.o crypt.o lzw.o unlzw.o unpack.o
unlzh.o getopt.o match.o 
rm -f gunzip zcat
ln gzip gunzip
ln gzip zcat
if test ! -d /usr/man; then \
.
.
.
gcc -c _match.s
mv _match.o match.o
rm -f _match.s
gcc -O -o gzip gzip.o zip.o deflate.o trees.o bits.o
unzip.o inflate.o util.o crypt.o lzw.o unlzw.o unpack.o
unlzh.o getopt.o match.o 
rm -f gunzip zcat
ln gzip gunzip
ln gzip zcat
if test ! -d /usr/man; then \
   mkdir /usr/man; fi
for dir in /usr/bin /usr/bin /usr/lib /usr/lib /usr/info
/usr/man/man1 ; do \
   if test ! -d ${dir}; then \
     mkdir ${dir}; fi; \
done
sed -e """" -e ""s|BINDIR|/usr/bin|"" ./zdiff.in > zdiff
chmod 755 zdiff
sed -e """" -e ""s|BINDIR|/usr/bin|"" ./zgrep.in > zgrep
chmod 755 zgrep
sed -e """" -e ""s|BINDIR|/usr/bin|"" ./zmore.in > zmore
chmod 755 zmore
sed -e """" -e ""s|BINDIR|/usr/bin|"" ./znew.in > znew
chmod 755 znew
sed -e """" -e ""s|BINDIR|/usr/bin|"" ./zforce.in > zforce
chmod 755 zforce
sed -e """" -e ""s|BINDIR|/usr/bin|"" ./gzexe.in > gzexe
chmod 755 gzexe
/bin/install -c gzip /usr/bin/gzip
for f in zdiff zgrep zmore znew zforce gzexe; do \
  /bin/install -c ${f} /usr/bin/${f}; done
rm -f /usr/bin/zcmp; \
  ln /usr/bin/zdiff /usr/bin/zcmp
for f in gunzip ungzip zcat ; do \
  rm -f /usr/bin/${f}; done
for f in gzip gunzip zcat zdiff zgrep zmore znew zforce
gzexe zcmp; do \
  rm -f /usr/man/man1/${f}.1; done
cd .; for f in gzip gzexe; do \
  /bin/install -c -m 644 ${f}.1 /usr/man/man1/${f}.1; done
cd .; for f in zdiff zgrep zmore znew zforce; do \
  /bin/install -c -m 644 ${f}.1 /usr/man/man1/${f}.1; done
cd /usr/man/man1; if test ln = so; then \
  echo .so man1/gzip.1	    > zcat.1;\
  echo .so man1/zdiff.1 > zcmp.1;\
  echo .so man1/gzip.1	    > gunzip.1;\
  chmod 644 zcat.1 zcmp.1 gunzip.1;\
else \
  ln gzip.1  zcat.1;\
  ln zdiff.1 zcmp.1;\
  ln gzip.1  gunzip.1;\
fi
cd .; for f in gzip.info* ; do /bin/install -c -m 644 ${f}
\
  /usr/info/${f}; done


~~~
Please read our Terms of Use and our Privacy Policy
A tip o' the hat to the folks at Linux From Scratch, who provided a lot of the know-how and framing for the NoNIC OS.

Copyright 2006-2009 NoNIC.org

Created by:
MCJ
MCJ CMS