Andreas Thienemann 6be8d0
%define working_dir	/var/spool/bacula
Andreas Thienemann 6be8d0
%define script_dir	/usr/libexec/bacula
Andreas Thienemann 6be8d0
#%define rescue_version	2.0.0
Andreas Thienemann 6be8d0
%define docs_version	%{version}
Andreas Thienemann 6be8d0
%define gui_version	%{version}
Andreas Thienemann 6be8d0
%define config_dir	%{_sysconfdir}/bacula
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
Andreas Thienemann 6be8d0
Name: bacula
Jon Ciesla b3e763
Version: 2.4.4
Jon Ciesla ef9677
Release: 4%{?dist}
Tom Callaway 119207
# See LICENSE for details
Tom Callaway 119207
License: GPLv2 with exceptions
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Andreas Thienemann 6be8d0
Source0: http://download.sourceforge.net/bacula/bacula-%{version}.tar.gz
Jon Ciesla a9e945
Source1: http://download.sourceforge.net/bacula/bacula-docs-%{docs_version}.tar.bz2
Andreas Thienemann 6be8d0
#Source2: http://download.sourceforge.net/bacula/bacula-rescue-%{rescue_version}.tar.gz
Andreas Thienemann 6be8d0
Source3: bacula-gconsole.desktop
Andreas Thienemann 6be8d0
Source4: bacula-wxconsole.desktop
Andreas Thienemann 6be8d0
Source5: bacula-traymonitor.desktop
Andreas Thienemann 6be8d0
Source6: bacula.logrotate
Andreas Thienemann 6be8d0
Source7: bacula-fd.init
Andreas Thienemann 6be8d0
Source8: bacula-dir.init
Andreas Thienemann 6be8d0
Source9: bacula-sd.init
Andreas Thienemann 6be8d0
#Source10: http://download.sourceforge.net/bacula/bacula-gui-%{gui_version}.tar.gz
Andreas Thienemann 6be8d0
#Source11: bacula-web.apache
Jon Ciesla 24ed61
Source12: bacula-bat.desktop
Andreas Thienemann 6be8d0
Patch0: bacula-director-configuration.patch
Andreas Thienemann 6be8d0
Patch1: bacula-config.patch
Jon Ciesla a9e945
#Patch2: bacula-wxconsole.patch
Andreas Thienemann 6be8d0
Patch3: bacula-pamd.patch
Jon Ciesla a9e945
#Patch4: 2.0.3-ampm.patch
Jon Ciesla a9e945
#Patch5: 2.0.3-maxbyteslist.patch
Jon Ciesla a9e945
#Patch6: 2.0.3-maxwaittime.patch
Jon Ciesla a9e945
#Patch7: 2.0.3-scheduler-next-hour.patch
Jon Ciesla a9e945
#Patch8: 2.0.3-verify.patch
Jon Ciesla a9e945
#Patch9: 2.0.3-tls-disconnect.patch
Andreas Thienemann 6be8d0
#Patch10: bacula-web-smarty.patch
Jon Ciesla b3e763
#Patch11: bacula-2.4.3-orphaned-jobs.patch
Jon Ciesla b3e763
#Patch12: bacula-2.4.3-python26.patch
Andreas Thienemann 6be8d0
URL: http://www.bacula.org
Andreas Thienemann 6be8d0
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Andreas Thienemann 6be8d0
BuildRequires: openssl-devel, atk-devel, ncurses-devel, pango-devel, perl
Andreas Thienemann 6be8d0
BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel, pkgconfig
Andreas Thienemann 2b828f
BuildRequires: gtk2-devel, libgnomeui-devel, GConf2-devel
Andreas Thienemann 6be8d0
BuildRequires: glibc-devel, ORBit2-devel, libart_lgpl-devel, freetype-devel
Andreas Thienemann 6be8d0
BuildRequires: libbonobo-devel, libbonoboui-devel, bonobo-activation-devel
Andreas Thienemann 6be8d0
BuildRequires: mysql-devel, cdrecord, postgresql-devel, wxGTK-devel
Andreas Thienemann 6be8d0
BuildRequires: desktop-file-utils, python-devel, sqlite-devel, sed,
Andreas Thienemann 6be8d0
BuildRequires: libacl-devel, latex2html, tetex-latex, tetex, ghostscript
Jon Ciesla 24ed61
BuildRequires: dvipdfm, qwt-devel
Andreas Thienemann 6be8d0
Tom Callaway 119207
%if 0%{?fedora} >= 7
Andreas Thienemann 6be8d0
BuildRequires: tcp_wrappers-devel
Andreas Thienemann 6be8d0
%else
Andreas Thienemann 6be8d0
BuildRequires: tcp_wrappers
Andreas Thienemann 6be8d0
%endif
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture and is
Andreas Thienemann 6be8d0
efficient and relatively easy to use, while offering many advanced
Andreas Thienemann 6be8d0
storage management features that make it easy to find and recover lost
Andreas Thienemann 6be8d0
or damaged files.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package director-mysql
Andreas Thienemann 6be8d0
Summary: Bacula Director with MySQL database support
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Andreas Thienemann 6be8d0
Provides: bacula-director = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-director-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description director-mysql
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the bacula director, the server which controls 
Andreas Thienemann 6be8d0
your backup run.
Andreas Thienemann 6be8d0
This director has support for the MySQL database.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package director-sqlite
Andreas Thienemann 6be8d0
Summary: Bacula Director with sqlite database support
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Andreas Thienemann 6be8d0
Provides: bacula-director = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-director-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description director-sqlite
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the bacula director, the server which controls 
Andreas Thienemann 6be8d0
your backup run.
Andreas Thienemann 6be8d0
This director has support for the sqlite database.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package director-postgresql
Andreas Thienemann 6be8d0
Summary: Bacula Director with PostgresSQL database support
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Andreas Thienemann 6be8d0
Provides: bacula-director = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-director-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description director-postgresql
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the bacula director, the server which controls 
Andreas Thienemann 6be8d0
your backup run.
Andreas Thienemann 6be8d0
This director has support for the PostgresSQL database.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package director-common
Andreas Thienemann 6be8d0
Summary: Common Bacula Director files
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Andreas Thienemann 6be8d0
Requires: bacula-director = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-common = %{version}-%{release}
Jon Ciesla b3e763
Requires: logwatch
Andreas Thienemann 6be8d0
Requires(pre): fedora-usermgmt
Andreas Thienemann 6be8d0
Requires(postun): fedora-usermgmt
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description director-common
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the common director files, which are shared 
Andreas Thienemann 6be8d0
between all database backends. You have to select a possible
Andreas Thienemann 6be8d0
database backend though, which provides the needed bacula-director
Andreas Thienemann 6be8d0
dependency. Please choose from bacula-director-mysql,
Andreas Thienemann 6be8d0
bacula-director-sqlite or bacula-director-postgresql.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package client
Andreas Thienemann 6be8d0
Summary: Bacula backup client
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Andreas Thienemann 6be8d0
Requires: bacula-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires(post): /sbin/chkconfig
Andreas Thienemann 6be8d0
Requires(preun): /sbin/chkconfig
Andreas Thienemann 6be8d0
Requires(preun): /sbin/service
Andreas Thienemann 6be8d0
Requires(postun): /sbin/service
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description client
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the bacula client, the daemon running on the 
Andreas Thienemann 6be8d0
system to be backed up.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package storage-common
Andreas Thienemann 6be8d0
Summary: Common Bacula storage daemon files
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Andreas Thienemann 6be8d0
Requires: bacula-storage = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description storage-common
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the storage daemon, the daemon responsible for 
Andreas Thienemann 6be8d0
writing the data received from the clients onto tape drives or other 
Andreas Thienemann 6be8d0
mass storage devices.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package storage-mysql
Andreas Thienemann 6be8d0
Summary: MySQL Bacula storage daemon files
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Andreas Thienemann 6be8d0
Provides: bacula-storage = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-storage-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description storage-mysql
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the storage daemon, the daemon responsible for 
Andreas Thienemann 6be8d0
writing the data received from the clients onto tape drives or other 
Andreas Thienemann 6be8d0
mass storage devices.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package storage-sqlite
Andreas Thienemann 6be8d0
Summary: SQLite Bacula storage daemon files
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Andreas Thienemann 6be8d0
Provides: bacula-storage = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-storage-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description storage-sqlite
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the storage daemon, the daemon responsible for 
Andreas Thienemann 6be8d0
writing the data received from the clients onto tape drives or other 
Andreas Thienemann 6be8d0
mass storage devices.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package storage-postgresql
Andreas Thienemann 6be8d0
Summary: Common Bacula storage daemon files
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Andreas Thienemann 6be8d0
Provides: bacula-storage = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-storage-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: bacula-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description storage-postgresql
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the storage daemon, the daemon responsible for 
Andreas Thienemann 6be8d0
writing the data received from the clients onto tape drives or other 
Andreas Thienemann 6be8d0
mass storage devices.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package common
Andreas Thienemann 6be8d0
Summary: Common Bacula utilities
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Jon Ciesla b3e763
Requires: bacula-sysconfdir = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires(pre): fedora-usermgmt
Andreas Thienemann 6be8d0
Requires(postun): fedora-usermgmt
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description common
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package console
Andreas Thienemann 6be8d0
Summary: Bacula management console
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Jon Ciesla ef9677
Requires: bacula-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description console
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the command-line management console for the bacula 
Andreas Thienemann 6be8d0
backup system.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package console-gnome
Andreas Thienemann 6be8d0
Summary: Bacula console for the Gnome desktop environment
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Jon Ciesla ef9677
Requires: bacula-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: usermode
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description console-gnome
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the gnome version of the bacula management console
Andreas Thienemann 6be8d0
Jon Ciesla 24ed61
%package console-bat
Jon Ciesla 24ed61
Summary: Bacula bat console
Jon Ciesla 24ed61
Group: System Environment/Daemons
Jon Ciesla ef9677
Requires: bacula-common = %{version}-%{release}
Jon Ciesla 24ed61
Requires: usermode
Jon Ciesla 24ed61
Jon Ciesla 24ed61
%description console-bat
Jon Ciesla 24ed61
Bacula is a set of programs that allow you to manage the backup,
Jon Ciesla 24ed61
recovery, and verification of computer data across a network of
Jon Ciesla 24ed61
different computers. It is based on a client/server architecture.
Jon Ciesla 24ed61
Jon Ciesla 24ed61
This package contains the bat version of the bacula management console
Jon Ciesla 24ed61
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package console-wxwidgets
Andreas Thienemann 6be8d0
Summary: Bacula console using the wx widgets toolkit
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Jon Ciesla ef9677
Requires: bacula-common = %{version}-%{release}
Andreas Thienemann 6be8d0
Requires: usermode
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description console-wxwidgets
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the wxWidgets version of the bacula management 
Andreas Thienemann 6be8d0
console.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Jon Ciesla b3e763
%package sysconfdir
Jon Ciesla b3e763
Summary: /etc/bacula dependency for Bacula
Jon Ciesla b3e763
Group: System Environment/Daemons
Jon Ciesla b3e763
Jon Ciesla b3e763
%description sysconfdir
Jon Ciesla b3e763
Bacula is a set of programs that allow you to manage the backup,
Jon Ciesla b3e763
recovery, and verification of computer data across a network of
Jon Ciesla b3e763
different computers. It is based on a client/server architecture.
Jon Ciesla b3e763
Jon Ciesla b3e763
This package provides the /etc/bacula directory in order to satisfy
Jon Ciesla b3e763
certain scripted checks.
Jon Ciesla b3e763
Andreas Thienemann 6be8d0
%package traymonitor
Andreas Thienemann 6be8d0
Summary: Bacula monitor for the Gnome and KDE system tray
Andreas Thienemann 6be8d0
Group: System Environment/Daemons
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description traymonitor
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the Gnome- and KDE-compatible tray monitor to 
Andreas Thienemann 6be8d0
monitor your bacula server.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
#%package web
Andreas Thienemann 6be8d0
#Summary: Bacula Web Interface for monitoring the Backup status
Andreas Thienemann 6be8d0
#Group: System Environment/Daemons
Andreas Thienemann 6be8d0
#Conflicts: bacula-storage-sqlite
Andreas Thienemann 6be8d0
#Requires: php, webserver, php-pear-DB, php-gd, php-Smarty
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
#%description web
Andreas Thienemann 6be8d0
#Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
#recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
#different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
#This package contains the bacula-web PHP application, which is
Andreas Thienemann 6be8d0
#a management level tool for reporting Backup job status.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%package docs
Andreas Thienemann 6be8d0
Summary: Bacula documentation
Andreas Thienemann 6be8d0
Group: Documentation
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%description docs
Andreas Thienemann 6be8d0
Bacula is a set of programs that allow you to manage the backup,
Andreas Thienemann 6be8d0
recovery, and verification of computer data across a network of
Andreas Thienemann 6be8d0
different computers. It is based on a client/server architecture.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
This package contains the documentation for most of the bacula-packages.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%prep
Andreas Thienemann 6be8d0
%setup -q -c -n bacula-%{version}
Andreas Thienemann 6be8d0
%setup -q -a 1 -D -T
Andreas Thienemann 6be8d0
#%setup -q -a 2 -D -T
Andreas Thienemann 6be8d0
#%setup -q -a 10 -D -T
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Patching and other source preparation
Andreas Thienemann 6be8d0
pushd bacula-%{version}
Andreas Thienemann 6be8d0
%patch0 -p1
Andreas Thienemann 6be8d0
%patch1 -p1
Jon Ciesla a9e945
#%patch2 -p1
Andreas Thienemann 6be8d0
%patch3 -p1
Jon Ciesla a9e945
#%patch4 -p0
Jon Ciesla a9e945
#%patch5 -p0
Jon Ciesla a9e945
#%patch6 -p0
Jon Ciesla a9e945
#%patch7 -p0
Jon Ciesla a9e945
#%patch8 -p0
Jon Ciesla a9e945
#%patch9 -p0
Jon Ciesla b3e763
#%patch11 -p0
Jon Ciesla b3e763
#%patch12 -p0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Remove execution permissions from files we're packaging as docs later on
Andreas Thienemann 6be8d0
find examples -type f | xargs chmod -x
Andreas Thienemann 6be8d0
find updatedb -type f | xargs chmod -x
Andreas Thienemann 6be8d0
popd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Remove cvs left-overs
Andreas Thienemann 6be8d0
find -name '.cvsignore' | xargs rm -f 
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Fix perms of c files to silent rpmlint
Andreas Thienemann 6be8d0
find -type f -name '*.c' | xargs chmod -x 
Andreas Thienemann 6be8d0
find -type f -name '*.h' | xargs chmod -x 
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# GUI Stuff is postponed for later
Andreas Thienemann 6be8d0
#pushd bacula-gui-%{gui_version}
Andreas Thienemann 6be8d0
#%patch10 -p0
Andreas Thienemann 6be8d0
#popd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# We are building the source several times, each with a different storage backend
Andreas Thienemann 6be8d0
mkdir bacula-mysql bacula-postgresql bacula-sqlite
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%build
Andreas Thienemann 6be8d0
# Shell function to configure and build a Bacula tree
Andreas Thienemann 6be8d0
build() {
Andreas Thienemann 6be8d0
cp -rl ../bacula-%{version}/* .
Andreas Thienemann 2b828f
export CFLAGS=-I%{_includedir}/ncurses
Andreas Thienemann 2b828f
export CPPFLAGS=-I%{_includedir}/ncurses
Andreas Thienemann 6be8d0
%configure \
Andreas Thienemann 6be8d0
	--sysconfdir=%{_sysconfdir}/bacula \
Andreas Thienemann 6be8d0
	--with-dir-user=bacula \
Andreas Thienemann 6be8d0
	--with-dir-group=bacula \
Andreas Thienemann 6be8d0
	--with-sd-user=bacula \
Andreas Thienemann 6be8d0
	--with-sd-group=bacula \
Andreas Thienemann 6be8d0
	--with-fd-user=root \
Andreas Thienemann 6be8d0
	--with-fd-group=root \
Andreas Thienemann 6be8d0
	--with-dir-password=@@DIR_PASSWORD@@ \
Andreas Thienemann 6be8d0
	--with-fd-password=@@FD_PASSWORD@@ \
Andreas Thienemann 6be8d0
	--with-sd-password=@@SD_PASSWORD@@ \
Andreas Thienemann 6be8d0
	--with-mon-dir-password=@@MON_DIR_PASSWORD@@ \
Andreas Thienemann 6be8d0
	--with-mon-fd-password=@@MON_FD_PASSWORD@@ \
Andreas Thienemann 6be8d0
	--with-mon-sd-password=@@MON_SD_PASSWORD@@ \
Andreas Thienemann 6be8d0
	--with-working-dir=%{working_dir} \
Andreas Thienemann 6be8d0
	--with-scriptdir=%{script_dir} \
Andreas Thienemann 6be8d0
	--with-smtp-host=localhost \
Andreas Thienemann 6be8d0
	--with-subsys-dir=%{_localstatedir}/lock/subsys \
Andreas Thienemann 6be8d0
	--with-pid-dir=%{_localstatedir}/run \
Andreas Thienemann 6be8d0
	--enable-conio \
Andreas Thienemann 6be8d0
	--enable-largefile \
Andreas Thienemann 6be8d0
	--enable-gnome \
Jon Ciesla a9e945
	--enable-bwx-console \
Andreas Thienemann 6be8d0
	--enable-tray-monitor \
Andreas Thienemann 6be8d0
	--enable-build-dird \
Andreas Thienemann 6be8d0
	--enable-build-stored \
Andreas Thienemann 6be8d0
	--with-openssl \
Andreas Thienemann 6be8d0
	--with-tcp-wrappers \
Andreas Thienemann 6be8d0
	--with-python \
Andreas Thienemann 6be8d0
	--enable-smartalloc \
Andreas Thienemann 6be8d0
	--with-x \
Jon Ciesla 24ed61
	--enable-bat \
Jon Ciesla 24ed61
	--with-qwt=/usr/lib \
Andreas Thienemann 6be8d0
	$*
Andreas Thienemann 6be8d0
# Scratch this, it is trouble
Andreas Thienemann 6be8d0
#	--with-readline \
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
if test $? != 0; then 
Andreas Thienemann 6be8d0
  tail -500 config.log
Andreas Thienemann 6be8d0
  : configure failed
Andreas Thienemann 6be8d0
  exit 1
Andreas Thienemann 6be8d0
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%{__make} %{?_smp_mflags}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
}				
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Build sqlite director
Andreas Thienemann 6be8d0
pushd bacula-sqlite
Andreas Thienemann 6be8d0
%if 0%{?fedora}%{?rhel}
Andreas Thienemann 6be8d0
	%if 0%{?fedora}
Andreas Thienemann 663f78
		%if 0%{fedora} >= 5
Andreas Thienemann 6be8d0
			%define	sqlite_suffix 3
Andreas Thienemann 6be8d0
			build --with-sqlite3
Andreas Thienemann 6be8d0
		%else
Andreas Thienemann 6be8d0
			build --with-sqlite
Andreas Thienemann 6be8d0
		%endif
Andreas Thienemann 6be8d0
	%endif
Andreas Thienemann 6be8d0
	%if 0%{?rhel}
Andreas Thienemann 663f78
		%if 0%{rhel} >=  5
Andreas Thienemann 6be8d0
			%define	sqlite_suffix 3
Andreas Thienemann 6be8d0
			build --with-sqlite3
Andreas Thienemann 6be8d0
		%else
Andreas Thienemann 6be8d0
			build --with-sqlite
Andreas Thienemann 6be8d0
		%endif
Andreas Thienemann 6be8d0
	%endif
Andreas Thienemann 6be8d0
%else
Andreas Thienemann 6be8d0
	echo 'Neither %%{fedora} nor %%{rhel} are defined.'
Andreas Thienemann 6be8d0
	echo 'Please call rpmbuild with at least --define "fedora 7" or --define "rhel 5"'
Andreas Thienemann 6be8d0
	echo 'depending on your release version you are building on.'
Andreas Thienemann 6be8d0
	exit 1
Andreas Thienemann 6be8d0
%endif
Andreas Thienemann 6be8d0
popd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Build MySQL director
Andreas Thienemann 6be8d0
pushd bacula-mysql
Andreas Thienemann 6be8d0
	build --with-mysql
Andreas Thienemann 6be8d0
popd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Build PostgreSQL director
Andreas Thienemann 6be8d0
pushd bacula-postgresql
Andreas Thienemann 6be8d0
	build --with-postgresql
Andreas Thienemann 6be8d0
popd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Build the docs
Andreas Thienemann 6be8d0
pushd bacula-docs-%{docs_version}
Andreas Thienemann 6be8d0
 %configure --with-bacula=%{_builddir}/bacula-%{version}/bacula-%{version}
Andreas Thienemann 6be8d0
 make
Andreas Thienemann 6be8d0
popd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%install
Andreas Thienemann 6be8d0
rm -rf %{buildroot}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
pushd bacula-sqlite
Andreas Thienemann 6be8d0
	make install DESTDIR=%{buildroot}
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/bacula-dir  %{buildroot}%{_sbindir}/bacula-dir.sqlite
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/dbcheck  %{buildroot}%{_sbindir}/dbcheck.sqlite
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/bcopy  %{buildroot}%{_sbindir}/bcopy.sqlite
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/bscan  %{buildroot}%{_sbindir}/bscan.sqlite
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
	for script in create_bacula_database drop_bacula_database drop_bacula_tables \
Andreas Thienemann 6be8d0
			grant_bacula_privileges make_bacula_tables make_catalog_backup \
Andreas Thienemann 6be8d0
			update_bacula_tables; do
Andreas Thienemann 6be8d0
		mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.sqlite
Andreas Thienemann 6be8d0
	done
Andreas Thienemann 6be8d0
popd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
pushd bacula-mysql
Andreas Thienemann 6be8d0
	make install DESTDIR=%{buildroot}
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/bacula-dir  %{buildroot}%{_sbindir}/bacula-dir.mysql
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/dbcheck  %{buildroot}%{_sbindir}/dbcheck.mysql
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/bcopy  %{buildroot}%{_sbindir}/bcopy.mysql
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/bscan  %{buildroot}%{_sbindir}/bscan.mysql
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
	for script in create_bacula_database drop_bacula_database drop_bacula_tables \
Andreas Thienemann 6be8d0
			grant_bacula_privileges make_bacula_tables make_catalog_backup \
Andreas Thienemann 6be8d0
			update_bacula_tables; do
Andreas Thienemann 6be8d0
		mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.mysql
Andreas Thienemann 6be8d0
	done
Andreas Thienemann 6be8d0
popd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
pushd bacula-postgresql
Andreas Thienemann 6be8d0
	make install DESTDIR=%{buildroot}
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/bacula-dir  %{buildroot}%{_sbindir}/bacula-dir.postgresql
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/dbcheck  %{buildroot}%{_sbindir}/dbcheck.postgresql
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/bcopy  %{buildroot}%{_sbindir}/bcopy.postgresql
Andreas Thienemann 6be8d0
	mv %{buildroot}%{_sbindir}/bscan  %{buildroot}%{_sbindir}/bscan.postgresql
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
	for script in create_bacula_database drop_bacula_database drop_bacula_tables \
Andreas Thienemann 6be8d0
			grant_bacula_privileges make_bacula_tables make_catalog_backup \
Andreas Thienemann 6be8d0
			update_bacula_tables; do
Andreas Thienemann 6be8d0
		mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.postgresql
Andreas Thienemann 6be8d0
	done
Andreas Thienemann 6be8d0
popd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
pushd bacula-docs-%{docs_version}
Andreas Thienemann 6be8d0
 # No install target anymore, we'll include the stuff directly in the %%files section
Andreas Thienemann 6be8d0
 #	make install DESTDIR=%{buildroot}
Andreas Thienemann 6be8d0
popd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# GUI is not being packaged yet
Andreas Thienemann 6be8d0
#pushd bacula-gui-%{gui_version}/bacula-web
Andreas Thienemann 6be8d0
#	mkdir -p %{buildroot}%{_datadir}/bacula-web
Andreas Thienemann 6be8d0
#	cp -r -p * %{buildroot}%{_datadir}/bacula-web
Andreas Thienemann 6be8d0
#	for f in ChangeLog CONTACT COPYING README TODO; do
Andreas Thienemann 6be8d0
#		rm -f %{buildroot}%{_datadir}/bacula-web/$f
Andreas Thienemann 6be8d0
#	done
Andreas Thienemann 6be8d0
#	rm -f %{buildroot}%{_datadir}/bacula-web/tsmarty2c.php
Andreas Thienemann 6be8d0
#	rm -rf %{buildroot}%{_datadir}/bacula-web/external_packages/smarty
Andreas Thienemann 6be8d0
#	mv %{buildroot}%{_datadir}/bacula-web/configs/bacula.conf %{buildroot}%{_sysconfdir}/bacula/bacula-web.conf
Andreas Thienemann 6be8d0
#	ln -sf /etc/bacula/bacula-web.conf %{buildroot}%{_datadir}/bacula-web/configs/bacula.conf
Andreas Thienemann 6be8d0
#	install -D -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/httpd/conf.d/bacula-web.conf
Andreas Thienemann 6be8d0
#	mkdir -p %{buildroot}%{_localstatedir}/cache/bacula
Andreas Thienemann 6be8d0
#popd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Rename some manpages
Andreas Thienemann 6be8d0
# Not needed right-now
Andreas Thienemann 6be8d0
#mv %{buildroot}%{_mandir}/man1/bacula-tray-monitor.1 %{buildroot}%{_mandir}/man1/tray-monitor.1
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Fix some wrapper braindeadness
Andreas Thienemann 6be8d0
rm -f %{buildroot}%{_libexecdir}/bacula/bconsole
Andreas Thienemann 6be8d0
rm -f %{buildroot}%{_libexecdir}/bacula/gconsole
Jon Ciesla a9e945
mv %{buildroot}%{_sbindir}/bwx-console %{buildroot}%{_sbindir}/bwxconsole
Jon Ciesla a9e945
mv %{buildroot}%{_sysconfdir}/bacula/bwx-console.conf %{buildroot}%{_sysconfdir}/bacula/bwxconsole.conf
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Desktop Integration for the console apps and the traymonitor
Andreas Thienemann 6be8d0
mkdir -p %{buildroot}%{_bindir}
Andreas Thienemann 6be8d0
install -m 644 -D bacula-sqlite/scripts/bacula.png %{buildroot}%{_datadir}/pixmaps/bacula.png
Jon Ciesla a9e945
install -m 644 -D bacula-sqlite/scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bgnome-console
Jon Ciesla a9e945
install -m 644 -D bacula-sqlite/scripts/bgnome-console.console_apps %{buildroot}%{_sysconfdir}/security/console.apps/bgnome-console
Andreas Thienemann 6be8d0
install -m 644 -D bacula-sqlite/src/wx-console/wxwin16x16.xpm %{buildroot}%{_datadir}/pixmaps/wxwin16x16.xpm
Andreas Thienemann 6be8d0
install -m 644 -D bacula-sqlite/scripts/wxconsole.pamd %{buildroot}%{_sysconfdir}/pam.d/wxconsole
Andreas Thienemann 6be8d0
install -m 644 -D bacula-sqlite/scripts/wxconsole.desktop.consolehelper %{buildroot}%{_sysconfdir}/security/console.apps/wxconsole
Jon Ciesla b3e763
#bat.pamd is broken.
Jon Ciesla b3e763
install -m 644 -D bacula-sqlite/scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bat
Jon Ciesla b3e763
install -m 644 -D bacula-sqlite/scripts/bat.desktop.consolehelper %{buildroot}%{_sysconfdir}/security/console.apps/bat
Andreas Thienemann 6be8d0
install -m 644 -D bacula-sqlite/src/tray-monitor/generic.xpm %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.xpm
Jon Ciesla 24ed61
install -m 644 -D bacula-sqlite/src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat_icon.png
Jon Ciesla 24ed61
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
ln -sf consolehelper %{buildroot}%{_bindir}/gnome-console
Andreas Thienemann 6be8d0
ln -sf consolehelper %{buildroot}%{_bindir}/wxconsole
Jon Ciesla b3e763
ln -sf consolehelper %{buildroot}%{_bindir}/bat
Jon Ciesla 24ed61
install -m 755 bacula-sqlite/src/qt-console/bat %{buildroot}%{_sbindir}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE3}
Andreas Thienemann 6be8d0
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE4}
Andreas Thienemann 6be8d0
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE5}
Jon Ciesla 24ed61
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE12}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# logrotate
Andreas Thienemann 6be8d0
mkdir -p %{buildroot}%{_localstatedir}/log/bacula
Andreas Thienemann 6be8d0
install -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/bacula
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# And logwatch
Andreas Thienemann 6be8d0
install -m 755 -D bacula-sqlite/scripts/logwatch/bacula %{buildroot}%{_sysconfdir}/logwatch/scripts/services/bacula
Andreas Thienemann 6be8d0
install -m 644 -D bacula-sqlite/scripts/logwatch/logfile.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
Andreas Thienemann 6be8d0
install -m 644 -D bacula-sqlite/scripts/logwatch/services.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/services/bacula.conf
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Initscripts
Andreas Thienemann 6be8d0
install -m 755 -D %{SOURCE7}  %{buildroot}%{_initrddir}/bacula-fd
Andreas Thienemann 6be8d0
install -m 755 -D %{SOURCE8}  %{buildroot}%{_initrddir}/bacula-dir
Andreas Thienemann 6be8d0
install -m 755 -D %{SOURCE9}  %{buildroot}%{_initrddir}/bacula-sd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Wipe backup files from the multiple make install calls
Andreas Thienemann 6be8d0
rm -vf %{buildroot}%{_sysconfdir}/bacula/*.{new,old}
Andreas Thienemann 6be8d0
rm -vf %{buildroot}%{_libexecdir}/bacula/*.{new,old}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Create the spooling
Andreas Thienemann 6be8d0
mkdir -p %{buildroot}%{_localstatedir}/spool/bacula
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Move some files around
Andreas Thienemann 6be8d0
mv %{buildroot}%{_libexecdir}/bacula/query.sql %{buildroot}%{_sysconfdir}/bacula/query.sql
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Nuke the scripts we do not need
Andreas Thienemann 6be8d0
rm -vf %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,startmysql,stopmysql} 
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
# Fix up some perms so rpmlint does not complain too much
Andreas Thienemann 6be8d0
chmod 755 %{buildroot}%{_sbindir}/*
Andreas Thienemann 6be8d0
chmod 755 %{buildroot}%{_libexecdir}/bacula/*
Andreas Thienemann 6be8d0
chmod 644 %{buildroot}%{_libexecdir}/bacula/btraceback.*
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%clean
Andreas Thienemann 6be8d0
rm -rf %{buildroot}
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%post director-mysql
Andreas Thienemann 6be8d0
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.mysql 50 \
Andreas Thienemann 6be8d0
	--slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.mysql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.mysql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.mysql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.mysql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.mysql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.mysql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.mysql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.mysql
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%post director-sqlite
Andreas Thienemann 6be8d0
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.sqlite 40 \
Andreas Thienemann 6be8d0
	--slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.sqlite \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.sqlite \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.sqlite \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.sqlite \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.sqlite \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.sqlite \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.sqlite \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.sqlite
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%post director-postgresql
Andreas Thienemann 6be8d0
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.postgresql 60 \
Andreas Thienemann 6be8d0
	--slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.postgresql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.postgresql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.postgresql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.postgresql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.postgresql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.postgresql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.postgresql \
Andreas Thienemann 3e4a04
	--slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.postgresql
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%preun director-mysql
Jon Ciesla 3c5f05
if [ "$1" = 0 ]; then
Jon Ciesla 3c5f05
	/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.mysql
Jon Ciesla 3c5f05
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%preun director-sqlite
Jon Ciesla 3c5f05
if [ "$1" = 0 ]; then
Jon Ciesla 3c5f05
	/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.sqlite
Jon Ciesla 3c5f05
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%preun director-postgresql
Jon Ciesla 3c5f05
if [ "$1" = 0 ]; then
Jon Ciesla 3c5f05
	/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.postgresql
Jon Ciesla 3c5f05
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%pre common
Andreas Thienemann 6be8d0
/usr/sbin/fedora-groupadd 33 -r bacula &>/dev/null || :
Andreas Thienemann 6be8d0
/usr/sbin/fedora-useradd  33 -r -s /sbin/nologin -d /var/spool/bacula -M \
Andreas Thienemann 6be8d0
	-c 'Bacula Backup System' -g bacula bacula &>/dev/null || :
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%postun common
Andreas Thienemann 6be8d0
test "$1" != 0 || /usr/sbin/fedora-userdel  bacula &>/dev/null || :
Andreas Thienemann 6be8d0
test "$1" != 0 || /usr/sbin/fedora-groupdel bacula &>/dev/null || :
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%post storage-mysql
Andreas Thienemann 6be8d0
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.mysql 50 \
Andreas Thienemann 6be8d0
	--slave /usr/sbin/dbcheck bacula-bscan /usr/sbin/bscan.mysql 
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%post storage-sqlite
Andreas Thienemann 6be8d0
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.sqlite 40 \
Andreas Thienemann 6be8d0
	--slave /usr/sbin/dbcheck bacula-bscan /usr/sbin/bscan.sqlite
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%post storage-postgresql
Andreas Thienemann 6be8d0
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.postgresql 60 \
Andreas Thienemann 6be8d0
	--slave /usr/sbin/dbcheck bacula-bscan /usr/sbin/bscan.postgresql
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%preun storage-mysql
Jon Ciesla 3c5f05
if [ "$1" = 0 ]; then
Jon Ciesla 3c5f05
	/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.mysql
Jon Ciesla 3c5f05
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%preun storage-sqlite
Jon Ciesla 3c5f05
if [ "$1" = 0 ]; then
Jon Ciesla 3c5f05
	/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.sqlite
Jon Ciesla 3c5f05
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%preun storage-postgresql
Jon Ciesla 3c5f05
if [ "$1" = 0 ]; then
Jon Ciesla 3c5f05
	/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.postgresql
Jon Ciesla 3c5f05
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%post client
Andreas Thienemann 6be8d0
/sbin/chkconfig --add bacula-fd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%preun client
Jon Ciesla 3c5f05
if [ "$1" = 0 ]; then
Andreas Thienemann 6be8d0
	/sbin/service bacula-fd stop >/dev/null 2>&1 || :
Andreas Thienemann 6be8d0
	/sbin/chkconfig --del bacula-fd
Andreas Thienemann 6be8d0
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%postun client
Andreas Thienemann 6be8d0
if [ "$1" -ge "1" ]; then
Andreas Thienemann 6be8d0
	/sbin/service bacula-fd condrestart >/dev/null 2>&1 || :
Andreas Thienemann 6be8d0
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%post director-common
Andreas Thienemann 6be8d0
/sbin/chkconfig --add bacula-dir
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%preun director-common
Jon Ciesla 3c5f05
if [ "$1" = 0 ]; then
Andreas Thienemann 6be8d0
	/sbin/service bacula-dir stop >/dev/null 2>&1 || :
Andreas Thienemann 6be8d0
	/sbin/chkconfig --del bacula-dir
Andreas Thienemann 6be8d0
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%postun director-common
Andreas Thienemann 6be8d0
if [ "$1" -ge "1" ]; then
Andreas Thienemann 6be8d0
	/sbin/service bacula-dir condrestart >/dev/null 2>&1 || :
Andreas Thienemann 6be8d0
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%post storage-common
Andreas Thienemann 6be8d0
/sbin/chkconfig --add bacula-sd
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%preun storage-common
Jon Ciesla 3c5f05
if [ "$1" = 0 ]; then
Andreas Thienemann 6be8d0
	/sbin/service bacula-sd stop >/dev/null 2>&1 || :
Andreas Thienemann 6be8d0
	/sbin/chkconfig --del bacula-sd
Andreas Thienemann 6be8d0
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%postun storage-common
Andreas Thienemann 6be8d0
if [ "$1" -ge "1" ]; then
Andreas Thienemann 6be8d0
	/sbin/service bacula-sd condrestart >/dev/null 2>&1 || :
Andreas Thienemann 6be8d0
fi
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Jon Ciesla b3e763
# For this braindeadness, please see
Jon Ciesla b3e763
# https://bugzilla.redhat.com/show_bug.cgi?id=473627
Jon Ciesla b3e763
%files sysconfdir
Jon Ciesla b3e763
%defattr(-,root,root,-)
Jon Ciesla b3e763
%dir %{_sysconfdir}/bacula
Jon Ciesla b3e763
Jon Ciesla b3e763
Andreas Thienemann 6be8d0
%files common
Jon Ciesla a9e945
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%doc bacula-%{version}/AUTHORS bacula-%{version}/ChangeLog bacula-%{version}/COPYING bacula-%{version}/LICENSE
Andreas Thienemann 6be8d0
%doc bacula-%{version}/README bacula-%{version}/SUPPORT bacula-%{version}/VERIFYING
Andreas Thienemann 6be8d0
%doc bacula-%{version}/examples/
Andreas Thienemann 6be8d0
%config(noreplace) %{_sysconfdir}/logrotate.d/bacula
Andreas Thienemann 6be8d0
%dir %{_libexecdir}/bacula
Andreas Thienemann 6be8d0
%{_sbindir}/bsmtp
Andreas Thienemann 6be8d0
%{_sbindir}/btraceback
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/btraceback.dbx
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/btraceback.gdb
Andreas Thienemann 6be8d0
%{_mandir}/man1/bsmtp.1*
Andreas Thienemann 6be8d0
%{_mandir}/man8/bacula.8*
Andreas Thienemann 6be8d0
%{_mandir}/man8/btraceback.8*
Andreas Thienemann 6be8d0
%dir %attr(750, bacula, bacula) %{_localstatedir}/log/bacula
Andreas Thienemann 6be8d0
%dir %attr(750, bacula, bacula) %{_localstatedir}/spool/bacula
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files client
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%{_sbindir}/bacula-fd
Andreas Thienemann 6be8d0
%{_initrddir}/bacula-fd
Andreas Thienemann 6be8d0
%config(noreplace) %{_sysconfdir}/bacula/bacula-fd.conf
Andreas Thienemann 6be8d0
%{_mandir}/man8/bacula-fd.8*
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files console
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%{_sbindir}/bconsole
Jon Ciesla 8113da
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bconsole.conf
Andreas Thienemann 6be8d0
%{_mandir}/man8/bconsole.8*
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files console-gnome
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Jon Ciesla a9e945
%config %{_sysconfdir}/security/console.apps/bgnome-console
Jon Ciesla a9e945
%config %{_sysconfdir}/pam.d/bgnome-console
Jon Ciesla 8113da
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bgnome-console.conf
Andreas Thienemann 6be8d0
%{_bindir}/gnome-console
Jon Ciesla a9e945
%{_sbindir}/bgnome-console
Jon Ciesla a9e945
%{_mandir}/man1/bacula-bgnome-console.1.gz
Jon Ciesla a9e945
#%{_mandir}/man1/bacula-bconsole-gnome.1*
Andreas Thienemann 6be8d0
%{_datadir}/applications/fedora-bacula-gconsole.desktop
Andreas Thienemann 6be8d0
%{_datadir}/pixmaps/bacula.png
Andreas Thienemann 6be8d0
Jon Ciesla 24ed61
%files console-bat
Jon Ciesla 24ed61
%defattr(-,root,root,-)
Jon Ciesla b3e763
%config %{_sysconfdir}/security/console.apps/bat
Jon Ciesla b3e763
%config %{_sysconfdir}/pam.d/bat
Jon Ciesla 24ed61
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bat.conf
Jon Ciesla b3e763
%{_bindir}/bat
Jon Ciesla 24ed61
%{_sbindir}/bat
Jon Ciesla 24ed61
%{_mandir}/man1/bat.1.gz
Jon Ciesla 24ed61
%{_datadir}/applications/fedora-bacula-bat.desktop
Jon Ciesla 24ed61
%{_datadir}/pixmaps/bat_icon.png
Jon Ciesla 24ed61
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files console-wxwidgets
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%config %{_sysconfdir}/security/console.apps/wxconsole
Andreas Thienemann 6be8d0
%config %{_sysconfdir}/pam.d/wxconsole
Jon Ciesla 8113da
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bwxconsole.conf
Andreas Thienemann 6be8d0
%{_bindir}/wxconsole
Jon Ciesla a9e945
%{_sbindir}/bwxconsole
Jon Ciesla a9e945
%{_mandir}/man1/bacula-bwxconsole.1*
Andreas Thienemann 6be8d0
%{_datadir}/applications/fedora-bacula-wxconsole.desktop
Andreas Thienemann 6be8d0
%{_datadir}/pixmaps/wxwin16x16.xpm
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files director-common
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Jon Ciesla a9e945
%doc bacula-%{version}/updatedb/
Andreas Thienemann 6be8d0
%config(noreplace) %{_sysconfdir}/bacula/bacula-dir.conf
Andreas Thienemann 6be8d0
%config(noreplace) %{_sysconfdir}/bacula/query.sql
Andreas Thienemann 6be8d0
%config %{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
Andreas Thienemann 6be8d0
%config %{_sysconfdir}/logwatch/conf/services/bacula.conf
Andreas Thienemann 6be8d0
%{_sysconfdir}/logwatch/scripts/services/bacula
Andreas Thienemann 6be8d0
%{_initrddir}/bacula-dir
Andreas Thienemann 6be8d0
%{_sbindir}/bregex
Andreas Thienemann 6be8d0
%{_sbindir}/bwild
Andreas Thienemann 6be8d0
%{_mandir}/man8/dbcheck.8*
Andreas Thienemann 6be8d0
%{_mandir}/man8/bacula-dir.8*
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/delete_catalog_backup
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files director-mysql
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%{_sbindir}/bacula-dir.mysql
Andreas Thienemann 6be8d0
%{_sbindir}/dbcheck.mysql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/create_mysql_database
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_mysql_database
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_mysql_tables
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/grant_mysql_privileges
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/make_mysql_tables
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/update_mysql_tables
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/create_bacula_database.mysql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_bacula_database.mysql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_bacula_tables.mysql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/grant_bacula_privileges.mysql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/make_bacula_tables.mysql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/make_catalog_backup.mysql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/update_bacula_tables.mysql
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files director-sqlite
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%{_sbindir}/bacula-dir.sqlite
Andreas Thienemann 6be8d0
%{_sbindir}/dbcheck.sqlite
Andreas Thienemann 6be8d0
# DANGER Will Robinson. Bacula has versioned sqlite filenames
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/create_sqlite%{?sqlite_suffix}_database
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_sqlite%{?sqlite_suffix}_database
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_sqlite%{?sqlite_suffix}_tables
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/grant_sqlite%{?sqlite_suffix}_privileges
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/make_sqlite%{?sqlite_suffix}_tables
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/update_sqlite%{?sqlite_suffix}_tables
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/create_bacula_database.sqlite
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_bacula_database.sqlite
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_bacula_tables.sqlite
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/grant_bacula_privileges.sqlite
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/make_bacula_tables.sqlite
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/make_catalog_backup.sqlite
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/update_bacula_tables.sqlite
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files director-postgresql
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%{_sbindir}/bacula-dir.postgresql
Andreas Thienemann 6be8d0
%{_sbindir}/dbcheck.postgresql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/create_postgresql_database
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_postgresql_database
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_postgresql_tables
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/grant_postgresql_privileges
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/make_postgresql_tables
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/update_postgresql_tables
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/create_bacula_database.postgresql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_bacula_database.postgresql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/drop_bacula_tables.postgresql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/grant_bacula_privileges.postgresql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/make_bacula_tables.postgresql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/make_catalog_backup.postgresql
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/update_bacula_tables.postgresql
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files storage-common
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%{_sbindir}/bacula-sd
Andreas Thienemann 6be8d0
%{_sbindir}/bextract
Andreas Thienemann 6be8d0
%{_sbindir}/bls
Andreas Thienemann 6be8d0
%{_sbindir}/btape
Andreas Thienemann 6be8d0
%config(noreplace) %{_sysconfdir}/bacula/bacula-sd.conf
Andreas Thienemann 6be8d0
%{_initrddir}/bacula-sd
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/disk-changer
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/dvd-handler
Andreas Thienemann 6be8d0
%{_libexecdir}/bacula/mtx-changer
Andreas Thienemann 6be8d0
%{_mandir}/man8/bcopy.8*
Andreas Thienemann 6be8d0
%{_mandir}/man8/bextract.8*
Andreas Thienemann 6be8d0
%{_mandir}/man8/bls.8*
Andreas Thienemann 6be8d0
%{_mandir}/man8/bscan.8*
Andreas Thienemann 6be8d0
%{_mandir}/man8/btape.8*
Andreas Thienemann 6be8d0
%{_mandir}/man8/bacula-sd.8*
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files storage-mysql
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%{_sbindir}/bcopy.mysql
Andreas Thienemann 6be8d0
%{_sbindir}/bscan.mysql
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files storage-sqlite
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%{_sbindir}/bcopy.sqlite
Andreas Thienemann 6be8d0
%{_sbindir}/bscan.sqlite
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files storage-postgresql
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%{_sbindir}/bcopy.postgresql
Andreas Thienemann 6be8d0
%{_sbindir}/bscan.postgresql
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files traymonitor
Andreas Thienemann 6be8d0
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%{_sbindir}/bacula-tray-monitor
Jon Ciesla 8113da
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/tray-monitor.conf
Andreas Thienemann 6be8d0
%{_mandir}/man1/bacula-tray-monitor.1*
Andreas Thienemann 6be8d0
%{_datadir}/applications/fedora-bacula-traymonitor.desktop
Andreas Thienemann 6be8d0
%{_datadir}/pixmaps/bacula-tray-monitor.xpm
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%files docs
Jon Ciesla a9e945
%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
%doc bacula-docs-%{docs_version}/bacula-web/bacula-web.pdf
Andreas Thienemann 6be8d0
%doc bacula-docs-%{docs_version}/bacula-web/bacula-web/
Andreas Thienemann 6be8d0
%doc bacula-docs-%{docs_version}/developers/developers.pdf
Andreas Thienemann 6be8d0
%doc bacula-docs-%{docs_version}/developers/developers/
Andreas Thienemann 6be8d0
%doc bacula-docs-%{docs_version}/manual/bacula.pdf
Andreas Thienemann 6be8d0
%doc bacula-docs-%{docs_version}/manual/bacula/
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
#%files web
Andreas Thienemann 6be8d0
#%defattr(-,root,root,-)
Andreas Thienemann 6be8d0
#%doc bacula-gui-%{gui_version}/bacula-web/CONTACT bacula-gui-%{gui_version}/bacula-web/COPYING
Andreas Thienemann 6be8d0
#%doc bacula-gui-%{gui_version}/bacula-web/README bacula-gui-%{gui_version}/bacula-web/TODO
Andreas Thienemann 6be8d0
#%{_datadir}/bacula-web/
Andreas Thienemann 6be8d0
#%config(noreplace) %{_sysconfdir}/bacula/bacula-web.conf
Andreas Thienemann 6be8d0
#%config(noreplace) %{_sysconfdir}/httpd/conf.d/bacula-web.conf
Andreas Thienemann 6be8d0
#%dir %attr(755, apache, apache) %{_localstatedir}/cache/bacula-web
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
%changelog
Jon Ciesla ef9677
* Thu Jul 23 2009 Jon Ciesla 
Jon Ciesla ef9677
- Put full paths in desktop files. BZ 426790.
Jon Ciesla ef9677
- Moved console requires from sysconfdir to common BZ 505755.
Jon Ciesla ef9677
Jon Ciesla ef9677
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.4-3
Jon Ciesla ef9677
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jon Ciesla ef9677
Jon Ciesla ef9677
* Fri Jan 23 2009 Jon Ciesla 
Jon Ciesla ef9677
- Rebuild against mysql 5.1.
Jon Ciesla ef9677
Jon Ciesla b3e763
* Mon Jan 05 2009 Jon Ciesla 
Jon Ciesla b3e763
- Update to new upstream, 2.4.4.
Jon Ciesla b3e763
- Dropped orphaned jobs patch, python 2.6 patch, applied upstream.
Jon Ciesla b3e763
Jon Ciesla b3e763
* Mon Dec 15 2008 Jon Ciesla 
Jon Ciesla b3e763
- Patched to support Python 2.6, BZ 476547.
Jon Ciesla b3e763
Jon Ciesla b3e763
* Fri Dec 12 2008 Jon Ciesla 
Jon Ciesla b3e763
- Fix consolehelper behaviour for bat.
Jon Ciesla b3e763
Jon Ciesla b3e763
* Wed Dec 10 2008 Jon Ciesla 
Jon Ciesla b3e763
- Re-diffed fuzzy bacula-director-configuration and bacula-config patches.
Jon Ciesla b3e763
Jon Ciesla b3e763
* Mon Dec 1 2008 Andreas Thienemann <andreas@bawue.net> - 2.4.3-4
Jon Ciesla b3e763
- Fixed dependency "issues" #473627 by adding the sysconfdir subpackage.
Jon Ciesla b3e763
Jon Ciesla 24ed61
* Mon Nov 17 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.3-3
Jon Ciesla 24ed61
- Added upstream orphaned jobs patch.
Jon Ciesla 24ed61
- Fixed logrotate file.
Jon Ciesla 24ed61
Jon Ciesla 24ed61
* Mon Nov 10 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.3-2
Jon Ciesla 24ed61
- Added bat.  BZ 470800.
Jon Ciesla 24ed61
Jon Ciesla 5e5853
* Wed Oct 22 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.3-1
Jon Ciesla 5e5853
- Update to 2.4.3.
Jon Ciesla 5e5853
Jon Ciesla 3c5f05
* Tue Sep 09 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.2-2
Jon Ciesla 3c5f05
- Logrotate fix. BZ 457894.
Jon Ciesla 3c5f05
- Alternatives fix. BZ 458432.
Jon Ciesla 3c5f05
Jon Ciesla 4dd05c
* Thu Jul 31 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.2-1
Jon Ciesla 4dd05c
- Update to 2.4.2.
Jon Ciesla 4dd05c
Andreas Thienemann 663f78
* Wed Jul 30 2008 Andreas Thienemann <athienem@redhat.com> - 2.2.8-2
Andreas Thienemann 663f78
- Fixed %%{fedora} comparision, making bacula-sqlite build on rawhide
Andreas Thienemann 663f78
Jon Ciesla a9e945
* Fri Jul 25 2008 Jon Ciesla <limb@jcomserv.net> - 2.2.8-1
Jon Ciesla a9e945
- Update to 2.2.8. BZ 446461.
Jon Ciesla a9e945
- Dropped director and storage DB-server hard Reqs. BZ 426788.
Jon Ciesla a9e945
- .desktop fixes.  BZ 450278, 426789.
Jon Ciesla a9e945
- Updated config patch.
Jon Ciesla a9e945
- Dropped wxconsole patch, applied upstream.
Jon Ciesla a9e945
- Updated pamd patch.
Jon Ciesla a9e945
- Dropped ampm patch, applied upstream.
Jon Ciesla a9e945
- Dropped maxbyteslist patch, N/A.
Jon Ciesla a9e945
- Dropped maxwaittime patch, applied upstream.
Jon Ciesla a9e945
- Dropped scheduler-next-hour patch, applied upstream.
Jon Ciesla a9e945
- Dropped verify patch, applied upstream.
Jon Ciesla a9e945
- Dropped tls-disconnect patch, applied upstream.
Jon Ciesla 8113da
- Fix for 426791.
Jon Ciesla 8113da
- Introduced patch fuzz workaround, will fix.
Jon Ciesla a9e945
Tom Callaway 119207
* Mon Jul  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.3-14
Tom Callaway 119207
- fix conditional comparison
Tom Callaway 119207
- fix license tag
Tom Callaway 119207
Tom Callaway 20a759
* Mon Jan 07 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.3-13
Tom Callaway 20a759
- add BR: dvipdfm
Tom Callaway 20a759
Jesse Keating f68a22
* Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 2.0.3-12
Jesse Keating f68a22
 - Rebuild for deps
Jesse Keating f68a22
Andreas Thienemann 2b828f
* Wed Sep 5 2007 Andreas Thienemann <andreas@bawue.net> - 2.0.3-11
Andreas Thienemann 2b828f
- Remove spooldir in client, fixing #251879
Andreas Thienemann 2b828f
- Remove dependency on libtermcap, fixing #251158
Andreas Thienemann 2b828f
Jesse Keating c84732
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.0.3-10
Jesse Keating c84732
- Rebuild for selinux ppc32 issue.
Jesse Keating c84732
Andreas Thienemann 3e4a04
* Wed Jul 25 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-9
Andreas Thienemann 3e4a04
- Corrected the %%post alternatives calls. Fixing #249560.
Andreas Thienemann 3e4a04
Andreas Thienemann 6be8d0
* Wed Jul 19 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-8
Andreas Thienemann 6be8d0
- Moved some files around in the %%files section and refactored
Andreas Thienemann 6be8d0
  spec parts a bit
Andreas Thienemann 6be8d0
- Fixed up the catalog-backup scripts by including them in the
Andreas Thienemann 6be8d0
  alternatives system
Andreas Thienemann 6be8d0
- Applied tls patch fixing some tls disconnection issues.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
* Thu Jul 18 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-7
Andreas Thienemann 6be8d0
- Minor specchanges, mostly typos in the comments
Andreas Thienemann 6be8d0
- Incorporated minor changes from dgilmore's review.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
* Fri Jul 13 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-6
Andreas Thienemann 6be8d0
- Fixing %%preun scripts. Thx to Dan for spotting this
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
* Fri Jul 13 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-5
Andreas Thienemann 6be8d0
- Fixed provides and requires
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
* Wed Jul 11 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-4
Andreas Thienemann 6be8d0
- Fixed many rpmlint issues
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
* Thu Apr 26 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-3
Andreas Thienemann 6be8d0
- Final cleanups for fedora
Andreas Thienemann 6be8d0
- Removed webgui for now. It will be back in a future release
Andreas Thienemann 6be8d0
- Added LANG=C calls to the initscripts
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
* Thu Apr 26 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-2
Andreas Thienemann 6be8d0
- Added logdir
Andreas Thienemann 6be8d0
- Fixed up doc-creation to actually work
Andreas Thienemann 6be8d0
- Fixed up web interface
Andreas Thienemann 6be8d0
- Included docs sub-package
Andreas Thienemann 6be8d0
- Included README et al as docs where appropriate
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
* Sat Mar 10 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-1
Andreas Thienemann 6be8d0
- Updated to 2.0.3
Andreas Thienemann 6be8d0
- Reverted the database-check as we're not sure the db is running on the
Andreas Thienemann 6be8d0
  local machine. A later revision might parse the bacula-dir.conf file
Andreas Thienemann 6be8d0
  and just connect to the db to see if it's running.
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
* Sat Feb 28 2007 Andreas Thienemann <andreas@bawue.net> 2.0.2-1
Andreas Thienemann 6be8d0
- Further updates on the spec
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
* Sat Feb 18 2007 Andreas Thienemann <andreas@bawue.net> 2.0.2-1
Andreas Thienemann 6be8d0
- Much work on the spec
Andreas Thienemann 6be8d0
- Updated to 2.0.2
Andreas Thienemann 6be8d0
Andreas Thienemann 6be8d0
* Sat Feb 18 2006 Andreas Thienemann <andreas@bawue.net> 1.38.11-1
Andreas Thienemann 6be8d0
- Initial spec.