summaryrefslogtreecommitdiff
path: root/security/rsaref/patches
diff options
context:
space:
mode:
authortv <tv>1998-07-14 18:48:37 +0000
committertv <tv>1998-07-14 18:48:37 +0000
commit7ae7a7131e1da331ce90972ef15492fad9bcfc84 (patch)
tree6aeb7f870f97fdf7ca6972f525350bbea620a233 /security/rsaref/patches
parent3719e4b0d0271025f605584eb44ea339ae1b1375 (diff)
downloadpkgsrc-7ae7a7131e1da331ce90972ef15492fad9bcfc84.tar.gz
Change to build and install rsaref using libtool. No more NetBSD-custom
Makefile or dynamic-PLIST headaches. Make use of automatic shared library handling. Split patches into separate files.
Diffstat (limited to 'security/rsaref/patches')
-rw-r--r--security/rsaref/patches/patch-aa108
-rw-r--r--security/rsaref/patches/patch-ab47
-rw-r--r--security/rsaref/patches/patch-ac11
-rw-r--r--security/rsaref/patches/patch-ad11
-rw-r--r--security/rsaref/patches/patch-ae20
-rw-r--r--security/rsaref/patches/patch-af15
-rw-r--r--security/rsaref/patches/patch-ag48
7 files changed, 154 insertions, 106 deletions
diff --git a/security/rsaref/patches/patch-aa b/security/rsaref/patches/patch-aa
index 8c9e53a7fb5..33bc7bb7b89 100644
--- a/security/rsaref/patches/patch-aa
+++ b/security/rsaref/patches/patch-aa
@@ -1,5 +1,5 @@
---- des.h.orig Fri Mar 25 14:01:48 1994
-+++ des.h Tue Feb 17 13:47:52 1998
+--- ../source/des.h.orig Fri Mar 25 14:01:48 1994
++++ ../source/des.h Tue Jul 14 13:20:11 1998
@@ -4,6 +4,8 @@
#ifndef _DES_H_
#define _DES_H_ 1
@@ -9,107 +9,3 @@
#ifdef __cplusplus
extern "C" {
#endif
---- global.h.orig Fri Mar 25 14:01:46 1994
-+++ global.h Tue Feb 17 13:47:31 1998
-@@ -7,23 +7,17 @@
- #ifndef _GLOBAL_H_
- #define _GLOBAL_H_ 1
-
--/* PROTOTYPES should be set to one if and only if the compiler supports
-- function argument prototyping.
-- The following makes PROTOTYPES default to 1 if it has not already been
-- defined as 0 with C compiler flags.
-- */
--#ifndef PROTOTYPES
--#define PROTOTYPES 1
--#endif
-+#include <sys/types.h>
-+#include <sys/cdefs.h>
-
- /* POINTER defines a generic pointer type */
--typedef unsigned char *POINTER;
-+typedef caddr_t POINTER;
-
- /* UINT2 defines a two byte word */
--typedef unsigned short int UINT2;
-+typedef u_int16_t UINT2;
-
- /* UINT4 defines a four byte word */
--typedef unsigned long int UINT4;
-+typedef u_int32_t UINT4;
-
- #ifndef NULL_PTR
- #define NULL_PTR ((POINTER)0)
-@@ -33,14 +27,6 @@
- #define UNUSED_ARG(x) x = *(&x);
- #endif
-
--/* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
-- If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
-- returns an empty list.
-- */
--#if PROTOTYPES
--#define PROTO_LIST(list) list
--#else
--#define PROTO_LIST(list) ()
--#endif
-+#define PROTO_LIST(x) __P(x)
-
- #endif /* end _GLOBAL_H_ */
---- md2.h.orig Fri Mar 25 14:01:49 1994
-+++ md2.h Tue Feb 17 13:48:43 1998
-@@ -22,6 +22,8 @@
- #ifndef _MD2_H_
- #define _MD2_H_ 1
-
-+#include <rsaref/global.h>
-+
- #ifdef __cplusplus
- extern "C" {
- #endif
---- r_random.c.orig Fri Mar 25 14:01:47 1994
-+++ r_random.c Tue Feb 17 13:50:33 1998
-@@ -8,7 +8,7 @@
- #include "global.h"
- #include "rsaref.h"
- #include "r_random.h"
--#include "md5.h"
-+#include <rsaref/md5.h>
-
- #define RANDOM_BYTES_NEEDED 256
-
---- rsa.h.orig Fri Mar 25 14:01:45 1994
-+++ rsa.h Tue Feb 17 13:49:54 1998
-@@ -5,6 +5,11 @@
- Inc., created 1991. All rights reserved.
- */
-
-+#ifndef _RSA_H_
-+#define _RSA_H_ 1
-+
-+#include <rsaref/global.h>
-+
- int RSAPublicEncrypt PROTO_LIST
- ((unsigned char *, unsigned int *, unsigned char *, unsigned int,
- R_RSA_PUBLIC_KEY *, R_RANDOM_STRUCT *));
-@@ -17,3 +22,5 @@
- int RSAPrivateDecrypt PROTO_LIST
- ((unsigned char *, unsigned int *, unsigned char *, unsigned int,
- R_RSA_PRIVATE_KEY *));
-+
-+#endif
---- rsaref.h.orig Fri Mar 25 14:01:49 1994
-+++ rsaref.h Tue Feb 17 13:48:26 1998
-@@ -8,9 +8,9 @@
- #ifndef _RSAREF_H_
- #define _RSAREF_H_ 1
-
--#include "md2.h"
--#include "md5.h"
--#include "des.h"
-+#include <rsaref/md2.h>
-+#include <rsaref/md5.h>
-+#include <rsaref/des.h>
-
- #ifdef __cplusplus
- extern "C" {
diff --git a/security/rsaref/patches/patch-ab b/security/rsaref/patches/patch-ab
new file mode 100644
index 00000000000..ddd320a667b
--- /dev/null
+++ b/security/rsaref/patches/patch-ab
@@ -0,0 +1,47 @@
+--- ../source/global.h.orig Fri Mar 25 14:01:46 1994
++++ ../source/global.h Tue Jul 14 13:20:11 1998
+@@ -7,23 +7,17 @@
+ #ifndef _GLOBAL_H_
+ #define _GLOBAL_H_ 1
+
+-/* PROTOTYPES should be set to one if and only if the compiler supports
+- function argument prototyping.
+- The following makes PROTOTYPES default to 1 if it has not already been
+- defined as 0 with C compiler flags.
+- */
+-#ifndef PROTOTYPES
+-#define PROTOTYPES 1
+-#endif
++#include <sys/types.h>
++#include <sys/cdefs.h>
+
+ /* POINTER defines a generic pointer type */
+-typedef unsigned char *POINTER;
++typedef caddr_t POINTER;
+
+ /* UINT2 defines a two byte word */
+-typedef unsigned short int UINT2;
++typedef u_int16_t UINT2;
+
+ /* UINT4 defines a four byte word */
+-typedef unsigned long int UINT4;
++typedef u_int32_t UINT4;
+
+ #ifndef NULL_PTR
+ #define NULL_PTR ((POINTER)0)
+@@ -33,14 +27,6 @@
+ #define UNUSED_ARG(x) x = *(&x);
+ #endif
+
+-/* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
+- If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
+- returns an empty list.
+- */
+-#if PROTOTYPES
+-#define PROTO_LIST(list) list
+-#else
+-#define PROTO_LIST(list) ()
+-#endif
++#define PROTO_LIST(x) __P(x)
+
+ #endif /* end _GLOBAL_H_ */
diff --git a/security/rsaref/patches/patch-ac b/security/rsaref/patches/patch-ac
new file mode 100644
index 00000000000..bf43d7a4d83
--- /dev/null
+++ b/security/rsaref/patches/patch-ac
@@ -0,0 +1,11 @@
+--- ../source/md2.h.orig Fri Mar 25 14:01:49 1994
++++ ../source/md2.h Tue Jul 14 13:20:11 1998
+@@ -22,6 +22,8 @@
+ #ifndef _MD2_H_
+ #define _MD2_H_ 1
+
++#include <rsaref/global.h>
++
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
diff --git a/security/rsaref/patches/patch-ad b/security/rsaref/patches/patch-ad
new file mode 100644
index 00000000000..009f361aa4f
--- /dev/null
+++ b/security/rsaref/patches/patch-ad
@@ -0,0 +1,11 @@
+--- ../source/r_random.c.orig Fri Mar 25 14:01:47 1994
++++ ../source/r_random.c Tue Jul 14 13:20:11 1998
+@@ -8,7 +8,7 @@
+ #include "global.h"
+ #include "rsaref.h"
+ #include "r_random.h"
+-#include "md5.h"
++#include <rsaref/md5.h>
+
+ #define RANDOM_BYTES_NEEDED 256
+
diff --git a/security/rsaref/patches/patch-ae b/security/rsaref/patches/patch-ae
new file mode 100644
index 00000000000..d0b0bd8abab
--- /dev/null
+++ b/security/rsaref/patches/patch-ae
@@ -0,0 +1,20 @@
+--- ../source/rsa.h.orig Fri Mar 25 14:01:45 1994
++++ ../source/rsa.h Tue Jul 14 13:20:12 1998
+@@ -5,6 +5,11 @@
+ Inc., created 1991. All rights reserved.
+ */
+
++#ifndef _RSA_H_
++#define _RSA_H_ 1
++
++#include <rsaref/global.h>
++
+ int RSAPublicEncrypt PROTO_LIST
+ ((unsigned char *, unsigned int *, unsigned char *, unsigned int,
+ R_RSA_PUBLIC_KEY *, R_RANDOM_STRUCT *));
+@@ -17,3 +22,5 @@
+ int RSAPrivateDecrypt PROTO_LIST
+ ((unsigned char *, unsigned int *, unsigned char *, unsigned int,
+ R_RSA_PRIVATE_KEY *));
++
++#endif
diff --git a/security/rsaref/patches/patch-af b/security/rsaref/patches/patch-af
new file mode 100644
index 00000000000..b767e7a2b43
--- /dev/null
+++ b/security/rsaref/patches/patch-af
@@ -0,0 +1,15 @@
+--- ../source/rsaref.h.orig Fri Mar 25 14:01:49 1994
++++ ../source/rsaref.h Tue Jul 14 13:20:12 1998
+@@ -8,9 +8,9 @@
+ #ifndef _RSAREF_H_
+ #define _RSAREF_H_ 1
+
+-#include "md2.h"
+-#include "md5.h"
+-#include "des.h"
++#include <rsaref/md2.h>
++#include <rsaref/md5.h>
++#include <rsaref/des.h>
+
+ #ifdef __cplusplus
+ extern "C" {
diff --git a/security/rsaref/patches/patch-ag b/security/rsaref/patches/patch-ag
new file mode 100644
index 00000000000..11e93818139
--- /dev/null
+++ b/security/rsaref/patches/patch-ag
@@ -0,0 +1,48 @@
+--- unix/makefile.orig Fri Mar 25 14:01:31 1994
++++ unix/makefile Tue Jul 14 13:52:28 1998
+@@ -1,11 +1,11 @@
+ # This is a makefile for UNIX
++LIBTOOL = ${PREFIX}/bin/libtool
+
+ # extension for object files
+ O = o
+
+ # commands
+-CC = cc
+-LIB = ar
++CC = ${LIBTOOL} --mode=compile cc
+
+ # name of temporary library script
+ TEMPFILE = $(TEMP)/temp.mak
+@@ -14,7 +14,7 @@
+ STDINCDIR=/usr/include
+
+ # The places to look for include files (in order).
+-INCL = -I. -I$(RSAREFDIR) -I$(STDINCDIR)
++INCL = -I. -I$(RSAREFDIR)
+
+ # name of main executable to build
+ PROG = all
+@@ -25,7 +25,7 @@
+
+ # The location of the common source directory.
+ RSAREFDIR = ../source/
+-RSAREFLIB = rsaref.a
++RSAREFLIB = librsaref.la
+
+ # The location of the demo source directory.
+ RDEMODIR = ../rdemo/
+@@ -38,11 +38,10 @@
+ dhdemo : dhdemo.$(O) $(RSAREFLIB)
+ cc -o $@ dhdemo.$(O) $(RSAREFLIB)
+
+-$(RSAREFLIB) : desc.$(O) digit.$(O) md2c.$(O) md5c.$(O) nn.$(O) prime.$(O)\
++$(RSAREFLIB) : desc.$(O) digit.$(O) md2c.$(O) nn.$(O) prime.$(O)\
+ rsa.$(O) r_encode.$(O) r_dh.$(O) r_enhanc.$(O) r_keygen.$(O) r_random.$(O)\
+ r_stdlib.$(O)
+- $(LIB) r $@ $?
+- ranlib $@
++ ${LIBTOOL} --mode=link cc -o $@ ${?:.o=.lo} -rpath ${PREFIX}/lib -version-info 2:0
+
+ rdemo.$(O) : $(RDEMODIR)rdemo.c $(RSAREFDIR)global.h $(RSAREFDIR)rsaref.h
+ $(CC) $(CFLAGS) $(RDEMODIR)rdemo.c