diff -ruN rubygem-fluentd.orig/distinfo rubygem-fluentd/distinfo --- rubygem-fluentd.orig/distinfo 2019-01-25 01:58:01.000000000 +0300 +++ rubygem-fluentd/distinfo 2020-08-11 22:17:31.725694000 +0300 @@ -1,3 +1,3 @@ -TIMESTAMP = 1548255788 -SHA256 (rubygem/fluentd-1.3.3.gem) = c2c8bc89c604aa2969630e497f089afedab192be06dd0f056c3ee7d7fe3193d9 -SIZE (rubygem/fluentd-1.3.3.gem) = 438784 +TIMESTAMP = 1597173451 +SHA256 (rubygem/fluentd-1.11.2.gem) = f5f1221c4fec2686f9516496986c2350fd5ef7e42afeabcaf67a22067f3c5490 +SIZE (rubygem/fluentd-1.11.2.gem) = 810496 diff -ruN rubygem-fluentd.orig/files/patch-fluent.conf.sample rubygem-fluentd/files/patch-fluent.conf.sample --- rubygem-fluentd.orig/files/patch-fluent.conf.sample 2017-01-07 01:50:43.000000000 +0300 +++ rubygem-fluentd/files/patch-fluent.conf.sample 2020-08-24 22:35:16.634199000 +0300 @@ -1,65 +1,94 @@ ---- fluent.conf.sample.orig 2017-01-06 21:42:28 UTC -+++ fluent.conf.sample -@@ -0,0 +1,100 @@ +--- fluent.conf.sample.orig 2020-08-24 22:30:41.549691000 +0300 ++++ fluent.conf.sample 2020-08-24 22:21:09.000000000 +0300 +@@ -0,0 +1,139 @@ ++# In v1 configuration, type and id are @ prefix parameters. ++# @type and @id are recommended. type and id are still available for backward compatibility + +## built-in TCP input +## $ echo | fluent-cat + -+ type forward ++ @type forward ++ @id forward_input + + +## built-in UNIX socket input +# -+# type unix ++# @type unix +# + +# HTTP input +# http://localhost:8888/?json= + -+ type http ++ @type http ++ @id http_input ++ + port 8888 + + +## File input +## read apache logs with tag=apache.access +# -+# type tail ++# @type tail +# format apache +# path /var/log/httpd-access.log +# tag apache.access +# + ++## Mutating event filter ++## Add hostname and tag fields to apache.access tag events ++# ++# @type record_transformer ++# ++# hostname ${hostname} ++# tag ${tag} ++# ++# ++ ++## Selecting event filter ++## Remove unnecessary events from apache prefixed tag events ++# ++# @type grep ++# include1 method GET # pass only GET in 'method' field ++# exclude1 message debug # remove debug event ++# ++ +# 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 ++ @type monitor_agent ++ @id monitor_agent_input ++ + port 24220 + + +# Listen DRb for debug + -+ type debug_agent ++ @type debug_agent ++ @id debug_agent_input ++ + bind 127.0.0.1 + port 24230 + + -+ +## match tag=apache.access and write to file +# -+# type file ++# @type file +# path /var/log/fluent/access +# + +## match tag=debug.** and dump to console + -+ type stdout ++ @type stdout ++ @id stdout_output + + +# match tag=system.** and forward to another fluent server + -+ type forward ++ @type forward ++ @id forward_output ++ + + host 192.168.0.11 + @@ -72,9 +101,9 @@ + +## match tag=myapp.** and forward and write to file +# -+# type copy ++# @type copy +# -+# type forward ++# @type forward +# buffer_type file +# buffer_path /var/log/fluent/myapp-forward +# retry_limit 50 @@ -84,20 +113,30 @@ +# +# +# -+# type file ++# @type file +# path /var/log/fluent/myapp +# +# + +## match fluent's internal events +# -+# type null ++# @type null +# + +## match not matched logs and write to file +# -+# type file ++# @type file +# path /var/log/fluent/else +# compress gz +# + ++## Label: For handling complex event routing ++# diff -ruN rubygem-fluentd.orig/Makefile rubygem-fluentd/Makefile --- rubygem-fluentd.orig/Makefile 2019-10-27 14:31:15.000000000 +0300 +++ rubygem-fluentd/Makefile 2020-08-11 22:17:22.427030000 +0300 @@ -1,8 +1,7 @@ # $FreeBSD: head/sysutils/rubygem-fluentd/Makefile 515791 2019-10-27 11:31:15Z sunpoet $ PORTNAME= fluentd -PORTVERSION= 1.3.3 -PORTREVISION= 1 +PORTVERSION= 1.11.2 CATEGORIES= sysutils rubygems MASTER_SITES= RG @@ -12,8 +11,7 @@ LICENSE= APACHE20 RUN_DEPENDS= \ - rubygem-dig_rb>=1.0.0:devel/rubygem-dig_rb \ - rubygem-msgpack>=0.7.0:devel/rubygem-msgpack \ + rubygem-msgpack>=1.3.1:devel/rubygem-msgpack \ rubygem-yajl-ruby>=1.0:devel/rubygem-yajl-ruby \ rubygem-cool.io>=1.4.5:devel/rubygem-cool.io \ rubygem-serverengine>=2.0.4:net/rubygem-serverengine \ @@ -23,13 +21,13 @@ rubygem-tzinfo1>=1.0:devel/rubygem-tzinfo1 \ rubygem-tzinfo-data>=1.0.0:devel/rubygem-tzinfo-data -USE_RUBY= yes PLIST_FILES= bin/fluent-cat bin/fluent-debug bin/fluent-gem bin/fluentd \ bin/fluent-binlog-reader bin/fluent-ca-generate \ bin/fluent-plugin-config-format bin/fluent-plugin-generate \ "@sample etc/fluentd/fluent.conf.sample" PLIST_DIRS= etc/fluentd/plugin USES= gem +USE_RUBY= yes USE_RC_SUBR= fluentd USERS= fluentd GROUPS= fluentd