From owner-svn-ports-head@freebsd.org Wed Sep 14 04:07:01 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F0E24BD8071; Wed, 14 Sep 2016 04:07:00 +0000 (UTC) (envelope-from vanilla@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A986C9EA; Wed, 14 Sep 2016 04:07:00 +0000 (UTC) (envelope-from vanilla@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u8E46x3f019352; Wed, 14 Sep 2016 04:06:59 GMT (envelope-from vanilla@FreeBSD.org) Received: (from vanilla@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u8E46xcm019346; Wed, 14 Sep 2016 04:06:59 GMT (envelope-from vanilla@FreeBSD.org) Message-Id: <201609140406.u8E46xcm019346@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: vanilla set sender to vanilla@FreeBSD.org using -f From: "Vanilla I. Shu" Date: Wed, 14 Sep 2016 04:06:59 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2016 04:07:01 -0000 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 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