From nobody Sat Aug 06 11:01:03 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M0KJb64Trz4YhtL; Sat, 6 Aug 2022 11:01:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M0KJb5f2Wz4HQQ; Sat, 6 Aug 2022 11:01:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659783663; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G+PsNH6xAzmNE9Bl9LPdvGMmw/x4/OU8dRk+oJXieMk=; b=EVKiguwzHO/HG7wifH2MBsWWRQVmRtwGH0uwwkf8uOL3A5t1pGEir48Pb9sVchGcgces2m emeR/65TTi4g6zw8mxS1uh6AlBkncMJiY9y8xchfB7whljZhOq7dMWQraMNSRPmZgJHY3s Ysauyb3XgyDeoMJgvHAzx87g+hYHEeCaUTJZamW4yupAqP3qN0H8kn5JXm6N4te52RVSrv CACvAsc2Hn3LxU3zgA7F6/aH5c+BFu8p9OUX6g8ORgJvyZzB7p8CrI9b0wUNtAaJRrvUcQ zzGpiivszHCRxSbmYmYYur9r6wSOrXtJkIBZ96wyE/D+9mU5j4fu6RhV33pIYg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M0KJb4kdnzWWQ; Sat, 6 Aug 2022 11:01:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 276B13Au035774; Sat, 6 Aug 2022 11:01:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 276B13w9035773; Sat, 6 Aug 2022 11:01:03 GMT (envelope-from git) Date: Sat, 6 Aug 2022 11:01:03 GMT Message-Id: <202208061101.276B13w9035773@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Vin=C3=ADcius=20Zavam?= Subject: git: 2bc1986c8c99 - main - [NEW] www/onionshare-cli: Secure and anonymous file sharing via Tor List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: egypcio X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2bc1986c8c9992b9e60a3832392d01cfbb5a4b2a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659783663; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G+PsNH6xAzmNE9Bl9LPdvGMmw/x4/OU8dRk+oJXieMk=; b=GpHnrUrq/o0nOoGO14UsGYIqP6S7nXlOB6RFDL+08MFQig7ZmvYsO8dX2P3Q17/plPXqjG dJKDapxdSQL1sXDNJRY1TT+ZzTP/tWL6LMzqv13HCYM51Ok7l68xKubgUSTappxh4bF2sc eKf9WGw0hgFQtQtXRdpPaV/usKquVLo07jt9m5QCGKJPt9Wu67kVLrvu3gAdorcvYCgWwm AVDmbSrPt9o4/V3sKFHAVnzxhWD67/uo5j0Izi6hgC4Hfr+nOzhmpTK2rhb1kGkxaLZD9I TXOnJFv7XFFZkk0+J81SjxFQ2HNvDKEESrS8tH7vVJ2a+BnMPq1HKjNZls86qg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659783663; a=rsa-sha256; cv=none; b=To6/BfdJZ/fN9QcOohzWyW+l0a2FHSa4jW+Wec3tjjizaWRLoXflA0aE5HKjncbaW8+eez dRQGohUKhXQB+5kmPUdGvmPIQY8q5Eq0YLQEOsXjc8pDE5a9M8dMAofe56N2EVGCGrn7aj DipyFVR2T9CxSaK9Q8uUWHlJ2tWx96D1Y/95fUxiWV1UGxzAgU0xf5WRJdKgpVuKkIwv51 VvYCcZ0rFdRTMruvIjnTRFWi8ZynVxscZRtTXB0OCydmy62d3MABrE3ZnHnox6CbpXPjoD 77rmbJdwOziskT2egg+UvgSMbNnve50+qjJYp0ZcgJfLYfgEb3mxDYeBSuaykg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by egypcio: URL: https://cgit.FreeBSD.org/ports/commit/?id=2bc1986c8c9992b9e60a3832392d01cfbb5a4b2a commit 2bc1986c8c9992b9e60a3832392d01cfbb5a4b2a Author: Vinícius Zavam AuthorDate: 2022-08-06 10:56:34 +0000 Commit: Vinícius Zavam CommitDate: 2022-08-06 11:00:57 +0000 [NEW] www/onionshare-cli: Secure and anonymous file sharing via Tor OnionShare (CLI) works by starting a web server, making it accessible as a Tor onion service, and generating an unguessable web address so others can download files from you, or upload files to you. It does *NOT* require setting up a separate server or using a third-party file sharing service. This version also supports opening a private chat session via Tor. WWW: https://onionshare.org Sponsored by: TorBSD Diversity Project, TDP Sponsored by: The Tor Project --- www/Makefile | 1 + www/onionshare-cli/Makefile | 35 +++++++++++++++++++++++++++++++++ www/onionshare-cli/distinfo | 3 +++ www/onionshare-cli/files/patch-setup.py | 18 +++++++++++++++++ www/onionshare-cli/pkg-descr | 10 ++++++++++ 5 files changed, 67 insertions(+) diff --git a/www/Makefile b/www/Makefile index 3d819d41f23d..142fff599fa6 100644 --- a/www/Makefile +++ b/www/Makefile @@ -460,6 +460,7 @@ SUBDIR += oneshot SUBDIR += onionbalance SUBDIR += onionshare + SUBDIR += onionshare-cli SUBDIR += onlyoffice-documentserver SUBDIR += opencart SUBDIR += openresty diff --git a/www/onionshare-cli/Makefile b/www/onionshare-cli/Makefile new file mode 100644 index 000000000000..2e805993eff2 --- /dev/null +++ b/www/onionshare-cli/Makefile @@ -0,0 +1,35 @@ +PORTNAME= onionshare-cli +PORTVERSION= 2.5 +DISTNAME= onionshare_cli-${PORTVERSION} +CATEGORIES= www security python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= egypcio@FreeBSD.org +COMMENT= Secure and anonymous file sharing via Tor (CLI version) + +LICENSE= GPLv3 + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= meek-client:security/meek \ + obfs4proxy:security/obfs4proxy-tor \ + snowflake-client:security/snowflake-tor \ + tor:security/tor \ + ${PYTHON_PKGNAMEPREFIX}cepa>=0:net/py-cepa@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}click>=0:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}colorama>=0:devel/py-colorama@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}eventlet>=0:net/py-eventlet@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flask-socketio>=0:www/py-flask-socketio@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}gevent-websocket>=0:www/py-gevent-websocket@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pynacl>=0:security/py-pynacl@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pysocks>=0:net/py-pysocks@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}unidecode>=0:converters/py-unidecode@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}urllib3>=0:net/py-urllib3@${PY_FLAVOR} + +USES= cpe python:3.6+ +USE_PYTHON= autoplist distutils + +.include diff --git a/www/onionshare-cli/distinfo b/www/onionshare-cli/distinfo new file mode 100644 index 000000000000..88af6fd2f9c9 --- /dev/null +++ b/www/onionshare-cli/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1659778160 +SHA256 (onionshare_cli-2.5.tar.gz) = 3f7da94e45671142f62edc15990bf22819a026d5555d926a182c38095ac96b90 +SIZE (onionshare_cli-2.5.tar.gz) = 140427 diff --git a/www/onionshare-cli/files/patch-setup.py b/www/onionshare-cli/files/patch-setup.py new file mode 100644 index 000000000000..16f9261d1340 --- /dev/null +++ b/www/onionshare-cli/files/patch-setup.py @@ -0,0 +1,18 @@ +--- setup.py.orig 2022-08-06 09:43:13 UTC ++++ setup.py +@@ -13,12 +13,12 @@ package_data = \ + 'resources/templates/*']} + + install_requires = \ +-['cepa==1.8.3', ++['cepa', + 'click', + 'colorama', + 'eventlet', +- 'flask-socketio==5.0.1', +- 'flask==1.1.4', ++ 'flask-socketio', ++ 'flask', + 'gevent-websocket', + 'psutil', + 'pynacl', diff --git a/www/onionshare-cli/pkg-descr b/www/onionshare-cli/pkg-descr new file mode 100644 index 000000000000..d6c2e447f35f --- /dev/null +++ b/www/onionshare-cli/pkg-descr @@ -0,0 +1,10 @@ +OnionShare (CLI) lets you securely and anonymously send and receive files. + +It works by starting a web server, making it accessible as a Tor onion service, +and generating an unguessable web address so others can download files +from you, or upload files to you. + +It does *NOT* require setting up a separate server or using a third party +file-sharing service. + +WWW: https://onionshare.org