aboutsummaryrefslogtreecommitdiff
path: root/www/fabio/Makefile
blob: a4aa9080d6ffd3cec02f16f82ed1e90e033ef58b (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
# $FreeBSD$

PORTNAME=	fabio
PORTVERSION=	1.5.0
DISTVERSIONPREFIX=	v
CATEGORIES=	www

MAINTAINER=	stl@ossuary.net
COMMENT=	Zero-conf load balancing HTTP(S) router managed by Consul

LICENSE=	MIT

USES=		go
USE_GITHUB=	yes
GH_ACCOUNT=	fabiolb
GH_PROJECT=	fabio
GH_SUBDIR=	src/github.com/fabiolb/fabio

USE_RC_SUBR=	fabio

do-build:
	@cd ${WRKSRC}/src/github.com/fabiolb/fabio; \
	${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x \
		-ldflags "-X main.GitDescribe=v${PORTVERSION}" -o bin/fabio

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/fabiolb/fabio/bin/fabio \
		${STAGEDIR}${PREFIX}/sbin/fabio
	${INSTALL_DATA} ${WRKSRC}/src/github.com/fabiolb/fabio/fabio.properties \
		${STAGEDIR}${PREFIX}/etc/fabio.properties.sample

.include <bsd.port.mk>