Crypt::License decodes an encrypted file and attempts to decrypt it by first,
looking for a hash pointer in the caller program called $ptr2_License. The hash contains the path to the License file and an optional 'private' key list of modules which will decrypt only with the 'private' key. OR, a hash key of 'next' with no particular value that indicates to look to the next caller on the stack for the License pointer. If the pointer is not present or the License file is not found successfully, then no further action is taken. If the License file is successfully opened, and the contents validated then the attached encrypted module is loaded and the seconds remaining until License expiration are returned or now() in the case of no expiration. Undef is returned for an expired license (module fails to load). WWW: http://search.cpan.org/dist/Crypt-License PR: ports/90693 Submitted by: Gabor Kovesdan
This commit is contained in:
parent
a814e62c20
commit
656ce31219
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=151759
5 changed files with 49 additions and 0 deletions
|
@ -312,6 +312,7 @@
|
|||
SUBDIR += p5-Crypt-IDEA
|
||||
SUBDIR += p5-Crypt-Imail
|
||||
SUBDIR += p5-Crypt-Khazad
|
||||
SUBDIR += p5-Crypt-License
|
||||
SUBDIR += p5-Crypt-Lite
|
||||
SUBDIR += p5-Crypt-MySQL
|
||||
SUBDIR += p5-Crypt-NULL
|
||||
|
|
24
security/p5-Crypt-License/Makefile
Normal file
24
security/p5-Crypt-License/Makefile
Normal file
|
@ -0,0 +1,24 @@
|
|||
# New ports collection Makefile for: p5-Crypt-License
|
||||
# Date created: 20 Dec 2006
|
||||
# Whom: Gabor Kovesdan
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= Crypt-License
|
||||
PORTVERSION= 2.03
|
||||
CATEGORIES= security perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= Crypt
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= gkovesdan@t-hosting.hu
|
||||
COMMENT= Perl extension to examine a license
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= Crypt::License.3 Crypt::License::Util.3 Crypt::License::Notice.3
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
.if ${PERL_LEVEL} <= 500503
|
||||
IGNORE= requires Perl 5.6. Intall lang/perl5 or lang/perl5.8, and try again
|
||||
.endif
|
||||
.include <bsd.port.post.mk>
|
3
security/p5-Crypt-License/distinfo
Normal file
3
security/p5-Crypt-License/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (Crypt-License-2.03.tar.gz) = 0a9cb70700a3000470a5383b8aa5ec0a
|
||||
SHA256 (Crypt-License-2.03.tar.gz) = 64c2928141164ec1a6a8e0326a0bcb3210f6b6831cfcc1048cc49ab2b5f666ae
|
||||
SIZE (Crypt-License-2.03.tar.gz) = 38588
|
13
security/p5-Crypt-License/pkg-descr
Normal file
13
security/p5-Crypt-License/pkg-descr
Normal file
|
@ -0,0 +1,13 @@
|
|||
Crypt::License decodes an encrypted file and attempts to decrypt it by first,
|
||||
looking for a hash pointer in the caller program called $ptr2_License. The
|
||||
hash contains the path to the License file and an optional 'private' key list
|
||||
of modules which will decrypt only with the 'private' key. OR, a hash key of
|
||||
'next' with no particular value that indicates to look to the next caller on
|
||||
the stack for the License pointer. If the pointer is not present or the
|
||||
License file is not found successfully, then no further action is taken. If the
|
||||
License file is successfully opened, and the contents validated then the
|
||||
attached encrypted module is loaded and the seconds remaining until License
|
||||
expiration are returned or now() in the case of no expiration. Undef is
|
||||
returned for an expired license (module fails to load).
|
||||
|
||||
WWW: http://search.cpan.org/dist/Crypt-License
|
8
security/p5-Crypt-License/pkg-plist
Normal file
8
security/p5-Crypt-License/pkg-plist
Normal file
|
@ -0,0 +1,8 @@
|
|||
%%SITE_PERL%%/Crypt/License.pm
|
||||
%%SITE_PERL%%/Crypt/License/Notice.pm
|
||||
%%SITE_PERL%%/Crypt/License/Util.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Crypt/License/.packlist
|
||||
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Crypt/License/
|
||||
@dirrm %%SITE_PERL%%/Crypt/License/
|
||||
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Crypt 2>/dev/null || true
|
||||
@unexec rmdir %D/%%SITE_PERL%%/Crypt 2>/dev/null || true
|
Loading…
Reference in a new issue