Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Aug 2016 02:24:43 +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: r420044 - in head/net/nats: . files
Message-ID:  <201608110224.u7B2OhVb061031@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vanilla
Date: Thu Aug 11 02:24:43 2016
New Revision: 420044
URL: https://svnweb.freebsd.org/changeset/ports/420044

Log:
  1: Update to 0.9.2.
  2: Add rc file.
  
  PR:		211720, 210632
  Submitted by:	olgeni@ [1], vivek at khera.org [2]

Added:
  head/net/nats/files/
  head/net/nats/files/gnatsd.sh.in   (contents, props changed)
Modified:
  head/net/nats/Makefile
  head/net/nats/distinfo

Modified: head/net/nats/Makefile
==============================================================================
--- head/net/nats/Makefile	Thu Aug 11 02:13:04 2016	(r420043)
+++ head/net/nats/Makefile	Thu Aug 11 02:24:43 2016	(r420044)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	nats
-PORTVERSION=	0.8.1
+PORTVERSION=	0.9.2
 DISTVERSIONPREFIX=	v
 CATEGORIES=	net
 
@@ -18,4 +18,6 @@ GH_ACCOUNT=	nats-io
 GH_PROJECT=	gnatsd
 PLIST_FILES=	bin/gnatsd
 
+USE_RC_SUBR=	gnatsd.sh
+
 .include <bsd.port.mk>

Modified: head/net/nats/distinfo
==============================================================================
--- head/net/nats/distinfo	Thu Aug 11 02:13:04 2016	(r420043)
+++ head/net/nats/distinfo	Thu Aug 11 02:24:43 2016	(r420044)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1465564138
-SHA256 (nats-io-gnatsd-v0.8.1_GH0.tar.gz) = d2040c47b242ccff9703bca4162ee6c6d3e7163e6af0441704680b2c19599ac0
-SIZE (nats-io-gnatsd-v0.8.1_GH0.tar.gz) = 200211
+TIMESTAMP = 1470823267
+SHA256 (nats-io-gnatsd-v0.9.2_GH0.tar.gz) = 307a9cc8e1cd460865c0c9278ee64120711f3169c9c5bc22e08fadd5884a5201
+SIZE (nats-io-gnatsd-v0.9.2_GH0.tar.gz) = 210607

Added: head/net/nats/files/gnatsd.sh.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/nats/files/gnatsd.sh.in	Thu Aug 11 02:24:43 2016	(r420044)
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# PROVIDE: gnatsd
+# REQUIRE: DAEMON
+#
+# Add the following lines to /etc/rc.conf to run NATS:
+#
+# gnatsd_enable (bool):		Set it to "YES" to enable gnatsd server.
+#				Default is "NO".
+# gnatsd_username:		User name to run as. default "nobody"
+# gnatsd_options:		Options to pass gnatsd server
+#
+
+. /etc/rc.subr
+
+name="gnatsd"
+rcvar=`set_rcvar`
+
+: ${gnatsd_enable="NO"}
+: ${gnatsd_username="nobody"}
+: ${gnatsd_options="-m 8222 -s"}
+
+command=/usr/sbin/daemon
+procname=%%PREFIX%%/bin/gnatsd
+command_args="-u ${gnatsd_username} ${procname} ${gnatsd_options}"
+
+load_rc_config ${name}
+
+run_rc_command "$1"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608110224.u7B2OhVb061031>