ports/50488: update and fix security/p5-Crypt-OpenPGP

Erwin Lansing erwin at lansing.dk
Mon Mar 31 16:40:09 UTC 2003


>Number:         50488
>Category:       ports
>Synopsis:       update and fix security/p5-Crypt-OpenPGP
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 31 08:40:05 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Erwin Lansing
>Release:        FreeBSD 4.8-RC i386
>Organization:
pil.dk 
>Environment:
System: FreeBSD panda.droso.net 4.8-RC FreeBSD 4.8-RC #16: Fri Mar 21 10:03:34 CET 2003 root at panda.droso.net:/usr/obj/usr/src/sys/PANDA i386


	
>Description:

- update to 1.03 to make fetcheable
- remove NO_PACKAGE (fix PLIST)
- take maintainership
- replace homegrown BASEPERL with SITEPERL
- remove MANPREFIX
- make dependencies dependend on perl version for those included in perl 5.8
- add WWW

>How-To-Repeat:
	
>Fix:

	

--- p5-Crypt-OpenPGP.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/security/p5-Crypt-OpenPGP/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- Makefile	20 Feb 2003 18:59:08 -0000	1.9
+++ Makefile	31 Mar 2003 16:33:38 -0000
@@ -6,42 +6,41 @@
 #
 
 PORTNAME=	Crypt-OpenPGP
-PORTVERSION=	0.16
+PORTVERSION=	1.03
 CATEGORIES=	security perl5
 MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
 MASTER_SITE_SUBDIR=	Crypt
 PKGNAMEPREFIX=	p5-
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	erwin at lansing.dk
 COMMENT=	Pure-Perl OpenPGP-compatible PGP implementation
 
