summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2004-11-11 18:11:58 +0000
committerseb <seb@pkgsrc.org>2004-11-11 18:11:58 +0000
commitec235e5888007c6c8bcbbf8c649750ddb0aaaa35 (patch)
tree578ab626b40065e41ebfd110fb23b4893817f6d5 /security
parent08e58a1eb632be1210059343fb062b7089089ee9 (diff)
downloadpkgsrc-ec235e5888007c6c8bcbbf8c649750ddb0aaaa35.tar.gz
Initial addition of p5-Module-Signature version 0.41 in the NetBSD Packages
Collection. The Perl 5 module Module::Signature adds cryptographic authentications to CPAN distributions, via the special SIGNATURE file. If you are a module user, all you have to do is to remember running cpansign -v (or just cpansign) before issuing perl Makefile.PL or perl Build.PL; that will ensure the distribution has not been tampered with. For module authors, you'd want to add the SIGNATURE file to your MANIFEST, then type cpansign -s before making a distribution. You may also want to consider adding a signature check as part of your test suite.
Diffstat (limited to 'security')
-rw-r--r--security/p5-Module-Signature/DESCR10
-rw-r--r--security/p5-Module-Signature/Makefile35
-rw-r--r--security/p5-Module-Signature/PLIST4
-rw-r--r--security/p5-Module-Signature/distinfo5
-rw-r--r--security/p5-Module-Signature/patches/patch-aa16
5 files changed, 70 insertions, 0 deletions
diff --git a/security/p5-Module-Signature/DESCR b/security/p5-Module-Signature/DESCR
new file mode 100644
index 00000000000..1e25882f076
--- /dev/null
+++ b/security/p5-Module-Signature/DESCR
@@ -0,0 +1,10 @@
+The Perl 5 module Module::Signature adds cryptographic authentications
+to CPAN distributions, via the special SIGNATURE file.
+
+If you are a module user, all you have to do is to remember running
+cpansign -v (or just cpansign) before issuing perl Makefile.PL or
+perl Build.PL; that will ensure the distribution has not been
+tampered with. For module authors, you'd want to add the SIGNATURE
+file to your MANIFEST, then type cpansign -s before making a
+distribution. You may also want to consider adding a signature
+check as part of your test suite.
diff --git a/security/p5-Module-Signature/Makefile b/security/p5-Module-Signature/Makefile
new file mode 100644
index 00000000000..515f10284ea
--- /dev/null
+++ b/security/p5-Module-Signature/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/11 18:11:58 seb Exp $
+#
+
+DISTNAME= Module-Signature-0.41
+PKGNAME= p5-${DISTNAME}
+SVR4_PKGNAME= p5ms
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Module/}
+
+MAINTAINER= seb@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Module-Signature/
+COMMENT= Perl 5 module adding cryptographic authentications to CPAN distributions
+
+DEPENDS+= gnupg-[0-9]*:../../security/gnupg
+DEPENDS+= p5-Digest-SHA-[0-9]*:../../security/p5-Digest-SHA
+DEPENDS+= p5-PAR-Dist-[0-9]*:../../devel/p5-PAR-Dist
+
+USE_BUILDLINK3= YES
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/Module/Signature/.packlist
+
+INSTALLATION_DIRS+= share/Module-Signature
+
+# this package has patch files so the signature check test fails
+post-extract:
+ ${MV} ${WRKSRC}/t/0-signature.t ${WRKSRC}/t/0-signature.t.SKIP
+
+post-install:
+ ${PKG_SILENT}${PKG_DEBUG} \
+ for f in ${WRKSRC}/*.pub; do \
+ ${INSTALL_DATA} $$f ${PREFIX}/share/Module-Signature; \
+ done
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/p5-Module-Signature/PLIST b/security/p5-Module-Signature/PLIST
new file mode 100644
index 00000000000..4c98fc83f38
--- /dev/null
+++ b/security/p5-Module-Signature/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/11 18:11:58 seb Exp $
+share/Module-Signature/AUTRIJUS.pub
+share/Module-Signature/PAUSE2003.pub
+@dirrm share/Module-Signature
diff --git a/security/p5-Module-Signature/distinfo b/security/p5-Module-Signature/distinfo
new file mode 100644
index 00000000000..3e656bc2408
--- /dev/null
+++ b/security/p5-Module-Signature/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/11 18:11:58 seb Exp $
+
+SHA1 (Module-Signature-0.41.tar.gz) = 203a35b8bb7f9098286fbb2c3c92465d83b51c88
+Size (Module-Signature-0.41.tar.gz) = 56276 bytes
+SHA1 (patch-aa) = 17dc9e97f45058cc273265bcc3b9dcc1f39de6ec
diff --git a/security/p5-Module-Signature/patches/patch-aa b/security/p5-Module-Signature/patches/patch-aa
new file mode 100644
index 00000000000..267ae6ddfc5
--- /dev/null
+++ b/security/p5-Module-Signature/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/11/11 18:11:58 seb Exp $
+
+--- Makefile.PL.orig 2004-07-01 12:13:51.000000000 +0000
++++ Makefile.PL
+@@ -88,11 +88,6 @@ sub locate_gpg {
+
+ if ($has_gpg) {
+ print "GnuPG found ($gpg).\n";
+- if (prompt("Import PAUSE and author keys to GnuPG?", 'y') =~ /^y/i) {
+- print "Importing... ";
+- system('gpg', '--quiet', '--import', <*.pub>);
+- print "done.\n";
+- }
+ return 1;
+ }
+