From owner-svn-ports-head@freebsd.org Wed Jul 20 21:51:30 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 3FBCAB9F556 for ; Wed, 20 Jul 2016 21:51:30 +0000 (UTC) (envelope-from kris@ixsystems.com) Received: from barracuda.ixsystems.com (barracuda.ixsystems.com [12.229.62.30]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.ixsystems.com", Issuer "Go Daddy Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E0A4123E for ; Wed, 20 Jul 2016 21:51:29 +0000 (UTC) (envelope-from kris@ixsystems.com) X-ASG-Debug-ID: 1469051488-08ca0410fd15c450001-7kGxFj Received: from zimbra.ixsystems.com ([10.246.0.20]) by barracuda.ixsystems.com with ESMTP id TWSZEoaFh2f3VtPr (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 20 Jul 2016 14:51:28 -0700 (PDT) X-Barracuda-Envelope-From: kris@ixsystems.com X-Barracuda-RBL-Trusted-Forwarder: 10.246.0.20 X-ASG-Whitelist: Client Received: from localhost (localhost [127.0.0.1]) by zimbra.ixsystems.com (Postfix) with ESMTP id B44D6E208AA; Wed, 20 Jul 2016 14:51:28 -0700 (PDT) Received: from zimbra.ixsystems.com ([127.0.0.1]) by localhost (zimbra.ixsystems.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Cmx7sZlkWrMs; Wed, 20 Jul 2016 14:51:26 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.ixsystems.com (Postfix) with ESMTP id 0980AE20940; Wed, 20 Jul 2016 14:51:26 -0700 (PDT) X-Virus-Scanned: amavisd-new at ixsystems.com Received: from zimbra.ixsystems.com ([127.0.0.1]) by localhost (zimbra.ixsystems.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 4ZrqN2bY3NCc; Wed, 20 Jul 2016 14:51:25 -0700 (PDT) Received: from [172.20.0.6] (vpn.ixsystems.com [10.249.0.2]) by zimbra.ixsystems.com (Postfix) with ESMTPSA id 316A7E208BB; Wed, 20 Jul 2016 14:51:25 -0700 (PDT) Subject: Re: svn commit: r418850 - in head/sysutils: . consul-alerts consul-alerts/files To: Mathieu Arnold , Kris Moore , ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org, John Hixson X-ASG-Orig-Subj: Re: svn commit: r418850 - in head/sysutils: . consul-alerts consul-alerts/files References: <201607201953.u6KJrEHl077436@repo.freebsd.org> From: Kris Moore Message-ID: <5eb32bca-0cdb-dbd8-b171-25fde2a3c7bf@ixsystems.com> Date: Wed, 20 Jul 2016 17:51:23 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Barracuda-Connect: UNKNOWN[10.246.0.20] X-Barracuda-Start-Time: 1469051488 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://10.246.0.26:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at ixsystems.com X-Barracuda-BRTS-Status: 1 X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 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, 20 Jul 2016 21:51:30 -0000 On 07/20/2016 17:47, Mathieu Arnold wrote: > +--On 20 juillet 2016 19:53:14 +0000 Kris Moore wrote: > | + > | +BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go > | + > | +post-patch: > | + @${MKDIR} ${WRKSRC}/src/github.com/AcalephStorage/consul-alerts > | +.for src in .buildkite .buildkite-release .gitignore .travis.yml \ > | + check-handler.go consul consul-alerts.go Dockerfile \ > | + event-handler.go Godeps health-handler.go leader-election.go \ > | + LICENSE Makefile notifier provision README.md send-notifs.go \ > | + Vagrantfile watchers.go > | + @${MV} ${WRKSRC}/${src} \ > | + ${WRKSRC}/src/github.com/AcalephStorage/consul-alerts > | +.endfor > | + > | +do-build: > | + @cd ${WRKSRC}/src/github.com/AcalephStorage/consul-alerts; \ > | + ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build -v -x \ > | + -ldflags "-X main.GitDescribe=v${PORTVERSION}" -o bin/consul-alerts > | + > | +do-install: > | + ${INSTALL_PROGRAM} > | ${WRKSRC}/src/github.com/AcalephStorage/consul-alerts/bin/consul-alerts > | ${STAGEDIR}${PREFIX}/bin/consul-alerts + > > Unless I'm mistaken, all this is done (if differently) when you USES=go. > > https://www.freebsd.org/doc/en/books/porters-handbook/uses-go.html > I think we copied how the original sysutils/consul did the go build. However if that is accurate it does sound a lot easier. We'll give that a whirl and see. Thanks for the heads up! -- Kris Moore iXsystems Enterprise Storage & Servers Driven By Open Source