[bacula/f16] Spec file formatting
Simone Caronni
slaanesh at fedoraproject.org
Thu Jul 19 12:17:01 UTC 2012
commit 8f4318e225804f18dda64ee9b4474bb26ce11037
Author: Simone Caronni <negativo17 at gmail.com>
Date: Thu Jul 19 14:16:03 2012 +0200
Spec file formatting
bacula.spec | 941 +++++++++++++++++++++++++++++------------------------------
1 files changed, 470 insertions(+), 471 deletions(-)
---
diff --git a/bacula.spec b/bacula.spec
index 2f57912..2dabf60 100644
--- a/bacula.spec
+++ b/bacula.spec
@@ -1,71 +1,71 @@
%global uid 133
%global username bacula
-Name: bacula
-Version: 5.0.3
-Release: 30%{?dist}
-Summary: Cross platform network backup for Linux, Unix, Mac and Windows
+Name: bacula
+Version: 5.0.3
+Release: 30%{?dist}
+Summary: Cross platform network backup for Linux, Unix, Mac and Windows
# See LICENSE for details
-License: AGPLv3 with exceptions
-Group: System Environment/Daemons
-URL: http://www.bacula.org
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-Source0: http://download.sourceforge.net/bacula/bacula-%{version}.tar.gz
-Source2: bacula.logrotate
-Source3: bacula-checkconf
-Source4: bacula-fd.init
-Source5: bacula-dir.init
-Source6: bacula-sd.init
-Source7: bacula-fd.service
-Source8: bacula-dir.service
-Source9: bacula-sd.service
-Source10: bacula-wxconsole.desktop
-Source11: bacula-traymonitor.desktop
-Source12: bacula-bat.desktop
-Source13: bacula-traymonitor.console_apps
-Source14: bacula-wxconsole.console_apps
-Source15: bacula-fd.sysconfig
-Source16: bacula-dir.sysconfig
-Source17: bacula-sd.sysconfig
-
-Patch1: bacula-5.0.3-config.patch
-Patch2: bacula-5.0.3-nagios-ent-fd.patch
-Patch3: bacula-5.0.3-pamd.patch
-Patch4: bacula-5.0.2-openssl.patch
-Patch5: bacula-5.0.3-queryfile.patch
-Patch6: bacula-5.0.2-python27.patch
-Patch7: bacula-5.0.3-log-path.patch
-Patch8: bacula-5.0.3-sqlite-priv.patch
-Patch9: bacula-5.0.3-tray-dir.patch
-Patch10: bacula-5.0.3-mysql55.patch
-Patch11: bacula-5.0.3-maxvalue.patch
-
-BuildRequires: openssl-devel, ncurses-devel, perl, glibc-devel
-BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel
-BuildRequires: mysql-devel, postgresql-devel, sqlite-devel
-BuildRequires: desktop-file-utils, python-devel, lzo-devel, sed
-BuildRequires: libacl-devel, readline-devel, libcap-devel
-
-BuildRequires: atk-devel, pango-devel, pkgconfig
+License: AGPLv3 with exceptions
+Group: System Environment/Daemons
+URL: http://www.bacula.org
+BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+Source0: http://download.sourceforge.net/bacula/bacula-%{version}.tar.gz
+Source2: bacula.logrotate
+Source3: bacula-checkconf
+Source4: bacula-fd.init
+Source5: bacula-dir.init
+Source6: bacula-sd.init
+Source7: bacula-fd.service
+Source8: bacula-dir.service
+Source9: bacula-sd.service
+Source10: bacula-wxconsole.desktop
+Source11: bacula-traymonitor.desktop
+Source12: bacula-bat.desktop
+Source13: bacula-traymonitor.console_apps
+Source14: bacula-wxconsole.console_apps
+Source15: bacula-fd.sysconfig
+Source16: bacula-dir.sysconfig
+Source17: bacula-sd.sysconfig
+
+Patch1: bacula-5.0.3-config.patch
+Patch2: bacula-5.0.3-nagios-ent-fd.patch
+Patch3: bacula-5.0.3-pamd.patch
+Patch4: bacula-5.0.2-openssl.patch
+Patch5: bacula-5.0.3-queryfile.patch
+Patch6: bacula-5.0.2-python27.patch
+Patch7: bacula-5.0.3-log-path.patch
+Patch8: bacula-5.0.3-sqlite-priv.patch
+Patch9: bacula-5.0.3-tray-dir.patch
+Patch10: bacula-5.0.3-mysql55.patch
+Patch11: bacula-5.0.3-maxvalue.patch
+
+BuildRequires: openssl-devel, ncurses-devel, perl, glibc-devel
+BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel
+BuildRequires: mysql-devel, postgresql-devel, sqlite-devel
+BuildRequires: desktop-file-utils, python-devel, lzo-devel, sed
+BuildRequires: libacl-devel, readline-devel, libcap-devel
+
+BuildRequires: atk-devel, pango-devel, pkgconfig
%if ! 0%{?rhel}
-BuildRequires: wxGTK-devel
+BuildRequires: wxGTK-devel
%endif
-BuildRequires: gtk2-devel, libgnomeui-devel, GConf2-devel, bonobo-activation-devel
-BuildRequires: ORBit2-devel, libbonobo-devel, libbonoboui-devel
+BuildRequires: gtk2-devel, libgnomeui-devel, GConf2-devel, bonobo-activation-devel
+BuildRequires: ORBit2-devel, libbonobo-devel, libbonoboui-devel
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
-BuildRequires: qt4-devel >= 4.6.2
+BuildRequires: qt4-devel >= 4.6.2
%endif
%if 0%{?fedora} >= 7 || 0%{?rhel} >= 6
-BuildRequires: tcp_wrappers-devel
+BuildRequires: tcp_wrappers-devel
%else
-BuildRequires: tcp_wrappers
+BuildRequires: tcp_wrappers
%endif
%if 0%{?fedora} >= 16 || 0%{?rhel} > 6
-BuildRequires: systemd-units
+BuildRequires: systemd-units
%endif
@@ -79,334 +79,333 @@ or damaged files.
%package libs
-Summary: Bacula libraries
-Group: System Environment/Daemons
+Summary: Bacula libraries
+Group: System Environment/Daemons
%description libs
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains basic Bacula libraries, which are used by all
-Bacula programs.
+This package contains basic Bacula libraries, which are used by all Bacula
+programs.
%package libs-mysql
-Summary: Bacula libraries
-Group: System Environment/Daemons
+Summary: Bacula libraries
+Group: System Environment/Daemons
%description libs-mysql
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains basic Bacula libraries, which are used by all
-Bacula programs. These libraries support MySQL databases.
+This package contains basic Bacula libraries, which are used by all Bacula
+programs. These libraries support MySQL databases.
%package libs-sqlite
-Summary: Bacula libraries
-Group: System Environment/Daemons
+Summary: Bacula libraries
+Group: System Environment/Daemons
%description libs-sqlite
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains basic Bacula libraries, which are used by all
-Bacula programs. These libraries support SQLite databases.
+This package contains basic Bacula libraries, which are used by all Bacula
+programs. These libraries support SQLite databases.
%package libs-postgresql
-Summary: Bacula libraries
-Group: System Environment/Daemons
+Summary: Bacula libraries
+Group: System Environment/Daemons
%description libs-postgresql
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains basic Bacula libraries, which are used by all
-Bacula programs. These libraries support PostgreSQL databases.
+This package contains basic Bacula libraries, which are used by all Bacula
+programs. These libraries support PostgreSQL databases.
%package director-mysql
-Summary: Bacula Director with MySQL database support
-Group: System Environment/Daemons
-Provides: bacula-director = %{version}-%{release}
-Requires: bacula-director-common = %{version}-%{release}
-Requires: bacula-common = %{version}-%{release}
-Requires: bacula-libs-mysql = %{version}-%{release}
+Summary: Bacula Director with MySQL database support
+Group: System Environment/Daemons
+Provides: bacula-director = %{version}-%{release}
+Requires: bacula-director-common = %{version}-%{release}
+Requires: bacula-common = %{version}-%{release}
+Requires: bacula-libs-mysql = %{version}-%{release}
%description director-mysql
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the bacula director, the server which controls
-your backup run.
-This director has support for the MySQL database.
+This package contains the bacula director, the server which controls your
+backup run. This director has support for the MySQL database.
%package director-sqlite
-Summary: Bacula Director with sqlite database support
-Group: System Environment/Daemons
-Provides: bacula-director = %{version}-%{release}
-Requires: bacula-director-common = %{version}-%{release}
-Requires: bacula-common = %{version}-%{release}
-Requires: bacula-libs-sqlite = %{version}-%{release}
+Summary: Bacula Director with SQLite database support
+Group: System Environment/Daemons
+Provides: bacula-director = %{version}-%{release}
+Requires: bacula-director-common = %{version}-%{release}
+Requires: bacula-common = %{version}-%{release}
+Requires: bacula-libs-sqlite = %{version}-%{release}
%description director-sqlite
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the bacula director, the server which controls
-your backup run.
-This director has support for the sqlite database.
+This package contains the bacula director, the server which controls your
+backup run. This director has support for the SQLite database.
%package director-postgresql
-Summary: Bacula Director with PostgresSQL database support
-Group: System Environment/Daemons
-Provides: bacula-director = %{version}-%{release}
-Requires: bacula-director-common = %{version}-%{release}
-Requires: bacula-common = %{version}-%{release}
-Requires: bacula-libs-postgresql = %{version}-%{release}
+Summary: Bacula Director with PostgresSQL database support
+Group: System Environment/Daemons
+Provides: bacula-director = %{version}-%{release}
+Requires: bacula-director-common = %{version}-%{release}
+Requires: bacula-common = %{version}-%{release}
+Requires: bacula-libs-postgresql = %{version}-%{release}
%description director-postgresql
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the bacula director, the server which controls
-your backup run.
-This director has support for the PostgresSQL database.
+This package contains the bacula director, the server which controls your
+backup run. This director has support for the PostgresSQL database.
%package director-common
-Summary: Common Bacula Director files
-Group: System Environment/Daemons
-Requires: bacula-director = %{version}-%{release}
-Requires: bacula-common = %{version}-%{release}
-Requires: logwatch
-Requires(pre): shadow-utils
-Requires(postun): shadow-utils
+Summary: Common Bacula Director files
+Group: System Environment/Daemons
+Requires: bacula-director = %{version}-%{release}
+Requires: bacula-common = %{version}-%{release}
+Requires: logwatch
+Requires(pre): shadow-utils
+Requires(postun): shadow-utils
%if 0%{?fedora} >= 16 || 0%{?rhel} > 6
-Requires(post): systemd-sysv
-Requires(post): systemd-units
-Requires(preun): systemd-units
-Requires(postun): systemd-units
+Requires(post): systemd-sysv
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
%else
-Requires(post): /sbin/chkconfig
-Requires(preun): /sbin/chkconfig
-Requires(preun): /sbin/service
-Requires(postun): /sbin/service
+Requires(post): /sbin/chkconfig
+Requires(preun): /sbin/chkconfig
+Requires(preun): /sbin/service
+Requires(postun): /sbin/service
%endif
%description director-common
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the common director files, which are shared
-between all database backends. You have to select a possible
-database backend though, which provides the needed bacula-director
-dependency. Please choose from bacula-director-mysql,
-bacula-director-sqlite or bacula-director-postgresql.
+This package contains the common director files, which are shared between all
+database backends. You have to select a possible database backend though, which
+provides the needed bacula-director dependency. Please choose from
+bacula-director-mysql, bacula-director-sqlite or bacula-director-postgresql.
%package client
-Summary: Bacula backup client
-Group: System Environment/Daemons
-Requires: bacula-common = %{version}-%{release}
+Summary: Bacula backup client
+Group: System Environment/Daemons
+Requires: bacula-common = %{version}-%{release}
%if 0%{?fedora} >= 16 || 0%{?rhel} > 6
-Requires(post): systemd-sysv
-Requires(post): systemd-units
-Requires(preun): systemd-units
-Requires(postun): systemd-units
+Requires(post): systemd-sysv
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
%else
-Requires(post): /sbin/chkconfig
-Requires(preun): /sbin/chkconfig
-Requires(preun): /sbin/service
-Requires(postun): /sbin/service
+Requires(post): /sbin/chkconfig
+Requires(preun): /sbin/chkconfig
+Requires(preun): /sbin/service
+Requires(postun): /sbin/service
%endif
%description client
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the bacula client, the daemon running on the
-system to be backed up.
+This package contains the bacula client, the daemon running on the system to be
+backed up.
%package storage-common
-Summary: Common Bacula storage daemon files
-Group: System Environment/Daemons
-Requires: bacula-storage = %{version}-%{release}
-Requires: bacula-common = %{version}-%{release}
+Summary: Common Bacula storage daemon files
+Group: System Environment/Daemons
+Requires: bacula-storage = %{version}-%{release}
+Requires: bacula-common = %{version}-%{release}
%if 0%{?fedora} >= 16 || 0%{?rhel} > 6
-Requires(post): systemd-sysv
-Requires(post): systemd-units
-Requires(preun): systemd-units
-Requires(postun): systemd-units
+Requires(post): systemd-sysv
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
%else
-Requires(post): /sbin/chkconfig
-Requires(preun): /sbin/chkconfig
-Requires(preun): /sbin/service
-Requires(postun): /sbin/service
+Requires(post): /sbin/chkconfig
+Requires(preun): /sbin/chkconfig
+Requires(preun): /sbin/service
+Requires(postun): /sbin/service
%endif
%description storage-common
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the storage daemon, the daemon responsible for
-writing the data received from the clients onto tape drives or other
-mass storage devices.
+This package contains the storage daemon, the daemon responsible for writing
+the data received from the clients onto tape drives or other mass storage
+devices.
%package storage-mysql
-Summary: MySQL Bacula storage daemon files
-Group: System Environment/Daemons
-Provides: bacula-storage = %{version}-%{release}
-Requires: bacula-storage-common = %{version}-%{release}
-Requires: bacula-common = %{version}-%{release}
-Requires: bacula-libs-mysql = %{version}-%{release}
+Summary: MySQL Bacula storage daemon files
+Group: System Environment/Daemons
+Provides: bacula-storage = %{version}-%{release}
+Requires: bacula-storage-common = %{version}-%{release}
+Requires: bacula-common = %{version}-%{release}
+Requires: bacula-libs-mysql = %{version}-%{release}
%description storage-mysql
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the storage daemon, the daemon responsible for
-writing the data received from the clients onto tape drives or other
-mass storage devices.
+This package contains the storage daemon, the daemon responsible for writing
+the data received from the clients onto tape drives or other mass storage
+devices. This storage daemon has support for the MySQL database.
%package storage-sqlite
-Summary: SQLite Bacula storage daemon files
-Group: System Environment/Daemons
-Provides: bacula-storage = %{version}-%{release}
-Requires: bacula-storage-common = %{version}-%{release}
-Requires: bacula-common = %{version}-%{release}
-Requires: bacula-libs-sqlite = %{version}-%{release}
+Summary: SQLite Bacula storage daemon files
+Group: System Environment/Daemons
+Provides: bacula-storage = %{version}-%{release}
+Requires: bacula-storage-common = %{version}-%{release}
+Requires: bacula-common = %{version}-%{release}
+Requires: bacula-libs-sqlite = %{version}-%{release}
%description storage-sqlite
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the storage daemon, the daemon responsible for
-writing the data received from the clients onto tape drives or other
-mass storage devices.
+This package contains the storage daemon, the daemon responsible for writing
+the data received from the clients onto tape drives or other mass storage
+devices. This storage daemon has support for the SQLite database.
%package storage-postgresql
-Summary: Common Bacula storage daemon files
-Group: System Environment/Daemons
-Provides: bacula-storage = %{version}-%{release}
-Requires: bacula-storage-common = %{version}-%{release}
-Requires: bacula-common = %{version}-%{release}
-Requires: bacula-libs-postgresql = %{version}-%{release}
+Summary: Common Bacula storage daemon files
+Group: System Environment/Daemons
+Provides: bacula-storage = %{version}-%{release}
+Requires: bacula-storage-common = %{version}-%{release}
+Requires: bacula-common = %{version}-%{release}
+Requires: bacula-libs-postgresql = %{version}-%{release}
%description storage-postgresql
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the storage daemon, the daemon responsible for
-writing the data received from the clients onto tape drives or other
-mass storage devices.
+This package contains the storage daemon, the daemon responsible for writing
+the data received from the clients onto tape drives or other mass storage
+devices. This storage daemon has support for the PostgreSQL database.
%package common
-Summary: Common Bacula utilities
-Group: System Environment/Daemons
-Obsoletes: bacula-console-gnome <= 3.0.3
+Summary: Common Bacula utilities
+Group: System Environment/Daemons
+Obsoletes: bacula-console-gnome <= 3.0.3
%description common
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
+
+This package contains common files to all bacula related components.
%package console
-Summary: Bacula management console
-Group: System Environment/Daemons
-Requires: bacula-common = %{version}-%{release}
+Summary: Bacula management console
+Group: System Environment/Daemons
+Requires: bacula-common = %{version}-%{release}
%description console
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the command-line management console for the bacula
-backup system.
+This package contains the command-line management console for the bacula backup
+system.
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
+
%package console-bat
-Summary: Bacula bat console
-Group: System Environment/Daemons
-Requires: bacula-common = %{version}-%{release}
-Requires: usermode
+Summary: Bacula bat console
+Group: System Environment/Daemons
+Requires: bacula-common = %{version}-%{release}
+Requires: usermode
%description console-bat
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
+
+This package contains the bat version of the bacula management console.
-This package contains the bat version of the bacula management console
%endif
%package console-wxwidgets
-Summary: Bacula console using the wx widgets toolkit
-Group: System Environment/Daemons
-Requires: bacula-common = %{version}-%{release}
-Requires: usermode
+Summary: Bacula console using the wx widgets toolkit
+Group: System Environment/Daemons
+Requires: bacula-common = %{version}-%{release}
+Requires: usermode
%description console-wxwidgets
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the wxWidgets version of the bacula management
-console.
+This package contains the wxWidgets version of the bacula management console.
%package traymonitor
-Summary: Bacula monitor for the Gnome and KDE system tray
-Group: System Environment/Daemons
-Requires: bacula-common = %{version}-%{release}
+Summary: Bacula monitor for the Gnome and KDE system tray
+Group: System Environment/Daemons
+Requires: bacula-common = %{version}-%{release}
%description traymonitor
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
-This package contains the Gnome- and KDE-compatible tray monitor to
-monitor your bacula server.
+This package contains the Gnome- and KDE-compatible tray monitor to monitor
+your bacula server.
%package devel
-Summary: Bacula development files
-Group: Development/Libraries
+Summary: Bacula development files
+Group: Development/Libraries
%description devel
-Bacula is a set of programs that allow you to manage the backup,
-recovery, and verification of computer data across a network of
-different computers. It is based on a client/server architecture.
+Bacula is a set of programs that allow you to manage the backup, recovery, and
+verification of computer data across a network of different computers. It is
+based on a client/server architecture.
This development package contains static libraries and header files.
%package -n nagios-plugins-bacula
-Summary: Nagios Plugin - check_bacula
-Group: Applications/System
+Summary: Nagios Plugin - check_bacula
+Group: Applications/System
%description -n nagios-plugins-bacula
Provides check_bacula support for Nagios.
@@ -452,36 +451,36 @@ cp -rl ../bacula-%{version}/* .
export CFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
export CPPFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
%configure \
- --sysconfdir=%{_sysconfdir}/bacula \
- --with-basename=bacula \
- --with-dir-user=bacula \
- --with-dir-group=bacula \
- --with-sd-user=bacula \
- --with-sd-group=disk \
- --with-fd-user=root \
- --with-fd-group=root \
- --with-dir-password=@@DIR_PASSWORD@@ \
- --with-fd-password=@@FD_PASSWORD@@ \
- --with-sd-password=@@SD_PASSWORD@@ \
- --with-mon-dir-password=@@MON_DIR_PASSWORD@@ \
- --with-mon-fd-password=@@MON_FD_PASSWORD@@ \
- --with-mon-sd-password=@@MON_SD_PASSWORD@@ \
- --with-working-dir=%{_localstatedir}/spool/bacula \
- --with-logdir=%{_localstatedir}/log/bacula \
- --with-scriptdir=%{_libexecdir}/bacula \
- --with-smtp-host=localhost \
- --with-subsys-dir=%{_localstatedir}/lock/subsys \
- --with-pid-dir=%{_localstatedir}/run \
- --with-plugindir=%{_libdir}/bacula \
- --disable-conio \
- --enable-readline \
- --enable-largefile \
- --with-openssl \
- --with-tcp-wrappers \
- --with-python \
- --enable-smartalloc \
- --with-x \
- $*
+ --sysconfdir=%{_sysconfdir}/bacula \
+ --with-basename=bacula \
+ --with-dir-user=bacula \
+ --with-dir-group=bacula \
+ --with-sd-user=bacula \
+ --with-sd-group=disk \
+ --with-fd-user=root \
+ --with-fd-group=root \
+ --with-dir-password=@@DIR_PASSWORD@@ \
+ --with-fd-password=@@FD_PASSWORD@@ \
+ --with-sd-password=@@SD_PASSWORD@@ \
+ --with-mon-dir-password=@@MON_DIR_PASSWORD@@ \
+ --with-mon-fd-password=@@MON_FD_PASSWORD@@ \
+ --with-mon-sd-password=@@MON_SD_PASSWORD@@ \
+ --with-working-dir=%{_localstatedir}/spool/bacula \
+ --with-logdir=%{_localstatedir}/log/bacula \
+ --with-scriptdir=%{_libexecdir}/bacula \
+ --with-smtp-host=localhost \
+ --with-subsys-dir=%{_localstatedir}/lock/subsys \
+ --with-pid-dir=%{_localstatedir}/run \
+ --with-plugindir=%{_libdir}/bacula \
+ --disable-conio \
+ --enable-readline \
+ --enable-largefile \
+ --with-openssl \
+ --with-tcp-wrappers \
+ --with-python \
+ --enable-smartalloc \
+ --with-x \
+ $*
if test $? != 0; then
tail -500 config.log
@@ -495,70 +494,70 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{__make} %{?_smp_mflags} NO_ECHO=
-}
+}
# Regen bat QT project file and build tools
pushd bacula-base
- %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
- export QMAKE=/usr/bin/qmake-qt4
- build \
- --enable-bat \
- --htmldir=%{_datadir}/doc/bacula-console-bat-%{version} \
- %if ! 0%{?rhel}
- --enable-bwx-console \
- %endif
- --enable-tray-monitor \
- --enable-client-only
- pushd src/qt-console
- /usr/bin/qmake-qt4
- make
- popd
- %else
- build \
- --disable-bat \
- --enable-bwx-console \
- --enable-tray-monitor \
- --enable-client-only
- %endif
- pushd examples/nagios/check_bacula
- CFLAGS="%{optflags}" %{__make} LIBS="-lpthread -ldl -lssl -lcrypto -lz"
- popd
+ %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
+ export QMAKE=/usr/bin/qmake-qt4
+ build \
+ --enable-bat \
+ --htmldir=%{_datadir}/doc/bacula-console-bat-%{version} \
+ %if ! 0%{?rhel}
+ --enable-bwx-console \
+ %endif
+ --enable-tray-monitor \
+ --enable-client-only
+ pushd src/qt-console
+ /usr/bin/qmake-qt4
+ make
+ popd
+ %else
+ build \
+ --disable-bat \
+ --enable-bwx-console \
+ --enable-tray-monitor \
+ --enable-client-only
+ %endif
+ pushd examples/nagios/check_bacula
+ CFLAGS="%{optflags}" %{__make} LIBS="-lpthread -ldl -lssl -lcrypto -lz"
+ popd
popd
# Build sqlite director
pushd bacula-sqlite
- build \
- --disable-bat \
- --disable-bwx-console \
- --disable-tray-monitor \
- --enable-build-stored \
- --enable-build-dird \
- --enable-batch-insert \
- --with-sqlite3
+ build \
+ --disable-bat \
+ --disable-bwx-console \
+ --disable-tray-monitor \
+ --enable-build-stored \
+ --enable-build-dird \
+ --enable-batch-insert \
+ --with-sqlite3
popd
# Build MySQL director
pushd bacula-mysql
- build \
- --disable-bat \
- --disable-bwx-console \
- --disable-tray-monitor \
- --enable-build-stored \
- --enable-build-dird \
- --enable-batch-insert \
- --with-mysql
+ build \
+ --disable-bat \
+ --disable-bwx-console \
+ --disable-tray-monitor \
+ --enable-build-stored \
+ --enable-build-dird \
+ --enable-batch-insert \
+ --with-mysql
popd
# Build PostgreSQL director
pushd bacula-postgresql
- build \
- --disable-bat \
- --disable-bwx-console \
- --disable-tray-monitor \
- --enable-build-stored \
- --enable-build-dird \
- --enable-batch-insert \
- --with-postgresql
+ build \
+ --disable-bat \
+ --disable-bwx-console \
+ --disable-tray-monitor \
+ --enable-build-stored \
+ --enable-build-dird \
+ --enable-batch-insert \
+ --with-postgresql
popd
@@ -566,92 +565,92 @@ popd
rm -rf %{buildroot}
pushd bacula-base
- make install DESTDIR=%{buildroot}
-
- # install the nagios plugin
- %{__mkdir_p} %{buildroot}%{_libdir}/nagios/plugins
- %{__install} -m0755 examples/nagios/check_bacula/.libs/check_bacula %{buildroot}%{_libdir}/nagios/plugins/
-
- # Desktop Integration
- mkdir -p %{buildroot}%{_bindir}
- install -m 644 -D scripts/bacula.png %{buildroot}%{_datadir}/pixmaps/bacula.png
-
- %if ! 0%{?rhel}
- # bwxconsole
- install -m 644 -D src/wx-console/wxwin16x16.xpm %{buildroot}%{_datadir}/pixmaps/wxwin16x16.xpm
- install -m 644 -D scripts/wxconsole.pamd %{buildroot}%{_sysconfdir}/pam.d/bwxconsole
- install -m 644 -D %{SOURCE14} %{buildroot}%{_sysconfdir}/security/console.apps/bwxconsole
- ln -sf consolehelper %{buildroot}%{_bindir}/bwxconsole
- desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE10}
- %endif
-
- install -m 644 -D src/tray-monitor/generic.xpm %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.xpm
- install -m 644 -D scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bacula-tray-monitor
- install -m 644 -D %{SOURCE13} %{buildroot}%{_sysconfdir}/security/console.apps/bacula-tray-monitor
- ln -sf consolehelper %{buildroot}%{_bindir}/bacula-tray-monitor
- desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE11}
-
- %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
- install -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat_icon.png
- install -m 644 -D scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bat
- install -m 644 -D scripts/bat.console_apps %{buildroot}%{_sysconfdir}/security/console.apps/bat
- ln -sf consolehelper %{buildroot}%{_bindir}/bat
- desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE12}
-
- install -m 755 -D src/qt-console/.libs/bat %{buildroot}%{_sbindir}
- install -m 644 -D src/qt-console/bat.conf %{buildroot}%{_sysconfdir}/bacula/bat.conf
- %endif
+ make install DESTDIR=%{buildroot}
+
+ # install the nagios plugin
+ %{__mkdir_p} %{buildroot}%{_libdir}/nagios/plugins
+ %{__install} -m0755 examples/nagios/check_bacula/.libs/check_bacula %{buildroot}%{_libdir}/nagios/plugins/
+
+ # Desktop Integration
+ mkdir -p %{buildroot}%{_bindir}
+ install -m 644 -D scripts/bacula.png %{buildroot}%{_datadir}/pixmaps/bacula.png
+
+ %if ! 0%{?rhel}
+ # bwxconsole
+ install -m 644 -D src/wx-console/wxwin16x16.xpm %{buildroot}%{_datadir}/pixmaps/wxwin16x16.xpm
+ install -m 644 -D scripts/wxconsole.pamd %{buildroot}%{_sysconfdir}/pam.d/bwxconsole
+ install -m 644 -D %{SOURCE14} %{buildroot}%{_sysconfdir}/security/console.apps/bwxconsole
+ ln -sf consolehelper %{buildroot}%{_bindir}/bwxconsole
+ desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE10}
+ %endif
+
+ install -m 644 -D src/tray-monitor/generic.xpm %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.xpm
+ install -m 644 -D scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bacula-tray-monitor
+ install -m 644 -D %{SOURCE13} %{buildroot}%{_sysconfdir}/security/console.apps/bacula-tray-monitor
+ ln -sf consolehelper %{buildroot}%{_bindir}/bacula-tray-monitor
+ desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE11}
+
+ %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
+ install -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat_icon.png
+ install -m 644 -D scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bat
+ install -m 644 -D scripts/bat.console_apps %{buildroot}%{_sysconfdir}/security/console.apps/bat
+ ln -sf consolehelper %{buildroot}%{_bindir}/bat
+ desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE12}
+
+ install -m 755 -D src/qt-console/.libs/bat %{buildroot}%{_sbindir}
+ install -m 644 -D src/qt-console/bat.conf %{buildroot}%{_sysconfdir}/bacula/bat.conf
+ %endif
popd
pushd bacula-sqlite
- make install DESTDIR=%{buildroot}
- mv %{buildroot}%{_sbindir}/bacula-dir %{buildroot}%{_sbindir}/bacula-dir.sqlite
- mv %{buildroot}%{_sbindir}/dbcheck %{buildroot}%{_sbindir}/dbcheck.sqlite
- mv %{buildroot}%{_sbindir}/bcopy %{buildroot}%{_sbindir}/bcopy.sqlite
- mv %{buildroot}%{_sbindir}/bscan %{buildroot}%{_sbindir}/bscan.sqlite
- mv %{buildroot}%{_sbindir}/btape %{buildroot}%{_sbindir}/btape.sqlite
- mv %{buildroot}%{_libdir}/libbacsql-%{version}.so %{buildroot}%{_libdir}/libbacsql-%{version}.so.sqlite
- rm -f %{buildroot}%{_libdir}/libbacsql.so
-
- for script in create_bacula_database drop_bacula_database drop_bacula_tables \
- grant_bacula_privileges make_bacula_tables make_catalog_backup \
- update_bacula_tables bacula_config; do
- mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.sqlite
- done
+ make install DESTDIR=%{buildroot}
+ mv %{buildroot}%{_sbindir}/bacula-dir %{buildroot}%{_sbindir}/bacula-dir.sqlite
+ mv %{buildroot}%{_sbindir}/dbcheck %{buildroot}%{_sbindir}/dbcheck.sqlite
+ mv %{buildroot}%{_sbindir}/bcopy %{buildroot}%{_sbindir}/bcopy.sqlite
+ mv %{buildroot}%{_sbindir}/bscan %{buildroot}%{_sbindir}/bscan.sqlite
+ mv %{buildroot}%{_sbindir}/btape %{buildroot}%{_sbindir}/btape.sqlite
+ mv %{buildroot}%{_libdir}/libbacsql-%{version}.so %{buildroot}%{_libdir}/libbacsql-%{version}.so.sqlite
+ rm -f %{buildroot}%{_libdir}/libbacsql.so
+
+ for script in create_bacula_database drop_bacula_database drop_bacula_tables \
+ grant_bacula_privileges make_bacula_tables make_catalog_backup \
+ update_bacula_tables bacula_config; do
+ mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.sqlite
+ done
popd
pushd bacula-mysql
- make install DESTDIR=%{buildroot}
- mv %{buildroot}%{_sbindir}/bacula-dir %{buildroot}%{_sbindir}/bacula-dir.mysql
- mv %{buildroot}%{_sbindir}/dbcheck %{buildroot}%{_sbindir}/dbcheck.mysql
- mv %{buildroot}%{_sbindir}/bcopy %{buildroot}%{_sbindir}/bcopy.mysql
- mv %{buildroot}%{_sbindir}/bscan %{buildroot}%{_sbindir}/bscan.mysql
- mv %{buildroot}%{_sbindir}/btape %{buildroot}%{_sbindir}/btape.mysql
- mv %{buildroot}%{_libdir}/libbacsql-%{version}.so %{buildroot}%{_libdir}/libbacsql-%{version}.so.mysql
- rm -f %{buildroot}%{_libdir}/libbacsql.so
-
- for script in create_bacula_database drop_bacula_database drop_bacula_tables \
- grant_bacula_privileges make_bacula_tables make_catalog_backup \
- update_bacula_tables bacula_config; do
- mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.mysql
- done
+ make install DESTDIR=%{buildroot}
+ mv %{buildroot}%{_sbindir}/bacula-dir %{buildroot}%{_sbindir}/bacula-dir.mysql
+ mv %{buildroot}%{_sbindir}/dbcheck %{buildroot}%{_sbindir}/dbcheck.mysql
+ mv %{buildroot}%{_sbindir}/bcopy %{buildroot}%{_sbindir}/bcopy.mysql
+ mv %{buildroot}%{_sbindir}/bscan %{buildroot}%{_sbindir}/bscan.mysql
+ mv %{buildroot}%{_sbindir}/btape %{buildroot}%{_sbindir}/btape.mysql
+ mv %{buildroot}%{_libdir}/libbacsql-%{version}.so %{buildroot}%{_libdir}/libbacsql-%{version}.so.mysql
+ rm -f %{buildroot}%{_libdir}/libbacsql.so
+
+ for script in create_bacula_database drop_bacula_database drop_bacula_tables \
+ grant_bacula_privileges make_bacula_tables make_catalog_backup \
+ update_bacula_tables bacula_config; do
+ mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.mysql
+ done
popd
pushd bacula-postgresql
- make install DESTDIR=%{buildroot}
- mv %{buildroot}%{_sbindir}/bacula-dir %{buildroot}%{_sbindir}/bacula-dir.postgresql
- mv %{buildroot}%{_sbindir}/dbcheck %{buildroot}%{_sbindir}/dbcheck.postgresql
- mv %{buildroot}%{_sbindir}/bcopy %{buildroot}%{_sbindir}/bcopy.postgresql
- mv %{buildroot}%{_sbindir}/bscan %{buildroot}%{_sbindir}/bscan.postgresql
- mv %{buildroot}%{_sbindir}/btape %{buildroot}%{_sbindir}/btape.postgresql
- mv %{buildroot}%{_libdir}/libbacsql-%{version}.so %{buildroot}%{_libdir}/libbacsql-%{version}.so.postgresql
- rm -f %{buildroot}%{_libdir}/libbacsql.so
-
- for script in create_bacula_database drop_bacula_database drop_bacula_tables \
- grant_bacula_privileges make_bacula_tables make_catalog_backup \
- update_bacula_tables bacula_config; do
- mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.postgresql
- done
+ make install DESTDIR=%{buildroot}
+ mv %{buildroot}%{_sbindir}/bacula-dir %{buildroot}%{_sbindir}/bacula-dir.postgresql
+ mv %{buildroot}%{_sbindir}/dbcheck %{buildroot}%{_sbindir}/dbcheck.postgresql
+ mv %{buildroot}%{_sbindir}/bcopy %{buildroot}%{_sbindir}/bcopy.postgresql
+ mv %{buildroot}%{_sbindir}/bscan %{buildroot}%{_sbindir}/bscan.postgresql
+ mv %{buildroot}%{_sbindir}/btape %{buildroot}%{_sbindir}/btape.postgresql
+ mv %{buildroot}%{_libdir}/libbacsql-%{version}.so %{buildroot}%{_libdir}/libbacsql-%{version}.so.postgresql
+ rm -f %{buildroot}%{_libdir}/libbacsql.so
+
+ for script in create_bacula_database drop_bacula_database drop_bacula_tables \
+ grant_bacula_privileges make_bacula_tables make_catalog_backup \
+ update_bacula_tables bacula_config; do
+ mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.postgresql
+ done
popd
# Fix some wrapper braindeadness
@@ -718,10 +717,10 @@ rm -rf %{buildroot}%{_datadir}/doc/bacula/
# Install headers
%{__mkdir_p} %{buildroot}%{_includedir}/bacula
pushd %{name}-%{version}
- for dir in src src/cats src/console src/dird src/filed src/findlib src/lib src/plugins/sd src/stored; do
- %{__mkdir_p} %{buildroot}%{_includedir}/bacula/$dir
- %{__install} -m 644 $dir/*.h %{buildroot}%{_includedir}/bacula/$dir
- done
+ for dir in src src/cats src/console src/dird src/filed src/findlib src/lib src/plugins/sd src/stored; do
+ %{__mkdir_p} %{buildroot}%{_includedir}/bacula/$dir
+ %{__install} -m 644 $dir/*.h %{buildroot}%{_includedir}/bacula/$dir
+ done
popd
@@ -734,17 +733,17 @@ rm -rf %{buildroot}
%post libs-mysql
/usr/sbin/alternatives --install %{_libdir}/libbacsql.so libbacsql %{_libdir}/libbacsql-%{version}.so.mysql 50 \
- --slave %{_libdir}/libbacsql-%{version}.so libbacsql-%{version}.so %{_libdir}/libbacsql-%{version}.so.mysql
+ --slave %{_libdir}/libbacsql-%{version}.so libbacsql-%{version}.so %{_libdir}/libbacsql-%{version}.so.mysql
/sbin/ldconfig
%post libs-sqlite
/usr/sbin/alternatives --install %{_libdir}/libbacsql.so libbacsql %{_libdir}/libbacsql-%{version}.so.sqlite 40 \
- --slave %{_libdir}/libbacsql-%{version}.so libbacsql-%{version}.so %{_libdir}/libbacsql-%{version}.so.sqlite
+ --slave %{_libdir}/libbacsql-%{version}.so libbacsql-%{version}.so %{_libdir}/libbacsql-%{version}.so.sqlite
/sbin/ldconfig
%post libs-postgresql
/usr/sbin/alternatives --install %{_libdir}/libbacsql.so libbacsql %{_libdir}/libbacsql-%{version}.so.postgresql 60 \
- --slave %{_libdir}/libbacsql-%{version}.so libbacsql-%{version}.so %{_libdir}/libbacsql-%{version}.so.postgresql
+ --slave %{_libdir}/libbacsql-%{version}.so libbacsql-%{version}.so %{_libdir}/libbacsql-%{version}.so.postgresql
/sbin/ldconfig
%postun libs
@@ -753,17 +752,17 @@ exit 0
%preun libs-mysql
if [ "$1" = 0 ]; then
- alternatives --remove libbacsql %{_libdir}/libbacsql-%{version}.so.mysql
+ alternatives --remove libbacsql %{_libdir}/libbacsql-%{version}.so.mysql
fi
%preun libs-sqlite
if [ "$1" = 0 ]; then
- alternatives --remove libbacsql %{_libdir}/libbacsql-%{version}.so.sqlite
+ alternatives --remove libbacsql %{_libdir}/libbacsql-%{version}.so.sqlite
fi
%preun libs-postgresql
if [ "$1" = 0 ]; then
- alternatives --remove libbacsql %{_libdir}/libbacsql-%{version}.so.postgresql
+ alternatives --remove libbacsql %{_libdir}/libbacsql-%{version}.so.postgresql
fi
%postun libs-mysql
@@ -780,89 +779,89 @@ exit 0
%post director-mysql
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.mysql 50 \
- --slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.mysql \
- --slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.mysql \
- --slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.mysql \
- --slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.mysql \
- --slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.mysql \
- --slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.mysql \
- --slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.mysql \
- --slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.mysql \
- --slave /usr/libexec/bacula/bacula_config bacula_config /usr/libexec/bacula/bacula_config.mysql
+ --slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.mysql \
+ --slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.mysql \
+ --slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.mysql \
+ --slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.mysql \
+ --slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.mysql \
+ --slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.mysql \
+ --slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.mysql \
+ --slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.mysql \
+ --slave /usr/libexec/bacula/bacula_config bacula_config /usr/libexec/bacula/bacula_config.mysql
%post director-sqlite
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.sqlite 40 \
- --slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.sqlite \
- --slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.sqlite \
- --slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.sqlite \
- --slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.sqlite \
- --slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.sqlite \
- --slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.sqlite \
- --slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.sqlite \
- --slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.sqlite \
- --slave /usr/libexec/bacula/bacula_config bacula_config /usr/libexec/bacula/bacula_config.sqlite
+ --slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.sqlite \
+ --slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.sqlite \
+ --slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.sqlite \
+ --slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.sqlite \
+ --slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.sqlite \
+ --slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.sqlite \
+ --slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.sqlite \
+ --slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.sqlite \
+ --slave /usr/libexec/bacula/bacula_config bacula_config /usr/libexec/bacula/bacula_config.sqlite
%post director-postgresql
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.postgresql 60 \
- --slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.postgresql \
- --slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.postgresql \
- --slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.postgresql \
- --slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.postgresql \
- --slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.postgresql \
- --slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.postgresql \
- --slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.postgresql \
- --slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.postgresql \
- --slave /usr/libexec/bacula/bacula_config bacula_config /usr/libexec/bacula/bacula_config.postgresql
+ --slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.postgresql \
+ --slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.postgresql \
+ --slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.postgresql \
+ --slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.postgresql \
+ --slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.postgresql \
+ --slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.postgresql \
+ --slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.postgresql \
+ --slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.postgresql \
+ --slave /usr/libexec/bacula/bacula_config bacula_config /usr/libexec/bacula/bacula_config.postgresql
%preun director-mysql
if [ "$1" = 0 ]; then
- /usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.mysql
+ /usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.mysql
fi
%preun director-sqlite
if [ "$1" = 0 ]; then
- /usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.sqlite
+ /usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.sqlite
fi
%preun director-postgresql
if [ "$1" = 0 ]; then
- /usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.postgresql
+ /usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.postgresql
fi
%pre common
getent group %username >/dev/null || groupadd -g %uid -r %username &>/dev/null || :
getent passwd %username >/dev/null || useradd -u %uid -r -s /sbin/nologin \
- -d /var/spool/bacula -M -c 'Bacula Backup System' -g %username %username &>/dev/null || :
+ -d /var/spool/bacula -M -c 'Bacula Backup System' -g %username %username &>/dev/null || :
exit 0
%post storage-mysql
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.mysql 50 \
- --slave /usr/sbin/bscan bacula-bscan /usr/sbin/bscan.mysql \
- --slave /usr/sbin/btape bacula-btape /usr/sbin/btape.mysql
+ --slave /usr/sbin/bscan bacula-bscan /usr/sbin/bscan.mysql \
+ --slave /usr/sbin/btape bacula-btape /usr/sbin/btape.mysql
%post storage-sqlite
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.sqlite 40 \
- --slave /usr/sbin/bscan bacula-bscan /usr/sbin/bscan.sqlite \
- --slave /usr/sbin/btape bacula-btape /usr/sbin/btape.sqlite
+ --slave /usr/sbin/bscan bacula-bscan /usr/sbin/bscan.sqlite \
+ --slave /usr/sbin/btape bacula-btape /usr/sbin/btape.sqlite
%post storage-postgresql
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.postgresql 60 \
- --slave /usr/sbin/bscan bacula-bscan /usr/sbin/bscan.postgresql \
- --slave /usr/sbin/btape bacula-btape /usr/sbin/btape.postgresql
+ --slave /usr/sbin/bscan bacula-bscan /usr/sbin/bscan.postgresql \
+ --slave /usr/sbin/btape bacula-btape /usr/sbin/btape.postgresql
%preun storage-mysql
if [ "$1" = 0 ]; then
- /usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.mysql
+ /usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.mysql
fi
%preun storage-sqlite
if [ "$1" = 0 ]; then
- /usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.sqlite
+ /usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.sqlite
fi
%preun storage-postgresql
if [ "$1" = 0 ]; then
- /usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.postgresql
+ /usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.postgresql
fi
%postun common
@@ -970,14 +969,14 @@ fi
%preun client
if [ "$1" = 0 ]; then
- /sbin/service bacula-fd stop >/dev/null 2>&1 || :
- /sbin/chkconfig --del bacula-fd
+ /sbin/service bacula-fd stop >/dev/null 2>&1 || :
+ /sbin/chkconfig --del bacula-fd
fi
%postun client
if [ "$1" -ge "1" ]; then
- /sbin/service bacula-fd condrestart >/dev/null 2>&1 || :
+ /sbin/service bacula-fd condrestart >/dev/null 2>&1 || :
fi
@@ -987,14 +986,14 @@ fi
%preun director-common
if [ "$1" = 0 ]; then
- /sbin/service bacula-dir stop >/dev/null 2>&1 || :
- /sbin/chkconfig --del bacula-dir
+ /sbin/service bacula-dir stop >/dev/null 2>&1 || :
+ /sbin/chkconfig --del bacula-dir
fi
%postun director-common
if [ "$1" -ge "1" ]; then
- /sbin/service bacula-dir condrestart >/dev/null 2>&1 || :
+ /sbin/service bacula-dir condrestart >/dev/null 2>&1 || :
fi
@@ -1004,14 +1003,14 @@ fi
%preun storage-common
if [ "$1" = 0 ]; then
- /sbin/service bacula-sd stop >/dev/null 2>&1 || :
- /sbin/chkconfig --del bacula-sd
+ /sbin/service bacula-sd stop >/dev/null 2>&1 || :
+ /sbin/chkconfig --del bacula-sd
fi
%postun storage-common
if [ "$1" -ge "1" ]; then
- /sbin/service bacula-sd condrestart >/dev/null 2>&1 || :
+ /sbin/service bacula-sd condrestart >/dev/null 2>&1 || :
fi
%endif
More information about the scm-commits
mailing list