README.md: We require 3.5.0rc1+

Now that rc1 is out, we do not need master anymore, rc1 is good enough.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Bump version to 0.1.0

In preparation for tagging a release, bump the version to 0.1.0, and add
a NEWS file.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
modules: Link to ivykis as well, if present.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
riemann: Move BUILT_SOURCES into the if branch

If we do not have the riemann-c-client available, don't try to build the
grammar, either, there's no point.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
riemann: Allow bare pairs in the attributes() option

To make it easier to add key-value pairs to the attribute list, the
grammar now accepts any identifier(template) construct (unless of course
another value-pairs rule takes precedence).

Updated the example config to showcase the new feature.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
README.md: Updated some URLs, due to the project move

The project was moved over to the BalaBit organisation, update the URLs
accordingly.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
riemann: A zero floating point value is ok

When strtof() returns zero, that's ok, use it.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
basicfuncs-plus: New module

This new module adds a $(//) template function to do floating-point
division.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
basicfuncs-plus: Split the source into multiple files

For the purpose of better organisation, split the source into multiple
files.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
basicfuncs-plus: Add a $(state) template function

This function can be used to hold global state, and to change it from
within a template function. When used with one argument, it looks up the
var in the global environment. When used with two, it sets the var and
returns the result.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
basicfuncs-plus: Adds an $(or) template function

The $(or) template function returns the first argument passed to it that
is non-empty.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Makefile.am: It's GPL.txt not GPL.TXT, oops

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Makefile.am: Include BUILT_SOURCES in EXTRA_DIST

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
configure.ac: Check for strtoll too

One of the syslog-ng headers needs HAVE_STRTOLL, and if it is not
defined, conflicting prototypes may happen. So check for strtoll too,
to avoid that.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
riemann: Use scratch-buffers instead of an object-local GString

This way, the string can be reused in other modules in the same thread,
once the riemann destination is done with it.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
configure.ac: Allow explicitly disabling linking to ivykis

When syslog-ng is compiled with an internal ivykis, but there's a
system-wide one installed too, we do not want to link to the latter. So
this adds a --without-ivykis option to configure that can help in this
situation.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
trigger-source: Explicitly include mainloop.h

This works for both 3.5 and 3.6, but missing it wasn't a problem in 3.5,
because we got the header via another. Not anymore with 3.6, so include
it ourselves explicitly.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
configure.ac: Decreased required autoconf version.

To be able to compile on Ubuntu Precise. There is nothing AC 2.69 version
specific thing in configure.ac, it can happily compile with 2.68, which
is present in Precise.
Also added m4/ directory, because it seems, that autoreconf does not
create this automatically.