aboutsummaryrefslogtreecommitdiff
path: root/security/obfs4proxy-tor/Makefile
blob: 2df3bf955ddf3274b9a9a724e3f9bd2078bf8257 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
PORTNAME=	obfs4proxy
DISTVERSION=	0.0.14
PORTREVISION=	2
CATEGORIES=	security net
PKGNAMESUFFIX=	-tor
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	egypcio@FreeBSD.org
COMMENT=	Pluggable transport proxy for Tor (obfs4, The Obfuscator)
WWW=		https://gitlab.com/yawning/obfs4

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cpe go:modules tar:xz

CPE_VENDOR=	torproject

USE_GITHUB=	nodefault
GH_TUPLE=	FiloSottile:edwards25519:v1.0.0:filosottile_edwards25519/vendor/filippo.io/edwards25519 \
		dchest:siphash:v1.2.3:siphash/vendor/github.com/dchest/siphash \
		dsnet:compress:f66993602bf5:dsnet_compress/vendor/github.com/dsnet/compress \
		golang:crypto:56aed061732a:golang_crypto/vendor/golang.org/x/crypto \
		golang:net:f15817d10f9b:golang_net/vendor/golang.org/x/net \
		golang:sys:95e765b1cc43:golang_sys/vendor/golang.org/x/sys \
		golang:text:v0.3.8:golang_text/vendor/golang.org/x/text \
		torbsd:goptlib:v1.2.0:goptlib/vendor/git.torproject.org/pluggable-transports/goptlib.git

USE_GITLAB=	yes
GL_ACCOUNT=	yawning
GL_PROJECT=	obfs4
GL_COMMIT=	336a71d6e4cfd2d33e9c57797828007ad74975e9
GL_TUPLE=	yawning:bsaes:0a714cd429ec754482b4001e918db30cd2094405:yawning_bsaes/vendor/gitlab.com/yawning/bsaes.git \
		yawning:edwards25519-extra:def713fd18e464864613d2b55ef41a21df2c9493:yawning_edwards25519extra/vendor/gitlab.com/yawning/edwards25519-extra.git \
		yawning:utls:f1bcf4b40e4596d0ccd1dbf8f3a9f4922f9759ca:yawning_utls/vendor/gitlab.com/yawning/utls.git

GO_PKGNAME=	gitlab.com/yawning/obfs4
GO_TARGET=	./obfs4proxy

SUB_FILES=	pkg-message

PLIST_FILES=	bin/obfs4proxy \
		man/man1/obfs4proxy.1.gz

post-patch:
	${LN} -s ${WRKSRC} ${WRKSRC}/vendor/${GO_PKGNAME}

post-install:
	${INSTALL_MAN} ${WRKSRC}/doc/obfs4proxy.1 ${STAGEDIR}${PREFIX}/man/man1

.include <bsd.port.mk>