Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2018 06:45:35 +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: r474425 - in head/www: . onionshare onionshare/files
Message-ID:  <201807110645.w6B6jZ7N005519@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Wed Jul 11 06:45:34 2018
New Revision: 474425
URL: https://svnweb.freebsd.org/changeset/ports/474425

Log:
  New port: www/onionshare: Secure and anonymous file sharing via Tor
  
  PR:		225539
  Submitted by:	Vinícius Zavam <egypcio@googlemail.com>

Added:
  head/www/onionshare/
  head/www/onionshare/Makefile   (contents, props changed)
  head/www/onionshare/distinfo   (contents, props changed)
  head/www/onionshare/files/
  head/www/onionshare/files/patch-setup.py   (contents, props changed)
  head/www/onionshare/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Wed Jul 11 05:50:47 2018	(r474424)
+++ head/www/Makefile	Wed Jul 11 06:45:34 2018	(r474425)
@@ -554,6 +554,7 @@
     SUBDIR += nuvolaplayer-yandex-music
     SUBDIR += nuvolaplayer-youtube
     SUBDIR += obhttpd
+    SUBDIR += onionshare
     SUBDIR += opencart
     SUBDIR += opera
     SUBDIR += opera-linuxplugins

Added: head/www/onionshare/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/onionshare/Makefile	Wed Jul 11 06:45:34 2018	(r474425)
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME=	onionshare
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.3.1
+CATEGORIES=	www python security
+
+MAINTAINER=	egypcio@googlemail.com
+COMMENT=	Secure and anonymous file sharing via Tor
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	tor:security/tor \
+		obfs4proxy:security/obfs4proxy-tor \
+		${PYTHON_PKGNAMEPREFIX}Flask>0:www/py-flask@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}stem>0:security/py-stem@${PY_FLAVOR}
+
+USES=		python:3.4+ pyqt:5
+USE_GITHUB=	yes
+GH_ACCOUNT=	micahflee
+USE_PYQT=	core gui sip widgets  # "sip" should be "sip_build", but "import PyQt5.QtCore" wants "sip". See bug#225040
+USE_PYTHON=	distutils autoplist noflavors
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/onionshare/common.py
+
+.include <bsd.port.mk>

Added: head/www/onionshare/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/onionshare/distinfo	Wed Jul 11 06:45:34 2018	(r474425)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1531289450
+SHA256 (micahflee-onionshare-v1.3.1_GH0.tar.gz) = 87e1fa965482064e8c7c8bc32326f5748fd038f7d2af6f51056444db22ef0357
+SIZE (micahflee-onionshare-v1.3.1_GH0.tar.gz) = 436741

Added: head/www/onionshare/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/onionshare/files/patch-setup.py	Wed Jul 11 06:45:34 2018	(r474425)
@@ -0,0 +1,11 @@
+--- setup.py.orig	2018-07-11 06:12:43 UTC
++++ setup.py
+@@ -54,7 +54,7 @@ data_files=[
+         (os.path.join(sys.prefix, 'share/onionshare/locale'), file_list('share/locale')),
+         (os.path.join(sys.prefix, 'share/onionshare/html'), file_list('share/html')),
+     ]
+-if platform.system() != 'OpenBSD':
++if not platform.system().endswith('BSD'):
+     data_files.append(('/usr/share/nautilus-python/extensions/', ['install/scripts/onionshare-nautilus.py']))
+ 
+ setup(

Added: head/www/onionshare/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/onionshare/pkg-descr	Wed Jul 11 06:45:34 2018	(r474425)
@@ -0,0 +1,10 @@
+OnionShare is an open source tool that lets you securely and anonymously
+share a file of any size over the Tor network. It works by starting a web
+server that is accessible as a Tor onion (hidden) service, and generating
+an unguessable URL to access and download the files.
+
+It doesn't require setting up a server on the Internet somewhere,
+on a Virtual Private Server (VPS), or using a third party file-sharing
+service. It simply shares files you want over the Tor network.
+
+WWW: https://onionshare.org



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