git: d0aab7f46df1 - main - www/onionshare: fix DEPRECATED deps, and update pluggable transports

From: Vinícius Zavam <egypcio_at_FreeBSD.org>
Date: Sun, 07 Aug 2022 15:24:23 UTC
The branch main has been updated by egypcio:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d0aab7f46df1ee2494ac09858fd903330f785d43

commit d0aab7f46df1ee2494ac09858fd903330f785d43
Author:     Vinícius Zavam <egypcio@FreeBSD.org>
AuthorDate: 2022-08-07 15:17:20 +0000
Commit:     Vinícius Zavam <egypcio@FreeBSD.org>
CommitDate: 2022-08-07 15:24:17 +0000

    www/onionshare: fix DEPRECATED deps, and update pluggable transports
    
      * fix DEPRECATED flag, by using a more reliable Python module;
      * used pycryptodome instead of cryptography to keep compatibility;
      * update pluggable transports support by adding snowflake.
    
    PR:             260897, 262503, 265390
    Reported by:    yuri@, ruben <ruben % verweg.com>, chris <chris % crvintel.com>
    Sponsored by:   TorBSD Diversity Project, TDP
    Sponsored by:   The Tor Project
---
 www/onionshare/Makefile | 17 ++++++++---------
 www/onionshare/distinfo |  6 +++---
 2 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/www/onionshare/Makefile b/www/onionshare/Makefile
index 67c37bd5aa01..51eb4640a3a9 100644
--- a/www/onionshare/Makefile
+++ b/www/onionshare/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	onionshare
-DISTVERSIONPREFIX=	v
+DISTVERSIONPREFIX=v
 DISTVERSION=	2.2
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	www python security
 
 MAINTAINER=	egypcio@FreeBSD.org
@@ -10,22 +10,21 @@ COMMENT=	Secure and anonymous file sharing via Tor
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-DEPRECATED=	Depends on expired security/py-pycrypto
-EXPIRATION_DATE=2022-09-30
-
-RUN_DEPENDS=	tor:security/tor \
+RUN_DEPENDS=	meek-client:security/meek \
 		obfs4proxy:security/obfs4proxy-tor \
+		snowflake-client:security/snowflake-tor \
+		tor:security/tor \
 		${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}Flask-HTTPAuth>=0:security/py-flask-httpauth@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pycrypto>=0:security/py-pycrypto@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pycryptodome>=0:security/py-pycryptodome@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pysocks>=0:net/py-pysocks@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}stem>=0:security/py-stem@${PY_FLAVOR}
+
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
 
-USES=		cpe python:3.5+ pyqt:5
+USES=		cpe python:3.6+ pyqt:5
 USE_GITHUB=	yes
-GH_ACCOUNT=	micahflee
 USE_PYQT=	pyqt5 sip
 USE_PYTHON=	distutils autoplist noflavors
 
diff --git a/www/onionshare/distinfo b/www/onionshare/distinfo
index 4d702d5d1c75..e4662e4fea02 100644
--- a/www/onionshare/distinfo
+++ b/www/onionshare/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1571236020
-SHA256 (micahflee-onionshare-v2.2_GH0.tar.gz) = 7173863d7582b05aa8fd0d2207236e3cbbb38d854aad65e3b98ec5baad521fc2
-SIZE (micahflee-onionshare-v2.2_GH0.tar.gz) = 3319589
+TIMESTAMP = 1659784168
+SHA256 (onionshare-onionshare-v2.2_GH0.tar.gz) = 7173863d7582b05aa8fd0d2207236e3cbbb38d854aad65e3b98ec5baad521fc2
+SIZE (onionshare-onionshare-v2.2_GH0.tar.gz) = 3319589