diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2016-09-04 13:27:04 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2016-09-04 13:27:04 +0000 |
commit | 40c156dd023b10234a87e704f7c4d1a84c0c9b13 (patch) | |
tree | aea51ae85b593624bbf034172fc3fc2b642be05a /net-p2p/retroshare | |
parent | - Fix compiler requirements, add missing include, fixes build on 11.x+ (diff) |
net-p2p/retroshare: Update fixing connectivity problems in 0.6.0
- Updates to the current revision to 9f7ef8b
- Deletes no longer relevant patches
- Makes RS show the code revision when GH_TAGNAME is explicitly defined
- Changes PORTVERSION to 0.6.0e to reflect the fact that extra commits are added
- Bumps PORTREVISION
- also fixes the build in C++11 mode (See PR#212365)
PR: 210682
Submitted by: Yuri Victorovich <yuri@rawbw.com> (maintainer)
Approved by: peter@netkey.at (maintainer)
Notes
Notes:
svn path=/head/; revision=421336
Diffstat (limited to 'net-p2p/retroshare')
8 files changed, 13 insertions, 109 deletions
diff --git a/net-p2p/retroshare/Makefile b/net-p2p/retroshare/Makefile index 4aed3d98ca6c..9923d2d0114b 100644 --- a/net-p2p/retroshare/Makefile +++ b/net-p2p/retroshare/Makefile @@ -2,8 +2,9 @@ # $FreeBSD$ PORTNAME= retroshare -PORTVERSION= 0.6.0 +PORTVERSION= 0.6.0e DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= net-p2p MAINTAINER= peter@netkey.at @@ -23,7 +24,7 @@ LIB_DEPENDS= libsqlcipher.so:databases/sqlcipher \ libcurl.so:ftp/curl \ libmicrohttpd.so:www/libmicrohttpd -USES= qmake compiler:features dos2unix execinfo pkgconfig +USES= compiler:features desktop-file-utils dos2unix execinfo pkgconfig qmake ssl USE_GNOME= glib20 libxml2 libxslt USE_GL= gl USE_QT5= buildtools_build uitools_build core gui network xml \ @@ -34,6 +35,7 @@ DOS2UNIX_FILES= retroshare-nogui/src/retroshare-nogui.pro USE_GITHUB= yes GH_ACCOUNT= RetroShare GH_PROJECT= RetroShare +GH_TAGNAME= 9f7ef8b .include <bsd.port.pre.mk> @@ -52,5 +54,9 @@ post-patch: ${WRKSRC}/data/retroshare06.desktop @${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \ ${WRKSRC}/data/retroshare06.desktop +.if defined(GH_TAGNAME) + @${REINPLACE_CMD} -e 's|01234567|0${GH_TAGNAME}|' \ + ${WRKSRC}/libretroshare/src/retroshare/rsversion.h +.endif .include <bsd.port.post.mk> diff --git a/net-p2p/retroshare/distinfo b/net-p2p/retroshare/distinfo index 7b40ce444053..6afe61fc93c2 100644 --- a/net-p2p/retroshare/distinfo +++ b/net-p2p/retroshare/distinfo @@ -1,2 +1,3 @@ -SHA256 (RetroShare-RetroShare-v0.6.0_GH0.tar.gz) = 50b9157bbe407aaefcbf9af1f29392e63148dc060bf78a3b200c9bc09998cf7c -SIZE (RetroShare-RetroShare-v0.6.0_GH0.tar.gz) = 17436205 +TIMESTAMP = 1467176910 +SHA256 (RetroShare-RetroShare-v0.6.0e-9f7ef8b_GH0.tar.gz) = 0bcffff8814e4ff67458fbaca8e15b11c5a3fdc85ad4c080583c0f9cf32734e7 +SIZE (RetroShare-RetroShare-v0.6.0e-9f7ef8b_GH0.tar.gz) = 17400160 diff --git a/net-p2p/retroshare/files/patch-libbitdht_src_bitdht_bencode.c b/net-p2p/retroshare/files/patch-libbitdht_src_bitdht_bencode.c deleted file mode 100644 index 03acce10388e..000000000000 --- a/net-p2p/retroshare/files/patch-libbitdht_src_bitdht_bencode.c +++ /dev/null @@ -1,46 +0,0 @@ ---- libbitdht/src/bitdht/bencode.c.orig 2016-02-05 19:04:46 UTC -+++ libbitdht/src/bitdht/bencode.c -@@ -20,7 +20,6 @@ - */ - - #include <stdio.h> --#include <iostream> - #include <stdlib.h> /* malloc() realloc() free() strtoll() */ - #include <string.h> /* memset() */ - #include "util/bdstring.h" -@@ -115,7 +114,7 @@ static char *_be_decode_str(const char * - - if(_ret == NULL) - { -- std::cerr << "(EE) " << __PRETTY_FUNCTION__ << ": ERROR. cannot allocate memory for " << len+1+sizeof(sllen) << " bytes." << std::endl; -+ //std::cerr << "(EE) " << __PRETTY_FUNCTION__ << ": ERROR. cannot allocate memory for " << len+1+sizeof(sllen) << " bytes." << std::endl; - return NULL; - } - -@@ -511,7 +510,7 @@ be_node *be_create_str(const char *str) - - if(_ret == NULL) - { -- std::cerr << "(EE) " << __PRETTY_FUNCTION__ << ": ERROR. cannot allocate memory for " << len+1+sizeof(sllen) << " bytes." << std::endl; -+ //std::cerr << "(EE) " << __PRETTY_FUNCTION__ << ": ERROR. cannot allocate memory for " << len+1+sizeof(sllen) << " bytes." << std::endl; - return NULL; - } - char *ret = NULL; -@@ -536,7 +535,7 @@ be_node *be_create_str_wlen(const char * - - if(_ret == NULL) - { -- std::cerr << "(EE) " << __PRETTY_FUNCTION__ << ": ERROR. cannot allocate memory for " << len+1+sizeof(sllen) << " bytes." << std::endl; -+ //std::cerr << "(EE) " << __PRETTY_FUNCTION__ << ": ERROR. cannot allocate memory for " << len+1+sizeof(sllen) << " bytes." << std::endl; - return NULL; - } - char *ret = NULL; -@@ -584,7 +583,7 @@ int be_add_keypair(be_node *dict, const - - if(_ret == NULL) - { -- std::cerr << "(EE) " << __PRETTY_FUNCTION__ << ": ERROR. cannot allocate memory for " << len+1+sizeof(sllen) << " bytes." << std::endl; -+ //std::cerr << "(EE) " << __PRETTY_FUNCTION__ << ": ERROR. cannot allocate memory for " << len+1+sizeof(sllen) << " bytes." << std::endl; - return 0; - } - char *ret = NULL; diff --git a/net-p2p/retroshare/files/patch-libretroshare_src_grouter_p3grouter.h b/net-p2p/retroshare/files/patch-libretroshare_src_grouter_p3grouter.h deleted file mode 100644 index de6b5fd1dd46..000000000000 --- a/net-p2p/retroshare/files/patch-libretroshare_src_grouter_p3grouter.h +++ /dev/null @@ -1,20 +0,0 @@ ---- libretroshare/src/grouter/p3grouter.h.orig 2016-02-05 19:04:46 UTC -+++ libretroshare/src/grouter/p3grouter.h -@@ -225,7 +225,7 @@ private: - void handleLowLevelTransactionAckItem(RsGRouterTransactionAcknItem*) ; - - static Sha1CheckSum computeDataItemHash(RsGRouterGenericDataItem *data_item); --#ifdef __APPLE__ -+#if defined(__APPLE__) || defined(__FreeBSD__) - public: - #endif - class nullstream: public std::ostream {}; -@@ -236,7 +236,7 @@ public: - - return _debug_enabled?(std::cerr):null; - } --#ifdef __APPLE__ -+#if defined(__APPLE__) || defined(__FreeBSD__) - private: - #endif - void routePendingObjects() ; diff --git a/net-p2p/retroshare/files/patch-libretroshare_src_rsserver_rsinit.cc b/net-p2p/retroshare/files/patch-libretroshare_src_rsserver_rsinit.cc deleted file mode 100644 index 1506c5129668..000000000000 --- a/net-p2p/retroshare/files/patch-libretroshare_src_rsserver_rsinit.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- libretroshare/src/rsserver/rsinit.cc.orig 2016-02-05 19:04:46 UTC -+++ libretroshare/src/rsserver/rsinit.cc -@@ -367,7 +367,7 @@ int RsInit::InitRetroShare(int argcIgnor - #ifdef LOCALNET_TESTING - >> parameter('R',"restrict-port" ,portRestrictions ,"port1-port2","Apply port restriction" ,false) - #endif --#ifdef __APPLE__ -+#if defined(__APPLE__) || defined(__FreeBSD__) - >> help('h',"help","Display this Help") ; - #else - >> help() ; diff --git a/net-p2p/retroshare/files/patch-libretroshare_src_util_argstream.h b/net-p2p/retroshare/files/patch-libretroshare_src_util_argstream.h deleted file mode 100644 index be2113cbf700..000000000000 --- a/net-p2p/retroshare/files/patch-libretroshare_src_util_argstream.h +++ /dev/null @@ -1,11 +0,0 @@ ---- libretroshare/src/util/argstream.h.orig 2016-02-05 19:04:46 UTC -+++ libretroshare/src/util/argstream.h -@@ -141,7 +141,7 @@ namespace - inline OptionHolder(char s, - const char* l, - const char* desc); --#ifdef __APPLE__ -+#if defined(__APPLE__) || defined(__FreeBSD__) - friend OptionHolder help(char s, - const char* l, - const char* desc); diff --git a/net-p2p/retroshare/files/patch-retroshare-nogui_src_retroshare.cc b/net-p2p/retroshare/files/patch-retroshare-nogui_src_retroshare.cc deleted file mode 100644 index 3b44940af907..000000000000 --- a/net-p2p/retroshare/files/patch-retroshare-nogui_src_retroshare.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- retroshare-nogui/src/retroshare.cc.orig 2016-02-05 19:04:46 UTC -+++ retroshare-nogui/src/retroshare.cc -@@ -86,7 +86,7 @@ int main(int argc, char **argv) - // unfinished - //args >> parameter("http-listen", listenAddress, "ipv6 address", "Listen only on the specified address.", false); - args >> option("http-allow-all", allowAllIps, "allow connections from all IP adresses (default= localhost only)"); --#ifdef __APPLE__ -+#if defined(__APPLE__) || defined(__FreeBSD__) - args >> help('h',"help","Display this Help"); - #else - args >> help(); diff --git a/net-p2p/retroshare/pkg-plist b/net-p2p/retroshare/pkg-plist index 24fd1edc1ed1..e917cbc24e6d 100644 --- a/net-p2p/retroshare/pkg-plist +++ b/net-p2p/retroshare/pkg-plist @@ -434,14 +434,10 @@ share/RetroShare06/stylesheets/Bubble_Compact/private/outgoing.htm share/RetroShare06/stylesheets/Bubble_Compact/private/system.htm share/RetroShare06/stylesheets/Bubble_Compact/private/variants/color.css share/RetroShare06/stylesheets/Bubble_Compact/private/variants/standard.css -share/RetroShare06/webui/JSXTransformer.js -share/RetroShare06/webui/RsApi.js -share/RetroShare06/webui/RsXHRConnection.js -share/RetroShare06/webui/green-black.css -share/RetroShare06/webui/gui.jsx +share/RetroShare06/webui/app.css +share/RetroShare06/webui/app.js share/RetroShare06/webui/img/logo_splash.png share/RetroShare06/webui/index.html -share/RetroShare06/webui/react.js share/applications/retroshare06.desktop share/icons/hicolor/128x128/apps/retroshare06.png share/icons/hicolor/24x24/apps/retroshare06.png |