From eb0fe38fb371d96c4f68606efb857d83defe2ebd Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 31 Dec 2015 13:36:22 +0100 Subject: [PATCH] security/ricochet: New port for Ricochet 1.1.1 Note that Ricochet is experimental and mostly undocumented. It uses lots of memory and crashes frequently, especially when built with the "aggressive compiler hardening flags" (ASAN etc.) which are used by default on ElectroBSD. So far all the crashes I ran into "worked" cross-platform and were already reported upstream months ago. It's conceivable that they will be fixed in a future release. --- security/ricochet/Makefile | 49 +++++++++++++++++++++++++++++++++++++++++++++ security/ricochet/distinfo | 2 ++ security/ricochet/pkg-descr | 4 ++++ security/ricochet/pkg-plist | 7 +++++++ 4 files changed, 62 insertions(+) create mode 100644 security/ricochet/Makefile create mode 100644 security/ricochet/distinfo create mode 100644 security/ricochet/pkg-descr create mode 100644 security/ricochet/pkg-plist diff --git a/security/ricochet/Makefile b/security/ricochet/Makefile new file mode 100644 index 0000000..3463621 --- /dev/null +++ b/security/ricochet/Makefile @@ -0,0 +1,49 @@ +# Created by: Fabian Keil +# $FreeBSD$ + +PORTNAME= ricochet +PORTVERSION= 1.1.1 +CATEGORIES= security +MASTER_SITES= https://ricochet.im/releases/${PORTVERSION}/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-src + +MAINTAINER= fk@fabiankeil.de +COMMENT= Anonymous instant messager + +LIB_DEPENDS= libprotoc.so:${PORTSDIR}/devel/protobuf + +# Unfortunately Ricochet currently does not seem to support +# Tor clients that have not been started by Ricochet itself +# and are running in a different jail with different privileges. +OPTIONS_DEFINE= TOR_DEVEL +TOR_DEVEL_DESC= Depend on tor-devel instead of the stable version +TOR_DEVEL_RUN_DEPENDS= ${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor-devel +TOR_DEVEL_RUN_DEPENDS_OFF= ${LOCALBASE}/bin/tor:${PORTSDIR}/security/tor + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +USES= pkgconfig tar:bzip2 qmake:outsource +INSTALLS_ICONS= yes +USE_QT5= buildtools declarative gui help imageformats linguist \ + linguisttools multimedia network qml quick quickcontrols + +QMAKE_ARGS= CONFIG+=release \ + DEFINES+=RICOCHET_NO_PORTABLE \ + OPENSSLDIR=/usr/ \ + +.include + +post-patch: +# Make sure LOCALBASE is respected by adjusting target.path, +# shortcut.path, icon.path and scalable_icon. As a side-effect +# this changes a couple of lines that are only relevant for the +# bundled-build but this does not have any impact on the port. + ${REINPLACE_CMD} "s@/usr@${LOCALBASE}@" ${WRKSRC}/ricochet.pro + +post-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} +.for docfile in LICENSE AUTHORS.md README.md + ${INSTALL_DATA} ${WRKSRC}/${docfile} ${STAGEDIR}${DOCSDIR}/ +.endfor + +.include diff --git a/security/ricochet/distinfo b/security/ricochet/distinfo new file mode 100644 index 0000000..5dc304b --- /dev/null +++ b/security/ricochet/distinfo @@ -0,0 +1,2 @@ +SHA256 (ricochet-1.1.1-src.tar.bz2) = 1aae4c1d1b836a576dde707d3af8898eb068ba5f95c0eda98b108208f17cfba0 +SIZE (ricochet-1.1.1-src.tar.bz2) = 1091695 diff --git a/security/ricochet/pkg-descr b/security/ricochet/pkg-descr new file mode 100644 index 0000000..5366e55 --- /dev/null +++ b/security/ricochet/pkg-descr @@ -0,0 +1,4 @@ +Ricochet is a different approach to instant messaging that +doesn't trust anyone in protecting your privacy. + +WWW: https://ricochet.im/ diff --git a/security/ricochet/pkg-plist b/security/ricochet/pkg-plist new file mode 100644 index 0000000..38f61e7 --- /dev/null +++ b/security/ricochet/pkg-plist @@ -0,0 +1,7 @@ +bin/ricochet +share/applications/ricochet.desktop +%%DOCSDIR%%/LICENSE +%%DOCSDIR%%/AUTHORS.md +%%DOCSDIR%%/README.md +share/icons/hicolor/48x48/apps/ricochet.png +share/icons/hicolor/scalable/apps/ricochet.svg -- 2.6.4