mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 02:21:15 +02:00
create bsd12 branch
This commit is contained in:
21
system/rpm2cpio/Makefile
Normal file
21
system/rpm2cpio/Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
# Created by: Juergen Lock <nox@jelal.kn-bremen.de>
|
||||
# $FreeBSD: head/archivers/rpm2cpio/Makefile 408590 2016-02-09 20:06:21Z ak $
|
||||
|
||||
PORTNAME= rpm2cpio
|
||||
PORTVERSION= 1.4
|
||||
CATEGORIES= archivers
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
||||
MAINTAINER= ak@FreeBSD.org
|
||||
COMMENT= Convert .rpm files to cpio format
|
||||
|
||||
NO_BUILD= yes
|
||||
NO_ARCH= yes
|
||||
|
||||
PLIST_FILES= bin/rpm2cpio
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/rpm2cpio
|
||||
|
||||
.include <bsd.port.mk>
|
||||
17
system/rpm2cpio/files/rpm2cpio
Normal file
17
system/rpm2cpio/files/rpm2cpio
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# NB! needs bsdtar/libarchive v2.8+
|
||||
|
||||
PATH=/bin:/usr/bin
|
||||
|
||||
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}
|
||||
7
system/rpm2cpio/pkg-descr
Normal file
7
system/rpm2cpio/pkg-descr
Normal file
@@ -0,0 +1,7 @@
|
||||
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 is just a tiny wrapper around bsdtar.
|
||||
Reference in New Issue
Block a user