Reduce dependencies

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Debian packages for bareos-bat and bareos-traymonitor

Debian packages for bareos-bat, bareos-traymonitor and bareos-devel.
Added configure opition --enable-traymonitor (again).
Uses qmake "make" and "make install" instead of special handling in SPEC file.
Moved files belonging to BAT and traymonitor from directory scripts
to source directories.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
make test script a bit more deterministic

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

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Tweak remove acconfig.h dependency

Now we use the 3 arguments AC_DEFINE there is no need for a acconfig.h
with bootstrap info for config.h.in we removed acconfig.h long time ago
but the Makefile still had a dependency.
Rebuild configure.
postinstall (permissions, hostname, passwords)

postinstall (permissions, hostname, passwords) for bat, bconsole and tray-monitor

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
should work with /bin/sh and not only with /bin/bash

fixes #78: bareos-config is not portable

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Fix btape crash on quit.

- Instead of freeing the config before tearing down the whole
  setup only do it when we are really done with the config and
  just before we are about to exit the program.
- don't allocate jcr->comment in butil.c as the setup_jcr function
  already calls new_jcr which also allocated this member and as such
  the memory is leaked and smartalloc complains on exit.

Fixed #91: btape crashes after quit command
should work with /bin/sh and not only with /bin/bash

fixes #78: bareos-config is not portable

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
fixes the paths to the config file and the log file

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
keep permissions on var/log/bareos/

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Tweak Make.common.in with somewhat more usable info.
Fix indent.
Rebuild configure.
Fix segmentation fault when running fill multiple times.

Code frees block but doesn't set the pointer to NULL so a next run of
the code thinks that everything is already allocated but all pointers
point to already freed memory which gives some firework.

Fixes #96: Running fill test twice leads to segmentation violation.
check for windows version (32 or 64 Bits)

Starting the wrong installer will create a warning and
abort the installation.

Fixes #87: Winbareos installer 64 bit does not check, if windows is 64 bit

This patch should also set the right installation dir
for the different windows Versions.
( Program Files / Program Files (x86)

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Use open_bpipe wrapper in bpipe plugin.

Instead of using popen and pclose use the Bareos wrappers open_bpipe
and close_bpipe. This way the unneeded filedescriptors are closed
on fork of the program ran under the bpipe plugin.

Fixes #104: Use open_bpipe wrapper in bpipe plugin.
Update README.md
configure finds mtx also at /usr/sbin/mtx

some distribution store mtx under /usr/sbin/mtx.
As configure runs as normal user, this path is not set.
This patch let configure also look at sbin paths.

fixes #101: variable MTX is not defined

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