git: cbed221150ad - main - archivers/rubygem-minitar-cli0: Add rubygem-minitar-cli0 0.12 (copied from rubygem-minitar-cli)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 30 Sep 2024 13:41:20 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cbed221150ad442dc7710781d25ec6dafd64ed26

commit cbed221150ad442dc7710781d25ec6dafd64ed26
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-30 13:01:19 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-30 13:36:22 +0000

    archivers/rubygem-minitar-cli0: Add rubygem-minitar-cli0 0.12 (copied from rubygem-minitar-cli)
    
    - Change RUN_DEPENDS from rubygem-minitar to rubygem-minitar0
    - Add PORTSCOUT
---
 archivers/Makefile                       |  1 +
 archivers/rubygem-minitar-cli0/Makefile  | 28 ++++++++++++++++++++++++++++
 archivers/rubygem-minitar-cli0/distinfo  |  3 +++
 archivers/rubygem-minitar-cli0/pkg-descr | 10 ++++++++++
 4 files changed, 42 insertions(+)

diff --git a/archivers/Makefile b/archivers/Makefile
index 7898d6ed415a..f55acb656125 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -231,6 +231,7 @@
     SUBDIR += rubygem-libarchive
     SUBDIR += rubygem-minitar
     SUBDIR += rubygem-minitar-cli
+    SUBDIR += rubygem-minitar-cli0
     SUBDIR += rubygem-minitar0
     SUBDIR += rubygem-ruby-xz
     SUBDIR += rubygem-rubyzip
diff --git a/archivers/rubygem-minitar-cli0/Makefile b/archivers/rubygem-minitar-cli0/Makefile
new file mode 100644
index 000000000000..3b0a862ced69
--- /dev/null
+++ b/archivers/rubygem-minitar-cli0/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	minitar-cli
+PORTVERSION=	0.12
+CATEGORIES=	archivers rubygems
+MASTER_SITES=	RG
+PKGNAMESUFFIX=	0
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Library and command-line utility for tar archives
+WWW=		https://github.com/halostatue/minitar-cli
+
+LICENSE=	BSD2CLAUSE RUBY
+LICENSE_COMB=	dual
+LICENSE_FILE_BSD2CLAUSE=${WRKSRC}/docs/bsdl.txt
+LICENSE_FILE_RUBY=	${WRKSRC}/docs/ruby.txt
+
+RUN_DEPENDS=	rubygem-minitar0>=${PORTVERSION}.0<0.13:archivers/rubygem-minitar0 \
+		rubygem-powerbar>=1.0<2:devel/rubygem-powerbar
+
+USES=		gem
+
+NO_ARCH=	yes
+
+PORTSCOUT=	limit:^0\.
+
+post-install:
+	${RM} ${STAGEDIR}${PREFIX}/bin/minitar
+
+.include <bsd.port.mk>
diff --git a/archivers/rubygem-minitar-cli0/distinfo b/archivers/rubygem-minitar-cli0/distinfo
new file mode 100644
index 000000000000..d49fcd158ed1
--- /dev/null
+++ b/archivers/rubygem-minitar-cli0/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724084672
+SHA256 (rubygem/minitar-cli-0.12.gem) = 667e17bff71baf3d0c4c4998d4e51c21fcdccf6c8a4c945efade6fede2559bb5
+SIZE (rubygem/minitar-cli-0.12.gem) = 17408
diff --git a/archivers/rubygem-minitar-cli0/pkg-descr b/archivers/rubygem-minitar-cli0/pkg-descr
new file mode 100644
index 000000000000..62d782c3d85c
--- /dev/null
+++ b/archivers/rubygem-minitar-cli0/pkg-descr
@@ -0,0 +1,10 @@
+The minitar (previously called Archive::Tar::Minitar) library is a pure-Ruby
+library that provides the ability to deal with POSIX tar(1) archive files.
+
+This is release 0.6+, providing a number of bug fixes including a directory
+traversal vulnerability, CVE-2016-10173. This release starts the migration and
+modernization of the code:
+- the minitar command-line program has been separated into the minitar-cli gem;
+  and
+- the archive-tar-minitar gem now points to the minitar and minitar-cli gems and
+  discourages its installation.