mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-20 08:27:15 +00:00
9517dea434
PR: 218567 Submitted by: Scott Larson <stl@ossuary.net> (maintainer)
33 lines
751 B
Makefile
33 lines
751 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= fabio
|
|
PORTVERSION= 1.4.2
|
|
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= eBay
|
|
GH_PROJECT= fabio
|
|
GH_SUBDIR= src/github.com/eBay/fabio
|
|
|
|
USE_RC_SUBR= fabio
|
|
|
|
do-build:
|
|
@cd ${WRKSRC}/src/github.com/eBay/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/eBay/fabio/bin/fabio \
|
|
${STAGEDIR}${PREFIX}/sbin/fabio
|
|
${INSTALL_DATA} ${WRKSRC}/src/github.com/eBay/fabio/fabio.properties \
|
|
${STAGEDIR}${PREFIX}/etc/fabio.properties.sample
|
|
|
|
.include <bsd.port.mk>
|