Add .travis.yml file
configure: The "true" case is for m4_ifdef

Not for AS_IF. This fixes commit 27da8d3.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Update m4_ifdef
Revert "Update m4_ifdef"

They say two wrongs don't make a right, but sometimes applying the same
fix twice creates a bug.

This reverts commit 6faa95ecd505a3c724679ab1f395b68b3e3051fd.
defaults.h: Specify autotools macros compile-time

Because autotools is autotools, the default paths while configure is
being executed can contain macro variables such as "${prefix}". This
variable is resolved by make, meaning that it will be available in a
final-ish state compile-time (even though it *could* be changed
install-time, but at that time we're not allowed to recompile anything
and by the way what exactly do we think we're doing compiling paths into
the binary we should be ashamed of ourselves we violate gnu guidelines
all over - but, you know, whatever) so that's where we provide it to
defaults.h.

Signed-off-by: Robin Sonefors <ozamosi@flukkost.nu>
sample-config: Generate at build time

The old code generated sample configs full of "${prefix}", which is not
a variable naemon knows how to parse.

While we're at it, install the sample config as part of "make install",
but don't install it if the target config directory already exists.

Signed-off-by: Robin Sonefors <ozamosi@flukkost.nu>
configure: Install into standard prefix by default

This means /usr/local, rather than /usr/local/naemon. As part of doing
this, also install the config into $sysconfdir/naemon rather than just
$sysconfdir, as the latter just became /usr/local/etc by default (or
/etc, when --prefix is /usr), and we shouldn't litter that directory.

Signed-off-by: Robin Sonefors <ozamosi@flukkost.nu>
Makefile.am: Install everything by default

This should ensure that after "make install", you can start naemon or
install the init script straight away, without needing to create
files/directories that were required but weren't created.

Signed-off-by: Robin Sonefors <ozamosi@flukkost.nu>
defaults.h is no longer autogenerated

Signed-off-by: Sven Nierlein <sven@consol.de>
sysconfigdir points to /etc/naemon already

removed duplicate /etc/naemon/naemon/
changed libexecdir to pluginsdir

because its not like naemon would install program executables into
that folder but instead we use this folder to look for monitoring plugins.

Signed-off-by: Sven Nierlein <sven@consol.de>
NEWS: Put changes in place

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
naemon/utils.c: treating correctly pipe() return value

if pipe fails, we log a message and return UNKNOWN

Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>
naemon/utils.c: my_system_r() - removing not needed else statement

making code easier to read with less indentation

Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>
naemon/utils.c: avoiding unnecessary comparsions

if our call to read succeeded we may be able to
keep it going on without further validations/comparsions.

Signed-off-by: Ricardo Maraschini <ricardo.maraschini@gmail.com>
Merge branch 'palli-travis-integration'
travis: Update to run full test suite

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Merge branch 'travis-integration'
configure: Only error out if user asked for check

Fine, let's make configure "work by default".

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
makefile: Fix make distcheck

make distcheck tries to verify that make dist contains all files needed
to actually install the tarball. We want this to work - also, we want
this to continue working, so let's put it in the travis config.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>