blob: 774c7a0af1e4675ffc5cf9ff1e0c4992e1981d6f (
plain)
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
|
PORTNAME= meek
DISTVERSION= 0.35.0
CATEGORIES= security
MASTER_SITES= https://gitweb.torproject.org/pluggable-transports/meek.git/snapshot/ \
https://gitweb.torproject.org/pluggable-transports/goptlib.git/snapshot/:goptlib
DISTFILES= ${PORTNAME}-${DISTVERSION}.tar.gz \
goptlib-${GOPTLIBVERSION}.tar.gz:goptlib
MAINTAINER= cs@FreeBSD.org
COMMENT= Pluggable transport proxy that relays through third-party server
LICENSE= CC0-1.0
LICENSE_FILE= ${WRKSRC}/COPYING
USES= go:modules
USE_GITHUB= nodefault
GOPTLIBVERSION= 0.7
GO_TARGET= ./meek-client \
./meek-server
GH_TUPLE= \
golang:crypto:4b2356b1ed79:golang_crypto/vendor/golang.org/x/crypto \
golang:net:ff2c4b7c35a0:golang_net/vendor/golang.org/x/net \
golang:sys:593003d681fa:golang_sys/vendor/golang.org/x/sys \
golang:text:v0.3.0:golang_text/vendor/golang.org/x/text \
refraction-networking:utls:43c36d3c1f57:refraction_networking_utls/vendor/github.com/refraction-networking/utls
PLIST_FILES= bin/meek-client \
bin/meek-server \
man/man1/meek-client.1.gz \
man/man1/meek-server.1.gz
SUB_FILES= pkg-message
post-patch:
@${MKDIR} ${WRKSRC}/vendor/git.torproject.org/pluggable-transports
@${LN} -s ${WRKDIR}/goptlib-${GOPTLIBVERSION} ${WRKSRC}/vendor/git.torproject.org/pluggable-transports/goptlib.git
do-test:
.for t in ${GO_TARGET}
cd ${GO_WRKSRC}; \
${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} test ${GO_BUILDFLAGS} ${t}
.endfor
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/meek-server.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/meek-client.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.mk>
|