$ tar zxf unzip551.tar.gz $ cd unzip-5.51/ $ bzcat ../unzip-5.50-iconv-00.diff.bz2 | patch -p1 patching file fileio.c Hunk #1 succeeded at 1923 (offset 6 lines). Hunk #2 succeeded at 2162 (offset 6 lines). patching file unix/Makefile Hunk #1 succeeded at 45 with fuzz 2. patching file unzip.c Hunk #1 succeeded at 610 (offset 6 lines). Hunk #2 succeeded at 648 (offset 6 lines).
$ vi unix/Makefile 【変更前】 45: CC = cc 105: prefix = /usr/local 【変更後】 45: CC = gcc 105: prefix = /usr
$ make -f unix/Makefile generic $ su # make -f unix/Makefile install
$ ls -lt /usr/bin -rwxr-xr-x 1 root root 18964 Feb 5 16:04 funzip -rwxr-xr-x 2 root root 115576 Feb 5 16:04 unzip -rwxr-xr-x 1 root root 56004 Feb 5 16:04 unzipsfx -rwxr-xr-x 1 root root 1188 Feb 5 16:04 zipgrep -rwxr-xr-x 2 root root 115576 Feb 5 16:04 zipinfo
real | user | sys | |
make | 1m36.342s | 1m29.660s | 0m6.700s |
$ unzip -l test.zip Archive: test.zip Length Date Time Name -------- ---- ---- ---- unzip: Invlaide zip magic