Commit f168aa30 authored by John Goerzen's avatar John Goerzen

Import upstream bacula version 1.36.3

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

This diff is collapsed.
Please see the file LICENSE concerning the terms of the license,
copying and such.
This source diff could not be displayed because it is too large. You can view the blob instead.
Release Check List
- Build it on Win32
- Build it on Sun
- Build FD on Irix
- Make new .pdf manual
- Update ChangeLog (add release date)
- Do a cvs commit
- Do a cvs -q export -D now -d bacula-1.nn bacula
- Run the regression tests on the new bacula
- Write ReleaseNotes
- If everything is good
- cd bacula/k
- cvs -q tag Release-1_nn
- cd bacula
- rm -rf bacula-1.nn
- cvs -z3 export -r Release-1_nn -d bacula-1.nn bacula
--------------------------------------------------------------------------
Using GNU autoconfig
--------------------------------------------------------------------------
1. Read the Compiling and Installing section of the HTML manual
in the "doc" directory.
2. Run ./configure to generate config.h and the various Makefiles.
./configure --help gives a list of possible options. Note, in
configuring Bacula, you cannot get by with a simple ./configure,
it is much more complicated than that (unfortunately).
You might look at the "defaultconfig" file in the examples directory.
It is an example of what is probably reasonable for defaults.
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Or if you're using a non Bourne-compatible shell, you can do:
sh -c 'CFLAGS="-O2 -g" ./configure
A typical Bacula development configuration for Linux is:
CFLAGS="-g -O2 -Wall" \
./configure \
--sbindir=$HOME/bacula/bin \
--sysconfdir=$HOME/bacula/bin \
--with-pid-dir=$HOME/bacula/bin/working \
--with-subsys-dir=$HOME/bacula/bin/working \
--enable-smartalloc \
--with-mysql=$HOME/mysql \
--with-working-dir=$HOME/bacula/bin/working \
--with-dump-email=your@address.com \
--with-job-email=your@address.com \
--with-smtp-host=localhost \
--with-baseport=9101
See the README for a few additional details and the online manual
for all the gory details: http://www.bacula.org/html-manual
3. Carefully review the output from ./configure. If it is not
what you want, re-run the ./configure. Often ./configure "caches"
things and thus remembers the last ./configure options. If you
want to be sure you are starting fresh after a ./configure,
do a:
make distclean
before re-running ./configure. "make distclean" wipes out any
knowledge of the ./configure, so don't do it after you have a
configuration that suits your needs, otherwise the "make" will
not work.
4. Set any other main preferences (normally, you don't do this):
Edit "config.h" if you didn't use ./configure options
If you're cross-compiling, edit the following in "config.h"
5. Build it (repeat step 2 as desired):
make
6. Install it
make install
7. Run it
cd $HOME/bacula/bin
./bacula start
./console
(enter commands)
Trademark:
The name Bacula is a registered trademark.
===================================
License:
For the most part, Bacula is licensed under the GPL version 2 or greater
and any code that is Copyright Kern Sibbald and John Walker with the GPL
indication is so licensed, but with the following four additions:
Linking:
Bacula may be linked with any libraries permitted under
the GPL, or with any non-GPLed libraries, including OpenSSL, that
are required for its proper functioning, providing the source
code of those non-GPLed libraries is non-proprietary and freely available.
Termination for IP or Patent Action:
In addition to the termination clause specified in the GPL, this
license shall terminate automatically and you may no longer
exercise any of the rights granted to you by this license as of
the date you commence an action, including a cross-claim or
counterclaim, against any licensor of GPL software alleging that
the software infringes an intellectual property right or a
patent. Special dispensation from or delay to the execution of
this clause may be possible by applying directly to the license
owner of this software. Such a dispensation or delay is valid
only in writing and signed by the one or more of the license
holders.
IP rights:
Recipient understands that although each Contributor grants the
licenses to its Contributions set forth herein, no assurances are
provided by any Contributor that the Program does not infringe
the patent or other intellectual property rights of any other
entity. Each Contributor disclaims any liability to Recipient
for claims brought by any other entity based on infringement of
intellectual property rights or otherwise. As a condition to
exercising the rights and licenses granted hereunder, each
Recipient hereby assumes sole responsibility to secure any other
intellectual property rights needed, if any. For example, if a
third party patent license is required to allow Recipient to
distribute the Program, it is Recipient's responsibility to
acquire that license before distributing the Program.
Copyrights:
Each Contributor represents that to its knowledge it has
sufficient copyright rights in its Contribution, if any, to grant
the copyright license set forth in this Agreement.
Code falling under the above conditions will be marked as follows:
Copyright (C) 2000-2005 Kern Sibbald
or
Copyright (C) 2000-2004 Kern Sibbald and John Walker
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA.
=====================================
The entire GPL is reproduced in the html manual distributed with this
source and can also be found online on the GNU web site as well
as at www.bacula.org.
In addition to the GPL, there are parts of Bacula that are licensed
under the LGPL so that they may be used in proprietary code to interface
with Bacula.
Finally there are parts of Bacula that are in the public domain.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Version $Id: Makefile.in,v 1.50.4.1 2005/02/25 09:46:48 kerns Exp $
#
@MCOMMON@
working_dir=@working_dir@
srcdir = @srcdir@
VPATH = @srcdir@
.PATH: @srcdir@
topdir = .
thisdir = .
first_rule: all
dummy:
# --client-only directories
fd_subdirs = src scripts doc src/lib src/findlib src/filed \
@READLINE_SRC@ src/console rescue rescue/linux \
@GNOME_DIR@ @TRAY_MONITOR_DIR@ @WX_DIR@
# Non-client-only directores
subdirs = src/cats src/dird src/stored src/tools
all_subdirs = ${fd_subdirs} ${@ALL_DIRS@}
DIST = INSTALL README.configure configure Makefile Makefile.in ChangeLog
DIST_CFG = autoconf/aclocal.m4 autoconf/configure.in \
autoconf/config.h.in autoconf/acconfig.h autoconf/Make.common.in \
autoconf/install-sh autoconf/mkinstalldirs
MKDIR = $(srcdir)/autoconf/mkinstalldirs
#-------------------------------------------------------------------------
all: Makefile
@for I in ${all_subdirs}; \
do (cd $$I; echo "==>Entering directory `pwd`"; \
$(MAKE) $@ || (echo ""; echo ""; echo -e " \a\a ====== Error in `pwd` ======\a\a"; \
echo ""; echo "";)); \
done
depend:
@for I in ${all_subdirs}; \
do (cd $$I; echo "==>Entering directory `pwd`"; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
bacula-fd: Makefile
@for I in ${fd_subdirs}; \
do (cd $$I; echo "==>Entering directory `pwd`"; \
$(MAKE) all || (echo ""; echo ""; echo -e " \a\a ====== Error in `pwd` ======\a\a"; \
echo ""; echo "";)); \
done
#-------------------------------------------------------------------------
configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h autoconf/config.h.in
cd $(srcdir);
${RMF} -f config.cache config.log config.out config.status src/config.h
autoconf --prepend-include=$(srcdir)/autoconf \
autoconf/configure.in > configure
chmod 755 configure
old-configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h
cd $(srcdir);
${RMF} -f config.cache config.log config.out config.status src/config.h
autoconf --include=$(srcdir)/autoconf \
autoconf/configure.in > configure
chmod 755 configure
@rm -f config.cache
config.status:
if test -x config.status; then config.status --recheck; \
else $(SHELL) configure; fi
autoconf/config.h.in: autoconf/configure.in autoconf/acconfig.h
cd $(srcdir);
${RMF} -f config.cache config.log config.out config.status src/config.h
autoheader --prepend-include=$(srcdir)/autoconf \
autoconf/configure.in > autoconf/config.h.in
chmod 644 autoconf/config.h.in
installdirs:
$(MKDIR) $(DESTDIR)$(sbindir)
$(MKDIR) $(DESTDIR)$(sysconfdir)
$(MKDIR) $(DESTDIR)$(scriptdir)
$(MKDIR) $(DESTDIR)$(working_dir)
# $(MKDIR) $(DESTDIR)$(mandir)
gnomedirs:
$(MKDIR) $(DESTDIR)/usr/share/pixmaps
$(MKDIR) $(DESTDIR)/usr/share/gnome/apps/System
$(MKDIR) $(DESTDIR)/usr/share/applications
$(MKDIR) $(DESTDIR)/etc/security/console.apps
$(MKDIR) $(DESTDIR)/etc/pam.d
install-menu: gnomedirs
${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png
${INSTALL_DATA} scripts/bacula.desktop.gnome1 $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
${INSTALL_DATA} scripts/bacula.desktop.gnome2 $(DESTDIR)/usr/share/applications/bacula.desktop