summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/libdes/Makefile16
-rw-r--r--security/libdes/files/md53
-rw-r--r--security/libdes/files/patch-sum9
-rw-r--r--security/libdes/patches/patch-aa76
-rw-r--r--security/libdes/patches/patch-ab19
-rw-r--r--security/libdes/patches/patch-ac13
-rw-r--r--security/libdes/patches/patch-ad17
-rw-r--r--security/libdes/patches/patch-ae19
-rw-r--r--security/libdes/patches/patch-af75
-rw-r--r--security/libdes/patches/patch-ag28
-rw-r--r--security/libdes/pkg/COMMENT1
-rw-r--r--security/libdes/pkg/DESCR9
-rw-r--r--security/libdes/pkg/PLIST6
13 files changed, 291 insertions, 0 deletions
diff --git a/security/libdes/Makefile b/security/libdes/Makefile
new file mode 100644
index 00000000000..03150b5eee9
--- /dev/null
+++ b/security/libdes/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
+
+DISTNAME= libdes-4.04b
+CATEGORIES= security
+MASTER_SITES= ftp://ftp.psy.uq.oz.au/pub/Crypto/DES/
+
+MAINTAINER= refling@comet.lbl.gov
+
+CRYPTO= YES
+
+WRKSRC= ${WRKDIR}/des
+
+MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+ INSTALL_DATA="${INSTALL_DATA}"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/libdes/files/md5 b/security/libdes/files/md5
new file mode 100644
index 00000000000..6dcde78d7d1
--- /dev/null
+++ b/security/libdes/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
+
+MD5 (libdes-4.04b.tar.gz) = c8d5c69f86c2eedb485583b0305284a1
diff --git a/security/libdes/files/patch-sum b/security/libdes/files/patch-sum
new file mode 100644
index 00000000000..050089d87d5
--- /dev/null
+++ b/security/libdes/files/patch-sum
@@ -0,0 +1,9 @@
+$NetBSD: patch-sum,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
+
+MD5 (patch-aa) = 33210631188bc15907b8528162ffaac0
+MD5 (patch-ab) = 228f1348bead1c70dee5c2d61d76b55b
+MD5 (patch-ac) = 62bc1602dfe5bb5076c7dfada4008dcb
+MD5 (patch-ad) = 82b66cf35abb1ef51813b45af8696fed
+MD5 (patch-ae) = bac0969ba86488a46c4d0978e2ac623f
+MD5 (patch-af) = 377eb66465c7821473aca72c0eb0f9bf
+MD5 (patch-ag) = f23504b56bf565e0adfec96056c7c3d1
diff --git a/security/libdes/patches/patch-aa b/security/libdes/patches/patch-aa
new file mode 100644
index 00000000000..ee8efb3f388
--- /dev/null
+++ b/security/libdes/patches/patch-aa
@@ -0,0 +1,76 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
+
+--- ./Makefile.orig Wed Jan 7 18:20:36 1998
++++ ./Makefile Fri Mar 31 04:21:15 2000
+@@ -19,7 +19,9 @@
+ # If you are on a DEC Alpha, edit des.h and change the DES_LONG
+ # define to 'unsigned int'. I have seen this give a %20 speedup.
+
+-OPTS0= -DRAND -DTERMIO #-DNOCONST
++# was this - refling
++#OPTS0= -DRAND -DTERMIO #-DNOCONST
++OPTS0= -DRAND -DTERMIOS
+
+ # Version 1.94 has changed the strings_to_key function so that it is
+ # now compatible with MITs when the string is longer than 8 characters.
+@@ -59,10 +61,10 @@
+ #DES_ENC=asm/dx86-sol.o asm/yx86-sol.o # solaris format x86
+ #DES_ENC=asm/dx86bsdi.o asm/yx86basi.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
+@@ -226,38 +228,12 @@
+ sed -e '/^# DO NOT DELETE THIS LINE/ q' Makefile >Makefile.new
+ mv -f Makefile.new Makefile
+
+-# Eric is probably going to choke when he next looks at this --tjh
++# refling ---
+ install: des
+- if test $(INSTALLTOP); then \
+- echo SSL style install; \
+- cp $(DLIB) $(INSTALLTOP)/lib; \
+- if test -s /bin/ranlib; then \
+- /bin/ranlib $(INSTALLTOP)/lib/$(DLIB); \
+- else \
+- if test -s /usr/bin/ranlib; then \
+- /usr/bin/ranlib $(INSTALLTOP)/lib/$(DLIB); \
+- fi; fi; \
+- chmod 644 $(INSTALLTOP)/lib/$(DLIB); \
+- cp des.h $(INSTALLTOP)/include; \
+- chmod 644 $(INSTALLTOP)/include/des.h; \
+- else \
+- echo Standalone install; \
+- cp $(DLIB) $(LIBDIR)/$(DLIB); \
+- if test -s /bin/ranlib; then \
+- /bin/ranlib $(LIBDIR)/$(DLIB); \
+- else \
+- if test -s /usr/bin/ranlib; then \
+- /usr/bin/ranlib $(LIBDIR)/$(DLIB); \
+- fi; \
+- fi; \
+- chmod 644 $(LIBDIR)/$(DLIB); \
+- cp des $(BINDIR)/des; \
+- chmod 711 $(BINDIR)/des; \
+- cp des_crypt.man $(MANDIR)/man$(MAN3)/des_crypt.$(MAN3); \
+- chmod 644 $(MANDIR)/man$(MAN3)/des_crypt.$(MAN3); \
+- cp des.man $(MANDIR)/man$(MAN1)/des.$(MAN1); \
+- chmod 644 $(MANDIR)/man$(MAN1)/des.$(MAN1); \
+- cp des.h $(INCDIR)/des.h; \
+- chmod 644 $(INCDIR)/des.h; \
+- fi
++ $(INSTALL_PROGRAM) des $(PREFIX)/bin/libdes
++ $(INSTALL_DATA) libdes.a $(PREFIX)/lib/libdes.a
++ $(INSTALL_DATA) des_crypt.man $(PREFIX)/man/man3/libdes_crypt.3
++ $(INSTALL_DATA) des.man $(PREFIX)/man/man1/libdes.1
++ $(INSTALL_DATA) des.h $(PREFIX)/include/libdes.h
++
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
diff --git a/security/libdes/patches/patch-ab b/security/libdes/patches/patch-ab
new file mode 100644
index 00000000000..eed9af6eb89
--- /dev/null
+++ b/security/libdes/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
+
+--- ./Makefile.lit.orig Thu Dec 4 05:35:37 1997
++++ ./Makefile.lit Fri Mar 31 04:21:15 2000
+@@ -59,10 +59,10 @@
+ #DES_ENC=asm/dx86-sol.o asm/yx86-sol.o # solaris format x86
+ #DES_ENC=asm/dx86bsdi.o asm/yx86basi.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/libdes/patches/patch-ac b/security/libdes/patches/patch-ac
new file mode 100644
index 00000000000..8917ec6d5de
--- /dev/null
+++ b/security/libdes/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
+
+--- ./Makefile.ssl.orig Tue Jan 6 18:49:40 1998
++++ ./Makefile.ssl Fri Mar 31 04:21:15 2000
+@@ -8,7 +8,7 @@
+ CPP= $(CC) -E
+ INCLUDES=
+ CFLAG=-g
+-INSTALLTOP=/usr/local/ssl
++INSTALLTOP=$(PREFIX)/ssl
+ MAKE= make -f Makefile.ssl
+ MAKEDEPEND= makedepend -f Makefile.ssl
+ MAKEFILE= Makefile.ssl
diff --git a/security/libdes/patches/patch-ad b/security/libdes/patches/patch-ad
new file mode 100644
index 00000000000..a717638f1b3
--- /dev/null
+++ b/security/libdes/patches/patch-ad
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
+
+--- ./des.c.orig Thu Dec 4 05:35:37 1997
++++ ./des.c Fri Mar 31 04:21:16 2000
+@@ -354,10 +354,10 @@
+ "-u[uuname] : input file is uudecoded if -[dD] or output uuencoded data if -[eE]",
+ " (uuname is the filename to put in the uuencode header).",
+ "-b : encrypt using DES in ecb encryption mode, the defaut is cbc mode.",
+-"-3 : encrypt using tripple DES encryption. This uses 2 keys",
++"-3 : encrypt using triple DES encryption. This uses 2 keys",
+ " generated from the input key. If the input key is less",
+ " than 8 characters long, this is equivelent to normal",
+-" encryption. Default is tripple cbc, -b makes it tripple ecb.",
++" encryption. Default is triple cbc, -b makes it triple ecb.",
+ NULL
+ };
+ for (u=(char **)Usage; *u; u++)
diff --git a/security/libdes/patches/patch-ae b/security/libdes/patches/patch-ae
new file mode 100644
index 00000000000..b12d68caca8
--- /dev/null
+++ b/security/libdes/patches/patch-ae
@@ -0,0 +1,19 @@
+$NetBSD: patch-ae,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
+
+--- ./Makefile.uni.orig Thu Dec 4 05:35:37 1997
++++ ./Makefile.uni Fri Mar 31 04:21:16 2000
+@@ -59,10 +59,10 @@
+ #DES_ENC=asm/dx86-sol.o asm/yx86-sol.o # solaris format x86
+ #DES_ENC=asm/dx86bsdi.o asm/yx86basi.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/libdes/patches/patch-af b/security/libdes/patches/patch-af
new file mode 100644
index 00000000000..ce893d2e601
--- /dev/null
+++ b/security/libdes/patches/patch-af
@@ -0,0 +1,75 @@
+$NetBSD: patch-af,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
+
+--- ./des.man.orig Thu Dec 4 05:35:37 1997
++++ ./des.man Fri Mar 31 04:21:16 2000
+@@ -1,8 +1,8 @@
+-.TH DES 1
++.TH LIBDES 1
+ .SH NAME
+-des - encrypt or decrypt data using Data Encryption Standard
++libdes - encrypt or decrypt data using Data Encryption Standard
+ .SH SYNOPSIS
+-.B des
++.B libdes
+ (
+ .B \-e
+ |
+@@ -28,7 +28,7 @@
+ .I output-file
+ ] ]
+ .SH DESCRIPTION
+-.B des
++.B libdes
+ encrypts and decrypts data using the
+ Data Encryption Standard algorithm.
+ One of
+@@ -45,7 +45,7 @@
+ .I des_cbc_cksum.
+ .LP
+ Two standard encryption modes are supported by the
+-.B des
++.B libdes
+ program, Cipher Block Chaining (the default) and Electronic Code Book
+ (specified with
+ .B \-b
+@@ -57,11 +57,11 @@
+ .I key'
+ option is given.
+ If the key is an argument to the
+-.B des
++.B libdes
+ command, it is potentially visible to users executing
+ .BR ps (1)
+ or a derivative. To minimise this possibility,
+-.B des
++.B libdes
+ takes care to destroy the key argument immediately upon entry.
+ If your shell keeps a history file be careful to make sure it is not
+ world readable.
+@@ -76,7 +76,7 @@
+ options are used, the key conversion procedure will not be compatible
+ with the sunOS des(1) version but will use all the user supplied
+ character to generate the des key.
+-.B des
++.B libdes
+ command reads from standard input unless
+ .I input-file
+ is specified and writes to standard output unless
+@@ -156,7 +156,7 @@
+ will be embedded in the header.
+ .SH SEE ALSO
+ .B ps (1)
+-.B des_crypt(3)
++.B libdes_crypt(3)
+ .SH BUGS
+ .LP
+ The problem with using the
+@@ -173,7 +173,7 @@
+ )
+ uses DES to help generate the key.
+ .LP
+-Be carefully when using the -u option. Doing des -ud <filename> will
++Be carefully when using the -u option. Doing libdes -ud <filename> will
+ not decrypt filename (the -u option will gobble the d option).
+ .LP
+ The VMS operating system operates in a world where files are always a
diff --git a/security/libdes/patches/patch-ag b/security/libdes/patches/patch-ag
new file mode 100644
index 00000000000..45a12c1e42d
--- /dev/null
+++ b/security/libdes/patches/patch-ag
@@ -0,0 +1,28 @@
+$NetBSD: patch-ag,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
+
+--- ./des_crypt.man.orig Thu Dec 4 05:35:37 1997
++++ ./des_crypt.man Fri Mar 31 04:22:05 2000
+@@ -1,4 +1,4 @@
+-.TH DES_CRYPT 3
++.TH LIBDES_CRYPT 3
+ .SH NAME
+ des_read_password, des_read_2password,
+ des_string_to_key, des_string_to_2key, des_read_pw_string,
+@@ -13,7 +13,7 @@
+ .nf
+ .nj
+ .ft B
+-#include <des.h>
++#include <libdes.h>
+ .PP
+ .B int des_read_password(key,prompt,verify)
+ des_cblock *key;
+@@ -461,7 +461,7 @@
+ It is much faster than the system crypt.
+ .PP
+ .SH FILES
+-/usr/include/des.h
++/usr/include/libdes.h
+ .br
+ /usr/lib/libdes.a
+ .PP
diff --git a/security/libdes/pkg/COMMENT b/security/libdes/pkg/COMMENT
new file mode 100644
index 00000000000..b8e2a848c92
--- /dev/null
+++ b/security/libdes/pkg/COMMENT
@@ -0,0 +1 @@
+Small DES (Data Encryption Standard) lib & standalone program
diff --git a/security/libdes/pkg/DESCR b/security/libdes/pkg/DESCR
new file mode 100644
index 00000000000..a1ade56c6c5
--- /dev/null
+++ b/security/libdes/pkg/DESCR
@@ -0,0 +1,9 @@
+Small DES (Data Encryption Standard) standalone program.
+If you have openssl installed, you probably don't need this.
+However, for reverse compatibility with your previously
+encrypted data or with the SunOS des, you might want to keep
+this one around. Plus, it compiles easily on PCs with djgpp.
+I've renamed all the installed files to be libdes, libdes.h,
+etc., to avoid conflicts with other packages.
+
+NetBSD package by: John Refling <refling@comet.lbl.gov>
diff --git a/security/libdes/pkg/PLIST b/security/libdes/pkg/PLIST
new file mode 100644
index 00000000000..fcf3971fec3
--- /dev/null
+++ b/security/libdes/pkg/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2000/11/23 13:16:10 rh Exp $
+lib/libdes.a
+bin/libdes
+man/man3/libdes_crypt.3
+man/man1/libdes.1
+include/libdes.h