git: ab1c2c47aba8 - main - devel/gsoap: Add SSL path to CFLAGS and LDFLAGS
Muhammad Moinur Rahman
bofh at FreeBSD.org
Wed Sep 29 17:20:11 UTC 2021
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ab1c2c47aba883c63f6763fbee1d9a1bf86ed2a0
commit ab1c2c47aba883c63f6763fbee1d9a1bf86ed2a0
Author: Felix Palmen <felix at palmen-it.de>
AuthorDate: 2021-09-29 17:17:24 +0000
Commit: Muhammad Moinur Rahman <bofh at FreeBSD.org>
CommitDate: 2021-09-29 17:18:58 +0000
devel/gsoap: Add SSL path to CFLAGS and LDFLAGS
- Remove old libressl-related changes
PR: 258182
Reported by: rozhuk.im at gmail.com
---
devel/gsoap/Makefile | 4 +-
...oap_VisualStudio2005_wsdl2h_wsdl2h_stdsoap2.cpp | 20 ---------
devel/gsoap/files/patch-gsoap_plugin_mecevp.c | 20 ---------
devel/gsoap/files/patch-gsoap_plugin_smdevp.c | 47 ----------------------
..._samples_calc__vs2005_calc__vs2005_stdsoap2.cpp | 20 ---------
devel/gsoap/files/patch-gsoap_stdsoap2.c | 18 ---------
devel/gsoap/files/patch-gsoap_stdsoap2.cpp | 18 ---------
7 files changed, 3 insertions(+), 144 deletions(-)
diff --git a/devel/gsoap/Makefile b/devel/gsoap/Makefile
index 5317545878de..0564f42087da 100644
--- a/devel/gsoap/Makefile
+++ b/devel/gsoap/Makefile
@@ -2,6 +2,7 @@
PORTNAME= gsoap
PORTVERSION= 2.8.117
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SF/${PORTNAME}2
DISTNAME= ${PORTNAME}_${PORTVERSION}
@@ -29,7 +30,8 @@ GNUTLS_CONFIGURE_ON= --enable-gnutls
GNUTLS_LDFLAGS= -L${LOCALBASE}/lib
OPENSSL_CONFIGURE_ENABLE= ssl
IPV6_CONFIGURE_ENABLE= ipv6
-CFLAGS+= -fPIC
+CFLAGS+= -fPIC -I${OPENSSLINC}
+LDFLAGS+= -L${OPENSSLLIB}
PORTSCOUT= limit:^2\.8\.[0-9][0-9][0-9]$
diff --git a/devel/gsoap/files/patch-gsoap_VisualStudio2005_wsdl2h_wsdl2h_stdsoap2.cpp b/devel/gsoap/files/patch-gsoap_VisualStudio2005_wsdl2h_wsdl2h_stdsoap2.cpp
deleted file mode 100644
index 26401ae27bde..000000000000
--- a/devel/gsoap/files/patch-gsoap_VisualStudio2005_wsdl2h_wsdl2h_stdsoap2.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
---- gsoap/VisualStudio2005/wsdl2h/wsdl2h/stdsoap2.cpp.orig 2019-02-10 15:19:37 UTC
-+++ gsoap/VisualStudio2005/wsdl2h/wsdl2h/stdsoap2.cpp
-@@ -4306,7 +4306,7 @@ ssl_auth_init(struct soap *soap)
- ERR_clear_error();
- if (!soap->ctx)
- {
--#if OPENSSL_VERSION_NUMBER >= 0x10100000L
-+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER))
- /* TLS_method: a TLS/SSL connection established may understand the SSLv3, TLSv1, TLSv1.1 and TLSv1.2 protocols. */
- soap->ctx = SSL_CTX_new(TLS_method());
- #else
-@@ -4394,7 +4394,7 @@ ssl_auth_init(struct soap *soap)
- #endif
- if ((soap->ssl_flags & SOAP_SSL_RSA))
- {
--#if OPENSSL_VERSION_NUMBER >= 0x10002000L
-+#if (OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER))
- if (SSL_CTX_need_tmp_RSA(soap->ctx))
- {
- unsigned long e = RSA_F4;
diff --git a/devel/gsoap/files/patch-gsoap_plugin_mecevp.c b/devel/gsoap/files/patch-gsoap_plugin_mecevp.c
deleted file mode 100644
index 53e0fa46df07..000000000000
--- a/devel/gsoap/files/patch-gsoap_plugin_mecevp.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- gsoap/plugin/mecevp.c.orig 2019-01-27 15:50:03 UTC
-+++ gsoap/plugin/mecevp.c
-@@ -336,7 +336,7 @@ soap_mec_init(struct soap *soap, struct soap_mec_data
- int ok = 1;
- DBGLOG(TEST, SOAP_MESSAGE(fdebug, "soap_mec_init()\n"));
- soap_ssl_init();
--#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
-+#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
- data->ctx = (EVP_CIPHER_CTX*)SOAP_MALLOC(soap, sizeof(EVP_CIPHER_CTX));
- if (data->ctx)
- EVP_CIPHER_CTX_init(data->ctx);
-@@ -500,7 +500,7 @@ soap_mec_cleanup(struct soap *soap, struct soap_mec_da
- data->type = NULL;
- if (data->ctx)
- {
--#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
-+#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
- EVP_CIPHER_CTX_cleanup(data->ctx);
- SOAP_FREE(soap, data->ctx);
- #else
diff --git a/devel/gsoap/files/patch-gsoap_plugin_smdevp.c b/devel/gsoap/files/patch-gsoap_plugin_smdevp.c
deleted file mode 100644
index c58c88217409..000000000000
--- a/devel/gsoap/files/patch-gsoap_plugin_smdevp.c
+++ /dev/null
@@ -1,47 +0,0 @@
---- gsoap/plugin/smdevp.c.orig 2018-07-22 18:18:22 UTC
-+++ gsoap/plugin/smdevp.c
-@@ -480,7 +480,7 @@ soap_smd_init(struct soap *soap, struct soap_smd_data
- /* allocate and init the OpenSSL HMAC or EVP_MD context */
- if ((alg & SOAP_SMD_ALGO) == SOAP_SMD_HMAC)
- {
--#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
-+#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
- data->ctx = (void*)SOAP_MALLOC(soap, sizeof(HMAC_CTX));
- if (data->ctx)
- HMAC_CTX_init((HMAC_CTX*)data->ctx);
-@@ -490,7 +490,7 @@ soap_smd_init(struct soap *soap, struct soap_smd_data
- }
- else
- {
--#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
-+#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
- data->ctx = (void*)SOAP_MALLOC(soap, sizeof(EVP_MD_CTX));
- if (data->ctx)
- EVP_MD_CTX_init((EVP_MD_CTX*)data->ctx);
-@@ -510,7 +510,7 @@ soap_smd_init(struct soap *soap, struct soap_smd_data
- case SOAP_SMD_SHA1:
- type = EVP_sha1();
- break;
--#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL)
-+#if (OPENSSL_VERSION_NUMBER >= 0x0090800fL || defined(LIBRESSL_VERSION_NUMBER))
- case SOAP_SMD_SHA224:
- type = EVP_sha224();
- break;
-@@ -662,7 +662,7 @@ soap_smd_cleanup(struct soap *soap, struct soap_smd_da
- (void)soap;
- if (data->ctx)
- {
--#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
-+#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
- if ((data->alg & SOAP_SMD_ALGO) == SOAP_SMD_HMAC)
- HMAC_CTX_cleanup((HMAC_CTX*)data->ctx);
- else
-@@ -706,7 +706,7 @@ soap_smd_check(struct soap *soap, struct soap_smd_data
- }
- if (data->ctx)
- {
--#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
-+#if (OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER))
- if ((data->alg & SOAP_SMD_ALGO) == SOAP_SMD_HMAC)
- HMAC_CTX_cleanup((HMAC_CTX*)data->ctx);
- else
diff --git a/devel/gsoap/files/patch-gsoap_samples_calc__vs2005_calc__vs2005_stdsoap2.cpp b/devel/gsoap/files/patch-gsoap_samples_calc__vs2005_calc__vs2005_stdsoap2.cpp
deleted file mode 100644
index 94e8866dfb92..000000000000
--- a/devel/gsoap/files/patch-gsoap_samples_calc__vs2005_calc__vs2005_stdsoap2.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
---- gsoap/samples/calc_vs2005/calc_vs2005/stdsoap2.cpp.orig 2019-02-10 15:19:36 UTC
-+++ gsoap/samples/calc_vs2005/calc_vs2005/stdsoap2.cpp
-@@ -4306,7 +4306,7 @@ ssl_auth_init(struct soap *soap)
- ERR_clear_error();
- if (!soap->ctx)
- {
--#if OPENSSL_VERSION_NUMBER >= 0x10100000L
-+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER))
- /* TLS_method: a TLS/SSL connection established may understand the SSLv3, TLSv1, TLSv1.1 and TLSv1.2 protocols. */
- soap->ctx = SSL_CTX_new(TLS_method());
- #else
-@@ -4394,7 +4394,7 @@ ssl_auth_init(struct soap *soap)
- #endif
- if ((soap->ssl_flags & SOAP_SSL_RSA))
- {
--#if OPENSSL_VERSION_NUMBER >= 0x10002000L
-+#if (OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER))
- if (SSL_CTX_need_tmp_RSA(soap->ctx))
- {
- unsigned long e = RSA_F4;
diff --git a/devel/gsoap/files/patch-gsoap_stdsoap2.c b/devel/gsoap/files/patch-gsoap_stdsoap2.c
index d0d757d904bc..86867dc0ab30 100644
--- a/devel/gsoap/files/patch-gsoap_stdsoap2.c
+++ b/devel/gsoap/files/patch-gsoap_stdsoap2.c
@@ -1,23 +1,5 @@
--- gsoap/stdsoap2.c.orig 2019-02-10 15:19:37 UTC
+++ gsoap/stdsoap2.c
-@@ -4306,7 +4306,7 @@ ssl_auth_init(struct soap *soap)
- ERR_clear_error();
- if (!soap->ctx)
- {
--#if OPENSSL_VERSION_NUMBER >= 0x10100000L
-+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER))
- /* TLS_method: a TLS/SSL connection established may understand the SSLv3, TLSv1, TLSv1.1 and TLSv1.2 protocols. */
- soap->ctx = SSL_CTX_new(TLS_method());
- #else
-@@ -4394,7 +4394,7 @@ ssl_auth_init(struct soap *soap)
- #endif
- if ((soap->ssl_flags & SOAP_SSL_RSA))
- {
--#if OPENSSL_VERSION_NUMBER >= 0x10002000L
-+#if (OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER))
- if (SSL_CTX_need_tmp_RSA(soap->ctx))
- {
- unsigned long e = RSA_F4;
@@ -4473,10 +4473,12 @@ ssl_auth_init(struct soap *soap)
minv = TLS1_1_VERSION;
else if ((soap->ssl_flags & SOAP_TLSv1_2))
diff --git a/devel/gsoap/files/patch-gsoap_stdsoap2.cpp b/devel/gsoap/files/patch-gsoap_stdsoap2.cpp
index 875fd94dee5a..674c2b137633 100644
--- a/devel/gsoap/files/patch-gsoap_stdsoap2.cpp
+++ b/devel/gsoap/files/patch-gsoap_stdsoap2.cpp
@@ -1,23 +1,5 @@
--- gsoap/stdsoap2.cpp.orig 2019-02-10 15:19:37 UTC
+++ gsoap/stdsoap2.cpp
-@@ -4306,7 +4306,7 @@ ssl_auth_init(struct soap *soap)
- ERR_clear_error();
- if (!soap->ctx)
- {
--#if OPENSSL_VERSION_NUMBER >= 0x10100000L
-+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER))
- /* TLS_method: a TLS/SSL connection established may understand the SSLv3, TLSv1, TLSv1.1 and TLSv1.2 protocols. */
- soap->ctx = SSL_CTX_new(TLS_method());
- #else
-@@ -4394,7 +4394,7 @@ ssl_auth_init(struct soap *soap)
- #endif
- if ((soap->ssl_flags & SOAP_SSL_RSA))
- {
--#if OPENSSL_VERSION_NUMBER >= 0x10002000L
-+#if (OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER))
- if (SSL_CTX_need_tmp_RSA(soap->ctx))
- {
- unsigned long e = RSA_F4;
@@ -4473,10 +4473,12 @@ ssl_auth_init(struct soap *soap)
minv = TLS1_1_VERSION;
else if ((soap->ssl_flags & SOAP_TLSv1_2))
More information about the dev-commits-ports-all
mailing list