Permanently disable the version check

Having an opensource daemon call in to a company server and report
which version it's running is just plain dumb. It's also probably
illegal in a lot of countries, as it could be considered spying.

Since it didn't really work anyway (3.99 was considered an earlier
version than 3.5.0), we might as well remove it.

This also mean we can remove of the networking code in netutils.[ch],
which means a net codeline reduction of 305 lines. Neato :)

While at it, we remove the editor-backed-up config.h.in~ file.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Remove the specialized ping worker

It wasn't particularly specialized after all, and actually ran all
kinds of different checks. With this patch, we get rid of it. While
we still don't spread correct information, at least we stop with the
disinformation now.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Start the rename fest

This renames a lot of instances from Nagios -> Naemon.

Signed-off-by: Andreas Ericsson <ae@op5.se>
.gitignore *~ files

Backup files from scripts and editors aren't very interesting to
keep under version control, so let's not.

Signed-off-by: Andreas Ericsson <ae@op5.se>
workers: Don't spam-reap children

Previously we used to try reaping children immediately after killing
them. When that fails (as it normally does when we try to reap half
a microsecond after sending the SIGKILL), the idea was to reschedule
a reaping 0.25 seconds later. However, we kinda failed that, since we
set the tv.tv_usec variable to 250000 instead of adding that value to
it.

This patch corrects it, inserting the missing plus-sign once again.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Remove base/{wp-phash.c,wpres-phash.h}

They're gperf-generated from base/wpres.gperf, so shouldn't be under
version control.

Signed-off-by: Andreas Ericsson <ae@op5.se>
include/naemon.h: Remove redundant decl of retention_file

Declaring it twice causes modern compilers to whine and old compilers
to bomb out.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Remove top-of-file license comments

They fill no purpose as we keep the license elsewhere anyway.

Signed-off-by: Andreas Ericsson <ae@op5.se>
README.md: Add some notes on contributing

It's good to get basic coding standards and things like that online.
The ones this patch puts there are very basic, but it's at least a
starting point of some sort.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Start fixing the autotools machinery

Previously we used to have a lot of generated files under version
control. This patch removes them and lets us use proper autotools
Makefile.am and stuff instead.

I'm not very good at autotools, so I'm sure this can be done in a
much better way, but at least it (mostly) builds now so it's good
enough to push and let other people see and work with it.

The code move is made so we can more easily integrate modules
directly into the codebase, as the directory layout now mimics how
files will be installed once "make install" is executed, meaning we
don't have to worry about different include paths for modules being
built against the git checkout vs installed files.

Signed-off-by: Andreas Ericsson <ae@op5.se>
more renaming and pkg cleanup
finally get rid of the old html files and cgis
make distclean should remove some extra files
add snprintf.h to config headers

let configure generate the missing snprintf.h
autotools junk: Stop using (and checking for) arpa/inet.h

We don't actually need it, and it appears to break the autotools
chain on SLES 11 SP3. Since we only use it in one of the library
test-files, we just remove it and stop checking for it.

Signed-off-by: Andreas Ericsson <ae@op5.se>
autotools: s/INCLUDES/AM_CPPFLAGS/

Apparently this option has been renamed in the autotools machinery
sometime, so at least with 2.69 it produces a warning. Since we
intend to use modern autotools to generate makefiles etc for when
we create releases, we should be just fine with tha patch like this.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Build machinery: Build all our library tests

They are runnable via "make check", as per autotools rules.

Signed-off-by: Andreas Ericsson <ae@op5.se>
build machinery: Make 'test' an alias for 'check'

I prefer it personally and it's been the standard for a long time.

Signed-off-by: Andreas Ericsson <ae@op5.se>
fix detecting standard libraries (fixes #6)

the real reason for the 'present but cannot be compiled' warning
is an unknown gcc option which made the configure think the header
cannot be used. Without the -Wno-unused-result the configure is
just fine at the price of some more compiler warnings.
.gitignore some autotool output files

Signed-off-by: Andreas Ericsson <ae@op5.se>