moved dir /etc/bareos/ to bareos-common package

prior, it had been in bareos-director, but it is used in multiple packages.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Fix for win32 installer

We use some libs from the postgres installation, and
in win32, libint is called libint.dll instead of libint-8.dll.

We now use a glob to copy it over
bugfix: invalid sql statement

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
use coverity@bareos.org for coverity scan reports

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
added default Debian build description file.

bareos.dsc is used by OBS, if no distribution specific file (like bareos-Debian_7.0.dsc) is available.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Update AUTHORS file.
check cfg and db conn before startup of director

We now use the possibilty to check the configuration
and database connection on startup of the director before
we really startup the daemon so that we get direct
feedback if something is wrong.

Before, we did not get any feedback because the director
forked so problems only were visible in the logfile.

Without systemd, we get the output directly, with systemd we
need to call "systemctl status bareos-dir.service"

Fixes #286: Alter the startscripts to run the daemons with -t before starting them

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Implement generate_plugin_event bEventPluginCommand

Up until now the so called Options Plugin never did a
generate_plugin_event() for the bEventPluginCommand event when a Options
plugin was specified in the fileset. Now when we finished parsing the
fileset in the term_fileset() function we generate those events for each
plugin which is configured as a Options Plugin in the fileset.

Also added an extra check in the python plugin to check if the python
specific module is loaded before trying to access the dictionary in the
PluginIO() function so in the future we don't crash there anymore.

Fixes #281: fd crashes when trying to execute a python plugin as option plugin
No need to check for this == NULL.
Fix typo

python_loaded is only a member of the p_ctx struct when Python is
detected.
Update LINGUAS

Add Polish language
Merge pull request #15 from NilByMouth/master

Update LINGUAS
added check for unknown database

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
dir startscript also checks the configuration

Also added a debug message to the dummy libbareoscats library
use config file settings to configure database

Let the database configuration scripts get the configuration parameter from the director config file.
Now, the scripts try to get there values in following order:
  1. environment variable (db_name, db_user, db_password)
  2. director config file
  3. fallback value (from configure)

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
bareos-config get_database_param: use dbcheck

modified get_database_param to use bareos-dbcheck to get database parameter
instead of directly accessing the Bareos Director config file.
Because bareos-dbcheck uses the Bareos config parser this prevents problems with different formating.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
get_database_param: return default value

return the default value, if calling bareos-dhcheck fails.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
remove mysql user bareos@%

and tries to avoid problems with make_bareos_tables when called multiple times

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

Restore original author of parts of the code and show that its part of
a refactoring of the code.
Update AUTHORS.