diff options
author | swills <swills@FreeBSD.org> | 2014-08-26 05:16:56 +0800 |
---|---|---|
committer | swills <swills@FreeBSD.org> | 2014-08-26 05:16:56 +0800 |
commit | 2332a769f6ea1a4552632c9dfabec1f84f8f7189 (patch) | |
tree | 086ed9ce84837d4518da23ae46a0157d998036da | |
parent | 908ce63f5da57df3489ba4046f573d29720c4a0f (diff) | |
download | freebsd-ports-gnome-2332a769f6ea1a4552632c9dfabec1f84f8f7189.tar.gz freebsd-ports-gnome-2332a769f6ea1a4552632c9dfabec1f84f8f7189.tar.zst freebsd-ports-gnome-2332a769f6ea1a4552632c9dfabec1f84f8f7189.zip |
sysutils/rubygem-fluentd: update to 0.10.53, unbreak, use new rubygem-cool.io
With hat: ruby@
-rw-r--r-- | sysutils/rubygem-fluentd/Makefile | 23 | ||||
-rw-r--r-- | sysutils/rubygem-fluentd/distinfo | 4 | ||||
-rw-r--r-- | sysutils/rubygem-fluentd/files/fluentd.in | 9 | ||||
-rw-r--r-- | sysutils/rubygem-fluentd/files/patch-fluent.conf.sample | 103 |
4 files changed, 121 insertions, 18 deletions
diff --git a/sysutils/rubygem-fluentd/Makefile b/sysutils/rubygem-fluentd/Makefile index 982931d7f96e..1f8afaa66765 100644 --- a/sysutils/rubygem-fluentd/Makefile +++ b/sysutils/rubygem-fluentd/Makefile @@ -1,31 +1,34 @@ # $FreeBSD$ PORTNAME= fluentd -PORTVERSION= 0.10.35 +PORTVERSION= 0.10.53 CATEGORIES= sysutils rubygems MASTER_SITES= RG MAINTAINER= kuriyama@FreeBSD.org COMMENT= Fluent event collector -BROKEN= Requires http_parser version 0.5.1 while version 0.6 is installed - RUN_DEPENDS= \ - rubygem-msgpack>=0.5.4:${PORTSDIR}/devel/rubygem-msgpack \ + rubygem-cool.io>=1.1.1:${PORTSDIR}/devel/rubygem-cool.io \ + rubygem-http_parser.rb>=0.5.1:${PORTSDIR}/net/rubygem-http_parser.rb \ rubygem-json>=1.4.3:${PORTSDIR}/devel/rubygem-json \ - rubygem-yajl-ruby>=1.0:${PORTSDIR}/devel/rubygem-yajl-ruby \ - rubygem-cool.io>=1.1.0:${PORTSDIR}/devel/rubygem-cool.io \ - rubygem-http_parser.rb>=0.5.1:${PORTSDIR}/net/rubygem-http_parser.rb + rubygem-msgpack>=0.5.4:${PORTSDIR}/devel/rubygem-msgpack \ + rubygem-sigdump>=0.2.2:${PORTSDIR}/devel/rubygem-sigdump \ + rubygem-yajl-ruby>=1.0:${PORTSDIR}/devel/rubygem-yajl-ruby USE_RUBY= yes USE_RUBYGEMS= yes PLIST_FILES= bin/fluent-cat bin/fluent-debug bin/fluent-gem bin/fluentd \ - "@exec ${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 775 /var/run/fluentd" \ - "@unexec ${RMDIR} /var/run/fluentd 2>/dev/null || true" + "@sample etc/fluentd/fluent.conf.sample" +PLIST_DIRS= etc/fluentd/plugin etc/fluentd RUBYGEM_AUTOPLIST= yes USE_RC_SUBR= fluentd USERS= fluentd GROUPS= fluentd -SUB_LIST+= USER=${USERS} GROUP=${GROUPS} +SUB_LIST+= USER=${USERS} GROUP=${GROUPS} RUBY=${RUBY} + +post-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/fluentd/plugin + ${CP} ${WRKSRC}/fluent.conf.sample ${STAGEDIR}${PREFIX}/etc/fluentd/ .include <bsd.port.mk> diff --git a/sysutils/rubygem-fluentd/distinfo b/sysutils/rubygem-fluentd/distinfo index 4261b89ca41b..9a5b3746e5c1 100644 --- a/sysutils/rubygem-fluentd/distinfo +++ b/sysutils/rubygem-fluentd/distinfo @@ -1,2 +1,2 @@ -SHA256 (rubygem/fluentd-0.10.35.gem) = 97fc77adb60a7f24de95d26aaf01cb74fcfce560297f26e0c7f5a1d1d0038209 -SIZE (rubygem/fluentd-0.10.35.gem) = 63488 +SHA256 (rubygem/fluentd-0.10.53.gem) = bd64d1d554d17b9c6ccbd8ca4a6093e025df9aeb050d411c48528e0297dc8623 +SIZE (rubygem/fluentd-0.10.53.gem) = 111616 diff --git a/sysutils/rubygem-fluentd/files/fluentd.in b/sysutils/rubygem-fluentd/files/fluentd.in index 8c7fed5f1da9..11a62b6229fe 100644 --- a/sysutils/rubygem-fluentd/files/fluentd.in +++ b/sysutils/rubygem-fluentd/files/fluentd.in @@ -13,7 +13,6 @@ # Set it to YES to enable fluentd. # fluentd_config (path): Set to %%PREFIX%%/etc/fluentd/fluent.conf # by default. -# fluentd_db_dir (path): Set DB dir (default: "/var/db/fluentd") # fluentd_flags (str): Set to "" by default. . /etc/rc.subr @@ -31,7 +30,7 @@ load_rc_config $name : ${fluentd_group="%%GROUP%%"} : ${fluentd_flags:=""} -init_cmd="init_fluentd_dir" +start_precmd="fluentd_start_precmd" command=%%PREFIX%%/bin/${name} pidfile=/var/run/${name}/${name}.pid @@ -39,12 +38,10 @@ command_interpreter=%%RUBY%% command_args="-d $pidfile -c $fluentd_config" -init_fluentd_dir() +fluentd_start_precmd() { - # XXX: Using sudo for now. fluentd user have /nonexistent as - # $HOME, and nologin as shell. install -d -o ${fluentd_user} -g ${fluentd_group} -m 775 ${fluentd_dir} - %%PREFIX%%/bin/sudo -u fluentd ${command} --setup ${fluentd_dir} + install -d -o ${fluentd_user} -g ${fluentd_group} -m 775 /var/run/fluentd } run_rc_command "$1" diff --git a/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample b/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample new file mode 100644 index 000000000000..05bf9975f02b --- /dev/null +++ b/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample @@ -0,0 +1,103 @@ +--- ./fluent.conf.sample.orig 2014-08-25 20:24:20.865112521 +0000 ++++ ./fluent.conf.sample 2014-08-25 20:23:48.360114719 +0000 +@@ -0,0 +1,100 @@ ++ ++## built-in TCP input ++## $ echo <json> | fluent-cat <tag> ++<source> ++ type forward ++</source> ++ ++## built-in UNIX socket input ++#<source> ++# type unix ++#</source> ++ ++# HTTP input ++# http://localhost:8888/<tag>?json=<json> ++<source> ++ type http ++ port 8888 ++</source> ++ ++## File input ++## read apache logs with tag=apache.access ++#<source> ++# type tail ++# format apache ++# path /var/log/httpd-access.log ++# tag apache.access ++#</source> ++ ++# Listen HTTP for monitoring ++# http://localhost:24220/api/plugins ++# http://localhost:24220/api/plugins?type=TYPE ++# http://localhost:24220/api/plugins?tag=MYTAG ++<source> ++ type monitor_agent ++ port 24220 ++</source> ++ ++# Listen DRb for debug ++<source> ++ type debug_agent ++ bind 127.0.0.1 ++ port 24230 ++</source> ++ ++ ++## match tag=apache.access and write to file ++#<match apache.access> ++# type file ++# path /var/log/fluent/access ++#</match> ++ ++## match tag=debug.** and dump to console ++<match debug.**> ++ type stdout ++</match> ++ ++# match tag=system.** and forward to another fluent server ++<match system.**> ++ type forward ++ <server> ++ host 192.168.0.11 ++ </server> ++ <secondary> ++ <server> ++ host 192.168.0.12 ++ </server> ++ </secondary> ++</match> ++ ++## match tag=myapp.** and forward and write to file ++#<match myapp.**> ++# type copy ++# <store> ++# type forward ++# buffer_type file ++# buffer_path /var/log/fluent/myapp-forward ++# retry_limit 50 ++# flush_interval 10s ++# <server> ++# host 192.168.0.13 ++# </server> ++# </store> ++# <store> ++# type file ++# path /var/log/fluent/myapp ++# </store> ++#</match> ++ ++## match fluent's internal events ++#<match fluent.**> ++# type null ++#</match> ++ ++## match not matched logs and write to file ++#<match **> ++# type file ++# path /var/log/fluent/else ++# compress gz ++#</match> ++ |