svn commit: r465992 - in head/sysutils: . log-courier log-courier/files
Joseph Mingrone
jrm at FreeBSD.org
Fri Mar 30 18:25:16 UTC 2018
Author: jrm
Date: Fri Mar 30 18:25:14 2018
New Revision: 465992
URL: https://svnweb.freebsd.org/changeset/ports/465992
Log:
New port, sysutils/log-courier: Lightweight log shipper
WWW: https://github.com/driskell/log-courier
PR: 213227
Submitted by: vikashb at where-ever.za.net (maintainer)
Added:
head/sysutils/log-courier/
head/sysutils/log-courier/Makefile (contents, props changed)
head/sysutils/log-courier/distinfo (contents, props changed)
head/sysutils/log-courier/files/
head/sysutils/log-courier/files/log-courier.in (contents, props changed)
head/sysutils/log-courier/files/patch-docs__examples__example-json.conf (contents, props changed)
head/sysutils/log-courier/files/pkg-message.in (contents, props changed)
head/sysutils/log-courier/pkg-descr (contents, props changed)
head/sysutils/log-courier/pkg-plist (contents, props changed)
Modified:
head/sysutils/Makefile (contents, props changed)
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Fri Mar 30 18:21:32 2018 (r465991)
+++ head/sysutils/Makefile Fri Mar 30 18:25:14 2018 (r465992)
@@ -588,6 +588,7 @@
SUBDIR += lmon
SUBDIR += lnav
SUBDIR += lockfile-progs
+ SUBDIR += log-courier
SUBDIR += log_analysis
SUBDIR += logrotate
SUBDIR += logstalgia
Added: head/sysutils/log-courier/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/log-courier/Makefile Fri Mar 30 18:25:14 2018 (r465992)
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+PORTNAME= log-courier
+DISTVERSIONPREFIX= v
+DISTVERSION= 2.0.5
+CATEGORIES= sysutils
+
+MAINTAINER= vikashb at where-ever.za.net
+COMMENT= Lightweight log shipper with Logstash integration
+
+LICENSE= APACHE20
+
+BUILD_DEPENDS= go:lang/go
+
+USES= go gmake
+USE_GITHUB= yes
+GH_ACCOUNT= driskell
+GO_PKGNAME= github.com/driskell/log-courier
+
+USE_RC_SUBR= log-courier
+SUB_FILES= pkg-message
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/docs/examples/example-json.conf \
+ ${STAGEDIR}${PREFIX}/etc/log-courier.conf.example
+
+.include <bsd.port.mk>
Added: head/sysutils/log-courier/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/log-courier/distinfo Fri Mar 30 18:25:14 2018 (r465992)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1522433109
+SHA256 (driskell-log-courier-v2.0.5_GH0.tar.gz) = fbe380c8c65e5c866cd89a081c2bdd716383c0cdac53c5c3f0b1a69f2d5fe14b
+SIZE (driskell-log-courier-v2.0.5_GH0.tar.gz) = 228280
Added: head/sysutils/log-courier/files/log-courier.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/log-courier/files/log-courier.in Fri Mar 30 18:25:14 2018 (r465992)
@@ -0,0 +1,33 @@
+#!/bin/sh
+# $FreeBSD$
+
+# PROVIDE: log_courier
+# REQUIRE: DAEMON
+# BEFORE: LOGIN
+# KEYWORD: shutdown
+
+# Add the following lines to /etc/rc.conf to enable logstash-forwarder:
+# log_courier_enable (bool): Set to YES to logstash-forwarder
+# Default: NO
+# log_courier_flags (str): Extra flags passed to log-courier
+# log_courier_conf (str): log-courier configuration file
+# Default: ${PREFIX}/etc/log-courier.conf
+
+. /etc/rc.subr
+
+name="log_courier"
+rcvar=log_courier_enable
+
+load_rc_config ${name}
+
+logdir="/var/log"
+
+: ${log_courier_enable="NO"}
+: ${log_courier_flags=""}
+: ${log_courier_conf="%%PREFIX%%/etc/log-courier.conf"}
+
+log_courier_cmd="%%PREFIX%%/bin/log-courier"
+command="/usr/sbin/daemon"
+command_args="${log_courier_cmd} -config ${log_courier_conf}"
+
+run_rc_command "$1"
Added: head/sysutils/log-courier/files/patch-docs__examples__example-json.conf
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/log-courier/files/patch-docs__examples__example-json.conf Fri Mar 30 18:25:14 2018 (r465992)
@@ -0,0 +1,20 @@
+--- docs/examples/example-json.conf.orig 2016-06-11 14:02:51 UTC
++++ docs/examples/example-json.conf
+@@ -2,12 +2,15 @@
+ "admin": {
+ "enabled": true
+ },
++ "general": {
++ "persist directory": "/var/lib/log-courier"
++ },
+ "network": {
+ "servers": [ "localhost:5043" ],
+- "ssl ca": "./logstash.cer"
++ "ssl ca": "/usr/local/etc/logstash-forwarder.crt"
+ },
+ "files": [ {
+- "paths": [ "/var/log/httpd/*/*.log" ],
++ "paths": [ "/var/log/httpd*.log" ],
+ "fields": {
+ "type": "apache"
+ }
Added: head/sysutils/log-courier/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/log-courier/files/pkg-message.in Fri Mar 30 18:25:14 2018 (r465992)
@@ -0,0 +1,9 @@
+=========================================================================
+If you want to run log-courier, add to /etc/rc.conf
+
+ log_courier_enable="YES"
+
+Do not forget to edit your configuration file:
+
+ Default: ${PREFIX}/etc/log-courier.conf
+=========================================================================
Added: head/sysutils/log-courier/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/log-courier/pkg-descr Fri Mar 30 18:25:14 2018 (r465992)
@@ -0,0 +1,6 @@
+Log Courier is a lightweight tool created to ship log files speedily and
+securely, with low resource usage, to remote Logstash instances.
+
+It is developed to be efficient, reliable, scalable, and easy to use.
+
+WWW: https://github.com/driskell/log-courier
Added: head/sysutils/log-courier/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/log-courier/pkg-plist Fri Mar 30 18:25:14 2018 (r465992)
@@ -0,0 +1,2 @@
+bin/log-courier
+ at sample etc/log-courier.conf.example etc/log-courier.conf
More information about the svn-ports-all
mailing list