mig_jcr is freed to early.

Because the mig_jcr is already freed in the migration_cleanup() function
all info is lost when we get to the after runscript. This is a design
error so we moved the freeing of the mig_jcr now to just before the Job
actually exits and has done all its work.

Fixes #139: export command in a RunScript ressource does not get the
            correct volume when doing scheduled JobType Copy
Tweak layout.
file job.c is no more

Adapted makefile to correctly build.

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

Unfortunately, with gcc 4.8, libc now is called
- libgcc_s_sjlj-1.dll on 32Bit Windows
- libgcc_s_seh-1.dll  on 64Bit Windows

This patch adapts to that fact.

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

For things like edit_job_codes() to work properly we should tear
down the message resource before we start tearing down the bits
and pieces of the JCR (and mig_jcr). Hopefully we don't trigger
to many deadlocks this way but this seems to be a severe design
flaw in which important state information is destroyed when you
might still want/need it.
Reorder closing message channel.

For every daemon always close the message channel before starting
the cleanup of the JCR so we have a much cleaner code path.

Also tweaked the layout of the code somewhat so that we have more
distinctive code blocks.
Fix cancel to allow multiple job selection.
Used compression algorithms only when compression is done.
Switch to new version number.
Updated README.MD
Fix memory leak.
Extend cancel command to be able to cancel all running jobs

Especially when testing, it would be a very nice feature to be able to
cancel multiple jobs at once.

For the first step, it would be nice to be able to cancel all jobs.
Also useful would be to be able to cancel, jobs of a certain state, e.g.

cancel state=waiting

Fixes #144: Extend cancel command to be able to cancel all running jobs
Fix compiler warning.
bareos-director requires bareos-database-tools

make_catalog_backup.pl (from bareos-director) requires bareso-dbcheck (from bareos-database-tools).

Fixes #148: bareos-director requires bareos-database-tools

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

As we don't have an enterprise version we don't need a bareos
enable enterprise feature flag.
Fix compiler warning.
elaborated the disk-only default config

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

- traymonitor redesign by Frank Ueberschar
- traymon animated shows
- added bareos icon to traymon, installer
  and fd executable

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