pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

nng: import version 1.4.0



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Fri Mar 12 01:31:01 2021 +0100
Changeset:	25b4f972fd15e54275442c4abb5c2c8f51017c99

Modified Files:
	Makefile
Added Files:
	nng/DESCR
	nng/Makefile
	nng/PLIST
	nng/distinfo
	nng/patches/patch-src_platform_posix_posix__thread.c

Log Message:
nng: import version 1.4.0

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.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=25b4f972fd15e54275442c4abb5c2c8f51017c99

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                           |  1 +
 nng/DESCR                                          | 11 ++++++
 nng/Makefile                                       | 20 +++++++++++
 nng/PLIST                                          | 41 ++++++++++++++++++++++
 nng/distinfo                                       |  7 ++++
 .../patch-src_platform_posix_posix__thread.c       | 19 ++++++++++
 6 files changed, 99 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index a995124e74..93d43c5e85 100644
--- a/Makefile
+++ b/Makefile
@@ -2500,6 +2500,7 @@ SUBDIR+=	nix
 SUBDIR+=	nlohmann-json
 SUBDIR+=	nlopt
 SUBDIR+=	nltk_data
+SUBDIR+=	nng
 SUBDIR+=	nnrpd
 SUBDIR+=	nodau
 SUBDIR+=	nodm
diff --git a/nng/DESCR b/nng/DESCR
new file mode 100644
index 0000000000..fc592c1112
--- /dev/null
+++ b/nng/DESCR
@@ -0,0 +1,11 @@
+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.
diff --git a/nng/Makefile b/nng/Makefile
new file mode 100644
index 0000000000..d1a552a347
--- /dev/null
+++ b/nng/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	nng
+GITHUB_TAG=	v1.4.0
+DISTNAME=	v1.4.0
+PKGNAME=	${GITHUB_PROJECT}-${DISTNAME:S,^v,,}
+CATEGORIES=	net
+MASTER_SITES=	${MASTER_SITE_GITHUB:=nanomsg/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://nng.nanomsg.org/
+COMMENT=	Light-weight brokerless messaging
+LICENSE=	mit
+
+WRKSRC=		${WRKDIR}/nng-1.4.0
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/nng/PLIST b/nng/PLIST
new file mode 100644
index 0000000000..7c584e0706
--- /dev/null
+++ b/nng/PLIST
@@ -0,0 +1,41 @@
+@comment $NetBSD$
+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/engine.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/tls/tls.h
+include/nng/transport/ws/websocket.h
+include/nng/transport/zerotier/zerotier.h
+lib/cmake/nng/nng-config-version.cmake
+lib/cmake/nng/nng-config.cmake
+lib/cmake/nng/nng-targets-noconfig.cmake
+lib/cmake/nng/nng-targets.cmake
+lib/libnng.a
diff --git a/nng/distinfo b/nng/distinfo
new file mode 100644
index 0000000000..a9fc35bc66
--- /dev/null
+++ b/nng/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (nng/v1.4.0.tar.gz) = d1c94aac6d46d9743e0c5693b8caade211860622
+RMD160 (nng/v1.4.0.tar.gz) = 2022db8af9990f2bdb62c7366cb8e30627173aa1
+SHA512 (nng/v1.4.0.tar.gz) = f573facbb5feee250d674e20d0d02dcf505b4c5c7b66f008c13f0c6d8864f2d8450cb36ae74772ac09944936aef4a06544e69eb6484bfc2856cc9f91c6aee2c2
+Size (nng/v1.4.0.tar.gz) = 710306 bytes
+SHA1 (patch-src_platform_posix_posix__thread.c) = c54d183a7e6329550e4246bc764f1d2528669338
diff --git a/nng/patches/patch-src_platform_posix_posix__thread.c b/nng/patches/patch-src_platform_posix_posix__thread.c
new file mode 100644
index 0000000000..3a2c92dd08
--- /dev/null
+++ b/nng/patches/patch-src_platform_posix_posix__thread.c
@@ -0,0 +1,19 @@
+$NetBSD$
+
+Build fix for NetBSD
+
+--- src/platform/posix/posix_thread.c.orig	2021-02-08 01:38:21.000000000 +0000
++++ src/platform/posix/posix_thread.c
+@@ -262,6 +262,12 @@ nni_plat_thr_set_name(nni_plat_thr *thr,
+ 	if ((thr == NULL) || (pthread_self() == thr->tid)) {
+         	pthread_setname_np(name);
+ 	}
++#elif defined(__NetBSD__)
++	if (thr == NULL) {
++		pthread_setname_np(pthread_self(), "%s", name);
++	} else {
++		pthread_setname_np(thr->tid, "%s", name);
++	}
+ #else
+ 	if (thr == NULL) {
+ 		pthread_setname_np(pthread_self(), name);


Home | Main Index | Thread Index | Old Index