Index: head/sysutils/rubygem-fluentd/Makefile =================================================================== --- head/sysutils/rubygem-fluentd/Makefile (revision 366152) +++ head/sysutils/rubygem-fluentd/Makefile (revision 366153) @@ -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 Index: head/sysutils/rubygem-fluentd/distinfo =================================================================== --- head/sysutils/rubygem-fluentd/distinfo (revision 366152) +++ head/sysutils/rubygem-fluentd/distinfo (revision 366153) @@ -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 Index: head/sysutils/rubygem-fluentd/files/fluentd.in =================================================================== --- head/sysutils/rubygem-fluentd/files/fluentd.in (revision 366152) +++ head/sysutils/rubygem-fluentd/files/fluentd.in (revision 366153) @@ -1,50 +1,47 @@ #!/bin/sh # $FreeBSD$ # # PROVIDE: fluentd # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # fluentd_enable (bool): Set to NO by default. # 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 name=fluentd rcvar=fluentd_enable extra_commands="init" load_rc_config $name : ${fluentd_enable:="NO"} : ${fluentd_config="%%PREFIX%%/etc/fluentd/fluent.conf"} : ${fluentd_dir="%%PREFIX%%/etc/fluentd"} : ${fluentd_user="%%USER%%"} : ${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 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" Index: head/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample =================================================================== --- head/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample (nonexistent) +++ head/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample (revision 366153) @@ -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 | fluent-cat ++ ++ type forward ++ ++ ++## built-in UNIX socket input ++# ++# type unix ++# ++ ++# HTTP input ++# http://localhost:8888/?json= ++ ++ type http ++ port 8888 ++ ++ ++## File input ++## read apache logs with tag=apache.access ++# ++# type tail ++# format apache ++# path /var/log/httpd-access.log ++# tag apache.access ++# ++ ++# Listen HTTP for monitoring ++# http://localhost:24220/api/plugins ++# http://localhost:24220/api/plugins?type=TYPE ++# http://localhost:24220/api/plugins?tag=MYTAG ++ ++ type monitor_agent ++ port 24220 ++ ++ ++# Listen DRb for debug ++ ++ type debug_agent ++ bind 127.0.0.1 ++ port 24230 ++ ++ ++ ++## match tag=apache.access and write to file ++# ++# type file ++# path /var/log/fluent/access ++# ++ ++## match tag=debug.** and dump to console ++ ++ type stdout ++ ++ ++# match tag=system.** and forward to another fluent server ++ ++ type forward ++ ++ host 192.168.0.11 ++ ++ ++ ++ host 192.168.0.12 ++ ++ ++ ++ ++## match tag=myapp.** and forward and write to file ++# ++# type copy ++# ++# type forward ++# buffer_type file ++# buffer_path /var/log/fluent/myapp-forward ++# retry_limit 50 ++# flush_interval 10s ++# ++# host 192.168.0.13 ++# ++# ++# ++# type file ++# path /var/log/fluent/myapp ++# ++# ++ ++## match fluent's internal events ++# ++# type null ++# ++ ++## match not matched logs and write to file ++# ++# type file ++# path /var/log/fluent/else ++# compress gz ++# ++ Property changes on: head/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property