Contents of /smage/branches/alx07x-stable/core/cpio/cpio-2.13-r3.smage2
Parent Directory | Revision Log
Revision 14945 -
(show annotations)
(download)
Thu Aug 6 12:55:55 2020 UTC (4 years, 1 month ago) by niro
File size: 1034 byte(s)
Thu Aug 6 12:55:55 2020 UTC (4 years, 1 month ago) by niro
File size: 1034 byte(s)
-release branches/alx07x-stable
1 | # $Id$ |
2 | |
3 | PNAME="cpio" |
4 | PVER="2.13" |
5 | PBUILD="r3" |
6 | |
7 | PCAT="app-arch" |
8 | |
9 | DESCRIPTION="Archiver that handles various types of cpio and tar archives." |
10 | HOMEPAGE="http://www.gnu.org/software/cpio/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDEPEND=">= virtual/sed" |
14 | PROVIDE="virtual/cpio" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | ALX_PKG_KEEP="usr/bin/cpio" |
20 | sminclude mbuild alx-split |
21 | |
22 | SRC_URI=( |
23 | gnu://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${SRCFILE} |
25 | mirror://${PNAME}/${PNAME}-2.13-revert-CVE-2015-1197-fix.patch |
26 | ) |
27 | |
28 | UP2DATE="updatecmd_gnu ${PNAME}" |
29 | |
30 | src_prepare() |
31 | { |
32 | munpack ${SRCFILE} || die |
33 | cd ${SRCDIR} |
34 | |
35 | # revert patch to fix shutdown issues with dracut |
36 | # see: https://bugzilla.redhat.com/show_bug.cgi?id=1797163 |
37 | # https://lists.gnu.org/archive/html/bug-cpio/2019-11/msg00016.html |
38 | mpatch ${PNAME}-2.13-revert-CVE-2015-1197-fix.patch || die |
39 | |
40 | mautoreconf || die |
41 | } |
42 | |
43 | src_compile() |
44 | { |
45 | cd ${SRCDIR} |
46 | |
47 | mconfigure \ |
48 | --libexecdir=/usr/$(mlibdir)/cpio \ |
49 | --with-rmt=/usr/bin/rmt \ |
50 | --enable-nls \ |
51 | || die |
52 | |
53 | mmake || die |
54 | } |