Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Oct 2018 22:12:19 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r481138 - in head/sysutils: . dwatch-json
Message-ID:  <201810022212.w92MCJtF022013@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Tue Oct  2 22:12:18 2018
New Revision: 481138
URL: https://svnweb.freebsd.org/changeset/ports/481138

Log:
  [New Port] sysutils/dwatch-json: FreeBSD dwatch profiles to produce JSON logs
  
  DTrace module for FreeBSD dwatch(1) to produce JSON logs. JSON (JavaScript
  Object Notation) is easily consumed by log aggregators such as Kafka and
  Telegraf and visualizers like Vizceral. With these modules you can get
  data out of the kernel/userland for use in such aggregators/visualizers.
  
  Reviewed by:	mat (previous version)
  Approved by:	mat (mentor)
  Sponsored by:	Smule, Inc.
  Differential Revision:	https://reviews.freebsd.org/D17316

Added:
  head/sysutils/dwatch-json/
  head/sysutils/dwatch-json/Makefile   (contents, props changed)
  head/sysutils/dwatch-json/distinfo   (contents, props changed)
  head/sysutils/dwatch-json/pkg-descr   (contents, props changed)
  head/sysutils/dwatch-json/pkg-plist   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Tue Oct  2 22:06:22 2018	(r481137)
+++ head/sysutils/Makefile	Tue Oct  2 22:12:18 2018	(r481138)
@@ -296,6 +296,7 @@
     SUBDIR += dvtm
     SUBDIR += dwatch
     SUBDIR += dwatch-gource
+    SUBDIR += dwatch-json
     SUBDIR += dwatch-pwsnoop
     SUBDIR += e2fsprogs
     SUBDIR += ec2-scripts

Added: head/sysutils/dwatch-json/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/dwatch-json/Makefile	Tue Oct  2 22:12:18 2018	(r481138)
@@ -0,0 +1,38 @@
+# $FreeBSD$
+
+PORTNAME=	dwatch-json
+DISTVERSION=	0.4.1
+CATEGORIES=	sysutils
+
+MAINTAINER=	dteske@FreeBSD.org
+COMMENT=	FreeBSD dwatch profiles to produce JSON logs
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	FrauBSD
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+PORTDOCS=	README.md
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${OSVERSION} < 1101516 || (${OSVERSION} >= 1200000 && ${OSVERSION} < 1200065)
+IGNORE=		requires dwatch available in recent FreeBSD 11 or 12
+.endif
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/dwatch
+	${INSTALL_DATA} ${WRKSRC}/json-* ${STAGEDIR}${PREFIX}/libexec/dwatch
+	${INSTALL_DATA} ${WRKSRC}/dwatch-json-net.conf ${STAGEDIR}${PREFIX}/etc/dwatch-json-net.conf.sample
+
+do-install-DOCS-on:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>

Added: head/sysutils/dwatch-json/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/dwatch-json/distinfo	Tue Oct  2 22:12:18 2018	(r481138)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1538436525
+SHA256 (FrauBSD-dwatch-json-0.4.1_GH0.tar.gz) = 49e5f6ca8a2254f61a64b30d629b1f858cd6c2cd757ae22c996343dde048f6fd
+SIZE (FrauBSD-dwatch-json-0.4.1_GH0.tar.gz) = 9000

Added: head/sysutils/dwatch-json/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/dwatch-json/pkg-descr	Tue Oct  2 22:12:18 2018	(r481138)
@@ -0,0 +1,6 @@
+DTrace module for FreeBSD dwatch(1) to produce JSON logs. JSON (JavaScript
+Object Notation) is easily consumed by log aggregators such as Kafka and
+Telegraf and visualizers like Vizceral. With these modules you can get
+data out of the kernel/userland for use in such aggregators/visualizers.
+
+WWW: https://fraubsd.org/dwatch-json/

Added: head/sysutils/dwatch-json/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/dwatch-json/pkg-plist	Tue Oct  2 22:12:18 2018	(r481138)
@@ -0,0 +1,7 @@
+etc/dwatch-json-net.conf.sample
+libexec/dwatch/json-net
+libexec/dwatch/json-net-config
+libexec/dwatch/json-net-config-raw
+libexec/dwatch/json-net-raw
+libexec/dwatch/json-net-top
+libexec/dwatch/json-net-top-raw



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810022212.w92MCJtF022013>