summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2012-01-27 14:41:16 +0000
committerpawel <pawel@FreeBSD.org>2012-01-27 14:41:16 +0000
commitd66f3164b5a38db1200cfcd63c84afd1e80bfbab (patch)
tree4cb76f8cfbfb005c46bfb116193344646e7fbe78
parentf0e568d52525996afab62c47f3d1c370833b721d (diff)
downloadFreeBSD-ports-d66f3164b5a38db1200cfcd63c84afd1e80bfbab.zip
FreeBSD-ports-d66f3164b5a38db1200cfcd63c84afd1e80bfbab.tar.gz
RetroShare is a Open Source cross-platform, private and secure decentralised
communication platform. It lets you to securely chat and share files with your friends and family, using a web-of-trust to authenticate peers and OpenSSL to encrypt all communication. RetroShare provides filesharing, chat, messages, forums and channels. WWW: http://retroshare.sourceforge.net/ PR: ports/164283 Submitted by: Peter Klett <glocke@bsdstammtisch.at>
-rw-r--r--net-p2p/Makefile1
-rw-r--r--net-p2p/retroshare/Makefile63
-rw-r--r--net-p2p/retroshare/distinfo2
-rw-r--r--net-p2p/retroshare/files/patch-libbitdht-src-util-bdrandom.cc11
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare-src-dbase-findex.h17
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare-src-ft-ftfilecreator.h10
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare-src-ft-ftfileprovider.h10
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare-src-libretroshare.pro10
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare-src-rsserver-rsinit.cc88
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare-src-rsserver-rsloginhandler.cc28
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare-src-upnp-upnphandler.cc10
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare-src-upnp-upnphandler.h14
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare-src-util-rsdir.h20
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare-src-util-rsdiscspace.cc10
-rw-r--r--net-p2p/retroshare/files/patch-libretroshare-src-util-rsrandom.cc11
-rw-r--r--net-p2p/retroshare/files/patch-retroshare-gui-src-RetroShare.pro17
-rw-r--r--net-p2p/retroshare/files/rsinit.h78
-rw-r--r--net-p2p/retroshare/pkg-descr7
-rw-r--r--net-p2p/retroshare/pkg-plist3
19 files changed, 410 insertions, 0 deletions
diff --git a/net-p2p/Makefile b/net-p2p/Makefile
index d08e72b..2c594a0 100644
--- a/net-p2p/Makefile
+++ b/net-p2p/Makefile
@@ -90,6 +90,7 @@
SUBDIR += qbittorrent-29-nox11
SUBDIR += qtella
SUBDIR += qtorrent
+ SUBDIR += retroshare
SUBDIR += rtgui
SUBDIR += rtorrent
SUBDIR += rtorrent-devel
diff --git a/net-p2p/retroshare/Makefile b/net-p2p/retroshare/Makefile
new file mode 100644
index 0000000..586d0cd
--- /dev/null
+++ b/net-p2p/retroshare/Makefile
@@ -0,0 +1,63 @@
+# New ports collection makefile for: retroshare
+# Date created: 15 January 2012
+# Whom: glocke
+#
+# $FreeBSD$
+#
+
+PORTNAME= retroshare
+PORTVERSION= 0.5.2a
+CATEGORIES= net-p2p
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=${PORTNAME}/${BINARY}/${PORTVERSION}
+DISTNAME= ${BINARY}-v${PORTVERSION}
+
+MAINTAINER= glocke@bsdstammtisch.at
+COMMENT= A private and secure decentralised communication platform
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKDIR}/trunk/retroshare-gui/src/license/license.txt
+
+LIB_DEPENDS= gpgme.19:${PORTSDIR}/security/gpgme \
+ upnp.8:${PORTSDIR}/devel/upnp \
+ gnome-keyring.0:${PORTSDIR}/security/libgnome-keyring
+RUN_DEPENDS+= pinentry-qt4:${PORTSDIR}/security/pinentry-qt4
+
+WRKSRC= ${WRKDIR}/trunk
+USE_QT_VER= 4
+QT_COMPONENTS= corelib gui network xml script designer_build uic_build \
+ qmake_build moc_build rcc_build
+HAS_CONFIGURE= yes
+BINARY= RetroShare
+
+DESKTOP_ENTRIES="${BINARY}" "${COMMENT}" "" "${BINARY}" \
+ "Network;FileTransfer;" true
+
+CFLAGS+= -I${LOCALBASE}/include/gpgme
+
+USE_DOS2UNIX= retroshare-gui/src/${BINARY}.pro
+
+do-configure:
+ @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
+ ${QMAKE} PREFIX=${PREFIX} ${BINARY}.pro
+
+post-patch:
+ ${CP} ${FILESDIR}/rsinit.h ${WRKSRC}/libretroshare/src/rsserver
+
+post-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/retroshare-gui/src/${BINARY} ${PREFIX}/bin
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_MAN} ${WRKSRC}/libbitdht/src/example/bdboot.txt ${DATADIR}
+ @${ECHO_MSG} "**************************************************"
+ @${ECHO_MSG} "* POST INSTALL *"
+ @${ECHO_MSG} "**************************************************"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "After you have created an account, you should copy"
+ @${ECHO_MSG} "${DATADIR}/bdboot.txt into your"
+ @${ECHO_MSG} "~/.retroshare/YOURCERT/ directory to seed DHT with"
+ @${ECHO_MSG} "initial nodes. UPnP does not work right now, you"
+ @${ECHO_MSG} "have to use port forwarding to connect to others."
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "**************************************************"
+
+.include <bsd.port.mk>
diff --git a/net-p2p/retroshare/distinfo b/net-p2p/retroshare/distinfo
new file mode 100644
index 0000000..4d935e7
--- /dev/null
+++ b/net-p2p/retroshare/distinfo
@@ -0,0 +1,2 @@
+SHA256 (RetroShare-v0.5.2a.tar.gz) = 33838c0234e779e6b310bbd19bf6c5c0394e84cc5b418114b68f0cac8c1eec18
+SIZE (RetroShare-v0.5.2a.tar.gz) = 10334273
diff --git a/net-p2p/retroshare/files/patch-libbitdht-src-util-bdrandom.cc b/net-p2p/retroshare/files/patch-libbitdht-src-util-bdrandom.cc
new file mode 100644
index 0000000..1a3b57b
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libbitdht-src-util-bdrandom.cc
@@ -0,0 +1,11 @@
++++ libbitdht/src/util/bdrandom.cc 2012-01-15 03:45:36.000000000 +0100
+--- libbitdht/src/util/bdrandom.cc.orig 2012-01-15 03:45:07.000000000 +0100
+@@ -13,7 +13,7 @@
+ #ifdef __APPLE__
+ static bool auto_seed = bdRandom::seed( (time(NULL) + pthread_mach_thread_np(pthread_self())*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ;
+ #else
++// static bool auto_seed = bdRandom::seed( (time(NULL) + pthread_self()*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ;
+- static bool auto_seed = bdRandom::seed( (time(NULL) + pthread_self()*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ;
+ #endif
+ #endif
+ bool bdRandom::seed(uint32_t s)
diff --git a/net-p2p/retroshare/files/patch-libretroshare-src-dbase-findex.h b/net-p2p/retroshare/files/patch-libretroshare-src-dbase-findex.h
new file mode 100644
index 0000000..dfcf1e6
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare-src-dbase-findex.h
@@ -0,0 +1,17 @@
+--- libretroshare/src/dbase/findex.h.orig 2011-04-15 22:21:52.000000000 +0200
++++ libretroshare/src/dbase/findex.h 2012-01-15 03:55:27.000000000 +0100
+@@ -33,6 +33,14 @@
+ #include <stdint.h>
+ #include "retroshare/rstypes.h"
+
++#include <dirent.h>
++#include <fnmatch.h>
++#include <unistd.h>
++#define O_LARGEFILE 0100000
++#define stat64 stat
++#define _stat stat
++#define _getcwd getcwd
++
+ class ostream;
+
+ /******************************************************************************************
diff --git a/net-p2p/retroshare/files/patch-libretroshare-src-ft-ftfilecreator.h b/net-p2p/retroshare/files/patch-libretroshare-src-ft-ftfilecreator.h
new file mode 100644
index 0000000..1c9d403
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare-src-ft-ftfilecreator.h
@@ -0,0 +1,10 @@
+--- libretroshare/src/ft/ftfilecreator.h~ 2011-04-25 16:20:57.000000000 +0200
++++ libretroshare/src/ft/ftfilecreator.h 2012-01-15 20:30:41.000000000 +0100
+@@ -35,6 +35,7 @@
+ #include "ftfileprovider.h"
+ #include "ftchunkmap.h"
+ #include <map>
++#define fseeko64 fseeko
+
+ class ZeroInitCounter
+ {
diff --git a/net-p2p/retroshare/files/patch-libretroshare-src-ft-ftfileprovider.h b/net-p2p/retroshare/files/patch-libretroshare-src-ft-ftfileprovider.h
new file mode 100644
index 0000000..3906c1f
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare-src-ft-ftfileprovider.h
@@ -0,0 +1,10 @@
+--- libretroshare/src/ft/ftfileprovider.h~ 2011-02-20 01:59:47.000000000 +0100
++++ libretroshare/src/ft/ftfileprovider.h 2012-01-15 04:01:35.000000000 +0100
+@@ -34,6 +34,7 @@
+ #include <stdint.h>
+ #include "util/rsthreads.h"
+ #include "retroshare/rsfiles.h"
++#define fseeko64 fseeko
+
+ class ftFileProvider
+ {
diff --git a/net-p2p/retroshare/files/patch-libretroshare-src-libretroshare.pro b/net-p2p/retroshare/files/patch-libretroshare-src-libretroshare.pro
new file mode 100644
index 0000000..2e8b4ee
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare-src-libretroshare.pro
@@ -0,0 +1,10 @@
+--- libretroshare/src/libretroshare.pro~ 2011-08-03 19:43:26.000000000 +0200
++++ libretroshare/src/libretroshare.pro 2012-01-15 04:20:41.000000000 +0100
+@@ -104,6 +104,7 @@
+ INCLUDEPATH += . $${BITDHT_DIR}
+ # The next line if for compliance with debian packages. Keep it!
+ INCLUDEPATH += ../libbitdht
++ INCLUDEPATH += $${PREFIX}/include/gpgme
+ DEFINES *= RS_USE_BITDHT
+ }
+
diff --git a/net-p2p/retroshare/files/patch-libretroshare-src-rsserver-rsinit.cc b/net-p2p/retroshare/files/patch-libretroshare-src-rsserver-rsinit.cc
new file mode 100644
index 0000000..a98e5b4
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare-src-rsserver-rsinit.cc
@@ -0,0 +1,88 @@
+--- libretroshare/src/rsserver/rsinit.cc.org 2012-01-15 04:34:27.000000000 +0100
++++ libretroshare/src/rsserver/rsinit.cc 2012-01-15 04:35:45.000000000 +0100
+@@ -59,78 +59,14 @@
+
+ #include "tcponudp/udpstunner.h"
+
+-class accountId
+-{
+- public:
+- std::string pgpId;
+- std::string pgpName;
+- std::string pgpEmail;
+-
+- std::string sslId;
+- std::string location;
+-};
+-
+-
+-class RsInitConfig
+-{
+- public:
+- /* Directories (SetupBaseDir) */
+- static std::string basedir;
+- static std::string homePath;
+-#ifdef WINDOWS_SYS
+- static bool portable;
+- static bool isWindowsXP;
+-#endif
+-
+- static std::list<accountId> accountIds;
+- static std::string preferedId;
+-
+- /* for certificate creation */
+- //static std::string gpgPasswd;
+-
+-#ifndef WINDOWS_SYS
+- static int lockHandle;
+-#else
+- static HANDLE lockHandle;
+-#endif
+-
+- /* These fields are needed for login */
+- static std::string loginId;
+- static std::string configDir;
+- static std::string load_cert;
+- static std::string load_key;
+-
+- static std::string passwd;
+-
+- static bool autoLogin; /* autoLogin allowed */
+- static bool startMinimised; /* Icon or Full Window */
+-
+- /* Key Parameters that must be set before
+- * RetroShare will start up:
+- */
+-
+- /* Listening Port */
+- static bool forceExtPort;
+- static bool forceLocalAddr;
+- static unsigned short port;
+- static char inet[256];
+-
+- /* Logging */
+- static bool haveLogFile;
+- static bool outStderr;
+- static bool haveDebugLevel;
+- static int debugLevel;
+- static std::string logfname;
+-
+- static bool firsttime_run;
+- static bool load_trustedpeer;
+- static std::string load_trustedpeer_file;
+-
+- static bool udpListenerOnly;
+-
+- static std::string RetroShareLink;
+-};
++#include "rsinit.h"
+
++#include <fnmatch.h>
++#include <unistd.h>
++#define O_LARGEFILE 0100000
++#define stat64 stat
++#define _stat stat
++#define _getcwd getcwd
+
+ const int p3facestartupzone = 47238;
+
diff --git a/net-p2p/retroshare/files/patch-libretroshare-src-rsserver-rsloginhandler.cc b/net-p2p/retroshare/files/patch-libretroshare-src-rsserver-rsloginhandler.cc
new file mode 100644
index 0000000..6813ca6
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare-src-rsserver-rsloginhandler.cc
@@ -0,0 +1,28 @@
+--- libretroshare/src/rsserver/rsloginhandler.cc.orig 2012-01-15 04:44:59.000000000 +0100
++++ libretroshare/src/rsserver/rsloginhandler.cc 2012-01-15 04:43:08.000000000 +0100
+@@ -4,6 +4,7 @@
+ #include <pqi/authgpg.h>
+ #include "rsloginhandler.h"
+ #include "util/rsdir.h"
++#include "rsinit.h"
+
+ #ifdef UBUNTU
+ #include <gnome-keyring-1/gnome-keyring.h>
+@@ -196,7 +197,7 @@
+ /******************** OSX KeyChain stuff *****************************/
+ #else /* UNIX, but not UBUNTU or APPLE */
+
+- FILE* helpFile = RsDirUtil::rs_fopen(getAutologinFileName.c_str(), "r");
++ FILE* helpFile = RsDirUtil::rs_fopen(getAutologinFileName(ssl_id).c_str(), "r");
+
+ if(helpFile == NULL){
+ std::cerr << "\nFailed to open help file\n" << std::endl;
+@@ -408,7 +409,7 @@
+ #else
+
+ /* WARNING: Autologin is inherently unsafe */
+- FILE* helpFile = RsDirUtil::rs_fopen(getAutologinFileName.c_str(), "w");
++ FILE* helpFile = RsDirUtil::rs_fopen(getAutologinFileName(ssl_id).c_str(), "w");
+
+ if(helpFile == NULL){
+ std::cerr << "\nRsStoreAutoLogin(): Failed to open help file\n" << std::endl;
diff --git a/net-p2p/retroshare/files/patch-libretroshare-src-upnp-upnphandler.cc b/net-p2p/retroshare/files/patch-libretroshare-src-upnp-upnphandler.cc
new file mode 100644
index 0000000..db796e6
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare-src-upnp-upnphandler.cc
@@ -0,0 +1,10 @@
+--- libretroshare/src/upnp/upnphandler.cc~ 2011-07-08 11:54:27.000000000 +0200
++++ libretroshare/src/upnp/upnphandler.cc 2012-01-15 05:27:12.000000000 +0100
+@@ -12,6 +12,7 @@
+ #endif
+ /* This stuff is actually C */
+
++#define do_not_use_this
+ #include "upnp/upnphandler.h"
+
+ #include "util/rsnet.h"
diff --git a/net-p2p/retroshare/files/patch-libretroshare-src-upnp-upnphandler.h b/net-p2p/retroshare/files/patch-libretroshare-src-upnp-upnphandler.h
new file mode 100644
index 0000000..45d1f4d
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare-src-upnp-upnphandler.h
@@ -0,0 +1,14 @@
+--- libretroshare/src/upnp/upnphandler.h~ 2010-07-04 12:42:17.000000000 +0200
++++ libretroshare/src/upnp/upnphandler.h 2012-01-15 05:26:45.000000000 +0100
+@@ -13,7 +13,11 @@
+ #include "util/rsthreads.h"
+
+ #include <upnp/upnp.h>
++#ifdef do_not_use_this
++#include "upnp/UPnPBase.cpp"
++#else
+ #include "upnp/UPnPBase.h"
++#endif
+
+ #define RS_UPNP_S_UNINITIALISED 0
+ #define RS_UPNP_S_UNAVAILABLE 1
diff --git a/net-p2p/retroshare/files/patch-libretroshare-src-util-rsdir.h b/net-p2p/retroshare/files/patch-libretroshare-src-util-rsdir.h
new file mode 100644
index 0000000..ce9a124
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare-src-util-rsdir.h
@@ -0,0 +1,20 @@
+--- libretroshare/src/util/rsdir.h.orig 2011-05-15 14:42:55.000000000 +0200
++++ libretroshare/src/util/rsdir.h 2012-01-15 20:10:19.000000000 +0100
+@@ -31,6 +31,17 @@
+ #include <string>
+ #include <list>
+ #include <stdint.h>
++#include <fnmatch.h>
++
++#include <dirent.h>
++#include <unistd.h>
++#define O_LARGEFILE 0100000
++#define stat64 stat
++#define _stat stat
++#define _getcwd getcwd
++#define fseeko64 fseeko
++#define fopen64 fopen
++#define ftello64 ftello
+
+ class CRC32Map ;
+ class RsThread;
diff --git a/net-p2p/retroshare/files/patch-libretroshare-src-util-rsdiscspace.cc b/net-p2p/retroshare/files/patch-libretroshare-src-util-rsdiscspace.cc
new file mode 100644
index 0000000..4c590bb
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare-src-util-rsdiscspace.cc
@@ -0,0 +1,10 @@
+--- libretroshare/src/util/rsdiscspace.cc.orig 2011-07-05 00:59:39.000000000 +0200
++++ libretroshare/src/util/rsdiscspace.cc 2012-01-15 04:55:17.000000000 +0100
+@@ -31,6 +31,7 @@
+ #include <util/rsthreads.h>
+ #ifndef WIN32
+ #include <sys/statvfs.h>
++#define statvfs64 statvfs
+ #endif
+
+ #define DELAY_BETWEEN_CHECKS 2
diff --git a/net-p2p/retroshare/files/patch-libretroshare-src-util-rsrandom.cc b/net-p2p/retroshare/files/patch-libretroshare-src-util-rsrandom.cc
new file mode 100644
index 0000000..094e3ac
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-libretroshare-src-util-rsrandom.cc
@@ -0,0 +1,11 @@
+--- libretroshare/src/util/rsrandom.cc~ 2011-07-05 00:59:39.000000000 +0200
++++ libretroshare/src/util/rsrandom.cc 2012-01-15 04:56:47.000000000 +0100
+@@ -13,7 +13,7 @@
+ #ifdef __APPLE__
+ static bool auto_seed = RSRandom::seed( (time(NULL) + pthread_mach_thread_np(pthread_self())*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ;
+ #else
+- static bool auto_seed = RSRandom::seed( (time(NULL) + pthread_self()*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ;
++// static bool auto_seed = RSRandom::seed( (time(NULL) + pthread_self()*0x1293fe + (getpid()^0x113ef76b))^0x18e34a12 ) ;
+ #endif
+ #endif
+ bool RSRandom::seed(uint32_t s)
diff --git a/net-p2p/retroshare/files/patch-retroshare-gui-src-RetroShare.pro b/net-p2p/retroshare/files/patch-retroshare-gui-src-RetroShare.pro
new file mode 100644
index 0000000..9e5b8be
--- /dev/null
+++ b/net-p2p/retroshare/files/patch-retroshare-gui-src-RetroShare.pro
@@ -0,0 +1,17 @@
+--- retroshare-gui/src/RetroShare.pro.orig 2011-08-03 19:45:03.000000000 +0200
++++ retroshare-gui/src/RetroShare.pro 2012-01-15 12:55:12.000000000 +0100
+@@ -153,9 +153,12 @@
+
+ # ###########################################
+
++INCLUDEPATH += $${PREFIX}/include/gpgme
++LIBS += ../../libretroshare/src/libretroshare.a -lssl -lgpgme -lupnp
++
+ bitdht {
+- LIBS += ../../libbitdht/src/lib/libbitdht.a
+- PRE_TARGETDEPS *= ../../libbitdht/src/lib/libbitdht.a
++ LIBS += ../../libbitdht/src/libbitdht.a
++ PRE_TARGETDEPS *= ../../libbitdht/src/libbitdht.a
+ }
+
+ win32 {
diff --git a/net-p2p/retroshare/files/rsinit.h b/net-p2p/retroshare/files/rsinit.h
new file mode 100644
index 0000000..5434971
--- /dev/null
+++ b/net-p2p/retroshare/files/rsinit.h
@@ -0,0 +1,78 @@
+
+#ifndef RETROSHARE_RSINIT_H
+#define RETROSHARE_RSINIT_H
+
+class accountId
+{
+ public:
+ std::string pgpId;
+ std::string pgpName;
+ std::string pgpEmail;
+
+ std::string sslId;
+ std::string location;
+};
+
+
+class RsInitConfig
+{
+ public:
+ /* Directories (SetupBaseDir) */
+ static std::string basedir;
+ static std::string homePath;
+#ifdef WINDOWS_SYS
+ static bool portable;
+ static bool isWindowsXP;
+#endif
+
+ static std::list<accountId> accountIds;
+ static std::string preferedId;
+
+ /* for certificate creation */
+ //static std::string gpgPasswd;
+
+#ifndef WINDOWS_SYS
+ static int lockHandle;
+#else
+ static HANDLE lockHandle;
+#endif
+
+ /* These fields are needed for login */
+ static std::string loginId;
+ static std::string configDir;
+ static std::string load_cert;
+ static std::string load_key;
+
+ static std::string passwd;
+
+ static bool autoLogin; /* autoLogin allowed */
+ static bool startMinimised; /* Icon or Full Window */
+
+ /* Key Parameters that must be set before
+ * RetroShare will start up:
+ */
+
+ /* Listening Port */
+ static bool forceExtPort;
+ static bool forceLocalAddr;
+ static unsigned short port;
+ static char inet[256];
+
+ /* Logging */
+ static bool haveLogFile;
+ static bool outStderr;
+ static bool haveDebugLevel;
+ static int debugLevel;
+ static std::string logfname;
+
+ static bool firsttime_run;
+ static bool load_trustedpeer;
+ static std::string load_trustedpeer_file;
+
+ static bool udpListenerOnly;
+
+ static std::string RetroShareLink;
+};
+
+#endif
+
diff --git a/net-p2p/retroshare/pkg-descr b/net-p2p/retroshare/pkg-descr
new file mode 100644
index 0000000..26b3149
--- /dev/null
+++ b/net-p2p/retroshare/pkg-descr
@@ -0,0 +1,7 @@
+RetroShare is a Open Source cross-platform, private and secure decentralised
+communication platform. It lets you to securely chat and share files with your
+friends and family, using a web-of-trust to authenticate peers and OpenSSL to
+encrypt all communication. RetroShare provides filesharing, chat, messages,
+forums and channels.
+
+WWW: http://retroshare.sourceforge.net/
diff --git a/net-p2p/retroshare/pkg-plist b/net-p2p/retroshare/pkg-plist
new file mode 100644
index 0000000..0de0023
--- /dev/null
+++ b/net-p2p/retroshare/pkg-plist
@@ -0,0 +1,3 @@
+bin/RetroShare
+%%DATADIR%%/bdboot.txt
+@dirrm %%DATADIR%%
OpenPOWER on IntegriCloud