git: 65c406e188ef - main - security/p5-CPANSA-DB: Add p5-CPANSA-DB 20241208.003

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 25 Dec 2024 19:17:50 UTC
The branch main has been updated by sunpoet:

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

commit 65c406e188ef5ddb9ea1d4b2f0b59287cf8e2051
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-12-25 14:17:05 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-12-25 19:14:56 +0000

    security/p5-CPANSA-DB: Add p5-CPANSA-DB 20241208.003
    
    CPANSA::DB provides the CPAN Security Advisory data as a Perl data structure,
    mostly for CPAN::Audit.
    
    The db subroutine returns the CPAN Security Advisory (CPANSA) reports as a Perl
    data structure. However, anything can use this.
    
    Each release also comes with a .gpg file that has the signature for the file. If
    you cannot confirm that the module file has the right signature, it might have
    been corrupted or modified.
    
    This module is available outside of CPAN as a release on GitHub:
    https://github.com/briandfoy/cpan-security-advisory/releases. Each release on
    GitHub includes an attestation.
    
    There is also a JSON file that provides the same datastructure.
---
 security/Makefile               |  1 +
 security/p5-CPANSA-DB/Makefile  | 22 ++++++++++++++++++++++
 security/p5-CPANSA-DB/distinfo  |  3 +++
 security/p5-CPANSA-DB/pkg-descr | 15 +++++++++++++++
 security/p5-CPANSA-DB/pkg-plist |  8 ++++++++
 5 files changed, 49 insertions(+)

diff --git a/security/Makefile b/security/Makefile
index 003552fe61f0..65023d0113b4 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -525,6 +525,7 @@
     SUBDIR += p5-Bytes-Random-Secure-Tiny
     SUBDIR += p5-CACertOrg-CA
     SUBDIR += p5-CPAN-Audit
+    SUBDIR += p5-CPANSA-DB
     SUBDIR += p5-CSP
     SUBDIR += p5-Cisco-Hash
     SUBDIR += p5-Crypt-Anubis
diff --git a/security/p5-CPANSA-DB/Makefile b/security/p5-CPANSA-DB/Makefile
new file mode 100644
index 000000000000..6eca75cdb244
--- /dev/null
+++ b/security/p5-CPANSA-DB/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	CPANSA-DB
+PORTVERSION=	20241208.003
+CATEGORIES=	security perl5
+MASTER_SITES=	CPAN
+MASTER_SITE_SUBDIR=	CPAN:BDFOY
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	CPAN Security Advisory data as a Perl data structure, mostly for CPAN::Audit
+WWW=		https://metacpan.org/dist/CPANSA-DB
+
+LICENSE=	ART20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+TEST_DEPENDS=	p5-YAML-LibYAML>=0:textproc/p5-YAML-LibYAML
+
+USES=		perl5
+USE_PERL5=	configure
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/security/p5-CPANSA-DB/distinfo b/security/p5-CPANSA-DB/distinfo
new file mode 100644
index 000000000000..dac6622b816d
--- /dev/null
+++ b/security/p5-CPANSA-DB/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1734888000
+SHA256 (CPANSA-DB-20241208.003.tar.gz) = 022f998af4674f3162a0d7c145c991e09b73c54ed190bc7e42c77cd700e5fc21
+SIZE (CPANSA-DB-20241208.003.tar.gz) = 1343243
diff --git a/security/p5-CPANSA-DB/pkg-descr b/security/p5-CPANSA-DB/pkg-descr
new file mode 100644
index 000000000000..4c2dc79b0fdc
--- /dev/null
+++ b/security/p5-CPANSA-DB/pkg-descr
@@ -0,0 +1,15 @@
+CPANSA::DB provides the CPAN Security Advisory data as a Perl data structure,
+mostly for CPAN::Audit.
+
+The db subroutine returns the CPAN Security Advisory (CPANSA) reports as a Perl
+data structure. However, anything can use this.
+
+Each release also comes with a .gpg file that has the signature for the file. If
+you cannot confirm that the module file has the right signature, it might have
+been corrupted or modified.
+
+This module is available outside of CPAN as a release on GitHub:
+https://github.com/briandfoy/cpan-security-advisory/releases. Each release on
+GitHub includes an attestation.
+
+There is also a JSON file that provides the same datastructure.
diff --git a/security/p5-CPANSA-DB/pkg-plist b/security/p5-CPANSA-DB/pkg-plist
new file mode 100644
index 000000000000..288fe1c72d1c
--- /dev/null
+++ b/security/p5-CPANSA-DB/pkg-plist
@@ -0,0 +1,8 @@
+%%SITE_PERL%%/CPAN/Audit/DB.pm
+%%SITE_PERL%%/CPAN/Audit/DB.pm.gpg
+%%SITE_PERL%%/CPAN/Audit/DB.pod
+%%SITE_PERL%%/CPANSA/DB.pm
+%%SITE_PERL%%/CPANSA/DB.pm.gpg
+%%SITE_PERL%%/CPANSA/DB.pod
+%%PERL5_MAN3%%/CPAN::Audit::DB.3.gz
+%%PERL5_MAN3%%/CPANSA::DB.3.gz