Use the smarter filedescriptor closing in bpipe.

Instead of closing the filedescriptors ourself (and a maximum
of 29 (32 - 3)) use fcntl(F_CLOSEM) or closefrom() library call
to perform what we really want e.g. close all unneeded filedescriptors
of the forked process.
Start to create defaultconfigs

We want to create default configurations for certain use cases. This
is the first try to create a good default config for disk-only backup.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Rebuild configure.
Remove DVD example.

As DVD support is removed it doesn't make sense to have an example for
a DVD file device.
move make_catalog_backup.pl to bareos-director

move make_catalog_backup.pl to bareos-director, as in the Debian packages.
Also done some cleanup.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
For now disable GNUTLS support.

Until this stuff really works disable the GNUTLS detection in configure.
Rebuild configure
Replaced bat.png and bat_icon.png with Bareos Logo and added bat.svg

The Bat Icon was a brain before, now it is the Bareos Logo.
Also added bat.svg from which the .png files were exported.

Fixes #84: Bat Icon is a brain, we should change to the Bareos Icon

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Fix typo.
Only code shell functions once.

All bareos-ctl-* scripts code the same set of functions which is kind
of stupid. This patch creates a common set of functions which are
included into the script so we only need to code them once and reuse
them. Also added support for pgrep support which is on Platforms like
Solaris and xBSD next to pidof support.
Fix typo.
Fix specfile cleanup for new script.
Add support for starting/stopping deamons.

On debian and ubuntu the init scripts are not registered on install and
unregistered on deinstall of the package. Added the right calls to the
postint script of the different daemons and added prerm scripts to do
the right thing on deinstall.

Fixes #86: No start scripts created during installation
Add ability to dump the content of the cryptocache.

For tape encryption the storage daemon keeps a cache of recently used
data it needs when loading a crypto enabled volume and it doesn't have
a connection to the director (e.g. when starting the SD). The bscrypto
tool already had support for populating the cache with data which is
used when a Disaster Recovery is needed but it would be nice if you
could also dump the content of the cache using the bscrypto tool. There
is no real security risk as you still need read access to the cache file
and the data dumped is the wrapped/encrypted version of the key for
which you need the KeyEncryptionKey to be able to translate it to the
actual key loaded into the drive.
Tweak typo.
Fix layout when printing crypto keys.

First determine what size the volumename and cryptokey column
needs before printing the data. This way we always print the data
in a readable fashion.
Fix printing of crypto cache.

Also fixed input to always clean the input buffer so we don't read
garbage and added a -r option to be able to reset the expiry time of
all entries in the cache by setting the time they were added to the
current time. Updated manpage to document the new flags.
Tweak compiler warning.
Tweak layout.
reduce dependencies