Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 5c14d05ff44d08d180f5d6de8bbedf3f84a23d25 @frsyuki frsyuki committed Jun 18, 2011
@@ -0,0 +1 @@
+FURUHASHI Sadayuki <frsyuki _at_ gmail.com>
@@ -0,0 +1,14 @@
+Copyright (C) 2011 FURUHASHI Sadayuki
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
@@ -0,0 +1,3 @@
+
+Release 0.9.0 - 2011/06/20
+
@@ -0,0 +1,41 @@
+
+SUBDIRS = deps/ruby
+
+bin_SCRIPTS = fluent-gem fluent-cat fluentd
+
+MOSTLYCLEANFILES = $(bin_SCRIPTS)
+
+fluent-gem:
+ echo '#!/bin/sh' > $@
+ echo 'exec "$(RUBY_BINDIR)/gem" "$$@"' >> $@
+ chmod 755 $@
+
+fluent-cat:
+ echo '#!/bin/sh' > $@
+ echo 'export FLUENT_CONF="$(sysconfdir)/fluent/fluent.conf"' >> $@
+ echo 'export FLUENT_PLUGIN="$(sysconfdir)/fluent/plugin"' >> $@
+ echo 'export FLUENT_SOCKET="$(localstatedir)/run/fluent.sock"' >> $@
+ echo 'exec "$(RUBY_BINDIR)/fluent-cat" "$$@"' >> $@
+ chmod 755 $@
+
+fluentd:
+ echo '#!/bin/sh' > $@
+ echo 'export FLUENT_CONF="$(sysconfdir)/fluent/fluent.conf"' >> $@
+ echo 'export FLUENT_PLUGIN="$(sysconfdir)/fluent/plugin"' >> $@
+ echo 'export FLUENT_SOCKET="$(localstatedir)/run/fluent.sock"' >> $@
+ echo 'exec "$(RUBY_BINDIR)/fluentd" "$$@"' >> $@
+ chmod 755 $@
+
+install: install-recursive
+ for gem in $(srcdir)/deps/*.gem; do \
+ $(RUBY_BINDIR)/gem install --no-rdoc --no-ri "$$gem"; \
+ done
+ cd "$(srcdir)" && $(RUBY_BINDIR)/rake
+ $(RUBY_BINDIR)/gem install --no-rdoc --no-ri "$(srcdir)/pkg/fluent-$(VERSION).gem"
+ mkdir -p $(sysconfdir)/fluent
+ cp -f $(srcdir)/fluent.conf $(sysconfdir)/fluent/fluent.conf
+ mkdir -p $(sysconfdir)/plugin
+
+dist:
+ cd $(srcdir) && ./make_dist.sh
+
@@ -0,0 +1,3 @@
+Fluent
+======
+
@@ -0,0 +1,43 @@
+require 'rake'
+require 'rake/testtask'
+require 'rake/clean'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gemspec|
+ gemspec.name = "fluent"
+ gemspec.summary = "Fluent event collector"
+ gemspec.author = "Sadayuki Furuhashi"
+ gemspec.email = "frsyuki@gmail.com"
+ gemspec.homepage = "http://github.com/fluent"
+ gemspec.has_rdoc = false
+ gemspec.require_paths = ["lib"]
+ gemspec.add_dependency "msgpack", ">= 0.4.4"
+ gemspec.add_dependency "json", ">= 1.4.3"
+ gemspec.add_dependency "rack", ">= 1.2.1"
+ #gemspec.test_files = Dir["test/**/*.rb"]
+ gemspec.files = Dir["lib/**/*", "test/**/*.rb"]
+ gemspec.executables = ['fluentd', 'fluent-cat']
+ end
+ Jeweler::GemcutterTasks.new
+rescue LoadError
+ puts "Jeweler not available. Install it with: gem install jeweler"
+end
+
+VERSION_FILE = "lib/fluent/version.rb"
+
+file VERSION_FILE => ["VERSION"] do |t|
+ version = File.read("VERSION").strip
+ File.open(VERSION_FILE, "w") {|f|
+ f.write <<EOF
+module Fluent
+
+VERSION = '#{version}'
+
+end
+EOF
+ }
+end
+
+task :default => [VERSION_FILE, :build]
+
@@ -0,0 +1 @@
+0.9.0
@@ -0,0 +1,53 @@
+#!/bin/sh
+
+mkdir -p ac
+test -f AUTHORS || touch AUTHORS
+test -f COPYING || touch COPYING
+test -f ChangeLog || touch ChangeLog
+test -f NEWS || touch NEWS
+test -f NOTICE || touch NOTICE
+test -f README || cp -f README.md README
+
+function download() {
+ if [ ! -f "$2" ];then
+ wget "$1/$2" -O "$2"
+ fi
+}
+
+cd deps
+download "http://ftp.ruby-lang.org/pub/ruby/1.9" "ruby-1.9.2-p180.tar.bz2"
+download "http://rubygems.org/downloads" "jeweler-1.6.2.gem"
+download "http://rubygems.org/downloads" "rack-1.3.0.gem"
+download "http://rubygems.org/downloads" "json-1.5.2.gem"
+cd ..
+
+version=`cat VERSION`
+
+echo "#!/bin/sh
+dst=fluent-$version
+rm -rf \$dst
+mkdir \$dst || exit 1
+cp -fpR lib bin \$dst/ || exit 1
+mkdir -p \$dst/deps || exit 1
+cp deps/*.gem deps/ruby-*.tar.bz2 \$dst/deps/
+cp README.md README COPYING NEWS ChangeLog AUTHORS INSTALL NOTICE \\
+ configure.in Makefile.in Makefile.am configure aclocal.m4 \\
+ Rakefile VERSION fluent.conf make_dist.sh \\
+ \$dst/ || exit 1
+mkdir -p \$dst/ac || exit 1
+cp ac/* \$dst/ac/ || exit 1
+tar czvf \$dst.tar.gz \$dst || exit 1
+rm -rf \$dst
+" > make_dist.sh
+chmod 755 make_dist.sh
+
+if [ x`uname` = x"Darwin" ]; then
+ glibtoolize --force --copy
+else
+ libtoolize --force --copy
+fi
+aclocal
+#autoheader
+automake --add-missing --copy
+autoconf
+
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
+require 'rubygems' unless defined?(gem)
+here = File.dirname(__FILE__)
+$LOAD_PATH << File.expand_path(File.join(here, '..', 'lib'))
+require 'fluent/command/cat'
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
+require 'rubygems' unless defined?(gem)
+here = File.dirname(__FILE__)
+$LOAD_PATH << File.expand_path(File.join(here, '..', 'lib'))
+require 'fluent/command/fluentd'
@@ -0,0 +1,35 @@
+
+# built-in TCP input
+<source>
+ type tcp
+</source>
+
+# built-in UNIX socket input
+<source>
+ type unix
+</source>
+
+## HTTP input
+#<source>
+# type http
+# path 8888
+#</source>
+
+#<match access.*>
+# type file
+# path /var/log/fluent/access
+#</match>
+
+#<match myapp.*>
+# type file
+# format /var/log/fluent/myapp.%Y-%m-%d.log
+#
+# buffer_type file
+# buffer_path /var/log/fluent/myapp
+#</match>
+
+<match *>
+ type file
+ path /var/log/fluent/else/%Y-%m-%d/%H.log
+</match>
+
Oops, something went wrong. Retry.

0 comments on commit 5c14d05

Please sign in to comment.