summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkei <kei@pkgsrc.org>2001-03-07 04:24:39 +0000
committerkei <kei@pkgsrc.org>2001-03-07 04:24:39 +0000
commit76376759069996f62cac9b4cfd1e38c9c4f61430 (patch)
tree0e4635f22fbdf7a178496a05ddb154c752a72e84
parent4f4db6edbd9032750ebd820315ebbaac26d2a3ca (diff)
downloadpkgsrc-76376759069996f62cac9b4cfd1e38c9c4f61430.tar.gz
Initial import of 'rpm2cpio' package from FreeBSD Ports collection.
rpm2cpio reads RPM archive and dumps the content to standard out as a cpio format. It's written in Perl. I moved its category from original place misc to converters.
-rw-r--r--converters/rpm2cpio/Makefile24
-rw-r--r--converters/rpm2cpio/files/md53
-rw-r--r--converters/rpm2cpio/pkg/DESCR10
-rw-r--r--converters/rpm2cpio/pkg/PLIST2
4 files changed, 39 insertions, 0 deletions
diff --git a/converters/rpm2cpio/Makefile b/converters/rpm2cpio/Makefile
new file mode 100644
index 00000000000..04d38c21c45
--- /dev/null
+++ b/converters/rpm2cpio/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/03/07 04:24:39 kei Exp $
+# FreeBSD Id: ports/misc/rpm2cpio/Makefile,v 1.2 1999/08/25 07:22:29 obrien Exp
+
+DISTNAME= rpm2cpio
+PKGNAME= rpm2cpio-1.0
+CATEGORIES= misc
+MASTER_SITES= http://www.iagora.com/~espel/
+EXTRACT_SUFX= # none
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.iagora.com/~espel/index.html
+COMMENT= Convert .rpm files for extraction with cpio, needs just perl
+
+EXTRACT_CMD= ${CP} ${DOWNLOADED_DISTFILE} .
+
+USE_PERL5= # defined
+
+do-build:
+ ${PERL5} -i.bak -p -e "if (1 .. 1) {s-^#!/usr/bin/perl-#!${PERL5}-;}" ${WRKDIR}/rpm2cpio
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/rpm2cpio ${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/converters/rpm2cpio/files/md5 b/converters/rpm2cpio/files/md5
new file mode 100644
index 00000000000..69fd0bf95ee
--- /dev/null
+++ b/converters/rpm2cpio/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/03/07 04:24:39 kei Exp $
+
+MD5 (rpm2cpio) = 60e416bc9a91870944a9fc2a6d706478
diff --git a/converters/rpm2cpio/pkg/DESCR b/converters/rpm2cpio/pkg/DESCR
new file mode 100644
index 00000000000..dadcd31aaee
--- /dev/null
+++ b/converters/rpm2cpio/pkg/DESCR
@@ -0,0 +1,10 @@
+Convert .rpm files for extraction with /usr/bin/cpio
+
+Quoting the author:
+
+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.
+in particular, it won't build on the HPsUX box i'm on.
+
+(this one needs just perl)
diff --git a/converters/rpm2cpio/pkg/PLIST b/converters/rpm2cpio/pkg/PLIST
new file mode 100644
index 00000000000..ecb45de51f4
--- /dev/null
+++ b/converters/rpm2cpio/pkg/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/07 04:24:39 kei Exp $
+bin/rpm2cpio