Skip site navigation (1)Skip section navigation (2)
Date:      7 Oct 2002 13:54:07 -0700
From:      Jim Geovedi <negative@toxic.magnesium.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/43792: New Port: security/libbf (The Blowfish block cipher Library)
Message-ID:  <20021007205407.5601.qmail@magnesium.net>

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

>Number:         43792
>Category:       ports
>Synopsis:       New Port: security/libbf (The Blowfish block cipher Library)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 07 14:00:09 PDT 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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