blob: e65ee2b30552e56e64c886002bf4483327f540e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=cpio
pkgver=2.13
pkgrel=2
pkgdesc="tool to copy files into or out of a cpio or tar archive"
url="https://www.gnu.org/software/cpio"
arch="all"
license="GPL-3.0-or-later"
checkdepends="autoconf"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.bz2::http://ftp.snt.utwente.nl/pub/software/gnu/cpio/cpio-$pkgver.tar.bz2
CVE-2021-38185.patch
gcc-10.patch
"
# secfixes:
# 2.13-r2:
# - CVE-2021-38185
# 2.13-r0:
# - CVE-2015-1197
# - CVE-2019-14866
# 2.12-r3:
# - CVE-2016-2037
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--enable-largefile \
--disable-mt \
--disable-rpath \
--disable-nls
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
rm -f "$pkgdir"/usr/lib/charset.alias
rm -f "$pkgdir"/usr/libexec/rmt # part of the tar pkg
rm "$pkgdir"/usr/share/man/*/rmt.*
}
sha512sums="
459398e69f7f48201c04d1080218c50f75edcf114ffcbb236644ff6fcade5fcc566929bdab2ebe9be5314828d6902e43b348a8adf28351df978c8989590e93a3 cpio-2.13.tar.bz2
7cc828a5933e7eb3bd4f4f82db8579c96d5e6e99dfd07da143c9eb445823727db02819d6b7f578c89008e7fd098138d372af45369e442ea2e42b0b9296d3d772 CVE-2021-38185.patch
c04e657c05ba93a03191666de93527be6b646eaa155043db7fd517e98f7a8ed61c281efb067c66f3c14f350b869866ca21c9634ce678a17c3a108c2a4ab87276 gcc-10.patch
"
|