summaryrefslogtreecommitdiff
path: root/security/libbf
diff options
context:
space:
mode:
authorFoxfair Hu <foxfair@FreeBSD.org>2003-03-25 12:32:43 +0000
committerFoxfair Hu <foxfair@FreeBSD.org>2003-03-25 12:32:43 +0000
commit04f8da2a267e2b8cd519e1b930414e3b3a8204da (patch)
treea0c7d869b2820623e14fdccb3864d6c08964d1e3 /security/libbf
parent* Fix build with GCC3 (-CURRENT). (diff)
Add libbf 0.8.2b, the Blowfish block cipher Library.
PR: 43792 Submitted by: Jim Geovedi <jim@corebsd.or.id>
Notes
Notes: svn path=/head/; revision=77448
Diffstat (limited to 'security/libbf')
-rw-r--r--security/libbf/Makefile45
-rw-r--r--security/libbf/distinfo1
-rw-r--r--security/libbf/files/patch-Makefile45
-rw-r--r--security/libbf/pkg-descr14
-rw-r--r--security/libbf/pkg-plist9
5 files changed, 114 insertions, 0 deletions
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