# $Id$ PNAME="cpio" PVER="2.13" PBUILD="r3" PCAT="app-arch" DESCRIPTION="Archiver that handles various types of cpio and tar archives." HOMEPAGE="http://www.gnu.org/software/cpio/" DEPEND=">= virtual/glibc" SDEPEND=">= virtual/sed" PROVIDE="virtual/cpio" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" ALX_PKG_KEEP="usr/bin/cpio" sminclude mbuild alx-split SRC_URI=( gnu://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-2.13-revert-CVE-2015-1197-fix.patch ) UP2DATE="updatecmd_gnu ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # revert patch to fix shutdown issues with dracut # see: https://bugzilla.redhat.com/show_bug.cgi?id=1797163 # https://lists.gnu.org/archive/html/bug-cpio/2019-11/msg00016.html mpatch ${PNAME}-2.13-revert-CVE-2015-1197-fix.patch || die mautoreconf || die } src_compile() { cd ${SRCDIR} mconfigure \ --libexecdir=/usr/$(mlibdir)/cpio \ --with-rmt=/usr/bin/rmt \ --enable-nls \ || die mmake || die }