Commit a75bff11 authored by vanilla's avatar vanilla
Browse files

Add fabio 1.2.1, zero-conf load balancing HTTP(S) router managed by

Consul.

PR:		210540
Submitted by:	stl@ossuary.net
parent 4605820b
......@@ -154,6 +154,7 @@
SUBDIR += erwn
SUBDIR += eventum
SUBDIR += extjs
SUBDIR += fabio
SUBDIR += fancybox
SUBDIR += faup
SUBDIR += fcgi
......
# $FreeBSD$
PORTNAME= fabio
PORTVERSION= 1.2.1
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:DEFAULT
GH_PROJECT= fabio
USE_RC_SUBR= fabio
USERS= nobody
GROUPS= nobody
do-build:
@${MKDIR} ${WRKSRC}/src/github.com/eBay/fabio
.for src in .gitignore .travis.yml CHANGELOG.md Dockerfile LICENSE Makefile \
README.md Vagrantfile admin build cert config demo exit fabio.png \
fabio.properties listen.go listen_test.go main.go metrics proxy \
registry route routes.txt vendor
@${MV} ${WRKSRC}/${src} \
${WRKSRC}/src/github.com/eBay/fabio
.endfor
@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>
TIMESTAMP = 1473153824
SHA256 (eBay-fabio-v1.2.1_GH0.tar.gz) = aaac0db2ca606f1029d6fab9364f06850de620d1b73fe8bd459b524ed739f780
SIZE (eBay-fabio-v1.2.1_GH0.tar.gz) = 368826
#!/bin/sh
#
# PROVIDE: fabio
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# fabio_enable (bool): Set to NO by default.
# Set it to YES to enable fabio.
# fabio_user (user): Set user to run fabio.
# Default is "nobody".
# fabio_group (group): Set group to run fabio.
# Default is "nobody".
. /etc/rc.subr
name=fabio
rcvar=fabio_enable
load_rc_config $name
: ${fabio_enable:="NO"}
: ${fabio_user:="nobody"}
: ${fabio_group:="nobody"}
pidfile=/var/run/fabio.pid
procname="%%PREFIX%%/sbin/fabio"
command="/usr/sbin/daemon"
command_args="-f -p ${pidfile} ${procname} -cfg %%PREFIX%%/etc/fabio.properties"
start_precmd=fabio_startprecmd
fabio_startprecmd()
{
if [ ! -e ${pidfile} ]; then
install -o ${fabio_user} -g ${fabio_group} /dev/null ${pidfile};
fi
}
run_rc_command "$1"
A fast, modern, zero-conf load balancing HTTP(S) router for deploying
microservices managed by consul.
https://github.com/eBay/fabio
@sample etc/fabio.properties.sample
sbin/fabio
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment