]> git.sur5r.net Git - bacula/bacula/blob - bacula/examples/nagios/prepare_for_check_bacula
Add configure bat QWT libraries, so that bat can be built
[bacula/bacula] / bacula / examples / nagios / prepare_for_check_bacula
1 #!/bin/sh
2 #
3 # This script prepares the source for compiling check_bacula
4 #
5 # It's more or less untested, though.
6 #  Submitted by Arno Lehmann <al@its-lehmann.de>
7 #
8
9 # Save configure
10 mv -uiv configure configure.without_check_bacula
11
12 # Modify ./configure
13 sed -e 's/\(ac_config_files=".*$PFILES\)"/\1 src\/check_bacula\/Makefile"/' -e 's/\(^ *# Handling of arguments.*$\)/\1\n  "src\/check_bacula\/Makefile" ) CONFIG_FILES="$CONFIG_FILES src\/check_bacula\/Makefile" ;;/' configure.without_check_bacula > configure
14 chmod a+x configure
15
16 # extract check_bacula source
17 tar xzCf src examples/nagios/nagios_plugin_check_bacula.tgz
18
19 echo "Now you can run ./configure with your usual options. Afterwards, use
20 'make' to create your binaries. Then you can run 'make' in
21 src/check_bacula to create that program.
22
23 If you encounter problems, you'll have to setup the Bacula source manually.
24 The original configure script has been saved to configure.without_check_bacula
25
26 Note that check_bacula does not support TLS and is an unsupported add-on to
27 Bacula. Even if it's not part of the core Bacula programs, questions can be
28 asked at the bacula-users mailing list.
29
30 Bacula is a Trademark of Kern Sibbald. Bacula and the accompanying programs
31 are open source. See the LICENSE file for more information.
32 "