pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/riemann-client Import riemann-client 1.9.1 as...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1d09c58452a8
branches:  trunk
changeset: 353786:1d09c58452a8
user:      fhajny <fhajny%pkgsrc.org@localhost>
date:      Thu Oct 13 11:03:13 2016 +0000

description:
Import riemann-client 1.9.1 as sysutils/riemann-client.

This is a C client library for the Riemann monitoring system,
providing a convenient and simple API, high test coverage and a
copyleft license, along with API and ABI stability.

diffstat:

 sysutils/riemann-client/DESCR                        |   3 +
 sysutils/riemann-client/Makefile                     |  25 +++++++++++++++
 sysutils/riemann-client/PLIST                        |  13 +++++++
 sysutils/riemann-client/buildlink3.mk                |  20 ++++++++++++
 sysutils/riemann-client/distinfo                     |   7 ++++
 sysutils/riemann-client/options.mk                   |  16 +++++++++
 sysutils/riemann-client/patches/patch-src_cmd-send.c |  33 ++++++++++++++++++++
 7 files changed, 117 insertions(+), 0 deletions(-)

diffs (145 lines):

diff -r 961f2c1ce46a -r 1d09c58452a8 sysutils/riemann-client/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/riemann-client/DESCR     Thu Oct 13 11:03:13 2016 +0000
@@ -0,0 +1,3 @@
+This is a C client library for the Riemann monitoring system,
+providing a convenient and simple API, high test coverage and a
+copyleft license, along with API and ABI stability.
diff -r 961f2c1ce46a -r 1d09c58452a8 sysutils/riemann-client/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/riemann-client/Makefile  Thu Oct 13 11:03:13 2016 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1 2016/10/13 11:03:13 fhajny Exp $
+
+DISTNAME=      riemann-c-client-1.9.1
+PKGNAME=       ${DISTNAME:S/c-//}
+CATEGORIES=    sysutils
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=algernon/}
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/algernon/riemann-c-client/
+COMMENT=       C client library for the Riemann monitoring system
+LICENSE=       gnu-lgpl-v3
+
+GITHUB_PROJECT=        riemann-c-client
+GITHUB_RELEASE=        ${DISTNAME}
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+USE_TOOLS+=    gmake pkg-config
+
+.include "options.mk"
+
+.include "../../devel/protobuf-c/buildlink3.mk"
+.include "../../textproc/json-c/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 961f2c1ce46a -r 1d09c58452a8 sysutils/riemann-client/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/riemann-client/PLIST     Thu Oct 13 11:03:13 2016 +0000
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2016/10/13 11:03:13 fhajny Exp $
+bin/riemann-client
+include/riemann/attribute.h
+include/riemann/client.h
+include/riemann/event.h
+include/riemann/message.h
+include/riemann/proto/riemann.pb-c.h
+include/riemann/query.h
+include/riemann/riemann-client.h
+include/riemann/simple.h
+lib/libriemann-client.la
+lib/pkgconfig/riemann-client.pc
+man/man1/riemann-client.1
diff -r 961f2c1ce46a -r 1d09c58452a8 sysutils/riemann-client/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/riemann-client/buildlink3.mk     Thu Oct 13 11:03:13 2016 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/10/13 11:03:13 fhajny Exp $
+
+BUILDLINK_TREE+=       riemann-client
+
+.if !defined(RIEMANN_CLIENT_BUILDLINK3_MK)
+RIEMANN_CLIENT_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.riemann-client+= riemann-client>=1.9.0
+BUILDLINK_PKGSRCDIR.riemann-client?=   ../../sysutils/riemann-client
+
+pkgbase := riemann-client
+.include "../../mk/pkg-build-options.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.riemann-client:Mtls)
+.  include "../../security/gnutls/buildlink3.mk"
+.endif
+
+.endif # RIEMANN_CLIENT_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -riemann-client
diff -r 961f2c1ce46a -r 1d09c58452a8 sysutils/riemann-client/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/riemann-client/distinfo  Thu Oct 13 11:03:13 2016 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2016/10/13 11:03:13 fhajny Exp $
+
+SHA1 (riemann-c-client-1.9.1.tar.xz) = 773c6e4ee6fcf58253811c39cb62a777ad0fc1f3
+RMD160 (riemann-c-client-1.9.1.tar.xz) = 706a9ccd629e8e845605e13af1d18d1824bb3e9f
+SHA512 (riemann-c-client-1.9.1.tar.xz) = 92e0adb00e828b0cce66363ec061bc33a87beba4092a6ca642bf0d91d85d85a1e7965753cbe3713a9a1001780da8108062bb80cf3fbea147feb6a924f036573b
+Size (riemann-c-client-1.9.1.tar.xz) = 282892 bytes
+SHA1 (patch-src_cmd-send.c) = a4fa24be0b4c88fd4586807a636d10ca4b3ae743
diff -r 961f2c1ce46a -r 1d09c58452a8 sysutils/riemann-client/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/riemann-client/options.mk        Thu Oct 13 11:03:13 2016 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2016/10/13 11:03:13 fhajny Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.riemann-client
+PKG_SUPPORTED_OPTIONS= tls
+PKG_SUGGESTED_OPTIONS+=        tls
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=           tls
+
+.if !empty(PKG_OPTIONS:Mtls)
+CONFIGURE_ARGS+=       --enable-tls
+.include "../../security/gnutls/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-tls
+.endif
diff -r 961f2c1ce46a -r 1d09c58452a8 sysutils/riemann-client/patches/patch-src_cmd-send.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/riemann-client/patches/patch-src_cmd-send.c      Thu Oct 13 11:03:13 2016 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-src_cmd-send.c,v 1.1 2016/10/13 11:03:13 fhajny Exp $
+
+stdin is special.
+
+--- src/cmd-send.c.orig        2016-04-25 16:50:45.000000000 +0000
++++ src/cmd-send.c
+@@ -138,7 +138,7 @@ client_send (int argc, char *argv[])
+     char *keyfn;
+     char *priorities;
+   } tls = {NULL, NULL, NULL, NULL};
+-  int stdin = 0;
++  int rie_stdin = 0;
+ 
+   event = riemann_event_new ();
+ 
+@@ -263,7 +263,7 @@ client_send (int argc, char *argv[])
+           break;
+ 
+         case '0':
+-          stdin = 1;
++          rie_stdin = 1;
+           break;
+ 
+         case '?':
+@@ -312,7 +312,7 @@ client_send (int argc, char *argv[])
+       goto end;
+     }
+ 
+-  if (stdin)
++  if (rie_stdin)
+     {
+       e = _send_continously (client_type, client, event);
+ 



Home | Main Index | Thread Index | Old Index