unzip: syntax
This commit is contained in:
parent
d4a2367af7
commit
ae0733c5bd
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/U+lQa2p9GXkrS4tGusd6mGpljiq6h1SgJx6cZGoMPeGuSh/54lf/bI3nws9raM+XYq6ajd4aBywlFRjnkpwrAg=
|
||||
SHA256 (Pkgfile) = cd04f724cda5bc9cd4860bb3b297d0fc4cb7e21f33f5b8255d78f2c0ac1d2d65
|
||||
RWSE3ohX2g5d/R7O45474ZQ+K45Hf9/iDhigZ4Baf/L0OHwJIGYHlZZhSQSu3EZRX5/Zw4rGAxHwaPpyGKX6jX3bixZSrOpUoww=
|
||||
SHA256 (Pkgfile) = 16eadedbcb7d94a93429ef704f7fcd31c2a213343b9837ac2e2359f9aaac8f1e
|
||||
SHA256 (.footprint) = a1d2c71a5371982b87a8a14082aa2236258f84e0d602ec39247e0d63bf46ffdd
|
||||
SHA256 (unzip60.tar.gz) = 036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
|
||||
SHA256 (unzip-6.0-overflow.patch) = dcd41e0be383c485427fc5461a1aeb8a6207e7fcacf0d254f18700599845a9da
|
||||
|
@ -1,34 +1,34 @@
|
||||
# Description: Decompress utility for zipfiles
|
||||
# URL: http://infozip.sourceforge.net/UnZip.html
|
||||
# URL: http://infozip.sourceforge.net/UnZip.html
|
||||
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
||||
|
||||
name=unzip
|
||||
version=6.0
|
||||
release=7
|
||||
source=(http://downloads.sourceforge.net/sourceforge/infozip/${name}${version//./}.tar.gz \
|
||||
unzip-6.0-overflow.patch unzip-6.0-attribs-overflow.patch \
|
||||
unzip-6.0-heap-overflow-infloop.patch \
|
||||
unzip-6.0-cve-2014-8139.patch \
|
||||
unzip-6.0-cve-2014-8140.patch \
|
||||
unzip-6.0-cve-2014-8141.patch \
|
||||
0001-Fix-CVE-2016-9844-rhbz-1404283.patch \
|
||||
unzip-6.0-cve-2018-1000035-heap-based-overflow.patch \
|
||||
source=(http://downloads.sourceforge.net/sourceforge/infozip/${name}${version//./}.tar.gz
|
||||
unzip-6.0-overflow.patch unzip-6.0-attribs-overflow.patch
|
||||
unzip-6.0-heap-overflow-infloop.patch
|
||||
unzip-6.0-cve-2014-8139.patch
|
||||
unzip-6.0-cve-2014-8140.patch
|
||||
unzip-6.0-cve-2014-8141.patch
|
||||
0001-Fix-CVE-2016-9844-rhbz-1404283.patch
|
||||
unzip-6.0-cve-2018-1000035-heap-based-overflow.patch
|
||||
unzip-6.0-alt-iconv-utf8-print.patch)
|
||||
|
||||
build() {
|
||||
cd ${name}${version//./}
|
||||
patch -p1 -i $SRC/unzip-6.0-overflow.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-attribs-overflow.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-heap-overflow-infloop.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-cve-2014-8139.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-cve-2014-8140.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-cve-2014-8141.patch
|
||||
patch -p1 -i $SRC/0001-Fix-CVE-2016-9844-rhbz-1404283.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-cve-2018-1000035-heap-based-overflow.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-alt-iconv-utf8-print.patch
|
||||
cd ${name}${version//./}
|
||||
patch -p1 -i $SRC/unzip-6.0-overflow.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-attribs-overflow.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-heap-overflow-infloop.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-cve-2014-8139.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-cve-2014-8140.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-cve-2014-8141.patch
|
||||
patch -p1 -i $SRC/0001-Fix-CVE-2016-9844-rhbz-1404283.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-cve-2018-1000035-heap-based-overflow.patch
|
||||
patch -p1 -i $SRC/unzip-6.0-alt-iconv-utf8-print.patch
|
||||
|
||||
sed -i 's/-O3//' unix/configure
|
||||
make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" generic
|
||||
make -f unix/Makefile prefix=$PKG/usr MANDIR=$PKG/usr/share/man/man1 install
|
||||
ln -sf unzip $PKG/usr/bin/zipinfo
|
||||
sed -i 's/-O3//' unix/configure
|
||||
make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" generic
|
||||
make -f unix/Makefile prefix=$PKG/usr MANDIR=$PKG/usr/share/man/man1 install
|
||||
ln -sf unzip $PKG/usr/bin/zipinfo
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user