Index: head/net/Sockets/Makefile =================================================================== --- head/net/Sockets/Makefile (revision 421613) +++ head/net/Sockets/Makefile (revision 421614) @@ -1,37 +1,38 @@ # Created by: Mario Sergio Fujikawa Ferreira # $FreeBSD$ PORTNAME= Sockets PORTVERSION= 2.3.9.9 PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.alhem.net/Sockets/ \ http://www.netfence.it/Sockets/ MAINTAINER= ml@netfence.it COMMENT= C++ wrapper for BSD-style sockets #execinfo is optional and currently not configured (would need to patch source's #ifdef LINUX) #LIB_DEPENDS= execinfo.1:devel/libexecinfo #Not needed without execinfo or xml #CFLAGS+= -I${LOCALBASE}/include #LDFLAGS+= -L${LOCALBASE}/lib -USES+= gmake +USES+= gmake ssl USE_GNOME= libxml2 -USE_OPENSSL= yes USE_LDCONFIG= yes +CFLAGS+= -I${OPENSSLINC} +LDFLAGS+= -L${OPENSSLLIB} ALL_TARGET= all shared INSTALL_TARGET= install_shared post-patch: # PREFIX safeness @${CP} ${PATCHDIR}/Makefile.Defines.freebsd ${WRKSRC} @${REINPLACE_CMD} -E \ -e 's|linux-x86-32|freebsd|' \ -e 's|^PREFIX.+$$|PREFIX=${PREFIX}|' \ ${BUILD_WRKSRC}/${MAKEFILE} .include Index: head/net/Sockets/files/Makefile.Defines.freebsd =================================================================== --- head/net/Sockets/files/Makefile.Defines.freebsd (revision 421613) +++ head/net/Sockets/files/Makefile.Defines.freebsd (revision 421614) @@ -1,14 +1,15 @@ CXX?= g++ CFLAGS += -Wall $(INCLUDE) -MD -D_VERSION='"$(VERSION)"' CFLAGS += -O2 CFLAGS += -fPIC OBJS += Semaphore.o -LDFLAGSSO = -shared \ +LDFLAGSSO = $(LDFLAGS) \ + -shared \ -Wl,-lssl \ -Wl,-h$(SONAME) Index: head/net/Sockets/files/patch-TcpSocket.cpp =================================================================== --- head/net/Sockets/files/patch-TcpSocket.cpp (nonexistent) +++ head/net/Sockets/files/patch-TcpSocket.cpp (revision 421614) @@ -0,0 +1,20 @@ +--- TcpSocket.cpp.orig 2012-09-08 06:47:13 UTC ++++ TcpSocket.cpp +@@ -1283,7 +1283,7 @@ void TcpSocket::InitializeContext(const + /* Create our context*/ + if (m_client_contexts.find(context) == m_client_contexts.end()) + { +- const SSL_METHOD *meth = meth_in ? meth_in : SSLv3_method(); ++ const SSL_METHOD *meth = meth_in ? meth_in : SSLv23_method(); + m_ssl_ctx = m_client_contexts[context] = SSL_CTX_new(const_cast(meth)); + SSL_CTX_set_mode(m_ssl_ctx, SSL_MODE_AUTO_RETRY|SSL_MODE_ENABLE_PARTIAL_WRITE); + } +@@ -1339,7 +1339,7 @@ void TcpSocket::InitializeContext(const + /* Create our context*/ + if (m_server_contexts.find(context) == m_server_contexts.end()) + { +- const SSL_METHOD *meth = meth_in ? meth_in : SSLv3_method(); ++ const SSL_METHOD *meth = meth_in ? meth_in : SSLv23_method(); + m_ssl_ctx = m_server_contexts[context] = SSL_CTX_new(const_cast(meth)); + SSL_CTX_set_mode(m_ssl_ctx, SSL_MODE_AUTO_RETRY|SSL_MODE_ENABLE_PARTIAL_WRITE); + // session id Property changes on: head/net/Sockets/files/patch-TcpSocket.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property