create bsd12 branch

This commit is contained in:
ziggi
2019-12-26 07:26:06 +00:00
commit 5cfdab6bfe
14432 changed files with 2272620 additions and 0 deletions

21
system/rpm2cpio/Makefile Normal file
View 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>

View 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}

View 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.