# Contributor: Sergei Lukin # Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=wget pkgver=1.18 pkgrel=3 pkgdesc="A network utility to retrieve files from the Web" url="http://www.gnu.org/software/wget/wget.html" arch="all" license="GPL3+" depends="" makedepends="openssl-dev perl" subpackages="$pkgname-doc" install="" source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz CVE-2017-6508.patch CVE-2017-13089.patch CVE-2017-13090.patch CVE-2018-0494.patch " # secfixes: # 1.18-r3: # - CVE-2018-0494 # 1.18-r2: # - CVE-2017-13089 # - CVE-2017-13090 # 1.18-r1: # - CVE-2017-6508 # 1.17.1-r1: # - CVE-2016-4971 _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-ssl=openssl \ --disable-nls \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -rf "$pkgdir"/usr/lib/charset.alias rmdir -p "$pkgdir"/usr/lib 2>/dev/null return 0 } md5sums="fc2debd8399e3b933a9b226794e2a886 wget-1.18.tar.gz 142f1d01db302e1429673701472df182 CVE-2017-6508.patch 61d7441aca33e5d241fe11446e24788c CVE-2017-13089.patch 878db4645e5f3fc4530451082ba3fdea CVE-2017-13090.patch f94bf8d4b9cc860bdba673675c6c6af1 CVE-2018-0494.patch" sha256sums="a00a65fab84cc46e24c53ce88c45604668a7a479276e037dc2f558e34717fb2d wget-1.18.tar.gz f298bc740e32a5b14b61ff08a40a671221e7e8238268624211751174092b5451 CVE-2017-6508.patch aa96a018d22bee3dbe74dde79fed22dbd98eec9ed9f44a4f808b88f301a2fbd3 CVE-2017-13089.patch 62313e680d66869b2ecb72031cd3695dedcd626b551bc92dfe62695c2c456317 CVE-2017-13090.patch 01bce320cbdf101fd8e892b7cc3ebfe906330c21a3c0f0b0dfdad8b2945a0ea2 CVE-2018-0494.patch" sha512sums="a6c31ea7161e5af1552713edc6d9e386e4d63e53660bedbc4b099c7a4c7bbbdfedb4fc8abea67158899dee82b6331c87b1f2a9cb14cbcbcfa6e19a7fdf26b0a1 wget-1.18.tar.gz b640db3aaadb6d25b8391bbf1b6c4d8d07bd7200f9dd21502ff9533e4e356a1c55dd252c9bc2c6e27dcc8d41596e0890ff460c80a0a06166c7bb63e112824e1b CVE-2017-6508.patch 558133780d0b0f86f7a623c8c3924a11f9ccea711437a6b42e54177d2a6fa5889748f4317e4551a5d6ae576ff96e3915e3e8cd490cf12b6894b2d16c36a23233 CVE-2017-13089.patch 2c43dccc17458cc4765e5f5d15a45c7d7581440e6e09b9eb164e976659132f34f1bfb3b0c4e2b0d588520cc43f60b718fcbfa5d1c4c21e203289b033b48f0fab CVE-2017-13090.patch 9137c687475eb107c5b6aba7e31ab20d6bf8da1937359bc956b1d3160f9153e4a13f19c4311e9c478533dc23d4a0c0d006404d9b21c973aded70ce1aa4e78160 CVE-2018-0494.patch"