Index: head/archivers/rpm2cpio/Makefile =================================================================== --- head/archivers/rpm2cpio/Makefile (revision 404281) +++ head/archivers/rpm2cpio/Makefile (revision 404282) @@ -1,28 +1,29 @@ # Created by: Juergen Lock # $FreeBSD$ PORTNAME= rpm2cpio PORTVERSION= 1.4 +PORTREVISION= 1 CATEGORIES= archivers MASTER_SITES= # none DISTFILES= # none MAINTAINER= ak@FreeBSD.org COMMENT= Convert .rpm files to cpio format NO_WRKSUBDIR= yes NO_BUILD= yes NO_ARCH= yes PLIST_FILES= bin/rpm2cpio.pl do-extract: @${MKDIR} ${WRKSRC} @${CP} ${FILESDIR}/${PORTNAME} ${WRKSRC}/${PORTNAME} do-install: # Installed as rpm2cpio.pl to not break existing scripts ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}.pl .include Index: head/archivers/rpm2cpio/files/rpm2cpio =================================================================== --- head/archivers/rpm2cpio/files/rpm2cpio (revision 404281) +++ head/archivers/rpm2cpio/files/rpm2cpio (revision 404282) @@ -1,17 +1,17 @@ #!/bin/sh # NB! needs bsdtar/libarchive v2.8+ PATH=/bin:/usr/bin -if [ $# -eq 0 ]; then +if [ $# -eq 0 -a ! -t 0 ]; then f=/dev/stdin elif [ $# -eq 1 ]; then f=$1 else echo Usage: rpm2cpio [file.rpm] echo dumps the contents to stdout as a GNU cpio archive exit 0 fi tar cf - --format=newc @- < ${f} Index: head/archivers/rpm2cpio/pkg-descr =================================================================== --- head/archivers/rpm2cpio/pkg-descr (revision 404281) +++ head/archivers/rpm2cpio/pkg-descr (revision 404282) @@ -1,7 +1,7 @@ -Convert .rpm files to cpio format +Convert .rpm files to cpio format. Why does the world need another rpm2cpio? because the existing one won't build unless you have half a ton of things that aren't really required for it, since it uses the same library used to extract RPM's. -This version just a tiny wrapper around bsdtar. +This version is just a tiny wrapper around bsdtar.