pkgsrc-Changes archive

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

CVS commit: pkgsrc/sysutils/riemann-client



Module Name:    pkgsrc
Committed By:   fhajny
Date:           Thu Oct 13 11:03:13 UTC 2016

Added Files:
        pkgsrc/sysutils/riemann-client: DESCR Makefile PLIST buildlink3.mk
            distinfo options.mk
        pkgsrc/sysutils/riemann-client/patches: patch-src_cmd-send.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/riemann-client/DESCR \
    pkgsrc/sysutils/riemann-client/Makefile \
    pkgsrc/sysutils/riemann-client/PLIST \
    pkgsrc/sysutils/riemann-client/buildlink3.mk \
    pkgsrc/sysutils/riemann-client/distinfo \
    pkgsrc/sysutils/riemann-client/options.mk
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/riemann-client/patches/patch-src_cmd-send.c

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

Added files:

Index: pkgsrc/sysutils/riemann-client/DESCR
diff -u /dev/null pkgsrc/sysutils/riemann-client/DESCR:1.1
--- /dev/null   Thu Oct 13 11:03:13 2016
+++ pkgsrc/sysutils/riemann-client/DESCR        Thu Oct 13 11:03:13 2016
@@ -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.
Index: pkgsrc/sysutils/riemann-client/Makefile
diff -u /dev/null pkgsrc/sysutils/riemann-client/Makefile:1.1
--- /dev/null   Thu Oct 13 11:03:13 2016
+++ pkgsrc/sysutils/riemann-client/Makefile     Thu Oct 13 11:03:13 2016
@@ -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"
Index: pkgsrc/sysutils/riemann-client/PLIST
diff -u /dev/null pkgsrc/sysutils/riemann-client/PLIST:1.1
--- /dev/null   Thu Oct 13 11:03:13 2016
+++ pkgsrc/sysutils/riemann-client/PLIST        Thu Oct 13 11:03:13 2016
@@ -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
Index: pkgsrc/sysutils/riemann-client/buildlink3.mk
diff -u /dev/null pkgsrc/sysutils/riemann-client/buildlink3.mk:1.1
--- /dev/null   Thu Oct 13 11:03:13 2016
+++ pkgsrc/sysutils/riemann-client/buildlink3.mk        Thu Oct 13 11:03:13 2016
@@ -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
Index: pkgsrc/sysutils/riemann-client/distinfo
diff -u /dev/null pkgsrc/sysutils/riemann-client/distinfo:1.1
--- /dev/null   Thu Oct 13 11:03:13 2016
+++ pkgsrc/sysutils/riemann-client/distinfo     Thu Oct 13 11:03:13 2016
@@ -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
Index: pkgsrc/sysutils/riemann-client/options.mk
diff -u /dev/null pkgsrc/sysutils/riemann-client/options.mk:1.1
--- /dev/null   Thu Oct 13 11:03:13 2016
+++ pkgsrc/sysutils/riemann-client/options.mk   Thu Oct 13 11:03:13 2016
@@ -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

Index: pkgsrc/sysutils/riemann-client/patches/patch-src_cmd-send.c
diff -u /dev/null pkgsrc/sysutils/riemann-client/patches/patch-src_cmd-send.c:1.1
--- /dev/null   Thu Oct 13 11:03:13 2016
+++ pkgsrc/sysutils/riemann-client/patches/patch-src_cmd-send.c Thu Oct 13 11:03:13 2016
@@ -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