blob: bc056daa6cb4d7e3bafa4550a6b2211785d6ed52 (
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
|
PORTNAME?= toxiproxy-server
DISTVERSIONPREFIX= v
DISTVERSION= 2.12.0
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>
|