diff --git a/security/p5-MD5/Makefile b/security/p5-MD5/Makefile new file mode 100644 index 000000000000..80e504e1f967 --- /dev/null +++ b/security/p5-MD5/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: p5-MD5 +# Version required: 1.7 +# Date created: September 30th 1996 +# Whom: James FitzGibbon +# +# $Id$ +# + +DISTNAME= MD5-1.7 +PKGNAME= p5-MD5-1.7 +CATEGORIES+= security +MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/MD5/ \ + ftp://ftp.cdrom.com/pub/perl/CPAN/modules/by-module/MD5/ \ + ftp://ftp.cis.ufl.edu/pub/perl/CPAN/modules/by-module/MD5/ \ + ftp://ftp.leo.org/pub/comp/programming/languages/perl/CPAN/modules/by-module/MD5/ \ + ftp://ftp.demon.co.uk/pub/mirrors/perl/CPAN/modules/by-module/MD5/ \ + ftp://ftp.lab.kdd.co.jp/lang/perl/CPAN/modules/by-module/MD5/ + +MAINTAINER= jfitz@FreeBSD.ORG + +BUILD_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5 + +do-configure: + @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl Makefile.PL + +post-install: +.if !defined(NOMANCOMPRESS) + @ gzip -9nf ${PREFIX}/lib/perl5/man/man3/MD5.3 +.endif + +.include diff --git a/security/p5-MD5/distinfo b/security/p5-MD5/distinfo new file mode 100644 index 000000000000..35e012be164b --- /dev/null +++ b/security/p5-MD5/distinfo @@ -0,0 +1 @@ +MD5 (MD5-1.7.tar.gz) = 92b07ec19be88163613dde69939eb48a diff --git a/security/p5-MD5/pkg-comment b/security/p5-MD5/pkg-comment new file mode 100644 index 000000000000..c147902f8477 --- /dev/null +++ b/security/p5-MD5/pkg-comment @@ -0,0 +1 @@ +perl5 interface to the RSA Data Security Inc. MD5 Message-Digest Algorithm diff --git a/security/p5-MD5/pkg-descr b/security/p5-MD5/pkg-descr new file mode 100644 index 000000000000..1ac4d065d20f --- /dev/null +++ b/security/p5-MD5/pkg-descr @@ -0,0 +1,40 @@ + The MD5 module allows you to use the RSA Data Security + Inc. MD5 Message Digest algorithm from within Perl + programs. + + A new MD5 context object is created with the new + operation. Multiple simultaneous digest contexts can be + maintained, if desired. The context is updated with the + add operation which adds the strings contained in the LIST + parameter. Note, however, that add('foo', 'bar'), + add('foo') followed by add('bar') and add('foobar') should + all give the same result. + + The final message digest value is returned by the digest + operation as a 16-byte binary string. This operation + delivers the result of add operations since the last new + or reset operation. Note that the digest operation is + effectively a destructive, read-once operation. Once it + has been performed, the context must be reset before being + used to calculate another digest value. + + Several convenience functions are also provided. The + addfile operation takes an open file-handle and reads it + until end-of file in 1024 byte blocks adding the contents + to the context. The file-handle can either be specified by + name or passed as a type-glob reference, as shown in the + examples below. The hexdigest operation calls digest and + returns the result as a printable string of hexdecimal + digits. This is exactly the same operation as performed by + the unpack operation in the examples below. + + The hash operation can act as either a static member + function (ie you invoke it on the MD5 class as in the + synopsis above) or as a normal virtual function. In both + cases it performs the complete MD5 cycle (reset, add, + digest) on the supplied scalar value. This is convenient + for handling small quantities of data. When invoked on the + class a temporary context is created. When invoked through + an already created context object, this context is used. + The latter form is slightly more efficient. The hexhash + operation is analogous to hexdigest. diff --git a/security/p5-MD5/pkg-plist b/security/p5-MD5/pkg-plist new file mode 100644 index 000000000000..db0fdcbe0faf --- /dev/null +++ b/security/p5-MD5/pkg-plist @@ -0,0 +1,8 @@ +lib/perl5/site_perl/i386-freebsd/auto/MD5/MD5.so +lib/perl5/site_perl/i386-freebsd/auto/MD5/MD5.bs +lib/perl5/site_perl/auto/MD5/autosplit.ix +lib/perl5/site_perl/MD5.pm +lib/perl5/man/man3/MD5.3.gz +lib/perl5/site_perl/i386-freebsd/auto/MD5/.packlist +@dirrm lib/perl5/site_perl/i386-freebsd/auto/MD5 +@dirrm lib/perl5/site_perl/auto/MD5