Add net/nats-streaming-server, a reliable streaming platform built on NATS.
It does not depend on net/nats because it embeds its own NATS server.
This commit is contained in:
parent
139d2d284d
commit
ab02bab47e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=422192
@ -422,6 +422,7 @@
|
||||
SUBDIR += nanomsg
|
||||
SUBDIR += nast
|
||||
SUBDIR += nats
|
||||
SUBDIR += nats-streaming-server
|
||||
SUBDIR += nats-top
|
||||
SUBDIR += nbd-server
|
||||
SUBDIR += nc
|
||||
|
27
net/nats-streaming-server/Makefile
Normal file
27
net/nats-streaming-server/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= nats-streaming-server
|
||||
PORTVERSION= 0.2.2
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= net
|
||||
|
||||
MAINTAINER= olgeni@FreeBSD.org
|
||||
COMMENT= Streaming system server for NATS
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= go
|
||||
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= nats-io
|
||||
|
||||
USE_RC_SUBR= nats_streaming.sh
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc
|
||||
${INSTALL_SCRIPT} ${FILESDIR}/nats_streaming.conf ${STAGEDIR}${PREFIX}/etc/nats_streaming.conf.sample
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/nats-streaming-server/distinfo
Normal file
3
net/nats-streaming-server/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1472819350
|
||||
SHA256 (nats-io-nats-streaming-server-v0.2.2_GH0.tar.gz) = 741d03db1f78c348856476b0b27f39c391a6695aa6c199997a517e6f8c0e58f1
|
||||
SIZE (nats-io-nats-streaming-server-v0.2.2_GH0.tar.gz) = 360659
|
3
net/nats-streaming-server/files/nats_streaming.conf
Normal file
3
net/nats-streaming-server/files/nats_streaming.conf
Normal file
@ -0,0 +1,3 @@
|
||||
listen: localhost:4222 # host/port to listen for client connections
|
||||
http: localhost:8222 # HTTP monitoring port
|
||||
syslog: true
|
28
net/nats-streaming-server/files/nats_streaming.sh.in
Normal file
28
net/nats-streaming-server/files/nats_streaming.sh.in
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# PROVIDE: nats_streaming
|
||||
# REQUIRE: DAEMON
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf to run the NATS streaming server:
|
||||
#
|
||||
# nats_streaming_enable (bool): Set it to "YES" to enable nats_streaming server.
|
||||
# Default is "NO".
|
||||
# nats_streaming_username: User name to run as. default "nobody"
|
||||
# nats_streaming_options: Options to pass nats_streaming server
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="nats_streaming"
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
load_rc_config ${name}
|
||||
: ${nats_streaming_enable="NO"}
|
||||
: ${nats_streaming_username="nobody"}
|
||||
: ${nats_streaming_options="-c %%PREFIX%%/etc/nats_streaming.conf"}
|
||||
|
||||
command=/usr/sbin/daemon
|
||||
procname=%%PREFIX%%/bin/nats-streaming-server
|
||||
command_args="-u ${nats_streaming_username} ${procname} ${nats_streaming_options}"
|
||||
|
||||
run_rc_command "$1"
|
5
net/nats-streaming-server/pkg-descr
Normal file
5
net/nats-streaming-server/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
NATS is an open-source, cloud-native messaging system. NATS Streaming
|
||||
is an extremely performant, lightweight reliable streaming platform
|
||||
built on NATS.
|
||||
|
||||
WWW: https://nats.io/
|
3
net/nats-streaming-server/pkg-plist
Normal file
3
net/nats-streaming-server/pkg-plist
Normal file
@ -0,0 +1,3 @@
|
||||
bin/nats-streaming-server
|
||||
@sample etc/nats_streaming.conf.sample
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.md
|
Loading…
Reference in New Issue
Block a user