optimize Debian package building

Debian dislikes the use of RPATH[1]. Setting it to our private libdir might be
useful, but not to the global libdir as it is searched anyways.
The SQL plugins set rpath to /usr/lib/<triplet>, strip those away with chrpath.
[1] https://wiki.debian.org/RpathIssue

dh_makeshlibs generates maintainer scripts that call ldconfig.
As we are shipping private libs only, ldconfig won't update anything.
Thus we can ommit the ldconfig call all together.
Calling dh_makeshlibs with -n solves this.

try to build parallel (note: this might break on older debhelpers)

add a build target for generating debian copyright

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
drop SHA license, it's unused and only confuses lintian

we do not ship the problematic SHA files anymore

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Fix sample.
renamed Python plugins example to .py.template

to prevent, that users modify them directly,
as these files get replaced on a package update.

Attention: if plugin is activated
(package is installed and Plugin Directory is definied in the configuration file),
bareos-dir and bareos-sd will refuse to work, because of the missing Python code.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
adding MacOS build targets nothing and all

nothing is the first target, to prevent loops
when Makefile is called again without parameter.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
logrotate all logfiles named bareos*.log

not only bareos.log.
This will include bareos-audit.log (defined in the default configuration)
and possible other logfiles, that come in the future.
Time to keep logfiles increased from 5 to 6 month, to cover half a year.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
disable auditing by default, but active it in conf

auditing is a new feature.
To prevent chaniging behavior, set the default to disable,
but active it in the default configuration.
Add console host in audit messages.

Log the remote hostname of the console session in the audit messages so
you at least know the remote host that uses the default console entry.
glusterfs backend requires expliciet dependency

otherwise only the GlusterFS libraries getting installed,
but not the support files and daemon.
cleanup RPM package descriptions

Signed-off-by: Philipp Storz <philipp.storz@bareos.com>
Fix typo.

Fixes #341: stored compile fails
Allow multiple plugin names.

Next to specifying plugin names a a single colon separated plugin name
list also allow to specify multiple lines with plugin names with one or
more names.
Make comment somewhat more understandable.
Don't let sd and dir python plugins setup signalhandlers.

Just as we already did in the python-fd use Py_InitializeEx(0)
Add missing config printing for new audit events configtype.
be more precise why files are in the public-domain

As per [1], "License: public-domain" needs an explanation why the work
is in the public-domain.

[1] https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
print_config: check if resource it used at all

prevents a segfault on director, when running with debug >= 900

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