Hi,

10.12.2007 15:47,, Kern Sibbald wrote::

Ok, I decided to not create a patch but rather a small shell script to unpack the distributed tgz file and do the necessary changes to configure. The reason is that I hope that this script will work without modifications for longer than a patch against configure would. Time will tell...

(The script can need some work: Paths of binaries and error checking are missing, for example.)

It is attached. You'll probably want to test it and add the usual copyright stuff to it. It works here, and that's all I can say about it.

Arno

--
Arno Lehmann
IT-Service Lehmann
www.its-lehmann.de
#!/bin/sh
#
# This script prepares the source for compiling check_bacula
#
# It's more or less untested, though.

# Save configure
mv -uiv configure configure.without_check_bacula

# Modify ./configure
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
chmod a+x configure

# extract check_bacula source
tar xzCf src examples/nagios/nagios_plugin_check_bacula.tgz

echo "Now you can run ./configure with your usual options. Afterwards, use
'make' to create your binaries. Then you can run 'make' in
src/check_bacula to create that program.

If you encounter problems, you'll have to setup the Bacula source manually.
The original configure script has been saved to configure.without_check_bacula

Note that check_bacula does not support TLS and is an unsupported add-on to
Bacula. Even if it's not part of the core Bacula programs, questions can be
asked at the bacula-users mailing list.

Bacula is a Trademark of Kern Sibbald. Bacula and the accompanying programs
are open source. See the LICENSE file for more information.
"
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to