aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorcpiazza <cpiazza@FreeBSD.org>1999-08-01 12:26:17 +0800
committercpiazza <cpiazza@FreeBSD.org>1999-08-01 12:26:17 +0800
commit248259dc95d1f28b896a746ea5678a6c1c5e3f7b (patch)
tree3f81ce0858f18ce7dbaa666fed869c90b7c5c91b /misc
parent9e2ac7b05e3e32d6dfac7b306b3425132c07facf (diff)
downloadfreebsd-ports-gnome-248259dc95d1f28b896a746ea5678a6c1c5e3f7b.tar.gz
freebsd-ports-gnome-248259dc95d1f28b896a746ea5678a6c1c5e3f7b.tar.zst
freebsd-ports-gnome-248259dc95d1f28b896a746ea5678a6c1c5e3f7b.zip
Import of rpm2cpio (perl version). Converts .rpm files for extraction
with /usr/bin/cpio. Created so there would be a lightweight version that didn't require a tonne of other requirements. PR: 12701 Submitted by: Juergen Lock <nox@jelal.kn-bremen.de>
Diffstat (limited to 'misc')
-rw-r--r--misc/rpm2cpio/Makefile29
-rw-r--r--misc/rpm2cpio/distinfo1
-rw-r--r--misc/rpm2cpio/pkg-comment1
-rw-r--r--misc/rpm2cpio/pkg-descr10
-rw-r--r--misc/rpm2cpio/pkg-plist1
5 files changed, 42 insertions, 0 deletions
diff --git a/misc/rpm2cpio/Makefile b/misc/rpm2cpio/Makefile
new file mode 100644
index 000000000000..3a3040ef2504
--- /dev/null
+++ b/misc/rpm2cpio/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: rpm2cpio
+# Version required: #no version#
+# Date created: Sun Jul 18 21:51:23 MET DST 1999
+# Whom: Juergen Lock <nox@jelal.kn-bremen.de>
+#
+# $Id$
+#
+
+DISTNAME= rpm2cpio
+PKGNAME= rpm2cpio-1.0
+CATEGORIES= misc
+MASTER_SITES= http://www.eleves.ens.fr:8080/home/espel/
+EXTRACT_SUFX=
+
+MAINTAINER= nox@jelal.kn-bremen.de
+
+EXTRACT_CMD= ${CP}
+EXTRACT_BEFORE_ARGS=
+EXTRACT_AFTER_ARGS= .
+
+USE_PERL5= yes
+
+do-build:
+ ${PERL5} -i.bak -p -e "if (1 .. 1) {s-^#!/usr/bin/perl-#!${PERL}-;}" ${WRKDIR}/rpm2cpio
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/rpm2cpio ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/misc/rpm2cpio/distinfo b/misc/rpm2cpio/distinfo
new file mode 100644
index 000000000000..3826d22cad02
--- /dev/null
+++ b/misc/rpm2cpio/distinfo
@@ -0,0 +1 @@
+MD5 (rpm2cpio) = d23f66e1c734a44ce6ee89b0e724b371
diff --git a/misc/rpm2cpio/pkg-comment b/misc/rpm2cpio/pkg-comment
new file mode 100644
index 000000000000..8aa8b0dc016d
--- /dev/null
+++ b/misc/rpm2cpio/pkg-comment
@@ -0,0 +1 @@
+Convert .rpm files for extraction with /usr/bin/cpio, needs just perl
diff --git a/misc/rpm2cpio/pkg-descr b/misc/rpm2cpio/pkg-descr
new file mode 100644
index 000000000000..dadcd31aaee9
--- /dev/null
+++ b/misc/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/misc/rpm2cpio/pkg-plist b/misc/rpm2cpio/pkg-plist
new file mode 100644
index 000000000000..2a1399eaaa02
--- /dev/null
+++ b/misc/rpm2cpio/pkg-plist
@@ -0,0 +1 @@
+bin/rpm2cpio