FreeBSD Bugzilla – Attachment 147060 Details for
Bug 193461
sysutils/logstash-forwarder: Update to 0.3.1.20140829, Convert use bsd.go.mk
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Attached shar archive if preferred over patch.
logstash-forwarder.shar (text/plain), 6.65 KB, created by
cheffo
on 2014-09-08 11:30:05 UTC
(
hide
)
Description:
Attached shar archive if preferred over patch.
Filename:
MIME Type:
Creator:
cheffo
Created:
2014-09-08 11:30:05 UTC
Size:
6.65 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># logstash-forwarder ># logstash-forwarder/pkg-descr ># logstash-forwarder/distinfo ># logstash-forwarder/files ># logstash-forwarder/files/patch-filestate_freebsd.go ># logstash-forwarder/files/logstash-forwarder.in ># logstash-forwarder/files/pkg-message.in ># logstash-forwarder/files/patch-fileinfo_freebsd.go ># logstash-forwarder/Makefile ># logstash-forwarder/pkg-plist ># >echo c - logstash-forwarder >mkdir -p logstash-forwarder > /dev/null 2>&1 >echo x - logstash-forwarder/pkg-descr >sed 's/^X//' >logstash-forwarder/pkg-descr << '204bfadcb2b85503b37cc9d935974044' >XI'm a lumberjack and I'm ok! I sleep when idle, then I ship logs all day! >XI parse your logs, I eat the JVM agent for lunch! >X >X(This project was recently renamed from 'lumberjack' to 'logstash-forwarder' to >Xmake its intended use clear. The 'lumberjack' name now remains as the network >Xprotocol, and 'logstash-forwarder' is the name of the program. It's still the >Xsame lovely log forwarding program you love.) >X >XWWW: https://github.com/elasticsearch/logstash-forwarder >204bfadcb2b85503b37cc9d935974044 >echo x - logstash-forwarder/distinfo >sed 's/^X//' >logstash-forwarder/distinfo << 'e325c23e1263b4f15036459d6994b5c1' >XSHA256 (logstash-forwarder-0.3.1.20140829.tar.gz) = b2528908be409df373599ac37ca7124196a37dbcf7ddef43220ecc72af21e23a >XSIZE (logstash-forwarder-0.3.1.20140829.tar.gz) = 40276 >e325c23e1263b4f15036459d6994b5c1 >echo c - logstash-forwarder/files >mkdir -p logstash-forwarder/files > /dev/null 2>&1 >echo x - logstash-forwarder/files/patch-filestate_freebsd.go >sed 's/^X//' >logstash-forwarder/files/patch-filestate_freebsd.go << 'b94a4f849669debc593f145189d35151' >X--- filestate_freebsd.go.orig 1970-01-01 02:00:00.000000000 +0200 >X+++ filestate_freebsd.go 2014-08-15 15:56:07.164481962 +0300 >X@@ -0,0 +1,8 @@ >X+package main >X+ >X+type FileState struct { >X+ Source *string `json:"source,omitempty"` >X+ Offset int64 `json:"offset,omitempty"` >X+ Inode uint32 `json:"inode,omitempty"` >X+ Device uint32 `json:"device,omitempty"` >X+} >b94a4f849669debc593f145189d35151 >echo x - logstash-forwarder/files/logstash-forwarder.in >sed 's/^X//' >logstash-forwarder/files/logstash-forwarder.in << 'cb4ce20083f0632a664f6c711ef82bc1' >X#!/bin/sh >X# $FreeBSD$ >X >X# PROVIDE: logstash_forwarder >X# REQUIRE: DAEMON >X# BEFORE: LOGIN >X# KEYWORD: shutdown >X >X# Add the following lines to /etc/rc.conf to enable logstash-forwarder: >X# logstash_forwarder_enable (bool): Set to YES to logstash-forwarder >X# Default: NO >X# logstash_forwarder_flags (str): Extra flags passed to logstash-forwarder >X# logstash_forwarder_conf (str): logstash-forwarder configuration file >X# Default: ${PREFIX}/etc/logstash-forwarder.conf >X >X >X. /etc/rc.subr >X >Xname="logstash_forwarder" >Xrcvar=logstash_forwarder_enable >X >Xcommand="%%PREFIX%%/bin/logstash-forwarder" >Xcommand_args='> /dev/null 2>&1 &' >X >Xload_rc_config $name >X >X[ -z "$logstash_forwarder_enable" ] && logstash_forwarder_enable="NO" >X[ -z "$logstash_forwarder_conf" ] && logstash_forwarder_conf="%%PREFIX%%/etc/logstash-forwarder.conf" >X[ -z "$logstash_forwarder_flags" ] && logstash_forwarder_flags="" >X[ -n "$logstash_forwarder_conf" ] && logstash_forwarder_flags="$logstash_forwarder_flags -config=$logstash_forwarder_conf" >X >Xrun_rc_command "$1" >cb4ce20083f0632a664f6c711ef82bc1 >echo x - logstash-forwarder/files/pkg-message.in >sed 's/^X//' >logstash-forwarder/files/pkg-message.in << 'c0a71ad168a67c015b029964bf653207' >X========================================================================= >XIf you want to run logstash-forwarder, add to /etc/rc.conf >X >X logstash_forwarder_enable="YES" >X >XDo not forget to edit your configuration file: >X >X Default: ${PREFIX}/etc/logstash-forwarder.conf >X >XKey points >X >XYou'll need an SSL CA to verify the server (host) with. >XYou can specify custom fields for each set of paths in the config file. >XAny number of these may be specified. I use them to set fields like type >Xand other custom attributes relevant to each log. >X >XGenerating an ssl certificate >X >XLogstash supports all certificates, including self-signed certificates. >XTo generate a certificate, you can run the following command: >X >X $ openssl req -x509 -batch -nodes -newkey rsa:2048 -keyout \ >X logstash-forwarder.key -out logstash-forwarder.crt -days 365 >X >XThis will generate a key at logstash-forwarder.key and the 1-year valid >Xcertificate at logstash-forwarder.crt. Both the server that is running >Xlogstash-forwarder as well as the logstash instances receiving logs will >Xrequire these files on disk to verify the authenticity of messages. >X >XPROTECT YOUR KEYS! >X========================================================================= >c0a71ad168a67c015b029964bf653207 >echo x - logstash-forwarder/files/patch-fileinfo_freebsd.go >sed 's/^X//' >logstash-forwarder/files/patch-fileinfo_freebsd.go << '898a763f79febbe93af74111560a2148' >X--- fileinfo_freebsd.go.orig 1970-01-01 02:00:00.000000000 +0200 >X+++ fileinfo_freebsd.go 2014-08-15 15:55:47.824555519 +0300 >X@@ -0,0 +1,11 @@ >X+package main >X+ >X+import ( >X+ "os" >X+ "syscall" >X+) >X+ >X+func file_ids(info *os.FileInfo) (uint32, uint32) { >X+ fstat := (*(info)).Sys().(*syscall.Stat_t) >X+ return fstat.Ino, fstat.Dev >X+} >898a763f79febbe93af74111560a2148 >echo x - logstash-forwarder/Makefile >sed 's/^X//' >logstash-forwarder/Makefile << '06a21066f728b20f92d77c67cac894ea' >X# $FreeBSD$ >X >XPORTNAME= logstash-forwarder >XPORTVERSION= 0.3.1.20140829 >XCATEGORIES= sysutils >X >XMAINTAINER= cheffo@freebsd-bg.org >XCOMMENT= Collect logs locally in preparation for processing elsewhere! >X >XLICENSE= APACHE20 >X >XBUILD_DEPENDS= go:${PORTSDIR}/lang/go >X >XUSE_GITHUB= yes >XGH_ACCOUNT= elasticsearch >XGH_PROJECT= logstash-forwarder >XGH_TAGNAME= ${GH_COMMIT} >XGH_COMMIT= fcf431c >X >XUSE_RC_SUBR= logstash-forwarder >XSUB_FILES= pkg-message >X >Xpost-install: >X ${INSTALL_DATA} ${WRKSRC}/logstash-forwarder.conf.example ${STAGEDIR}${PREFIX}/etc/logstash-forwarder.conf.example >X >X.include <bsd.port.pre.mk> >X.include "${.CURDIR}/../../lang/go/files/bsd.go.mk" >X.include <bsd.port.post.mk> >06a21066f728b20f92d77c67cac894ea >echo x - logstash-forwarder/pkg-plist >sed 's/^X//' >logstash-forwarder/pkg-plist << '8f33560f3341ef8dcd33c57f39c75c3b' >Xbin/logstash-forwarder >X@unexec if cmp -s %D/etc/logstash-forwarder.conf.example %D/etc/logstash-forwarder.conf; then rm -f %D/etc/logstash-forwarder.conf; fi >Xetc/logstash-forwarder.conf.example >X@exec if [ ! -f %D/etc/logstash-forwarder.conf ] ; then cp -p %D/%F %B/logstash-forwarder.conf; fi >8f33560f3341ef8dcd33c57f39c75c3b >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 193461
:
147059
| 147060 |
148024