summaryrefslogtreecommitdiff
path: root/security/libbf
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2000-11-29 11:26:45 +0000
committerrh <rh@pkgsrc.org>2000-11-29 11:26:45 +0000
commit508eddc9fc1094189e77bde254c62bcb6b820b6e (patch)
tree7d19d62610b5f39efcec60ef51105e28297b0b75 /security/libbf
parent1ca82b0d3bf0c4ea8e257d953501b757e4b95ad2 (diff)
downloadpkgsrc-508eddc9fc1094189e77bde254c62bcb6b820b6e.tar.gz
Initial import of libbf-0.8.2b, a blowfish block cipher library.
Diffstat (limited to 'security/libbf')
-rw-r--r--security/libbf/Makefile37
-rw-r--r--security/libbf/files/md53
-rw-r--r--security/libbf/files/patch-sum3
-rw-r--r--security/libbf/patches/patch-aa47
-rw-r--r--security/libbf/pkg/COMMENT1
-rw-r--r--security/libbf/pkg/DESCR9
-rw-r--r--security/libbf/pkg/PLIST10
7 files changed, 110 insertions, 0 deletions
diff --git a/security/libbf/Makefile b/security/libbf/Makefile
new file mode 100644
index 00000000000..77e7506e458
--- /dev/null
+++ b/security/libbf/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/11/29 11:26:45 rh Exp $
+#
+
+DISTNAME= libbf-0.8.2b
+CATEGORIES= security
+WRKSRC= ${WRKDIR}/bf
+MASTER_SITES= ftp://ftp.psy.uq.oz.au/pub/Crypto/libeay/ \
+ ftp://ftp.funet.fi/pub/mirrors/ftp.psy.uq.oz.au/libeay/ \
+ ftp://ftp.ntnu.no/pub/unix/security/ \
+ ftp://ftp.sunsite.org.uk/Mirrors/ftp.psy.uq.oz.au/pub/Crypto/libeay/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.counterpane.com/blowfish.html
+
+CRYPTO= YES
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${LOWER_ARCH} == "i386" && ${OBJECT_FMT} == "ELF"
+BF_ENC=asm/bx86-elf.o
+.else
+BF_ENC=bf_enc.o
+.endif
+
+MAKEFLAGS+= BF_ENC=${BF_ENC}
+
+do-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/blowfish
+ cd ${WRKSRC} && \
+ ${INSTALL_DATA} libblowfish.a ${PREFIX}/lib && \
+ ${INSTALL_DATA} blowfish.h ${PREFIX}/include && \
+ ${INSTALL_PROGRAM} bftest bfspeed ${PREFIX}/bin
+.for doc in blowfish.doc COPYRIGHT README VERSION
+ ${INSTALL_DATA} ${WRKSRC}/${doc} ${PREFIX}/share/doc/blowfish
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/libbf/files/md5 b/security/libbf/files/md5
new file mode 100644
index 00000000000..ca8a46d67ad
--- /dev/null
+++ b/security/libbf/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/11/29 11:26:45 rh Exp $
+
+MD5 (libbf-0.8.2b.tar.gz) = 04fd639841110df96ba06b19c654eaa4
diff --git a/security/libbf/files/patch-sum b/security/libbf/files/patch-sum
new file mode 100644
index 00000000000..65c69f8e92f
--- /dev/null
+++ b/security/libbf/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/11/29 11:26:45 rh Exp $
+
+MD5 (patch-aa) = d6f5bc9c2aa7dd1b200e92882c139089
diff --git a/security/libbf/patches/patch-aa b/security/libbf/patches/patch-aa
new file mode 100644
index 00000000000..b17c06a204c
--- /dev/null
+++ b/security/libbf/patches/patch-aa
@@ -0,0 +1,47 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/11/29 11:26:45 rh Exp $
+
+--- Makefile.orig Mon Nov 27 22:43:22 2000
++++ Makefile
+@@ -16,31 +16,31 @@
+ # 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/COMMENT b/security/libbf/pkg/COMMENT
new file mode 100644
index 00000000000..f8f456beabd
--- /dev/null
+++ b/security/libbf/pkg/COMMENT
@@ -0,0 +1 @@
+blowfish block cipher library
diff --git a/security/libbf/pkg/DESCR b/security/libbf/pkg/DESCR
new file mode 100644
index 00000000000..0f687678564
--- /dev/null
+++ b/security/libbf/pkg/DESCR
@@ -0,0 +1,9 @@
+ 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.
diff --git a/security/libbf/pkg/PLIST b/security/libbf/pkg/PLIST
new file mode 100644
index 00000000000..add7973bd51
--- /dev/null
+++ b/security/libbf/pkg/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/11/29 11:26:45 rh Exp $
+bin/bfspeed
+bin/bftest
+include/blowfish.h
+lib/libblowfish.a
+share/doc/blowfish/COPYRIGHT
+share/doc/blowfish/README
+share/doc/blowfish/VERSION
+share/doc/blowfish/blowfish.doc
+@dirrm share/doc/blowfish