blob: ba0fb8e72a9af68606078ceed812a81437b04285 (
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
|
# $FreeBSD$
PORTNAME= traefik
PORTVERSION= 1.4.4
DISTVERSIONPREFIX= v
CATEGORIES= net
MAINTAINER= riggs@FreeBSD.org
COMMENT= High availability reverse proxy and load balancer
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
USES= go
USE_GITHUB= yes
GH_ACCOUNT= containous
GH_SUBDIR= src/github.com/containous/traefik
GH_TUPLE= jteeuwen:go-bindata:a0ff256:gobindata/src/github.com/jteeuwen/go-bindata
USE_RC_SUBR= traefik
USERS= traefik
GROUPS= traefik
PLIST_FILES= bin/traefik \
"@sample etc/traefik.toml.sample"
do-build:
@cd ${WRKSRC}/src/github.com/jteeuwen/go-bindata/go-bindata; \
${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x
@cd ${WRKSRC}/src/github.com/containous/traefik; \
${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go generate && \
${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x ./cmd/traefik
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/containous/traefik/traefik ${STAGEDIR}${PREFIX}/bin/traefik
${INSTALL_DATA} ${WRKSRC}/src/github.com/containous/traefik/traefik.sample.toml ${STAGEDIR}${PREFIX}/etc/traefik.toml.sample
.include <bsd.port.mk>
|