diff options
author | VinÃcius Zavam <egypcio@FreeBSD.org> | 2023-06-24 16:46:29 +0000 |
---|---|---|
committer | VinÃcius Zavam <egypcio@FreeBSD.org> | 2023-06-24 16:54:02 +0000 |
commit | ad63312728a23d4e1722c78b3915a9fefc4c022e (patch) | |
tree | c406e3cc66ae8fa99c6231466273a5732b36d485 | |
parent | net/kafka: update to 3.5.0 (diff) |
[NEW] security/webtunnel-tor: Pluggable Transport based on HTTPT
WebTunnel is a pluggable transport for Tor that attempts to imitate
web browsing activities based on HTTPT, a Probe-Resistant Proxy.
* https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel
Sponsored by: TorBSD Diversity Project, TDP
Sponsored by: The Tor Project
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/webtunnel-tor/Makefile | 43 | ||||
-rw-r--r-- | security/webtunnel-tor/distinfo | 5 | ||||
-rw-r--r-- | security/webtunnel-tor/pkg-descr | 2 |
4 files changed, 51 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index 1b123d3142a8..6b4bb74d951c 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1332,6 +1332,7 @@ SUBDIR += wazuh-manager SUBDIR += wazuh-server SUBDIR += webfwlog + SUBDIR += webtunnel-tor SUBDIR += weggli SUBDIR += whatweb SUBDIR += wipe diff --git a/security/webtunnel-tor/Makefile b/security/webtunnel-tor/Makefile new file mode 100644 index 000000000000..ff29b736553d --- /dev/null +++ b/security/webtunnel-tor/Makefile @@ -0,0 +1,43 @@ +PORTNAME= webtunnel +PORTVERSION= 0.0.1 +CATEGORIES= security net +PKGNAMESUFFIX= -tor + +MAINTAINER= egypcio@FreeBSD.org +COMMENT= Pluggable Transport attempting to imitate web browsing based on HTTPT +WWW= https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel + +LICENSE= MIT +LICENSE_FILE= ${WRKDIR}/${PORTNAME}-${TPO_WEBTUN}/LICENSE + +RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss \ + tor:security/tor + +USES= cpe go +USE_GITLAB= yes +CPE_VENDOR= torproject +TPO_GOPTLIB= 24b2b145d7afc66b66e58c702cf988c00f694b70 +TPO_WEBTUN= 38eb55054a5c3c072acc1d8f9a9afa36e3a5c9b7 + +CGO_ENABLED= 0 +GO_BUILDFLAGS= -ldflags '${STRIP} -w -extldflags "-static"' +GO_PKGNAME= gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/webtunnel +GO_TARGET= ./main/client ./main/server + +GL_SITE= https://gitlab.torproject.org/tpo +GL_ACCOUNT= anti-censorship/pluggable-transports +GL_COMMIT= ${TPO_WEBTUN} +GL_TUPLE= anti-censorship:pluggable-transports/goptlib:${TPO_GOPTLIB}:tpo_ac_ptlib/vendor/gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib + +PLIST_FILES= bin/${PORTNAME}-tor-client \ + bin/${PORTNAME}-tor-server +pre-extract: + ${MKDIR} ${WRKDIR}/pluggable-transports + ${LN} -sf ${WRKDIR}/webtunnel-${TPO_WEBTUN} ${WRKDIR}/pluggable-transports/webtunnel-${TPO_WEBTUN} + ${LN} -sf ${WRKDIR}/goptlib-${TPO_GOPTLIB} ${WRKDIR}/pluggable-transports/goptlib-${TPO_GOPTLIB} + +post-install: + ${MV} ${STAGEDIR}/${PREFIX}/bin/client ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}-tor-client + ${MV} ${STAGEDIR}/${PREFIX}/bin/server ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}-tor-server + +.include <bsd.port.mk> diff --git a/security/webtunnel-tor/distinfo b/security/webtunnel-tor/distinfo new file mode 100644 index 000000000000..756aa23a4a2d --- /dev/null +++ b/security/webtunnel-tor/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1687620500 +SHA256 (anti-censorship/pluggable-transports-webtunnel-38eb55054a5c3c072acc1d8f9a9afa36e3a5c9b7_GL0.tar.gz) = ed742a89bdacf5431b4464b76822393a002d0e4711c377dee9d243c58718c9e1 +SIZE (anti-censorship/pluggable-transports-webtunnel-38eb55054a5c3c072acc1d8f9a9afa36e3a5c9b7_GL0.tar.gz) = 10960 +SHA256 (anti-censorship-pluggable-transports/goptlib-24b2b145d7afc66b66e58c702cf988c00f694b70_GL0.tar.gz) = d41286afbbf942f5385831487fc2e06be885c06800412e3bd1fbd72e70ebbaf5 +SIZE (anti-censorship-pluggable-transports/goptlib-24b2b145d7afc66b66e58c702cf988c00f694b70_GL0.tar.gz) = 29730 diff --git a/security/webtunnel-tor/pkg-descr b/security/webtunnel-tor/pkg-descr new file mode 100644 index 000000000000..a319c8b75fb6 --- /dev/null +++ b/security/webtunnel-tor/pkg-descr @@ -0,0 +1,2 @@ +WebTunnel is a pluggable transport for Tor that attempts to imitate web +browsing activities based on HTTPT, a Probe-Resistant Proxy. |