mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
51 lines
1.1 KiB
Text
51 lines
1.1 KiB
Text
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
maintainer="Natanael Copa <ncopa@alpinelinux.org>"
|
|
pkgname=patch
|
|
pkgver=2.8
|
|
pkgrel=0
|
|
pkgdesc="Utility to apply diffs to files"
|
|
url="https://www.gnu.org/software/patch/patch.html"
|
|
arch="all"
|
|
license="GPL-3.0-or-later"
|
|
checkdepends="diffutils ed"
|
|
subpackages="$pkgname-doc"
|
|
source="https://ftp.gnu.org/gnu/patch/patch-$pkgver.tar.xz"
|
|
|
|
# secfixes:
|
|
# 2.7.6-r7:
|
|
# - CVE-2019-20633
|
|
# 2.7.6-r6:
|
|
# - CVE-2018-1000156
|
|
# - CVE-2019-13638
|
|
# - CVE-2018-20969
|
|
# 2.7.6-r5:
|
|
# - CVE-2019-13636
|
|
# 2.7.6-r2:
|
|
# - CVE-2018-6951
|
|
# 2.7.6-r4:
|
|
# - CVE-2018-6952
|
|
|
|
build() {
|
|
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
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
sha512sums="
|
|
d689d696660a662753e8660792733c3be0a94c76abfe7a28b0f9f70300c3a42d6437d081553a59bfde6e1b0d5ee13ed89be48d0b00b6da2cadbfc14a15ada603 patch-2.8.tar.xz
|
|
"
|