blob: 699a76f822c77b3d5a588007d1687e24d8f5a1a5 (
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
 | PORTNAME?=	toxiproxy-server
DISTVERSIONPREFIX=	v
DISTVERSION=	2.12.0
PORTREVISION=	4
CATEGORIES=	net
MAINTAINER=	dtxdf@FreeBSD.org
COMMENT?=	TCP proxy to simulate network and system conditions (server)
WWW=		https://github.com/shopify/toxiproxy
LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE
USES=		go:modules
USE_GITHUB=	yes
GH_ACCOUNT=	shopify
GH_PROJECT=	toxiproxy
.if ${PORTNAME} == toxiproxy-server
USE_RC_SUBR=	${PORTNAME}
.endif
GO_MOD_DIST=	github
GO_MODULE=	github.com/shopify/toxiproxy
GO_TARGET?=	./cmd/server:${PORTNAME}
GO_BUILDFLAGS=	-ldflags "\
			-X 'github.com/Shopify/toxiproxy/v2.Version=${DISTVERSION}'"
PLIST_FILES=	bin/${PORTNAME}
.include <bsd.port.mk>
 |