# Contributor: Sören Tempel # Maintainer: Natanael Copa pkgname=patch pkgver=2.7.6 pkgrel=4 pkgdesc="Utility to apply diffs to files" url="https://www.gnu.org/software/patch/patch.html" arch="all" license="GPL-3.0+" depends="" makedepends="" # testsuite needs coreutils due to bug in busybox `cat -ve` # http://lists.busybox.net/pipermail/busybox/2018-April/086401.html checkdepends="coreutils bash ed" install="" subpackages="$pkgname-doc" source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz CVE-2018-6951.patch CVE-2018-6952.patch " builddir="$srcdir"/$pkgname-$pkgver # secfixes: # 2.7.6-r2: # - CVE-2018-6951 # 2.7.6-r4: # - CVE-2018-6952 build() { cd "$builddir" gl_cv_func_gettimeofday_clobber=no \ gl_cv_func_tzset_clobber=no \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-nls make } check() { cd "$builddir" make SHELL=bash check } package() { make prefix="$pkgdir"/usr \ mandir="$pkgdir"/usr/share/man \ -C "$builddir" install rm -f "$pkgdir"/usr/lib/charset.alias rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true } sha512sums="fcca87bdb67a88685a8a25597f9e015f5e60197b9a269fa350ae35a7991ed8da553939b4bbc7f7d3cfd863c67142af403b04165633acbce4339056a905e87fbd patch-2.7.6.tar.xz db51d0b791d38dd4f1b373621ee18620ae339b172f58a79420fdaa4a4b1b1d9df239cf61bbddc4e6a4896b28b8cffc7c99161eb5e2facaec8df86a1bf7755bc0 CVE-2018-6951.patch 5d2eaef629bae92e5b4e5e57d140c24a73e2811306d5f2854858f846646b034d2da315071f478bcf6f8d856a065b9bb073f76322e8e3a42616bc212281ce6945 CVE-2018-6952.patch"