Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jun 2003 14:50:47 +0800 (CST)
From:      foxfair <foxfair@drago.fomokka.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/53397: [New ports] cryptlib: A powerful security programming toolkit
Message-ID:  <200306170650.h5H6olx7077028@drago.fomokka.net>
Resent-Message-ID: <200306170700.h5H70SXs020324@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         53397
>Category:       ports
>Synopsis:       [New ports] cryptlib: A powerful security programming toolkit
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 17 00:00:28 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     foxfair
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
System: FreeBSD 4.8-STABLE && FreeBSD 5.1-CURRENT both tested

>Description:
cryptlib is a powerful security toolkit which allows even inexperienced 
crypto programmers to easily add encryption and authentication services to 
their software. The high-level interface provides anyone with the ability to 
add strong security capabilities to an application in as little as half an 
hour, without needing to know any of the low-level details which make the 
encryption or authentication work.

>How-To-Repeat:
	
>Fix:
Use the following shar code to create cryptlib:

==========================================================
# 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:
#
#	cryptlib
#	cryptlib/pkg-plist
#	cryptlib/pkg-descr
#	cryptlib/distinfo
#	cryptlib/Makefile
#	cryptlib/files
#	cryptlib/files/patch-crypt::aes.h
#	cryptlib/files/patch-makefile
#	cryptlib/pkg-message
#
echo c - cryptlib
mkdir -p cryptlib > /dev/null 2>&1
echo x - cryptlib/pkg-plist
sed 's/^X//' >cryptlib/pkg-plist << 'END-of-cryptlib/pkg-plist'
Xbin/endian
Xlib/libcl.a
Xlib/libcl.so
Xlib/libcl.so.3.1.0
X%%PORTDOCS%%share/doc/cryptlib/README
X%%PORTDOCS%%@dirrm share/doc/cryptlib
END-of-cryptlib/pkg-plist
echo x - cryptlib/pkg-descr
sed 's/^X//' >cryptlib/pkg-descr << 'END-of-cryptlib/pkg-descr'
Xcryptlib is a powerful security toolkit which allows even inexperienced 
Xcrypto programmers to easily add encryption and authentication services to 
Xtheir software. The high-level interface provides anyone with the ability to 
Xadd strong security capabilities to an application in as little as half an 
Xhour, without needing to know any of the low-level details which make the 
Xencryption or authentication work. Because of this, cryptlib dramatically 
Xreduces the cost involved in adding security to new or existing applications.
X
Xcryptlib provides a standardised interface to a number of popular encryption
Xalgorithms, as well as providing a high-level interface which hides most of 
Xthe implementation details and provides an operating-system-independent 
Xencoding method which makes it easy to transfer secured data from one operating
Xenvironment to another.
X
XWWW: http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
END-of-cryptlib/pkg-descr
echo x - cryptlib/distinfo
sed 's/^X//' >cryptlib/distinfo << 'END-of-cryptlib/distinfo'
XMD5 (cl31beta04.zip) = 888b5497adf1c05518900297782af549
END-of-cryptlib/distinfo
echo x - cryptlib/Makefile
sed 's/^X//' >cryptlib/Makefile << 'END-of-cryptlib/Makefile'
X# New ports collection makefile for:   cryptlib
X# Date created:        17 Jun, 2003
X# Whom:                Foxfair Hu <foxfair@FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=		cryptlib
XPORTVERSION=		3.1
XPORTREVISION=		beta4
XCATEGORIES=		security
XMASTER_SITES=		ftp://ftp.franken.de/pub/crypt/cryptlib/beta/
XDISTNAME=		cl31beta04
XEXTRACT_SUFX=		.zip
X
XMAINTAINER=		ports@FreeBSD.org
XCOMMENT=		A powerful security programming toolkit
X
XUSE_ZIP=		yes
XEXTRACT_BEFORE_ARGS=	-aq
XNO_WRKSUBDIR=		yes
XUSE_GMAKE=		yes
XMAKEFILE=		makefile
XMAKE_ARGS=		all shared
X
XINSTALLS_SHLIB=		yes
X
X.include <bsd.port.pre.mk>
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/endian ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/libcl.a ${WRKSRC}/libcl.so.3.1.0 \
X		${PREFIX}/lib
X	${LN} -sf ${PREFIX}/lib/libcl.so.3.1.0 ${PREFIX}/lib/libcl.so
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/cryptlib
X	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/cryptlib
X.endif
X
Xpost-install:
X	${STRIP_CMD} ${PREFIX}/bin/endian
X	${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-cryptlib/Makefile
echo c - cryptlib/files
mkdir -p cryptlib/files > /dev/null 2>&1
echo x - cryptlib/files/patch-crypt::aes.h
sed 's/^X//' >cryptlib/files/patch-crypt::aes.h << 'END-of-cryptlib/files/patch-crypt::aes.h'
X--- crypt/aes.h.orig	Tue Jun 17 09:52:19 2003
X+++ crypt/aes.h	Tue Jun 17 10:04:23 2003
X@@ -42,7 +42,11 @@
X    half the AES code it's the best we can do */
X 
X #if ( defined( __GNUC__ ) && ( __GNUC__ >= 2 ) ) || defined( HAS_STDINT_H )
X-  #include <stdint.h>
X+  #if defined(__FreeBSD__)
X+	#include <unistd.h>
X+  #elif 
X+	#include <stdint.h>
X+  #endif
X #else
X   #include "itypes.h"
X #endif /* Systems with C99 headers */
END-of-cryptlib/files/patch-crypt::aes.h
echo x - cryptlib/files/patch-makefile
sed 's/^X//' >cryptlib/files/patch-makefile << 'END-of-cryptlib/files/patch-makefile'
X--- makefile.orig	Tue Jun 17 12:28:06 2003
X+++ makefile	Tue Jun 17 13:47:16 2003
X@@ -709,7 +709,7 @@
X 						$(CC) $(CFLAGS) misc/keyex.c -o $(OBJPATH)keyex.o
X 
X $(OBJPATH)keyex_rw.o:	$(CRYPT_DEP) $(ASN1_DEP) misc/objinfo.h misc/keyex_rw.c
X-						$(CC) $(CFLAGS) misc/keyex_rw.c -o $(OBJPATH)/keyex_rw.o
X+						$(CC) $(CFLAGS) misc/keyex_rw.c -o $(OBJPATH)keyex_rw.o
X 
X $(OBJPATH)net_cmp.o:	$(CRYPT_DEP) misc/net_cmp.c
X 						$(CC) $(CFLAGS) misc/net_cmp.c -o $(OBJPATH)net_cmp.o
X@@ -1171,11 +1171,11 @@
X #	@make asm_out
X 	@make $(DEFINES) CC=gcc CFLAGS="$(CFLAGS) -fomit-frame-pointer -O3"
X FreeBSD:
X-	@echo "The most common version of this OS uses an incredibly old version of as"
X-	@echo "which doesn't handle 486 opcodes, so the asm code is disabled by default."
X-	@echo "If you've upgraded to a newer as, uncomment the 'make asm_out' line"
X-	@echo "in the FreeBSD section of the makefile to use the much faster asm code."
X-#	@make asm_out
X+#	@echo "The most common version of this OS uses an incredibly old version of as"
X+#	@echo "which doesn't handle 486 opcodes, so the asm code is disabled by default."
X+#	@echo "If you've upgraded to a newer as, uncomment the 'make asm_out' line"
X+#	@echo "in the FreeBSD section of the makefile to use the much faster asm code."
X+	@make asm_out
X 	@make $(DEFINES) CFLAGS="$(CFLAGS) -fomit-frame-pointer -O3"
X OpenBSD:
X 	@make asm_out
X@@ -1463,6 +1463,8 @@
X BeOS:
X 	@make $(DEFINES) CC=mwcc AR="mwcc -xml -o" SLD="mwcc -xms -f crypt.exp"
X 
X+all:
X+	@make default
X 
X #****************************************************************************
X #*																			*
END-of-cryptlib/files/patch-makefile
echo x - cryptlib/pkg-message
sed 's/^X//' >cryptlib/pkg-message << 'END-of-cryptlib/pkg-message'
X===================================================================
X    For more information, please refer to the original web site:
X
X	http://www.cs.auckland.ac.nz/~pgut001/cryptlib/
X
X    Also, source codes from the distfiles are well explained. UTSL!
X===================================================================
END-of-cryptlib/pkg-message
exit


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306170650.h5H6olx7077028>