diff options
author | rh <rh@pkgsrc.org> | 2000-11-23 13:16:10 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2000-11-23 13:16:10 +0000 |
commit | cae86cc092d1721a3b3f14b16c7b88730389f0bb (patch) | |
tree | 07f896e774e07ef9f8a22748503da361e8cf71ba /security/libdes/patches | |
parent | d55877405f72e5cc6f6262b7f16389ab628ab1f2 (diff) | |
download | pkgsrc-cae86cc092d1721a3b3f14b16c7b88730389f0bb.tar.gz |
Initial import of libdes-4.04b, a small DES (Data Encryption Standard) lib
and standalone program. Closes PR 10532 by John Refling
<refling@comet.lbl.gov>
Diffstat (limited to 'security/libdes/patches')
-rw-r--r-- | security/libdes/patches/patch-aa | 76 | ||||
-rw-r--r-- | security/libdes/patches/patch-ab | 19 | ||||
-rw-r--r-- | security/libdes/patches/patch-ac | 13 | ||||
-rw-r--r-- | security/libdes/patches/patch-ad | 17 | ||||
-rw-r--r-- | security/libdes/patches/patch-ae | 19 | ||||
-rw-r--r-- | security/libdes/patches/patch-af | 75 | ||||
-rw-r--r-- | security/libdes/patches/patch-ag | 28 |
7 files changed, 247 insertions, 0 deletions
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 |