aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/rpm2cpio
diff options
context:
space:
mode:
authorak <ak@FreeBSD.org>2015-12-23 18:57:49 +0800
committerak <ak@FreeBSD.org>2015-12-23 18:57:49 +0800
commita44eb1223730e1f25cbe544cc7de9f31e443df32 (patch)
treefa4cc0636d77439eb09d6d463abeb1287034b3db /archivers/rpm2cpio
parent7adbf3aa6b2ec3248a56abc794501ac01e50b3d8 (diff)
downloadfreebsd-ports-gnome-a44eb1223730e1f25cbe544cc7de9f31e443df32.tar.gz
freebsd-ports-gnome-a44eb1223730e1f25cbe544cc7de9f31e443df32.tar.zst
freebsd-ports-gnome-a44eb1223730e1f25cbe544cc7de9f31e443df32.zip
- Print usage if there are no arguments and stdin is terminal
- Fix grammar in pkg-descr
Diffstat (limited to 'archivers/rpm2cpio')
-rw-r--r--archivers/rpm2cpio/Makefile1
-rw-r--r--archivers/rpm2cpio/files/rpm2cpio2
-rw-r--r--archivers/rpm2cpio/pkg-descr4
3 files changed, 4 insertions, 3 deletions
diff --git a/archivers/rpm2cpio/Makefile b/archivers/rpm2cpio/Makefile
index 82767a451d78..bca8558349e0 100644
--- a/archivers/rpm2cpio/Makefile
+++ b/archivers/rpm2cpio/Makefile
@@ -3,6 +3,7 @@
PORTNAME= rpm2cpio
PORTVERSION= 1.4
+PORTREVISION= 1
CATEGORIES= archivers
MASTER_SITES= # none
DISTFILES= # none
diff --git a/archivers/rpm2cpio/files/rpm2cpio b/archivers/rpm2cpio/files/rpm2cpio
index 047544585420..57e5c1dbbb8b 100644
--- a/archivers/rpm2cpio/files/rpm2cpio
+++ b/archivers/rpm2cpio/files/rpm2cpio
@@ -4,7 +4,7 @@
PATH=/bin:/usr/bin
-if [ $# -eq 0 ]; then
+if [ $# -eq 0 -a ! -t 0 ]; then
f=/dev/stdin
elif [ $# -eq 1 ]; then
f=$1
diff --git a/archivers/rpm2cpio/pkg-descr b/archivers/rpm2cpio/pkg-descr
index 0bd1cb8b9d21..0a5629657177 100644
--- a/archivers/rpm2cpio/pkg-descr
+++ b/archivers/rpm2cpio/pkg-descr
@@ -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.