Date: Wed, 18 Jan 2017 20:35:09 +0000 (UTC) From: Kris Moore <kmoore@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r431827 - in head/net: . nsq nsq/files Message-ID: <201701182035.v0IKZ97N025892@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kmoore Date: Wed Jan 18 20:35:09 2017 New Revision: 431827 URL: https://svnweb.freebsd.org/changeset/ports/431827 Log: NSQ is a realtime distributed messaging platform designed to operate at scale, handling billions of messages per day. WWW: https://nsq.io PR: 216188 Submitted by: John Hixson <jhixson@gmail.com> Added: head/net/nsq/ head/net/nsq/Makefile (contents, props changed) head/net/nsq/distinfo (contents, props changed) head/net/nsq/files/ head/net/nsq/files/nsqadmin.in (contents, props changed) head/net/nsq/files/nsqd.in (contents, props changed) head/net/nsq/files/nsqlookupd.in (contents, props changed) head/net/nsq/pkg-descr (contents, props changed) head/net/nsq/pkg-plist (contents, props changed) Modified: head/net/Makefile Modified: head/net/Makefile ============================================================================== --- head/net/Makefile Wed Jan 18 20:28:04 2017 (r431826) +++ head/net/Makefile Wed Jan 18 20:35:09 2017 (r431827) @@ -466,6 +466,7 @@ SUBDIR += nos-ttb SUBDIR += nph SUBDIR += ns3 + SUBDIR += nsq SUBDIR += nss-pam-ldapd SUBDIR += nss-pam-ldapd-sasl SUBDIR += nss_ldap Added: head/net/nsq/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nsq/Makefile Wed Jan 18 20:35:09 2017 (r431827) @@ -0,0 +1,63 @@ +# $FreeBSD$ + +PORTNAME= nsq +PORTVERSION= 0.3.8 +DISTVERSIONPREFIX= v +CATEGORIES= net + +MAINTAINER= jhixson@gmail.com +COMMENT= Realtime distributed messaging platform + +LICENSE= MIT + +BUILD_DEPENDS= go>=1.7:lang/go + +ONLY_FOR_ARCHS= amd64 + +USE_RC_SUBR= nsqd nsqlookupd nsqadmin + +USES= compiler go + +USE_GITHUB= yes +GH_ACCOUNT= nsqio +GH_SUBDIR= src/github.com/nsqio/nsq +GH_TUPLE= BurntSushi:toml:v0.2.0:toml/src/github.com/BurntSushi/toml \ + judwhite:go-svc:v1.0.0:go_svc/src/github.com/judwhite/go-svc \ + mreiferson:go-options:77551d2:go_options/src/github.com/mreiferson/go-options \ + mreiferson:go-snappystream:v0.2.3:go_snappystream/src/github.com/mreiferson/go-snappystream\ + bitly:go-hostpool:d0e59c2:go_hostpool/src/github.com/bitly/go-hostpool \ + bitly:go-simplejson:v0.5.0:go_simplejson/src/github.com/bitly/go-simplejson\ + bitly:timer_metrics:afad179:timer_metrics/src/github.com/bitly/timer_metrics \ + blang:semver:v3.3.0:semver/src/github.com/blang/semver \ + bmizerany:perks:d9a9656:perks/src/github.com/bmizerany/perks \ + julienschmidt:httprouter:8a45e95:httprouter/src/github.com/julienschmidt/httprouter \ + nsqio:go-nsq:v1.0.6:go_nsq/src/github.com/nsqio/go-nsq + +TARGETS= nsqd nsqlookupd nsqadmin nsq_pubsub nsq_to_nsq nsq_to_file \ + nsq_to_http nsq_tail nsq_stat to_nsq + +STRIP= + +.for _t in ${TARGETS} +build-${_t}: + cd ${GO_WRKSRC}/apps/${_t}; \ + ${SETENV} ${BUILD_ENV} GOPATH=${WRKSRC} go build \ + -ldflags "-X main.GitDescribe=${DISTVERSIONFULL}" -o bin/${_t} +install-${_t}: + ${INSTALL_PROGRAM} ${GO_WRKSRC}/apps/${_t}/bin/${_t} \ + ${STAGEDIR}${PREFIX}/bin/${_t} + +build_targets+= build-${_t} +install_targets+= install-${_t} +.endfor + +do-build: ${build_targets} +do-install: ${install_targets} + +.include <bsd.port.pre.mk> + +.if ${COMPILER_TYPE} == clang +BUILD_ENV= CC=clang +.endif + +.include <bsd.port.post.mk> Added: head/net/nsq/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nsq/distinfo Wed Jan 18 20:35:09 2017 (r431827) @@ -0,0 +1,25 @@ +TIMESTAMP = 1484662254 +SHA256 (nsqio-nsq-v0.3.8_GH0.tar.gz) = d9107cdfe218523a74ee801caaa97968becb4b82dae7085dbb52d05c25028ff3 +SIZE (nsqio-nsq-v0.3.8_GH0.tar.gz) = 765477 +SHA256 (BurntSushi-toml-v0.2.0_GH0.tar.gz) = 4d496e400019fd050ff569952befb464f03ed586cb475640bdc206fe5c2b75cc +SIZE (BurntSushi-toml-v0.2.0_GH0.tar.gz) = 38304 +SHA256 (judwhite-go-svc-v1.0.0_GH0.tar.gz) = f37c4557ed506d47e3532eb8dec1b4e7834c600127f246fd1c153353ffa44ce9 +SIZE (judwhite-go-svc-v1.0.0_GH0.tar.gz) = 69448 +SHA256 (mreiferson-go-options-77551d2_GH0.tar.gz) = 2c2502f3a803ccd8c24cca770276bc44a8f8e8bc3902adf807127904bd1e333e +SIZE (mreiferson-go-options-77551d2_GH0.tar.gz) = 5154 +SHA256 (mreiferson-go-snappystream-v0.2.3_GH0.tar.gz) = 29c0a5bb09ef313680a7cc1ff5be0654426ec1842c829ffdeba767dbc6c80dd5 +SIZE (mreiferson-go-snappystream-v0.2.3_GH0.tar.gz) = 30789 +SHA256 (bitly-go-hostpool-d0e59c2_GH0.tar.gz) = 1439213bab2a32731d948f37f126bdfd9d21fce32417b0b00deceb6000044c9f +SIZE (bitly-go-hostpool-d0e59c2_GH0.tar.gz) = 6784 +SHA256 (bitly-go-simplejson-v0.5.0_GH0.tar.gz) = 44196c95263e74277372319e5a6cb7f53b29ef7ddab8c7fed6ce6fc80144d465 +SIZE (bitly-go-simplejson-v0.5.0_GH0.tar.gz) = 5994 +SHA256 (bitly-timer_metrics-afad179_GH0.tar.gz) = bb98083aebc39c921f090b638d9503a2378a394a949b3270cec61c19968cfa72 +SIZE (bitly-timer_metrics-afad179_GH0.tar.gz) = 1814 +SHA256 (blang-semver-v3.3.0_GH0.tar.gz) = 537384f50c20611a58cc105dd75051a62491bf25d2efefb4b341a8f3f106d490 +SIZE (blang-semver-v3.3.0_GH0.tar.gz) = 12525 +SHA256 (bmizerany-perks-d9a9656_GH0.tar.gz) = bdd948ab1fdd77fa75f91562dd97dbd5e2d05232bf786cf68772e82c8956b65f +SIZE (bmizerany-perks-d9a9656_GH0.tar.gz) = 9619 +SHA256 (julienschmidt-httprouter-8a45e95_GH0.tar.gz) = 981709f3681a5db5c931de1c75bdf980e3cd0584765e9b2b5f5bb773a8786818 +SIZE (julienschmidt-httprouter-8a45e95_GH0.tar.gz) = 21980 +SHA256 (nsqio-go-nsq-v1.0.6_GH0.tar.gz) = 2db9123536ee742c3e8898faf966266a8862279f66f08cc8e6bae7c7acd86347 +SIZE (nsqio-go-nsq-v1.0.6_GH0.tar.gz) = 44626 Added: head/net/nsq/files/nsqadmin.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nsq/files/nsqadmin.in Wed Jan 18 20:35:09 2017 (r431827) @@ -0,0 +1,39 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: nsqadmin +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable nsqadmin: +# nsqadmin_enable="YES" +# nsqadmin_args="<set as needed>" + + +. /etc/rc.subr + +name=nsqadmin +rcvar=nsqadmin_enable + +load_rc_config $name + +: ${nsqadmin_enable:="NO"} +: ${nsqadmin_args:=""} + +pidfile=/var/run/nsqadmin.pid +procname="%%PREFIX%%/bin/nsqadmin" +command="/usr/sbin/daemon" +command_args="-f -p ${pidfile} ${procname} ${nsqadmin_args}" + +start_precmd="nsqadmin_prestart" + +nsqadmin_prestart() +{ + if [ ! -d /var/db/nsq/nsqadmin ] ; then + mkdir -p /var/db/nsq/nsqadmin + fi + cd /var/db/nsq/nsqadmin +} + +run_rc_command "$1" Added: head/net/nsq/files/nsqd.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nsq/files/nsqd.in Wed Jan 18 20:35:09 2017 (r431827) @@ -0,0 +1,39 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: nsqd +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable nsqd: +# nsqd_enable="YES" +# nsqd_args="<set as needed>" + + +. /etc/rc.subr + +name=nsqd +rcvar=nsqd_enable + +load_rc_config $name + +: ${nsqd_enable:="NO"} +: ${nsqd_args:=""} + +pidfile=/var/run/nsqd.pid +procname="%%PREFIX%%/bin/nsqd" +command="/usr/sbin/daemon" +command_args="-f -p ${pidfile} ${procname} ${nsqd_args}" + +start_precmd="nsqd_prestart" + +nsqd_prestart() +{ + if [ ! -d /var/db/nsq/nsqd ] ; then + mkdir -p /var/db/nsq/nsqd + fi + cd /var/db/nsq/nsqd +} + +run_rc_command "$1" Added: head/net/nsq/files/nsqlookupd.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nsq/files/nsqlookupd.in Wed Jan 18 20:35:09 2017 (r431827) @@ -0,0 +1,39 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: nsqlookupd +# REQUIRE: LOGIN +# KEYWORD: shutdown + +# Add the following lines to /etc/rc.conf to enable nsqlookupd: +# nsqlookupd_enable="YES" +# nsqlookupd_args="<set as needed>" + + +. /etc/rc.subr + +name=nsqlookupd +rcvar=nsqlookupd_enable + +load_rc_config $name + +: ${nsqlookupd_enable:="NO"} +: ${nsqlookupd_args:=""} + +pidfile=/var/run/nsqlookupd.pid +procname="%%PREFIX%%/bin/nsqlookupd" +command="/usr/sbin/daemon" +command_args="-f -p ${pidfile} ${procname} ${nsqlookupd_args}" + +start_precmd="nsqlookupd_prestart" + +nsqlookupd_prestart() +{ + if [ ! -d /var/db/nsq/nsqlookupd ] ; then + mkdir -p /var/db/nsq/nsqlookupd + fi + cd /var/db/nsq/nsqlookupd +} + +run_rc_command "$1" Added: head/net/nsq/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nsq/pkg-descr Wed Jan 18 20:35:09 2017 (r431827) @@ -0,0 +1,4 @@ +NSQ is a realtime distributed messaging platform designed to operate at scale, +handling billions of messages per day. + +WWW: https://nsq.io Added: head/net/nsq/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/nsq/pkg-plist Wed Jan 18 20:35:09 2017 (r431827) @@ -0,0 +1,10 @@ +bin/%%GO_PKGNAME%%_pubsub +bin/%%GO_PKGNAME%%_stat +bin/%%GO_PKGNAME%%_tail +bin/%%GO_PKGNAME%%_to_file +bin/%%GO_PKGNAME%%_to_http +bin/%%GO_PKGNAME%%_to_%%GO_PKGNAME%% +bin/%%GO_PKGNAME%%admin +bin/%%GO_PKGNAME%%d +bin/%%GO_PKGNAME%%lookupd +bin/to_%%GO_PKGNAME%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701182035.v0IKZ97N025892>