Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Dec 2017 15:33:50 +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: r456985 - in head/security: . obfs4proxy-tor obfs4proxy-tor/files
Message-ID:  <201712221533.vBMFXoIM004629@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Fri Dec 22 15:33:50 2017
New Revision: 456985
URL: https://svnweb.freebsd.org/changeset/ports/456985

Log:
  New port: security/obfs4proxy-tor: Pluggable transport proxy for Tor (obfs4, The Obfuscator)
  
  PR:		222645
  Submitted by:	Vinícius Zavam <egypcio@googlemail.com>
  Approved by:	adamw (mentor)
  Differential Revision:	https://reviews.freebsd.org/D12524

Added:
  head/security/obfs4proxy-tor/
  head/security/obfs4proxy-tor/Makefile   (contents, props changed)
  head/security/obfs4proxy-tor/distinfo   (contents, props changed)
  head/security/obfs4proxy-tor/files/
  head/security/obfs4proxy-tor/files/pkg-message.in   (contents, props changed)
  head/security/obfs4proxy-tor/pkg-descr   (contents, props changed)
Modified:
  head/security/Makefile

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Fri Dec 22 15:08:46 2017	(r456984)
+++ head/security/Makefile	Fri Dec 22 15:33:50 2017	(r456985)
@@ -427,6 +427,7 @@
     SUBDIR += nss_compat_ossl
     SUBDIR += nyx
     SUBDIR += oath-toolkit
+    SUBDIR += obfs4proxy-tor
     SUBDIR += obfsclient
     SUBDIR += obfsproxy
     SUBDIR += ocaml-cryptgps

Added: head/security/obfs4proxy-tor/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/obfs4proxy-tor/Makefile	Fri Dec 22 15:33:50 2017	(r456985)
@@ -0,0 +1,42 @@
+# $FreeBSD$
+
+PORTNAME=	obfs4proxy
+DISTVERSION=	0.0.7
+CATEGORIES=	security net ipv6
+MASTER_SITES=	https://people.torproject.org/~yawning/releases/${PORTNAME}/
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
+PKGNAMESUFFIX=	-tor
+
+MAINTAINER=	egypcio@googlemail.com
+COMMENT=	Pluggable transport proxy for Tor (obfs4, The Obfuscator)
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	go:lang/go
+
+CPE_VENDOR=	torproject
+
+USES=		cpe tar:xz
+USE_GITHUB=	nodefault
+GH_TUPLE=	Yawning:goptlib:9b7a700:goptlib/obfs4proxy/src/git.torproject.org/pluggable-transports/goptlib.git \
+		agl:ed25519:5312a61:ed25519/obfs4proxy/src/github.com/agl/ed25519 \
+		dchest:siphash:4ebf1de:siphash/obfs4proxy/src/github.com/dchest/siphash \
+		golang:crypto:d585fd2:crypto/obfs4proxy/src/golang.org/x/crypto \
+		golang:net:d866cfc:net/obfs4proxy/src/golang.org/x/net
+
+SUB_FILES=	pkg-message
+
+PLIST_FILES=	bin/obfs4proxy \
+		man/man1/obfs4proxy.1.gz
+
+do-build:
+	@${RLN} ${WRKSRC} ${WRKSRC}/obfs4proxy/src/git.torproject.org/pluggable-transports/obfs4.git 
+	@cd ${WRKSRC}/obfs4proxy && \
+		${SETENV} GOPATH=${WRKSRC}/obfs4proxy go build
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/obfs4proxy/obfs4proxy ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/doc/obfs4proxy.1 ${STAGEDIR}${PREFIX}/man/man1
+
+.include <bsd.port.mk>

Added: head/security/obfs4proxy-tor/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/obfs4proxy-tor/distinfo	Fri Dec 22 15:33:50 2017	(r456985)
@@ -0,0 +1,13 @@
+TIMESTAMP = 1513794378
+SHA256 (obfs4proxy-0.0.7.tar.xz) = c07a1a690ebab3057c8b566e1a4902439c77d1ba5c35bbf42fcdc5b46ab3ca63
+SIZE (obfs4proxy-0.0.7.tar.xz) = 56184
+SHA256 (Yawning-goptlib-9b7a700_GH0.tar.gz) = 8c93d2c7e0221e54ef94f2eccde6e7b0e78258a39df5e38c97458ba57e2f460c
+SIZE (Yawning-goptlib-9b7a700_GH0.tar.gz) = 20819
+SHA256 (agl-ed25519-5312a61_GH0.tar.gz) = 8508e21ca8bf39df655cd7d7ade16b168530a2dbc3791c00f0d2a62ca9003faa
+SIZE (agl-ed25519-5312a61_GH0.tar.gz) = 107273
+SHA256 (dchest-siphash-4ebf1de_GH0.tar.gz) = 141deaa15ced586e5808e42ecfc127cccdfb1cb6f2a58389357e499b21aace74
+SIZE (dchest-siphash-4ebf1de_GH0.tar.gz) = 10542
+SHA256 (golang-crypto-d585fd2_GH0.tar.gz) = d8680943f1dd9203d156f6491b4106939becf4f4ee4f616b79e573ed9096f650
+SIZE (golang-crypto-d585fd2_GH0.tar.gz) = 1440857
+SHA256 (golang-net-d866cfc_GH0.tar.gz) = 9555e426a10cb8d94ad3b0ee5d6a0ed4c38211055da98af92d085929b5559f33
+SIZE (golang-net-d866cfc_GH0.tar.gz) = 929432

Added: head/security/obfs4proxy-tor/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/obfs4proxy-tor/files/pkg-message.in	Fri Dec 22 15:33:50 2017	(r456985)
@@ -0,0 +1,28 @@
+======================================================================
+
+To use obfs4 as a Bridge Client, please add the following configuration
+to your '%%PREFIX%%/etc/tor/torrc' config file:
+
+ClientTransportPlugin obfs4 exec %%PREFIX%%/bin/obfs4proxy
+
+To enable this Pluggable Transport in your Tor Bridge, use the
+following configurations in your 'torrc' file:
+
+# Use obfs4proxy to provide the obfuscator
+ServerTransportPlugin obfs4 exec %%PREFIX%%/bin/obfs4proxy managed
+
+# Enable Extended ORPort
+ExtORPort auto
+
+## (Optional) Listen on the specified IP:PORT for obfs4 connections
+## as opposed to picking a random port automatically
+# ServerTransportListenAddr obfs4 0.0.0.0:443
+
+obfs4proxy is backwards-compatible with obfs2 and obfs3 either in client or 
+server mode. If you want to use it like this, please adjust your 'torrc' 
+config file to fit your needs. It's compatible with ScrambleSuit in client mode.
+
+For more information, please consulte the official wiki page at 
+https://trac.torproject.org/projects/tor/wiki/doc/PluggableTransports/obfs4proxy
+
+======================================================================

Added: head/security/obfs4proxy-tor/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/obfs4proxy-tor/pkg-descr	Fri Dec 22 15:33:50 2017	(r456985)
@@ -0,0 +1,5 @@
+obfs4 (a.k.a. The Obfuscator) is a transport with the same features as
+ScrambleSuit but utilizing Dan Bernstein's elligator2 technique for public
+key obfuscation, and the ntor protocol for one-way authentication.
+
+WWW: https://trac.torproject.org/projects/tor/wiki/doc/PluggableTransports/obfs4proxy



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