Permalink
Browse files

Add a SIGNATURE to the distribution

  • Loading branch information...
1 parent 73d2690 commit b6183a5facde9735200e21df829e03a3da6a22e9 @gbarr gbarr committed Jun 9, 2003
Showing with 37 additions and 5 deletions.
  1. +2 −0 MANIFEST
  2. +6 −1 Makefile.PL
  3. +6 −4 mkmanf
  4. +23 −0 t/0-signature.t
View
@@ -6,6 +6,7 @@ Makefile.PL
OldChanges
README
RELEASE_NOTES
+SIGNATURE
TODO
bin/ldapdelete
bin/ldapmodrdn
@@ -85,6 +86,7 @@ lib/Net/LDAP/Util.pm
lib/Net/LDAPI.pm
lib/Net/LDAPS.pm
mkmanf
+t/0-signature.t
t/00ldif-entry.t
t/01canon_dn.t
t/02filter.t
View
@@ -1,5 +1,5 @@
# The -*- perl -*- script writes the Makefile for perl-ldap
-# $Id: Makefile.PL,v 1.12 2003/06/09 12:29:41 gbarr Exp $
+# $Id: Makefile.PL,v 1.13 2003/06/09 12:47:46 gbarr Exp $
use 5.004;
use ExtUtils::MakeMaker;
@@ -112,6 +112,11 @@ run_mkmanf :
distdir : run_mkmanf
+distdir : run_cpansign
+
+run_cpansign :
+ cpansign -s
+
EOS
}
View
10 mkmanf
@@ -1,8 +1,10 @@
#!/bin/sh
-find . -name Entries \
-| egrep /CVS/Entries$ \
-| xargs perl -aF/ -lne 'print substr($ARGV,2,-11),$F[1] if m,^/, and $F[2] !~ /^-/ and $F[1] !~ /^\./;' -- \
-| sort -u > MANIFEST.new
+(
+ echo SIGNATURE
+ find . -name Entries \
+ | egrep /CVS/Entries$ \
+ | xargs perl -aF/ -lne 'print substr($ARGV,2,-11),$F[1] if m,^/, and $F[2] !~ /^-/ and $F[1] !~ /^\./;' --
+) | sort -u > MANIFEST.new
diff -u MANIFEST MANIFEST.new && rm MANIFEST.new
View
@@ -0,0 +1,23 @@
+#!/usr/bin/perl
+# $File: //member/autrijus/Module-Signature/t/0-signature.t $ $Author: gbarr $
+# $Revision: 1.1 $ $Change: 1871 $ $DateTime: 2002/11/03 19:22:02 $
+
+use strict;
+use Test::More tests => 1;
+
+SKIP: {
+ if (!eval { require Socket; Socket::inet_aton('pgp.mit.edu') }) {
+ skip("Cannot connect to the keyserver", 1);
+ }
+ elsif (!eval { require Module::Signature; 1 }) {
+ diag("Next time around, consider install Module::Signature,\n".
+ "so you can verify the integrity of this distribution.\n");
+ skip("Module::Signature not installed", 1);
+ }
+ else {
+ ok(Module::Signature::verify() == Module::Signature::SIGNATURE_OK()
+ => "Valid signature" );
+ }
+}
+
+__END__

0 comments on commit b6183a5

Please sign in to comment.