handle unset parameter

some scripts (eg. package postinstall script) include bareos-config-lib.sh with settings,
that exit if a variable is undefined.
To prevent problems, function parameter are now used as "${1-}", so that they are never undefined.
Also fixes a bug, when using a database password that contains "/".
"/" is now a allowed character, but "#" is forbidden.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Tweak layout.

- Use enums instead of defines for config types.
- Cleanup mem_pool.h
- Refactor dir_db_log_insert() function.
Drop vMmsg functions.
Translatable string fix
Switch to using a default DSC file.
Added spec for RHEL4

We only build the client programs
Storage to storage copy jobs don't work with TLS.

When both SDs think they are a TLS server the handshake will never be a
success. Now changed the code to use the initiate variable we have which
we already use to know who starts the challenge protocol. That way we
get one TLS server and one TLS client which should work much better.

Fixes #290: Storage to storage copy jobs don't work with TLS enabled.
Add openssl CRL reload logic.

The Bareos daemons neither try to reread configured X.509
CRLs from file system if they expire nor if the daemon receives a
SIGHUP.

Fixes #289: Add openssl CRL reload logic.
Use dbconfig for Debian based distributions

dbconfig-common is a standard mechanism for Debian based distributions,
to assists applications that require a database.

The user still has the choice to configure the database manually, if not,
dbconfig detects what database backends are installed, and the user gets
asked, what connection parameter he wants to use.

If dbconfig is configured correctly, database schema updated are done automatically
on package updates. With export DEBIAN_FRONTEND=noninteractive the user don't get ask,
and dbconfig configures the database backend as good as he can.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Rebuild configure.
Director segfaults doing update slots when all slots are empty

Fixes #293: Director segfaults doing update slots when all slots are empty
Don't show unauthorized schedules/jobs in status scheduler.

Fixes #290: Error in bconsole-ACL
Fix possible memory leak.
Fix missing breaks.
Add missing checkFile function pointer in mssqlvdi-fd.c.
Fix root directory stat() call.

Fixes #292: Fileset - Drive/Path-Error
Fix filed python plugin.

- Fix repr functions regarding printing format %lld/%ld/%d
- Fix missed conversion of some fields in NativeToPyStatPacket and
  PyStatPacketToNative().
- Fix some debug messages which miss space between text and repr output.
Drop reference to temporary statp_repr.
catalog backup on windows works

Now the installer creates batchfiles for
db dump and dump delete and configures
the catalog backup job to call them.

Also fixed uninstall so that everything
installed (also psql dlls) are deleted
on uninstall

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
See if enabling hardening on Ubuntu is now fixed.

We remove the unsetting of the LDFLAGS so on Ubuntu it should now start
using the default hardening flags again.