1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Update to 1.8.3

This commit is contained in:
Tilman Keskinoz 2007-04-17 16:32:27 +00:00
parent 184edbcfa9
commit a4b38ea932
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=190191
7 changed files with 43 additions and 133 deletions

View File

@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= matrixssl
PORTVERSION= 1.7.3
PORTVERSION= 1.8.3
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR= distfiles
@ -15,7 +15,7 @@ MAINTAINER= arved@FreeBSD.org
COMMENT= Small alternative SSL implementation
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/matrixssl/src
WRKSRC= ${WRKDIR}/${DISTNAME}/src
INSTALLS_SHLIB= yes
do-install:
@ -26,7 +26,7 @@ do-install:
${CP} ${WRKSRC}/../doc/* ${DOCSDIR}
${MKDIR} ${EXAMPLESDIR}
${CP} ${WRKSRC}/../examples/* ${EXAMPLESDIR}
cd ${EXAMPLESDIR}; ${RM} *.vcproj *.sln *.orig
-cd ${EXAMPLESDIR}; ${RM} *.vcproj *.sln *.orig
.endif
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (matrixssl-1-7-3-open.tar.gz) = b80faff3e389000b9a161dda4812112d
SHA256 (matrixssl-1-7-3-open.tar.gz) = 66b60065eb1cc3fc6d98cb161b50ceef4eb48bdccdc919b6773d9bf5b6e44b28
SIZE (matrixssl-1-7-3-open.tar.gz) = 346585
MD5 (matrixssl-1-8-3-open.tar.gz) = 1cfc2622b01b5457538c0d8ec58790bf
SHA256 (matrixssl-1-8-3-open.tar.gz) = af0992ff2a07896dfcd128a6fd2f6eb8e1b21bc7aa9a55b4cbdc0b0b2f44f818
SIZE (matrixssl-1-8-3-open.tar.gz) = 417545

View File

@ -1,66 +1,10 @@
--- Makefile.orig Thu Aug 18 02:20:28 2005
+++ Makefile Fri Mar 17 17:06:22 2006
@@ -5,11 +5,11 @@
# Copyright (c) PeerSec Networks, 2002-2005. All Rights Reserved.
#
-CC = gcc
STRIP = strip
AR = ar
RANLIB = ranlib
O = .o
+SOBJ = .O
SO = .so
A = .a
E =
@@ -37,6 +37,26 @@
pki/rsaPki$(O) \
pki/x509$(O)
+SOBJECTS = \
+ cipherSuite$(SOBJ) \
+ matrixSsl$(SOBJ) \
+ sslDecode$(SOBJ) \
+ sslEncode$(SOBJ) \
+ sslv3$(SOBJ) \
+ os/debug$(SOBJ) \
+ os/linux/linux$(SOBJ) \
+ crypto/peersec/arc4$(SOBJ) \
+ crypto/peersec/base64$(SOBJ) \
+ crypto/peersec/des3$(SOBJ) \
+ crypto/peersec/md5$(SOBJ) \
+ crypto/peersec/md2$(SOBJ) \
+ crypto/peersec/mpi$(SOBJ) \
+ crypto/peersec/rsa$(SOBJ) \
+ crypto/peersec/sha1$(SOBJ) \
+ pki/asn1$(SOBJ) \
+ pki/rsaPki$(SOBJ) \
+ pki/x509$(SOBJ)
+
#
# Debug flags (Define MATRIXSSL_DEBUG in shell to build debug)
# bash: export MATRIXSSL_DEBUG=1
@@ -69,8 +89,8 @@
# Compile options
#
SHARED = -shared
-CFLAGS = $(DFLAGS) -DLINUX -I./
-LDFLAGS = -lc -lpthread
+CFLAGS += -DLINUX -I./ ${PTHREAD_CFLAGS}
+LDFLAGS += ${PTHREAD_LIBS}
#
# Override variables for compilation on Mac OS X (Darwin)
@@ -110,7 +130,11 @@
#
# Build the library
#
-$(LIBRARY): $(OBJECTS)
+%.O: %.c
+ $(CC) -c $(CFLAGS) -fPIC -o $@ $^
+
+
+$(LIBRARY): $(SOBJECTS)
$(CC) $(SHARED) -o $@ $^ $(LDFLAGS)
$(STRIP) $(LIBRARY)
--- Makefile.orig Tue Apr 17 18:14:59 2007
+++ Makefile Tue Apr 17 18:15:10 2007
@@ -5,7 +5,6 @@
# Copyright (c) PeerSec Networks, 2002-2007. All Rights Reserved.
#
-CC = gcc
STRIP = strip
AR = ar
RANLIB = ranlib

View File

@ -1,10 +1,10 @@
--- ../examples/sslSocket.h.orig Fri Mar 17 16:32:41 2006
+++ ../examples/sslSocket.h Fri Mar 17 16:32:59 2006
@@ -50,6 +50,7 @@
#define getSocketError() WSAGetLastError()
#elif LINUX
#include <sys/socket.h>
--- ../examples/sslSocket.h.orig Tue Apr 17 18:22:16 2007
+++ ../examples/sslSocket.h Tue Apr 17 18:22:39 2007
@@ -49,6 +49,7 @@
#define WOULD_BLOCK WSAEWOULDBLOCK
#define getSocketError() WSAGetLastError()
#elif LINUX
+ #include <sys/types.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>

View File

@ -1,41 +1,14 @@
--- os/linux/linux.c.orig Fri Mar 17 16:03:55 2006
+++ os/linux/linux.c Fri Mar 17 16:04:27 2006
@@ -39,7 +39,7 @@
#include "../osLayer.h"
-#if defined(__i386__) || defined(RDTSC)
+#if (defined(__i386__) || defined(RDTSC))&& !defined(__FreeBSD__)
#include <asm/timex.h>
/*
As defined in asm/timex.h for x386:
@@ -86,7 +86,7 @@
/*
Initialize times
*/
-#if defined(__i386__) || defined(RDTSC)
+#if (defined(__i386__) || defined(RDTSC)) && !defined(__FreeBSD__)
if ((cpuInfo = fopen ("/proc/cpuinfo","r")) == NULL) {
matrixStrDebugMsg("Error opening /proc/cpuinfo\n", NULL);
return -2;
--- os/linux/linux.c.orig Tue Apr 17 18:12:00 2007
+++ os/linux/linux.c Tue Apr 17 18:13:10 2007
@@ -122,7 +122,11 @@
#ifdef USE_MULTITHREADING
pthread_mutexattr_init(&attr);
#ifndef OSX
+#ifndef PTHREAD_MUTEX_RECURSIVE_NP
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
+#else
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+#endif /* PTHREAD_MUTEX_RECURSIVE_NP */
#endif /* !OSX */
#endif /* USE_MULTITHREADING */
return psOpenMalloc(MAX_MEMORY_USAGE);
@@ -252,7 +256,7 @@
/*
Use a platform specific high resolution timer
*/
-#if defined(__i386__) || defined(RDTSC)
+#if (defined(__i386__) || defined(RDTSC)) && !defined(__FreeBSD__)
int32 sslInitMsecs(sslTime_t *t)
{
#ifdef USE_MULTITHREADING
pthread_mutexattr_init(&attr);
#ifndef OSX
+#ifndef PTHREAD_MUTEX_RECURSIVE_NP
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
+#else
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+#endif
#endif /* !OSX */
#endif /* USE_MULTITHREADING */
return psOpenMalloc(MAX_MEMORY_USAGE);

View File

@ -1,11 +0,0 @@
--- os/osLayer.h.orig Fri Mar 17 16:06:31 2006
+++ os/osLayer.h Fri Mar 17 16:06:34 2006
@@ -119,7 +119,7 @@
long sec;
long usec;
} sslTime_t;
-#elif (defined(__i386__) || defined(RDTSC))
+#elif (defined(__i386__) || defined(RDTSC)) && !defined(__FreeBSD__)
typedef unsigned long long LARGE_INTEGER;
typedef LARGE_INTEGER sslTime_t;
#elif WINCE

View File

@ -2,12 +2,13 @@ include/matrixCommon.h
include/matrixSsl.h
lib/libmatrixssl.so
lib/libmatrixsslstatic.a
%%PORTDOCS%%%%DOCSDIR%%/MatrixSSLReadme.pdf
%%PORTDOCS%%%%DOCSDIR%%/MatrixSSLApi.pdf
%%PORTDOCS%%%%DOCSDIR%%/MatrixSSLDeveloperGuide.pdf
%%PORTDOCS%%%%DOCSDIR%%/MatrixSSLKeyGeneration.pdf
%%PORTDOCS%%%%DOCSDIR%%/MatrixSSLPortingGuide.pdf
%%PORTDOCS%%%%DOCSDIR%%/MatrixSSLQuickStart.pdf
%%PORTDOCS%%%%DOCSDIR%%/MatrixSSLSocketApi.pdf
%%PORTDOCS%%%%DOCSDIR%%/MatrixSSL1.8ReleaseNotes.pdf
%%PORTDOCS%%%%EXAMPLESDIR%%/CAcertSrv.pem
%%PORTDOCS%%%%EXAMPLESDIR%%/Makefile
%%PORTDOCS%%%%EXAMPLESDIR%%/certSrv.p12
@ -17,5 +18,8 @@ lib/libmatrixsslstatic.a
%%PORTDOCS%%%%EXAMPLESDIR%%/privkeySrv.pem
%%PORTDOCS%%%%EXAMPLESDIR%%/sslSocket.c
%%PORTDOCS%%%%EXAMPLESDIR%%/sslSocket.h
%%PORTDOCS%%%%EXAMPLESDIR%%/CAcertSrv.der
%%PORTDOCS%%%%EXAMPLESDIR%%/privkeySrv.der
%%PORTDOCS%%%%EXAMPLESDIR%%/certSrv.der
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%