mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
Replaces existing code with a version that doesn't slurp the entire file
into memory and supports the newer bzip2 compressed rpms. Also, call it rpm2cpio.pl so that it doesn't conflict with the binary version from archivers/rpm. PR: ports/59980 Submitted by: Juergen Lock <nox@jelal.kn-bremen.de> (maintainer)
This commit is contained in:
parent
0872d5dcc1
commit
cdd4d0a421
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95591
@ -6,26 +6,27 @@
|
||||
#
|
||||
|
||||
PORTNAME= rpm2cpio
|
||||
PORTVERSION= 1.1.20020306
|
||||
PORTVERSION= 1.2
|
||||
CATEGORIES= archivers
|
||||
MASTER_SITES= http://www.iagora.com/~espel/
|
||||
DISTNAME= ${PORTNAME}
|
||||
EXTRACT_SUFX=
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
||||
MAINTAINER= nox@jelal.kn-bremen.de
|
||||
COMMENT= Convert .rpm files for extraction with /usr/bin/cpio, needs just perl
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
EXTRACT_CMD= ${CP}
|
||||
EXTRACT_BEFORE_ARGS=
|
||||
EXTRACT_AFTER_ARGS= .
|
||||
|
||||
USE_PERL5= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
do-build:
|
||||
${PERL5} -i.bak -p -e "if (1 .. 1) {s-^#!/usr/bin/perl-#!${PERL}-;}" ${WRKDIR}/rpm2cpio
|
||||
do-fetch:
|
||||
@${DO_NADA}
|
||||
|
||||
do-extract:
|
||||
@${MKDIR} ${WRKSRC}
|
||||
${PERL5} -p -e "if (1 .. 1) {s-^#!/usr/bin/perl-#!${PERL}-;}" ${FILESDIR}/${PORTNAME} >${WRKDIR}/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/rpm2cpio ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}.pl
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -9,4 +9,12 @@ in particular, it won't build on the HPsUX box i'm on.
|
||||
|
||||
(this one needs just perl)
|
||||
|
||||
WWW: http://www.iagora.com/~espel/
|
||||
Updated version by Sergey Babkin that doesn't slurp the entire file
|
||||
into memory and supports the newer bzip2 compressed rpms.
|
||||
|
||||
BUGS: if the rpm contains more than one cpio file this version
|
||||
extracts only the first one. (I don't know how widespread these
|
||||
types of rpms are, i haven't yet seen one. If you do, try the
|
||||
binary rpm2cpio that comes with the archivers/rpm port.)
|
||||
|
||||
Now called rpm2cpio.pl so that it doesn't conflict with the binary one.
|
||||
|
@ -1 +1 @@
|
||||
bin/rpm2cpio
|
||||
bin/rpm2cpio.pl
|
||||
|
Loading…
Reference in New Issue
Block a user