blob: 9ad7887874adf84eb357e5bee02845e24d93fb82 (
plain)
1 # Description: Decompress utility for zipfiles
2 # URL: http://infozip.sourceforge.net/UnZip.html
3 # Maintainer: CRUX System Team, core-ports at crux dot nu
4
5 name=unzip
6 version=6.0
7 release=6
8 source=(http://downloads.sourceforge.net/sourceforge/infozip/${name}${version//./}.tar.gz \
9 unzip-6.0-overflow.patch unzip-6.0-attribs-overflow.patch \
10 unzip-6.0-heap-overflow-infloop.patch \
11 unzip-6.0-cve-2014-8139.patch \
12 unzip-6.0-cve-2014-8140.patch \
13 unzip-6.0-cve-2014-8141.patch)
14
15 build() {
16 cd ${name}${version//./}
17 patch -p1 -i $SRC/unzip-6.0-overflow.patch
18 patch -p1 -i $SRC/unzip-6.0-attribs-overflow.patch
19 patch -p1 -i $SRC/unzip-6.0-heap-overflow-infloop.patch
20 patch -p1 -i $SRC/unzip-6.0-cve-2014-8139.patch
21 patch -p1 -i $SRC/unzip-6.0-cve-2014-8140.patch
22 patch -p1 -i $SRC/unzip-6.0-cve-2014-8141.patch
23
24 sed -i 's/-O3//' unix/configure
25 make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" generic
26 make -f unix/Makefile prefix=$PKG/usr MANDIR=$PKG/usr/share/man/man1 install
27 ln -sf unzip $PKG/usr/bin/zipinfo
28 }
|