ports/60709: new port: security/p5-Crypt-xDBM_File
Cheng-Lung Sung
clsung at dragon2.net
Tue Dec 30 01:10:22 UTC 2003
>Number: 60709
>Category: ports
>Synopsis: new port: security/p5-Crypt-xDBM_File
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 29 17:10:16 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Cheng-Lung Sung
>Release: FreeBSD 4.9-RELEASE i386
>Organization:
FreeBSD @ Taiwan
>Environment:
System: FreeBSD sungsung.csie.nctu.edu.tw 4.9-RELEASE FreeBSD 4.9-RELEASE #5: Wed Oct 29 20:13:25 CST 2003 root at sungsung.csie.nctu.edu.tw:/usr/obj/usr/src/sys/SUNGSUNG i386
>Description:
- New port: encrypt almost any kind of dbm file
- required module: Crypt-Blowfish
>How-To-Repeat:
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# p5-Crypt-xDBM_File
# p5-Crypt-xDBM_File/Makefile
# p5-Crypt-xDBM_File/distinfo
# p5-Crypt-xDBM_File/pkg-descr
# p5-Crypt-xDBM_File/pkg-plist
#
echo c - p5-Crypt-xDBM_File
mkdir -p p5-Crypt-xDBM_File > /dev/null 2>&1
echo x - p5-Crypt-xDBM_File/Makefile
sed 's/^X//' >p5-Crypt-xDBM_File/Makefile << 'END-of-p5-Crypt-xDBM_File/Makefile'
X# New ports collection makefile for: Crypt-xDBM_File
X# Date created: Tue Dec 30 08:56:41 CST 2003
X# Whom: Cheng-Lung Sung <clsung at dragon2.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME= Crypt-xDBM_File
XPORTVERSION= 1.01
XCATEGORIES= security perl5
XMASTER_SITES= ${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR= Crypt
XPKGNAMEPREFIX= p5-
X
XMAINTAINER= clsung at dragon2.net
XCOMMENT= Perl module encrypt almost any kind of dbm file
X
XBUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Crypt/Blowfish.pm:${PORTSDIR}/security/p5-Crypt-Blowfish
XRUN_DEPENDS= ${BUILD_DEPENDS}
X
XPERL_CONFIGURE= yes
X
XMAN3= Crypt::xDBM_File.3
X
X.include <bsd.port.pre.mk>
X
X.if ${PERL_LEVEL} < 500601
XIGNORE= This port requires perl 5.6.x or later. Install lang/perl5 then try again
X.endif
X
X.include <bsd.port.post.mk>
END-of-p5-Crypt-xDBM_File/Makefile
echo x - p5-Crypt-xDBM_File/distinfo
sed 's/^X//' >p5-Crypt-xDBM_File/distinfo << 'END-of-p5-Crypt-xDBM_File/distinfo'
XMD5 (Crypt-xDBM_File-1.01.tar.gz) = 4e1c91ebbf896ae094c7b150e4c67883
END-of-p5-Crypt-xDBM_File/distinfo
echo x - p5-Crypt-xDBM_File/pkg-descr
sed 's/^X//' >p5-Crypt-xDBM_File/pkg-descr << 'END-of-p5-Crypt-xDBM_File/pkg-descr'
XCrypt::xDBM_File encrypts/decrypts the data in a gdbm,ndbm,sdbm (and
Xmaybe even berkeleyDB, but I didn't test that) file. It gets tied to a
Xhash and you just access the hash like normal. The crypt function can
Xbe any of the CPAN modules that use encrypt, decrypt, keysize, blocksize
X(so Crypt::IDEA, Crypt::DES, Crypt::Blowfish, ... should all work)
X
X***IMPORTANT*** Encryption keys (the key you pass in on the tie line)
Xwill be padded or truncated to fit the keysize(). Data (the key/values of
Xthe hash) is padded to fill complete blocks of blocksize().
X
XThe padding is stripped before being returned to the user so you shouldn't
Xneed to worry about it (except truncated keys). Read the doc that comes
Xwith crypt function to get an idea of what these sizes are. If keysize
Xor blocksize returns a zero the default is set to 8 bytes (64 bits).
X
XWWW: http://search.cpan.org/~eestabroo/Crypt-xDBM_File/
X
XAuthor: Eric Estabrooks <eric at urbanrage.com>
END-of-p5-Crypt-xDBM_File/pkg-descr
echo x - p5-Crypt-xDBM_File/pkg-plist
sed 's/^X//' >p5-Crypt-xDBM_File/pkg-plist << 'END-of-p5-Crypt-xDBM_File/pkg-plist'
X%%SITE_PERL%%/Crypt/xDBM_File.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Crypt/xDBM_File/.packlist
X at dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Crypt/xDBM_File
X at unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Crypt 2>/dev/null || true
X at unexec rmdir %D/%%SITE_PERL%%/Crypt 2>/dev/null || true
END-of-p5-Crypt-xDBM_File/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list