From owner-svn-ports-all@FreeBSD.ORG Mon Aug 25 21:16:57 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A4EA66B4; Mon, 25 Aug 2014 21:16:57 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8FD1C3D46; Mon, 25 Aug 2014 21:16:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s7PLGvGQ039665; Mon, 25 Aug 2014 21:16:57 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s7PLGuvZ039639; Mon, 25 Aug 2014 21:16:56 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201408252116.s7PLGuvZ039639@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Mon, 25 Aug 2014 21:16:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r366153 - in head/sysutils/rubygem-fluentd: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2014 21:16:57 -0000 Author: swills Date: Mon Aug 25 21:16:56 2014 New Revision: 366153 URL: http://svnweb.freebsd.org/changeset/ports/366153 QAT: https://qat.redports.org/buildarchive/r366153/ Log: sysutils/rubygem-fluentd: update to 0.10.53, unbreak, use new rubygem-cool.io With hat: ruby@ Added: head/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample (contents, props changed) Modified: head/sysutils/rubygem-fluentd/Makefile head/sysutils/rubygem-fluentd/distinfo head/sysutils/rubygem-fluentd/files/fluentd.in Modified: head/sysutils/rubygem-fluentd/Makefile ============================================================================== --- head/sysutils/rubygem-fluentd/Makefile Mon Aug 25 21:03:08 2014 (r366152) +++ head/sysutils/rubygem-fluentd/Makefile Mon Aug 25 21:16:56 2014 (r366153) @@ -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 Modified: head/sysutils/rubygem-fluentd/distinfo ============================================================================== --- head/sysutils/rubygem-fluentd/distinfo Mon Aug 25 21:03:08 2014 (r366152) +++ head/sysutils/rubygem-fluentd/distinfo Mon Aug 25 21:16:56 2014 (r366153) @@ -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 Modified: head/sysutils/rubygem-fluentd/files/fluentd.in ============================================================================== --- head/sysutils/rubygem-fluentd/files/fluentd.in Mon Aug 25 21:03:08 2014 (r366152) +++ head/sysutils/rubygem-fluentd/files/fluentd.in Mon Aug 25 21:16:56 2014 (r366153) @@ -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" Added: head/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rubygem-fluentd/files/patch-fluent.conf.sample Mon Aug 25 21:16:56 2014 (r366153) @@ -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 ++# ++