From 779baa30e4dc6d02d296ab822767128e4017b51a Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Thu, 19 Jul 2018 19:45:05 +0000 Subject: [PATCH] net/nng: create port NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a lightweight, broker-less library, offering a simple API to solve common recurring messaging problems, such as publish/subscribe, RPC-style request/reply, or service discovery. The API frees the programmer from worrying about details like connection management, retries, and other common considerations, so that they can focus on the application instead of the plumbing. NNG is implemented in C, requiring only C99 and CMake to build. It can be built as a shared or a static library, and is readily embeddable. It is also designed to be easy to port to new platforms if your platform is not already supported. WWW: https://nanomsg.github.io/nng/ --- net/Makefile | 1 + net/nng/Makefile | 21 +++++++++++++++++++++ net/nng/distinfo | 3 +++ net/nng/pkg-descr | 13 +++++++++++++ net/nng/pkg-plist | 37 +++++++++++++++++++++++++++++++++++++ 5 files changed, 75 insertions(+) create mode 100644 net/nng/Makefile create mode 100644 net/nng/distinfo create mode 100644 net/nng/pkg-descr create mode 100644 net/nng/pkg-plist diff --git a/net/Makefile b/net/Makefile index dd8ed1d40aa3..2844a365031b 100644 --- a/net/Makefile +++ b/net/Makefile @@ -532,6 +532,7 @@ SUBDIR += nload SUBDIR += nmsg SUBDIR += nncp + SUBDIR += nng SUBDIR += nocatsplash SUBDIR += norm SUBDIR += nph diff --git a/net/nng/Makefile b/net/nng/Makefile new file mode 100644 index 000000000000..ced23fd0ccbd --- /dev/null +++ b/net/nng/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PORTNAME= nng +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.1 +CATEGORIES= net + +MAINTAINER= swills@FreeBSD.org +COMMENT= Lightweight, broker-less messaging + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= cmake:outsource +USE_GITHUB= yes +GH_ACCOUNT= nanomsg + +CMAKE_ARGS+= -DBUILD_SHARED_LIBS:BOOL=ON +USE_LDCONFIG= yes + +.include diff --git a/net/nng/distinfo b/net/nng/distinfo new file mode 100644 index 000000000000..b79771d776dc --- /dev/null +++ b/net/nng/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1532027540 +SHA256 (nanomsg-nng-v1.0.1_GH0.tar.gz) = c08ef670d472eb6fd50a2f863c6a4432b2963addd47f35d54cfb9fd7c543895b +SIZE (nanomsg-nng-v1.0.1_GH0.tar.gz) = 541020 diff --git a/net/nng/pkg-descr b/net/nng/pkg-descr new file mode 100644 index 000000000000..721b8ec5e341 --- /dev/null +++ b/net/nng/pkg-descr @@ -0,0 +1,13 @@ +NNG, like its predecessors nanomsg (and to some extent ZeroMQ), is a +lightweight, broker-less library, offering a simple API to solve common +recurring messaging problems, such as publish/subscribe, RPC-style +request/reply, or service discovery. The API frees the programmer from worrying +about details like connection management, retries, and other common +considerations, so that they can focus on the application instead of the +plumbing. + +NNG is implemented in C, requiring only C99 and CMake to build. It can be built +as a shared or a static library, and is readily embeddable. It is also designed +to be easy to port to new platforms if your platform is not already supported. + +WWW: https://nanomsg.github.io/nng/ diff --git a/net/nng/pkg-plist b/net/nng/pkg-plist new file mode 100644 index 000000000000..a59d520dd014 --- /dev/null +++ b/net/nng/pkg-plist @@ -0,0 +1,37 @@ +bin/nngcat +include/nng/compat/nanomsg/bus.h +include/nng/compat/nanomsg/inproc.h +include/nng/compat/nanomsg/ipc.h +include/nng/compat/nanomsg/nn.h +include/nng/compat/nanomsg/pair.h +include/nng/compat/nanomsg/pipeline.h +include/nng/compat/nanomsg/pubsub.h +include/nng/compat/nanomsg/reqrep.h +include/nng/compat/nanomsg/survey.h +include/nng/compat/nanomsg/tcp.h +include/nng/compat/nanomsg/ws.h +include/nng/nng.h +include/nng/protocol/bus0/bus.h +include/nng/protocol/pair0/pair.h +include/nng/protocol/pair1/pair.h +include/nng/protocol/pipeline0/pull.h +include/nng/protocol/pipeline0/push.h +include/nng/protocol/pubsub0/pub.h +include/nng/protocol/pubsub0/sub.h +include/nng/protocol/reqrep0/rep.h +include/nng/protocol/reqrep0/req.h +include/nng/protocol/survey0/respond.h +include/nng/protocol/survey0/survey.h +include/nng/supplemental/http/http.h +include/nng/supplemental/tls/tls.h +include/nng/supplemental/util/options.h +include/nng/supplemental/util/platform.h +include/nng/transport/inproc/inproc.h +include/nng/transport/ipc/ipc.h +include/nng/transport/tcp/tcp.h +include/nng/transport/ws/websocket.h +lib/cmake/nng/nng-config-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/nng/nng-config.cmake +lib/libnng.so +lib/libnng.so.1 +lib/libnng.so.1.0.0