From negative@magnesium.net  Mon Oct  7 13:54:08 2002
Return-Path: <negative@magnesium.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 1814D37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  7 Oct 2002 13:54:08 -0700 (PDT)
Received: from magnesium.net (toxic.magnesium.net [207.154.84.15])
	by mx1.FreeBSD.org (Postfix) with SMTP id 7C4CE43E6E
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  7 Oct 2002 13:54:07 -0700 (PDT)
	(envelope-from negative@magnesium.net)
Received: (qmail 5602 invoked by uid 1224); 7 Oct 2002 20:54:07 -0000
Message-Id: <20021007205407.5601.qmail@magnesium.net>
Date: 7 Oct 2002 13:54:07 -0700
From: Jim Geovedi <negative@toxic.magnesium.net>
Reply-To: Jim Geovedi <negative@toxic.magnesium.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New Port: security/libbf (The Blowfish block cipher Library)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         43792
>Category:       ports
>Synopsis:       New Port: security/libbf (The Blowfish block cipher Library)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 07 14:00:09 PDT 2002
>Closed-Date:    Tue Mar 25 04:55:38 PST 2003
>Last-Modified:  Tue Mar 25 04:55:38 PST 2003
>Originator:     Jim Geovedi
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD toxic.magnesium.net 4.6-STABLE FreeBSD 4.6-STABLE #5: Thu Aug 1 09:24:17 PDT 2002 unfurl@toxic.magnesium.net:/users/world/obj/users/world/src/sys/TOXIC i386


	
>Description:
	
Blowfish is a block cipher that operates on 64bit (8 byte) quantities.
It uses variable size key, but 128bit (16 byte) key would normally be
considered good.  It can be used in all the modes that DES can be
used.  This library implements the ecb, cbc, cfb64, ofb64 modes.

Blowfish is quite a bit faster that DES, and much faster than IDEA
or RC2. It is one of the faster block ciphers.

WWW: http://www.counterpane.com/blowfish.html

>How-To-Repeat:
	
>Fix:

	