-NO_PACKAGE=	"Runaway package build"
+BUILD_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Crypt/DES.pm:${PORTSDIR}/security/p5-Crypt-DES \
+		${SITE_PERL}/${PERL_ARCH}/Crypt/Blowfish.pm:${PORTSDIR}/security/p5-Crypt-Blowfish \
+		${SITE_PERL}/${PERL_ARCH}/Crypt/IDEA.pm:${PORTSDIR}/security/p5-Crypt-IDEA \
+		${SITE_PERL}/Crypt/DSA.pm:${PORTSDIR}/security/p5-Crypt-DSA \
+		${SITE_PERL}/Crypt/RSA.pm:${PORTSDIR}/security/p5-Crypt-RSA \
+		${SITE_PERL}/${PERL_ARCH}/Crypt/RIPEMD160.pm:${PORTSDIR}/security/p5-Crypt-RIPEMD160 \
+		${SITE_PERL}/${PERL_ARCH}/Crypt/Rijndael.pm:${PORTSDIR}/security/p5-Crypt-Rijndael \
+		${SITE_PERL}/Crypt/CAST5_PP.pm:${PORTSDIR}/security/p5-Crypt-CAST5_PP \
+		${SITE_PERL}/Crypt/DES_EDE3.pm:${PORTSDIR}/security/p5-Crypt-DES_EDE3 \
+		${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
+		${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
+		${SITE_PERL}/${PERL_ARCH}/Math/Pari.pm:${PORTSDIR}/math/p5-Math-Pari \
+		${SITE_PERL}/Data/Buffer.pm:${PORTSDIR}/misc/p5-Data-Buffer \
+		${SITE_PERL}/URI/Escape.pm:${PORTSDIR}/net/p5-URI \
+		${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww
 
-PERLBASE=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
-
-BUILD_DEPENDS=	${PERLBASE}/${PERL_ARCH}/Crypt/DES.pm:${PORTSDIR}/security/p5-Crypt-DES \
-		${PERLBASE}/${PERL_ARCH}/Crypt/Blowfish.pm:${PORTSDIR}/security/p5-Crypt-Blowfish \
-		${PERLBASE}/${PERL_ARCH}/Crypt/IDEA.pm:${PORTSDIR}/security/p5-Crypt-IDEA \
-		${PERLBASE}/Crypt/DSA.pm:${PORTSDIR}/security/p5-Crypt-DSA \
-		${PERLBASE}/Crypt/RSA.pm:${PORTSDIR}/security/p5-Crypt-RSA \
-		${PERLBASE}/${PERL_ARCH}/Crypt/RIPEMD160.pm:${PORTSDIR}/security/p5-Crypt-RIPEMD160 \
-		${PERLBASE}/${PERL_ARCH}/Crypt/Rijndael.pm:${PORTSDIR}/security/p5-Crypt-Rijndael \
-		${PERLBASE}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
-		${PERLBASE}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \
-		${PERLBASE}/${PERL_ARCH}/Math/Pari.pm:${PORTSDIR}/math/p5-Math-Pari \
-		${PERLBASE}/Data/Buffer.pm:${PORTSDIR}/misc/p5-Data-Buffer \
-		${PERLBASE}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
-		${PERLBASE}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
+RUN_DEPENDS=	${BUILD_DEPENDS}
 
 PERL_CONFIGURE=	yes
 
-MANPREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
 MAN3=		Crypt::OpenPGP::ErrorHandler.3 Crypt::OpenPGP::Key.3 \
 		Crypt::OpenPGP::CFB.3 Crypt::OpenPGP::SKSessionKey.3 \
 		Crypt::OpenPGP::UserID.3 Crypt::OpenPGP::SessionKey.3 \
 		Crypt::OpenPGP::Words.3 Crypt::OpenPGP::PacketFactory.3 \
 		Crypt::OpenPGP::S2k.3 Crypt::OpenPGP.3 \
-		Crypt::OpenPGP::Signature.3 Crypt::DES_EDE3.3 \
+		Crypt::OpenPGP::Signature.3 \
 		Crypt::OpenPGP::KeyBlock.3 Crypt::OpenPGP::MDC.3 \
 		Crypt::OpenPGP::Compressed.3 Crypt::OpenPGP::Armour.3 \
 		Crypt::OpenPGP::KeyRing.3 Crypt::OpenPGP::Plaintext.3 \
@@ -50,6 +49,15 @@
 		Crypt::OpenPGP::Util.3 Crypt::OpenPGP::Digest.3 \
 		Crypt::OpenPGP::Ciphertext.3 Crypt::OpenPGP::Marker.3 \
 		Crypt::OpenPGP::Trust.3 Crypt::OpenPGP::Certificate.3 \
-		Crypt::OpenPGP::Message.3
+		Crypt::OpenPGP::Message.3 Crypt::OpenPGP::KeyServer.3
+
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500800
+BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
+		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
+RUN_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
+		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
+.endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/security/p5-Crypt-OpenPGP/distinfo,v
retrieving revision 1.1
diff -u -r1.1 distinfo
--- distinfo	12 Sep 2001 01:12:58 -0000	1.1
+++ distinfo	31 Mar 2003 16:33:38 -0000
@@ -1 +1 @@
-MD5 (Crypt-OpenPGP-0.16.tar.gz) = cda01e391e4e23084b66db00bddfee8f
+MD5 (Crypt-OpenPGP-1.03.tar.gz) = 020141cf2a3c22b50373fc5aeb7914d2
Index: pkg-descr
===================================================================
RCS file: /home/ncvs/ports/security/p5-Crypt-OpenPGP/pkg-descr,v
retrieving revision 1.1
diff -u -r1.1 pkg-descr
--- pkg-descr	12 Sep 2001 01:12:58 -0000	1.1
+++ pkg-descr	31 Mar 2003 16:33:38 -0000
@@ -19,3 +19,5 @@
 supported for key sizes of 128, 192, and 256 bits. Crypt::OpenPGP
 supports the digest algorithms MD5, SHA-1, and RIPE-MD/160. And it
 supports ZIP and Zlib compression.
+
+WWW: http://search.cpan.org/dist/Crypt-OpenPGP/
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/security/p5-Crypt-OpenPGP/pkg-plist,v
retrieving revision 1.1
diff -u -r1.1 pkg-plist
--- pkg-plist	12 Sep 2001 01:12:58 -0000	1.1
+++ pkg-plist	31 Mar 2003 16:33:38 -0000
@@ -1,45 +1,47 @@
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/CFB.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/UserID.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/S2k.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key/Secret/RSA.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key/Secret/ElGamal.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key/Secret/DSA.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key/Public/ElGamal.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key/Public/DSA.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key/Public/RSA.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key/Secret.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key/Public.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Armour.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Plaintext.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/KeyRing.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Constants.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Util.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Ciphertext.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Digest.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Marker.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Trust.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Certificate.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Message.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/ErrorHandler.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/SKSessionKey.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/SessionKey.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Words.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/PacketFactory.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Signature.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/KeyBlock.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/MDC.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Compressed.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Buffer.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Cipher.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/OnePassSig.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Signature/SubPacket.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP.pm
-lib/perl5/site_perl/%%PERL_VER%%/Crypt/DES_EDE3.pm
-lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Crypt/OpenPGP/.packlist
- at dirrm lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key/Secret
- at dirrm lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key/Public
- at dirrm lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Key
- at dirrm lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP/Signature
- at dirrm lib/perl5/site_perl/%%PERL_VER%%/Crypt/OpenPGP
- at dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/Crypt/OpenPGP
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Crypt/OpenPGP/.packlist
+%%SITE_PERL%%/Crypt/OpenPGP.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Words.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Digest.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Key.pm
+%%SITE_PERL%%/Crypt/OpenPGP/KeyRing.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Cipher.pm
+%%SITE_PERL%%/Crypt/OpenPGP/S2k.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Armour.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Certificate.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Compressed.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Message.pm
+%%SITE_PERL%%/Crypt/OpenPGP/OnePassSig.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Util.pm
+%%SITE_PERL%%/Crypt/OpenPGP/SKSessionKey.pm
+%%SITE_PERL%%/Crypt/OpenPGP/MDC.pm
+%%SITE_PERL%%/Crypt/OpenPGP/CFB.pm
+%%SITE_PERL%%/Crypt/OpenPGP/PacketFactory.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Signature.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Marker.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Buffer.pm
+%%SITE_PERL%%/Crypt/OpenPGP/KeyBlock.pm
+%%SITE_PERL%%/Crypt/OpenPGP/ErrorHandler.pm
+%%SITE_PERL%%/Crypt/OpenPGP/KeyServer.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Config.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Key/Public.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Key/Secret.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Key/Secret/DSA.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Key/Secret/RSA.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Key/Secret/ElGamal.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Key/Public/RSA.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Key/Public/DSA.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Key/Public/ElGamal.pm
+%%SITE_PERL%%/Crypt/OpenPGP/SessionKey.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Constants.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Trust.pm
+%%SITE_PERL%%/Crypt/OpenPGP/UserID.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Plaintext.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Ciphertext.pm
+%%SITE_PERL%%/Crypt/OpenPGP/Signature/SubPacket.pm
+ at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Crypt/OpenPGP
+ at dirrm %%SITE_PERL%%/Crypt/OpenPGP/Key/Secret
+ at dirrm %%SITE_PERL%%/Crypt/OpenPGP/Key/Public
+ at dirrm %%SITE_PERL%%/Crypt/OpenPGP/Key
+ at dirrm %%SITE_PERL%%/Crypt/OpenPGP/Signature
+ at dirrm %%SITE_PERL%%/Crypt/OpenPGP
+ at unexec rmdir %D/%%SITE_PERL%%/Crypt 2>/dev/null || true
Index: files/patch-makefile
===================================================================
RCS file: /home/ncvs/ports/security/p5-Crypt-OpenPGP/files/patch-makefile,v
retrieving revision 1.1
diff -u -r1.1 patch-makefile
--- files/patch-makefile	12 Sep 2001 01:12:58 -0000	1.1
+++ files/patch-makefile	31 Mar 2003 16:33:38 -0000
@@ -1,35 +1,25 @@
---- Makefile.PL.orig	Tue Sep 11 10:23:45 2001
-+++ Makefile.PL	Tue Sep 11 10:25:39 2001
-@@ -49,9 +49,9 @@
- MSG
- my $i = 1;
- for my $ciph (@cryptmod) {
--    printf "    [%d] %s\n", $i++, $ciph->[0];
-+    #printf "    [%d] %s\n", $i++, $ciph->[0];
- }
--my $c = prompt("\nEnter your choices, separated by spaces:", 1);
-+my $c = "1 2 5";
- print "\n";
+--- Makefile.PL.orig	Mon Mar 31 17:57:10 2003
++++ Makefile.PL	Mon Mar 31 17:58:26 2003
+@@ -43,22 +43,6 @@
+         'Crypt::RIPEMD160' => 0,
+     ],
  
- for my $id (split /\s+/, $c) {
-@@ -70,9 +70,9 @@
- MSG
- my $i = 1;
- for my $ciph (@dgstmod) {
--    printf "    [%d] %s\n", $i++, $ciph->[0];
-+    #printf "    [%d] %s\n", $i++, $ciph->[0];
- }
--my $c = prompt("\nEnter your choices, separated by spaces:", 2);
-+my $c = "1 2";
- print "\n";
+-    'Support for all ciphers' => [
+-        -default           => $is_sdk,
+-        'Crypt::IDEA'      => 0,
+-        'Crypt::DES_EDE3'  => 0,
+-        'Crypt::CAST5_PP'  => 0,
+-        'Crypt::Blowfish'  => 0,
+-        'Crypt::Twofish'   => '2.00',
+-        'Crypt::Rijndael'  => 0,
+-    ],
+-
+-    'Support for all digests' => [
+-        -default           => $is_sdk,
+-        'Digest::MD5'      => 0,
+-        'Digest::SHA1'     => 0,
+-        'Crypt::RIPEMD160' => 0,
+-    ],
+ );
  
- for my $id (split /\s+/, $c) {
-@@ -98,7 +98,7 @@
- for my $pk (@pkmod) {
-     printf "    [%d] %s\n", $i++, $pk->[0];
- }
--my $c = prompt("\nEnter your choices, separated by spaces:", '1 2');
-+my $c = "1 2";
- print "\n";
- 
- for my $id (split /\s+/, $c) {
+ WriteMakefile(
--- p5-Crypt-OpenPGP.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list