diff options
author | foxfair <foxfair@FreeBSD.org> | 2003-03-25 20:32:43 +0800 |
---|---|---|
committer | foxfair <foxfair@FreeBSD.org> | 2003-03-25 20:32:43 +0800 |
commit | e60c864387a18d3db87e16299a69bbabf104f746 (patch) | |
tree | 6d1fbc91d4c33eadc091dc46b1f3061ba47f4f9e | |
parent | 02f244f85da11a0e9ea70b2454ced53992d649d3 (diff) | |
download | freebsd-ports-gnome-e60c864387a18d3db87e16299a69bbabf104f746.tar.gz freebsd-ports-gnome-e60c864387a18d3db87e16299a69bbabf104f746.tar.zst freebsd-ports-gnome-e60c864387a18d3db87e16299a69bbabf104f746.zip |
Add libbf 0.8.2b, the Blowfish block cipher Library.
PR: 43792
Submitted by: Jim Geovedi <jim@corebsd.or.id>
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/libbf/Makefile | 45 | ||||
-rw-r--r-- | security/libbf/distinfo | 1 | ||||
-rw-r--r-- | security/libbf/files/patch-Makefile | 45 | ||||
-rw-r--r-- | security/libbf/pkg-descr | 14 | ||||
-rw-r--r-- | security/libbf/pkg-plist | 9 |
6 files changed, 115 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index a8b1dad17ec5..b344492dd152 100644 --- a/security/Makefile +++ b/security/Makefile @@ -110,6 +110,7 @@ SUBDIR += labrea SUBDIR += lcrzo SUBDIR += lcrzoex + SUBDIR += libbf SUBDIR += libecc SUBDIR += libfwbuilder SUBDIR += libgcrypt diff --git a/security/libbf/Makefile b/security/libbf/Makefile new file mode 100644 index 000000000000..11998b8c0feb --- /dev/null +++ b/security/libbf/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: libbf +# Date created: Sep 30, 2002 +# Whom: Jim Geovedi <jim@corebsd.or.id> +# +# $FreeBSD$ +# + +PORTNAME= libbf +PORTVERSION= 0.8.2b +CATEGORIES= security +MASTER_SITES= ftp://ftp.funet.fi/pub/mirrors/ftp.psy.uq.oz.au/libeay/ \ + ftp://ftp.psy.uq.oz.au/pub/Crypto/libeay/ \ + ftp://ftp.ntnu.no/pub/unix/security/ \ + ftp://ftp.sunsite.org.uk/Mirrors/ftp.psy.uq.oz.au/pub/Crypto/libeay/ + +MAINTAINER= jim@corebsd.or.id +COMMENT= The Blowfish block cipher Library + +RESTRICTED= "Crypto; export-controlled" + +.if ${MACHINE_ARCH} == "i386" +MAKEFLAGS+= BF_ENC=asm/bx86-elf.o +.else +MAKEFLAGS+= BF_ENC=bf_enc.o +.endif + +WRKSRC= ${WRKDIR}/bf + +PORTDOCS= blowfish.doc COPYRIGHT README VERSION + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bfspeed ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/bftest ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/libblowfish.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/blowfish.h ${PREFIX}/include + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for doc in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/security/libbf/distinfo b/security/libbf/distinfo new file mode 100644 index 000000000000..3dc33f7f313e --- /dev/null +++ b/security/libbf/distinfo @@ -0,0 +1 @@ +MD5 (libbf-0.8.2b.tar.gz) = 04fd639841110df96ba06b19c654eaa4 diff --git a/security/libbf/files/patch-Makefile b/security/libbf/files/patch-Makefile new file mode 100644 index 000000000000..c50969237e75 --- /dev/null +++ b/security/libbf/files/patch-Makefile @@ -0,0 +1,45 @@ +--- Makefile.orig Mon Sep 30 02:12:03 2002 ++++ Makefile Mon Sep 30 02:14:19 2002 +@@ -16,31 +16,31 @@ TOP= . + # There are 3 possible performance options, experiment :-) + #OPTS= -DBF_PTR # usr for sparc and MIPS/SGI + #OPTS= -DBF_PTR2 # use for pentium +-OPTS= # use for pentium pro, Alpha and HP ++#OPTS= # use for pentium pro, Alpha and HP + + MAKE=make -f Makefile + #CC=cc + #CFLAG= -O + +-CC=gcc ++#CC=gcc + #CFLAG= -O4 -funroll-loops -fomit-frame-pointer +-CFLAG= -O3 -fomit-frame-pointer ++#CFLAG= -O3 -fomit-frame-pointer + +-CFLAGS=$(OPTS) $(CFLAG) +-CPP=$(CC) -E +-AS=as ++#CFLAGS=$(OPTS) $(CFLAG) ++CPP?=$(CC) -E ++AS?=as + + # Assember version of bf_encrypt(). +-BF_ENC=bf_enc.o # normal C version ++BF_ENC?=bf_enc.o # normal C version + #BF_ENC=asm/bx86-elf.o # elf format x86 + #BF_ENC=asm/bx86-out.o # a.out format x86 + #BF_ENC=asm/bx86-sol.o # solaris format x86 + #BF_ENC=asm/bx86bsdi.o # bsdi format x86 + +-LIBDIR=/usr/local/lib +-BINDIR=/usr/local/bin +-INCDIR=/usr/local/include +-MANDIR=/usr/local/man ++LIBDIR=${PREFIX}/lib ++BINDIR=${PREFIX}/bin ++INCDIR=${PREFIX}/include ++MANDIR=${PREFIX}/man + MAN1=1 + MAN3=3 + SHELL=/bin/sh diff --git a/security/libbf/pkg-descr b/security/libbf/pkg-descr new file mode 100644 index 000000000000..4e1047c75c67 --- /dev/null +++ b/security/libbf/pkg-descr @@ -0,0 +1,14 @@ +The Blowfish Library + +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 + + -- Jim Geovedi + jim@corebsd.or.id diff --git a/security/libbf/pkg-plist b/security/libbf/pkg-plist new file mode 100644 index 000000000000..d690cc373bc9 --- /dev/null +++ b/security/libbf/pkg-plist @@ -0,0 +1,9 @@ +bin/bftest +bin/bfspeed +include/blowfish.h +lib/libblowfish.a +%%PORTDOCS%%share/doc/libbf/COPYRIGHT +%%PORTDOCS%%share/doc/libbf/README +%%PORTDOCS%%share/doc/libbf/VERSION +%%PORTDOCS%%share/doc/libbf/blowfish.doc +%%PORTDOCS%%@dirrm share/doc/libbf |