--- security_libbf.shar begins here ---
# 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:
#
#	libbf
#	libbf/Makefile
#	libbf/distinfo
#	libbf/files
#	libbf/files/patch-Makefile
#	libbf/pkg-descr
#	libbf/pkg-comment
#	libbf/pkg-plist
#
echo c - libbf
mkdir -p libbf > /dev/null 2>&1
echo x - libbf/Makefile
sed 's/^X//' >libbf/Makefile << 'END-of-libbf/Makefile'
X# New ports collection makefile for:	libbf
X# Date created:				Sep 30, 2002
X# Whom:					Jim Geovedi <jim@corebsd.or.id>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libbf
XPORTVERSION=	0.8.2b
XCATEGORIES=	security
XMASTER_SITES=	ftp://ftp.psy.uq.oz.au/pub/Crypto/libeay/ \
X		ftp://ftp.funet.fi/pub/mirrors/ftp.psy.uq.oz.au/libeay/ \
X		ftp://ftp.ntnu.no/pub/unix/security/ \
X		ftp://ftp.sunsite.org.uk/Mirrors/ftp.psy.uq.oz.au/pub/Crypto/libeay/
X
XMAINTAINER=	jim@corebsd.or.id
X
XRESTRICTED=	"Crypto; export-controlled"
X
X.if ${MACHINE_ARCH} == "i386"
XMAKEFLAGS+=	BF_ENC=asm/bx86-elf.o
X.else
XMAKEFLAGS+=	BF_ENC=bf_enc.o
X.endif
X
XWRKSRC=		${WRKDIR}/bf
X
XPORTDOCS=	blowfish.doc COPYRIGHT README VERSION
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/bfspeed ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/bftest ${PREFIX}/bin
X	${INSTALL_DATA} ${WRKSRC}/libblowfish.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/blowfish.h ${PREFIX}/include
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for doc in ${PORTDOCS}
X	${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-libbf/Makefile
echo x - libbf/distinfo
sed 's/^X//' >libbf/distinfo << 'END-of-libbf/distinfo'
XMD5 (libbf-0.8.2b.tar.gz) = 04fd639841110df96ba06b19c654eaa4
END-of-libbf/distinfo
echo c - libbf/files
mkdir -p libbf/files > /dev/null 2>&1
echo x - libbf/files/patch-Makefile
sed 's/^X//' >libbf/files/patch-Makefile << 'END-of-libbf/files/patch-Makefile'
X--- Makefile.orig	Mon Sep 30 02:12:03 2002
X+++ Makefile	Mon Sep 30 02:14:19 2002
X@@ -16,31 +16,31 @@ TOP=	.
X # There are 3 possible performance options, experiment :-)
X #OPTS= -DBF_PTR  # usr for sparc and MIPS/SGI
X #OPTS= -DBF_PTR2 # use for pentium
X-OPTS=		 # use for pentium pro, Alpha and HP
X+#OPTS=		 # use for pentium pro, Alpha and HP
X 
X MAKE=make -f Makefile
X #CC=cc
X #CFLAG= -O
X 
X-CC=gcc
X+#CC=gcc
X #CFLAG= -O4 -funroll-loops -fomit-frame-pointer
X-CFLAG= -O3 -fomit-frame-pointer
X+#CFLAG= -O3 -fomit-frame-pointer
X 
X-CFLAGS=$(OPTS) $(CFLAG)
X-CPP=$(CC) -E
X-AS=as
X+#CFLAGS=$(OPTS) $(CFLAG)
X+CPP?=$(CC) -E
X+AS?=as
X 
X # Assember version of bf_encrypt().
X-BF_ENC=bf_enc.o		# normal C version
X+BF_ENC?=bf_enc.o		# normal C version
X #BF_ENC=asm/bx86-elf.o	# elf format x86
X #BF_ENC=asm/bx86-out.o	# a.out format x86
X #BF_ENC=asm/bx86-sol.o	# solaris format x86 
X #BF_ENC=asm/bx86bsdi.o	# bsdi format x86 
X 
X-LIBDIR=/usr/local/lib
X-BINDIR=/usr/local/bin
X-INCDIR=/usr/local/include
X-MANDIR=/usr/local/man
X+LIBDIR=${PREFIX}/lib
X+BINDIR=${PREFIX}/bin
X+INCDIR=${PREFIX}/include
X+MANDIR=${PREFIX}/man
X MAN1=1
X MAN3=3
X SHELL=/bin/sh
END-of-libbf/files/patch-Makefile
echo x - libbf/pkg-descr
sed 's/^X//' >libbf/pkg-descr << 'END-of-libbf/pkg-descr'
XThe Blowfish Library
X
XBlowfish is a block cipher that operates on 64bit (8 byte) quantities.
XIt uses variable size key, but 128bit (16 byte) key would normally be
Xconsidered good.  It can be used in all the modes that DES can be
Xused.  This library implements the ecb, cbc, cfb64, ofb64 modes.
X
XBlowfish is quite a bit faster that DES, and much faster than IDEA
Xor RC2. It is one of the faster block ciphers.
X
XWWW: http://www.counterpane.com/blowfish.html
X
X -- Jim Geovedi
X    jim@corebsd.or.id
END-of-libbf/pkg-descr
echo x - libbf/pkg-comment
sed 's/^X//' >libbf/pkg-comment << 'END-of-libbf/pkg-comment'
XThe Blowfish block cipher Library
END-of-libbf/pkg-comment
echo x - libbf/pkg-plist
sed 's/^X//' >libbf/pkg-plist << 'END-of-libbf/pkg-plist'
Xbin/bftest
Xbin/bfspeed
Xinclude/blowfish.h
Xlib/libblowfish.a
X%%PORTDOCS%%share/doc/libbf/COPYRIGHT
X%%PORTDOCS%%share/doc/libbf/README
X%%PORTDOCS%%share/doc/libbf/VERSION
X%%PORTDOCS%%share/doc/libbf/blowfish.doc
X%%PORTDOCS%%@dirrm share/doc/libbf
END-of-libbf/pkg-plist
exit
--- security_libbf.shar ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: foxfair 
State-Changed-When: Tue Mar 25 04:54:58 PST 2003 
State-Changed-Why:  
Commit, thanks! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=43792 
>Unformatted:
