Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2018 21:37:57 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r464957 - in head/devel/opendht: . files
Message-ID:  <201803182137.w2ILbvYe018347@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Mar 18 21:37:57 2018
New Revision: 464957
URL: https://svnweb.freebsd.org/changeset/ports/464957

Log:
  devel/opendht: Update to 1.6.1
  
  Port changes:
  * Change to cmake
  * Add port options PROXY_SERVER PROXY_CLIENT PUSH_NOTIFICATIONS DOCS
  * Broken on 10.3

Added:
  head/devel/opendht/files/patch-doc_CMakeLists.txt   (contents, props changed)
Modified:
  head/devel/opendht/Makefile
  head/devel/opendht/distinfo
  head/devel/opendht/files/patch-include_opendht_value.h
  head/devel/opendht/pkg-plist

Modified: head/devel/opendht/Makefile
==============================================================================
--- head/devel/opendht/Makefile	Sun Mar 18 21:08:18 2018	(r464956)
+++ head/devel/opendht/Makefile	Sun Mar 18 21:37:57 2018	(r464957)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	opendht
-PORTVERSION=	0.5.2
-PORTREVISION=	3
+DISTVERSION=	1.6.1
 CATEGORIES=	devel net
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -12,22 +11,37 @@ COMMENT=	Lightweight Distributed Hash Table implementa
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libmsgpackc.so:devel/msgpack \
+LIB_DEPENDS=	libargon2.so:security/libargon2 \
+		libmsgpackc.so:devel/msgpack \
 		libnettle.so:security/nettle \
 		libgnutls.so:security/gnutls
 
+USES=		cmake:outsource compiler:c++11-lib pathfix pkgconfig readline:port
 USE_GITHUB=	yes
 GH_ACCOUNT=	savoirfairelinux
-
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS+=--disable-python
 USE_LDCONFIG=	yes
 
-USES=		autoreconf compiler:c++11-lib libtool pathfix pkgconfig readline:port
-CFLAGS+=	-I${LOCALBASE}/include
-CXXFLAGS+=	-I${LOCALBASE}/include
+CMAKE_OFF=	OPENDHT_STATIC
 
-post-install:
-	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libopendht.so.0.0.0
+OPTIONS_DEFINE=	PROXY_SERVER PROXY_CLIENT PUSH_NOTIFICATIONS DOCS
 
-.include <bsd.port.mk>
+PROXY_SERVER_DESC=		Enable DHT proxy server
+PROXY_CLIENT_DESC=		Enable DHT proxy client
+PUSH_NOTIFICATIONS_DESC=	Enable push notifications support
+
+PROXY_SERVER_CMAKE_BOOL=	OPENDHT_PROXY_SERVER
+PROXY_CLIENT_CMAKE_BOOL=	OPENDHT_PROXY_CLIENT
+PUSH_NOTIFICATIONS_CMAKE_BOOL=	OPENDHT_PUSH_NOTIFICATIONS
+
+PROXY_SERVER_LIB_DEPENDS=	libjsoncpp.so:devel/jsoncpp \
+				librestbed.so:www/restbed
+
+PORTDOCS=	*
+
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSREL} == 10.3
+BROKEN=	Missing __cxa_thread_atexit
+.endif
+
+.include <bsd.port.post.mk>

Modified: head/devel/opendht/distinfo
==============================================================================
--- head/devel/opendht/distinfo	Sun Mar 18 21:08:18 2018	(r464956)
+++ head/devel/opendht/distinfo	Sun Mar 18 21:37:57 2018	(r464957)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1464414803
-SHA256 (savoirfairelinux-opendht-0.5.2_GH0.tar.gz) = 4fb8c80fed8abd4861b16144a0c50853717add59d5491b779590fa81e72784b8
-SIZE (savoirfairelinux-opendht-0.5.2_GH0.tar.gz) = 120460
+TIMESTAMP = 1521093684
+SHA256 (savoirfairelinux-opendht-1.6.1_GH0.tar.gz) = c50d4862d01233be02856affc560dcd6425b5e742c6445d597dc0ceccb7e9d19
+SIZE (savoirfairelinux-opendht-1.6.1_GH0.tar.gz) = 400456

Added: head/devel/opendht/files/patch-doc_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/opendht/files/patch-doc_CMakeLists.txt	Sun Mar 18 21:37:57 2018	(r464957)
@@ -0,0 +1,9 @@
+--- doc/CMakeLists.txt.orig	2018-03-15 06:08:59 UTC
++++ doc/CMakeLists.txt
+@@ -1,5 +1,5 @@
+ if (OPENDHT_TOOLS)
+-	INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dhtnode.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1)
++	INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/dhtnode.1 DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1)
+ endif ()
+ 
+ if (OPENDHT_DOCUMENTATION)

Modified: head/devel/opendht/files/patch-include_opendht_value.h
==============================================================================
--- head/devel/opendht/files/patch-include_opendht_value.h	Sun Mar 18 21:08:18 2018	(r464956)
+++ head/devel/opendht/files/patch-include_opendht_value.h	Sun Mar 18 21:37:57 2018	(r464957)
@@ -1,4 +1,4 @@
---- include/opendht/value.h.orig	2016-05-13 00:23:45 UTC
+--- include/opendht/value.h.orig	2016-11-12 22:38:27 UTC
 +++ include/opendht/value.h
 @@ -26,6 +26,11 @@
  
@@ -9,6 +9,6 @@
 +#include <netinet/in.h>
 +#endif
 +
- #ifndef _WIN32
- #include <netinet/in.h>
- #include <netdb.h>
+ #include <string>
+ #include <sstream>
+ #include <bitset>

Modified: head/devel/opendht/pkg-plist
==============================================================================
--- head/devel/opendht/pkg-plist	Sun Mar 18 21:08:18 2018	(r464956)
+++ head/devel/opendht/pkg-plist	Sun Mar 18 21:37:57 2018	(r464957)
@@ -2,17 +2,36 @@ bin/dhtchat
 bin/dhtnode
 bin/dhtscanner
 include/opendht.h
+include/opendht/callbacks.h
 include/opendht/crypto.h
+include/opendht/def.h
 include/opendht/default_types.h
 include/opendht/dht.h
+include/opendht/dht_interface.h
+include/opendht/dht_proxy_client.h
+include/opendht/dht_proxy_server.h
 include/opendht/dhtrunner.h
+include/opendht/indexation/pht.h
 include/opendht/infohash.h
+include/opendht/log.h
+include/opendht/log_enable.h
+include/opendht/network_engine.h
+include/opendht/node.h
+include/opendht/node_cache.h
+include/opendht/rate_limiter.h
 include/opendht/rng.h
+include/opendht/routing_table.h
+include/opendht/scheduler.h
 include/opendht/securedht.h
+include/opendht/sockaddr.h
 include/opendht/utils.h
 include/opendht/value.h
-lib/libopendht.a
+include/opendht/value.h.orig
+lib/cmake/opendht/opendhtConfig-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/opendht/opendhtConfig.cmake
+lib/cmake/opendht/opendhtConfigVersion.cmake
 lib/libopendht.so
-lib/libopendht.so.0
-lib/libopendht.so.0.0.0
+lib/libopendht.so.1
+lib/libopendht.so.1.6.1
 libdata/pkgconfig/opendht.pc
+man/man1/dhtnode.1.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803182137.w2ILbvYe018347>