Skip to content

Commit

Permalink
devel/opendht: Update 2.4.12 → 2.5.1
Browse files Browse the repository at this point in the history
Reported by:	portscout
  • Loading branch information
yurivict committed Apr 8, 2023
1 parent 92cdefd commit c2e7dd0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 42 deletions.
8 changes: 4 additions & 4 deletions devel/opendht/Makefile
@@ -1,6 +1,6 @@
PORTNAME= opendht
DISTVERSIONPREFIX= v
DISTVERSION= 2.4.12
DISTVERSION= 2.5.1
CATEGORIES= devel net

MAINTAINER= yuri@FreeBSD.org
Expand All @@ -23,16 +23,16 @@ LIB_DEPENDS= libargon2.so:security/libargon2 \
RUN_DEPENDS= msgpack-cxx>0:devel/msgpack-cxx
TEST_DEPENDS= cppunit>0:devel/cppunit

USES= cmake:testing compiler:c++17-lang pathfix pkgconfig readline ssl
USES= cmake:testing compiler:c++17-lang localbase pathfix pkgconfig readline ssl

USE_GITHUB= yes
GH_ACCOUNT= savoirfairelinux
USE_LDCONFIG= yes

LDFLAGS+= -lcrypto

CMAKE_OFF= OPENDHT_STATIC
CMAKE_TESTING_ON= OPENDHT_TESTS # tests fail w/out explanation, see https://github.com/savoirfairelinux/opendht/issues/640, https://github.com/savoirfairelinux/opendht/issues/658
CMAKE_OFF= OPENDHT_STATIC BUILD_TESTING
CMAKE_TESTING_ON= BUILD_TESTING # tests fail w/out explanation, see https://github.com/savoirfairelinux/opendht/issues/640, https://github.com/savoirfairelinux/opendht/issues/658

PLIST_SUB= SHL3=${PORTVERSION} SHL1=${PORTVERSION:R:R}

Expand Down
6 changes: 3 additions & 3 deletions devel/opendht/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1678187565
SHA256 (savoirfairelinux-opendht-v2.4.12_GH0.tar.gz) = 5144bc4456d396b527b59065064bbc31fbe0d2af5fd052506219a66895791e64
SIZE (savoirfairelinux-opendht-v2.4.12_GH0.tar.gz) = 479457
TIMESTAMP = 1680928160
SHA256 (savoirfairelinux-opendht-v2.5.1_GH0.tar.gz) = 519245ad7ceff35f9e45035301b34f8ccafad16c605149b034cc10fd92adb32c
SIZE (savoirfairelinux-opendht-v2.5.1_GH0.tar.gz) = 480528
52 changes: 17 additions & 35 deletions devel/opendht/files/patch-CMakeLists.txt
@@ -1,15 +1,15 @@
--- CMakeLists.txt.orig 2023-03-07 11:14:26 UTC
--- CMakeLists.txt.orig 2023-04-08 04:39:13 UTC
+++ CMakeLists.txt
@@ -59,7 +59,7 @@ if (NOT MSVC)
find_package (PkgConfig REQUIRED)
pkg_search_module (GnuTLS REQUIRED IMPORTED_TARGET gnutls)
@@ -61,7 +61,7 @@ if (NOT MSVC)
pkg_search_module (Nettle REQUIRED IMPORTED_TARGET nettle)
- find_package (msgpack REQUIRED NAMES msgpackc-cxx msgpack msgpack-cxx)
+ find_package (msgpackc-cxx REQUIRED NAMES msgpackc-cxx msgpack msgpack-cxx)
check_include_file_cxx(msgpack.hpp HAVE_MSGPACKCXX)
if (NOT HAVE_MSGPACKCXX)
- find_package (msgpack REQUIRED CONFIG)
+ find_package (msgpack-cxx REQUIRED CONFIG)
endif()
if (OPENDHT_TOOLS)
find_package (Readline 6 REQUIRED)
endif ()
@@ -91,8 +91,8 @@ if (NOT MSVC)
@@ -94,8 +94,8 @@ if (NOT MSVC)
endif()
if (OPENDHT_PROXY_OPENSSL)
# https://cmake.org/cmake/help/latest/module/FindOpenSSL.html
Expand All @@ -20,30 +20,12 @@
message(STATUS "Found OpenSSL ${OPENSSL_VERSION} ${OPENSSL_INCLUDE_DIRS}")
set(openssl_lib ", openssl")
else ()
@@ -309,7 +309,7 @@ if (OPENDHT_STATIC)
target_link_libraries(opendht-static PUBLIC PkgConfig::Jsoncpp)
endif()
if (OPENDHT_PROXY_OPENSSL)
- target_link_libraries(opendht-static PUBLIC PkgConfig::OPENSSL)
+ target_link_libraries(opendht-static ssl)
endif()
if (APPLE)
target_link_libraries(opendht-static PRIVATE SYSTEM "-framework CoreFoundation" "-framework Security")
@@ -381,7 +381,7 @@ if (OPENDHT_SHARED)
target_link_libraries(opendht PUBLIC PkgConfig::Jsoncpp)
endif()
if (OPENDHT_PROXY_OPENSSL)
- target_link_libraries(opendht PUBLIC PkgConfig::OPENSSL)
+ target_link_libraries(opendht PUBLIC ssl)
endif()
if (APPLE)
target_link_libraries(opendht PRIVATE SYSTEM "-framework CoreFoundation" "-framework Security")
@@ -498,7 +498,7 @@ if (OPENDHT_TESTS)
${GNUTLS_LIBRARIES}
)
if (OPENDHT_PROXY_OPENSSL)
- target_link_libraries(opendht_unit_tests PkgConfig::OPENSSL)
+ target_link_libraries(opendht_unit_tests ssl)
endif()
enable_testing()
add_test(TEST opendht_unit_tests)
@@ -359,7 +359,7 @@ if (Jsoncpp_FOUND)
target_link_libraries(opendht PUBLIC PkgConfig::Jsoncpp)
endif()
if (OPENDHT_PROXY_OPENSSL)
- target_link_libraries(opendht PUBLIC PkgConfig::OPENSSL)
+ target_link_libraries(opendht PRIVATE ssl)
endif()
if (APPLE)
target_link_libraries(opendht PRIVATE SYSTEM "-framework CoreFoundation" "-framework Security")
1 change: 1 addition & 0 deletions devel/opendht/pkg-plist
Expand Up @@ -20,6 +20,7 @@ include/opendht/network_engine.h
include/opendht/network_utils.h
include/opendht/node.h
include/opendht/node_cache.h
include/opendht/node_export.h
include/opendht/peer_discovery.h
include/opendht/proxy.h
include/opendht/rate_limiter.h
Expand Down

0 comments on commit c2e7dd0

Please sign in to comment.