Date: Wed, 14 Sep 2016 04:06:59 +0000 (UTC) From: "Vanilla I. Shu" <vanilla@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r422100 - in head/www: . fabio fabio/files Message-ID: <201609140406.u8E46xcm019346@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vanilla Date: Wed Sep 14 04:06:59 2016 New Revision: 422100 URL: https://svnweb.freebsd.org/changeset/ports/422100 Log: Add fabio 1.2.1, zero-conf load balancing HTTP(S) router managed by Consul. PR: 210540 Submitted by: stl@ossuary.net Added: head/www/fabio/ head/www/fabio/Makefile (contents, props changed) head/www/fabio/distinfo (contents, props changed) head/www/fabio/files/ head/www/fabio/files/fabio.in (contents, props changed) head/www/fabio/pkg-descr (contents, props changed) head/www/fabio/pkg-plist (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Wed Sep 14 03:37:08 2016 (r422099) +++ head/www/Makefile Wed Sep 14 04:06:59 2016 (r422100) @@ -154,6 +154,7 @@ SUBDIR += erwn SUBDIR += eventum SUBDIR += extjs + SUBDIR += fabio SUBDIR += fancybox SUBDIR += faup SUBDIR += fcgi Added: head/www/fabio/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/fabio/Makefile Wed Sep 14 04:06:59 2016 (r422100) @@ -0,0 +1,44 @@ +# $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> Added: head/www/fabio/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/fabio/distinfo Wed Sep 14 04:06:59 2016 (r422100) @@ -0,0 +1,3 @@ +TIMESTAMP = 1473153824 +SHA256 (eBay-fabio-v1.2.1_GH0.tar.gz) = aaac0db2ca606f1029d6fab9364f06850de620d1b73fe8bd459b524ed739f780 +SIZE (eBay-fabio-v1.2.1_GH0.tar.gz) = 368826 Added: head/www/fabio/files/fabio.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/fabio/files/fabio.in Wed Sep 14 04:06:59 2016 (r422100) @@ -0,0 +1,43 @@ +#!/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" Added: head/www/fabio/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/fabio/pkg-descr Wed Sep 14 04:06:59 2016 (r422100) @@ -0,0 +1,4 @@ +A fast, modern, zero-conf load balancing HTTP(S) router for deploying +microservices managed by consul. + +https://github.com/eBay/fabio Added: head/www/fabio/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/fabio/pkg-plist Wed Sep 14 04:06:59 2016 (r422100) @@ -0,0 +1,2 @@ +@sample etc/fabio.properties.sample +sbin/fabio
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609140406.u8E46xcm019346>