aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2018-06-29 04:48:32 +0800
committerswills <swills@FreeBSD.org>2018-06-29 04:48:32 +0800
commitf5c235cbecd5a31b46ef2e9f59060dc8cd48c010 (patch)
treeeb9869b6cb52c4cdd3ffa5e6269e9182b8acebd4 /net-p2p
parent5cef27370141d7ad91af6bfe7f3af98a233a060d (diff)
downloadfreebsd-ports-gnome-f5c235cbecd5a31b46ef2e9f59060dc8cd48c010.tar.gz
freebsd-ports-gnome-f5c235cbecd5a31b46ef2e9f59060dc8cd48c010.tar.zst
freebsd-ports-gnome-f5c235cbecd5a31b46ef2e9f59060dc8cd48c010.zip
net-p2p/retroshare: Update to 0.6.4
PR: 229367 Submitted by: peter@netkey.at (maintainer)
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/retroshare/Makefile12
-rw-r--r--net-p2p/retroshare/distinfo6
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare_src_libretroshare.pro12
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare_src_rsserver_rsaccounts.cc10
-rw-r--r--net-p2p/retroshare/files/patch-retroshare.pri22
5 files changed, 52 insertions, 10 deletions
diff --git a/net-p2p/retroshare/Makefile b/net-p2p/retroshare/Makefile
index d4be9f3a6fdc..83fd615852a8 100644
--- a/net-p2p/retroshare/Makefile
+++ b/net-p2p/retroshare/Makefile
@@ -3,8 +3,7 @@
PORTNAME= retroshare
DISTVERSIONPREFIX= v
-DISTVERSION= 0.6.3
-PORTREVISION= 2
+DISTVERSION= 0.6.4
CATEGORIES= net-p2p
MAINTAINER= peter@netkey.at
@@ -29,6 +28,7 @@ USES= compiler:features desktop-file-utils dos2unix pkgconfig qmake qt:5 ssl
USE_GITHUB= yes
GH_ACCOUNT= RetroShare
GH_PROJECT= RetroShare
+RS_REVISION= 0e6d27a
USE_GNOME= libxml2 libxslt
USE_GL= gl
USE_QT= core gui multimedia printsupport network widgets xml \
@@ -39,8 +39,12 @@ DOS2UNIX_FILES= retroshare-nogui/src/retroshare-nogui.pro
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
+ ${WRKSRC}/retroshare.pri
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
${WRKSRC}/libretroshare/src/libretroshare.pro
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
+ ${WRKSRC}/libretroshare/src/rsserver/rsaccounts.cc
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
${WRKSRC}/retroshare-gui/src/retroshare-gui.pro
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
${WRKSRC}/retroshare-nogui/src/retroshare-nogui.pro
@@ -48,9 +52,7 @@ post-patch:
${WRKSRC}/data/retroshare.desktop
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
${WRKSRC}/data/retroshare.desktop
-.if defined(GH_TAGNAME)
- @${REINPLACE_CMD} -e 's|RS_REVISION_NUMBER.*|RS_REVISION_NUMBER 0x${GH_TAGNAME}|' \
+ @${REINPLACE_CMD} -e 's|RS_REVISION_NUMBER.*|RS_REVISION_NUMBER 0x${RS_REVISION}|' \
${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 4456585b9f2d..b72ed0b99c0f 100644
--- a/net-p2p/retroshare/distinfo
+++ b/net-p2p/retroshare/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1514378949
-SHA256 (RetroShare-RetroShare-v0.6.3_GH0.tar.gz) = ddb64aa5148fdc950d4426f52f1cbb11578619b1242614e3c4ca4792ee5ce30b
-SIZE (RetroShare-RetroShare-v0.6.3_GH0.tar.gz) = 19699359
+TIMESTAMP = 1530050837
+SHA256 (RetroShare-RetroShare-v0.6.4_GH0.tar.gz) = 84355c0f3be5ec1dfa7253e327ea1254f76f47739c233cfb8d0983ebd1a61f4a
+SIZE (RetroShare-RetroShare-v0.6.4_GH0.tar.gz) = 20018361
diff --git a/net-p2p/retroshare/files/patch-libretroshare_src_libretroshare.pro b/net-p2p/retroshare/files/patch-libretroshare_src_libretroshare.pro
index 645192342a99..db054c4a8650 100644
--- a/net-p2p/retroshare/files/patch-libretroshare_src_libretroshare.pro
+++ b/net-p2p/retroshare/files/patch-libretroshare_src_libretroshare.pro
@@ -1,6 +1,6 @@
---- libretroshare/src/libretroshare.pro.orig 2016-02-05 19:04:46 UTC
+--- libretroshare/src/libretroshare.pro.orig 2018-03-13 19:25:38 UTC
+++ libretroshare/src/libretroshare.pro
-@@ -293,7 +293,7 @@ mac {
+@@ -341,13 +341,15 @@ mac {
freebsd-* {
INCLUDEPATH *= /usr/local/include/gpgme
@@ -9,3 +9,11 @@
QMAKE_CXXFLAGS *= -Dfseeko64=fseeko -Dftello64=ftello -Dstat64=stat -Dstatvfs64=statvfs -Dfopen64=fopen
+ # linux/bsd can use either - libupnp is more complete and packaged.
+ #CONFIG += upnp_miniupnpc
+ CONFIG += upnp_libupnp
++ DEFINES *= PLUGIN_DIR=\"\\\"$${PLUGIN_DIR}\\\"\"
++ DEFINES *= DATA_DIR=\"\\\"$${DATA_DIR}\\\"\"
+ }
+
+ ################################# OpenBSD ##########################################
diff --git a/net-p2p/retroshare/files/patch-libretroshare_src_rsserver_rsaccounts.cc b/net-p2p/retroshare/files/patch-libretroshare_src_rsserver_rsaccounts.cc
new file mode 100644
index 000000000000..654093c08595
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare_src_rsserver_rsaccounts.cc
@@ -0,0 +1,10 @@
+--- libretroshare/src/rsserver/rsaccounts.cc.orig 2018-03-13 19:25:38 UTC
++++ libretroshare/src/rsserver/rsaccounts.cc
+@@ -35,6 +35,7 @@
+ #endif // WINDOWS_SYS
+
+ #include <sys/types.h>
++#include <sys/param.h>
+ #include <sys/stat.h>
+
+ #include <iostream>
diff --git a/net-p2p/retroshare/files/patch-retroshare.pri b/net-p2p/retroshare/files/patch-retroshare.pri
new file mode 100644
index 000000000000..32d75fb4bea4
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-retroshare.pri
@@ -0,0 +1,22 @@
+--- retroshare.pri.orig 2018-03-13 19:25:38 UTC
++++ retroshare.pri
+@@ -16,7 +16,7 @@ no_retroshare_nogui:CONFIG -= retroshare
+
+ # To enable RetroShare plugins append the following
+ # assignation to qmake command line "CONFIG+=retroshare_plugins"
+-CONFIG *= no_retroshare_plugins
++CONFIG *=retroshare_plugins
+ retroshare_plugins:CONFIG -= no_retroshare_plugins
+
+ # To enable RetroShare-android-service append the following assignation to
+@@ -101,8 +101,8 @@ rs_macos10.10:CONFIG -= rs_macos10.11
+ rs_macos10.12:CONFIG -= rs_macos10.11
+
+
+-linux-* {
+- isEmpty(PREFIX) { PREFIX = "/usr" }
++freebsd-* {
++ isEmpty(PREFIX) { PREFIX = "/usr/local" }
+ isEmpty(BIN_DIR) { BIN_DIR = "$${PREFIX}/bin" }
+ isEmpty(INC_DIR) { INC_DIR = "$${PREFIX}/include/retroshare" }
+ isEmpty(LIB_DIR) { LIB_DIR = "$${PREFIX}/lib" }