sjmudd / rpms / bacula

Forked from rpms/bacula 3 years ago
Clone
0745245
%define working_dir	/var/spool/bacula
0745245
%define script_dir	/usr/libexec/bacula
0745245
#%define rescue_version	2.0.0
0745245
%define docs_version	%{version}
0745245
%define gui_version	%{version}
0745245
%define config_dir	%{_sysconfdir}/bacula
0745245
0745245
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
0745245
Name: bacula
Jon Ciesla c0a3f40
Version: 5.0.3
8a0e9e7
Release: 14%{?dist}
66f3524
# See LICENSE for details
66f3524
License: GPLv2 with exceptions
0745245
Group: System Environment/Daemons
0745245
Source0: http://download.sourceforge.net/bacula/bacula-%{version}.tar.gz
b87413e
Source1: http://download.sourceforge.net/bacula/bacula-docs-%{docs_version}.tar.bz2
0745245
#Source2: http://download.sourceforge.net/bacula/bacula-rescue-%{rescue_version}.tar.gz
ab2ba2c
#Source3: bacula-gconsole.desktop
0745245
Source4: bacula-wxconsole.desktop
0745245
Source5: bacula-traymonitor.desktop
0745245
Source6: bacula.logrotate
a64ae85
Source7: bacula-fd.service
a64ae85
Source8: bacula-dir.service
a64ae85
Source9: bacula-sd.service
0745245
#Source10: http://download.sourceforge.net/bacula/bacula-gui-%{gui_version}.tar.gz
0745245
#Source11: bacula-web.apache
7dc8299
Source12: bacula-bat.desktop
ddc0d55
Source13: bacula-traymonitor.console_apps
ddc0d55
Source14: bacula-wxconsole.console_apps
a64ae85
Source15: bacula-checkconf
a64ae85
Jan Görig 38c1d43
#Patch0: bacula-director-configuration.patch
0745245
Patch1: bacula-config.patch
b87413e
#Patch2: bacula-wxconsole.patch
0745245
Patch3: bacula-pamd.patch
b87413e
#Patch4: 2.0.3-ampm.patch
b87413e
#Patch5: 2.0.3-maxbyteslist.patch
b87413e
#Patch6: 2.0.3-maxwaittime.patch
b87413e
#Patch7: 2.0.3-scheduler-next-hour.patch
b87413e
#Patch8: 2.0.3-verify.patch
b87413e
#Patch9: 2.0.3-tls-disconnect.patch
0745245
#Patch10: bacula-web-smarty.patch
a00ecb2
#Patch11: bacula-2.4.3-orphaned-jobs.patch
a00ecb2
#Patch12: bacula-2.4.3-python26.patch
111191f
#Patch13: bacula-3.0.2-openssl.patch
0cbe383
Patch14: bacula-5.0.1-dsolink.patch
111191f
Patch15: bacula-5.0.2-openssl.patch
7ce52f3
Patch16: bacula-5.0.2-config.patch
Jon Ciesla 915c508
Patch17: bacula-5.0.2-python27.patch
Jon Ciesla c0a3f40
Patch18: bacula-5.0.3-dsolink.patch
Jan Görig 38c1d43
Patch19: bacula-5.0.3-log-path.patch
Jan Görig 38c1d43
Patch20: bacula-5.0.3-sqlite-priv.patch
Jan Görig 767f6bf
Patch21: bacula-5.0.3-tray-dir.patch
Jon Ciesla 187db2a
Patch22: bacula-5.0.3-mysql55.patch
36ac69e
Patch23: bacula-5.0.3-maxvalue.patch
Jon Ciesla c0a3f40
0745245
URL: http://www.bacula.org
0745245
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
0745245
BuildRequires: openssl-devel, atk-devel, ncurses-devel, pango-devel, perl
0745245
BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel, pkgconfig
82a0ba0
BuildRequires: gtk2-devel, libgnomeui-devel, GConf2-devel
0745245
BuildRequires: glibc-devel, ORBit2-devel, libart_lgpl-devel, freetype-devel
0745245
BuildRequires: libbonobo-devel, libbonoboui-devel, bonobo-activation-devel
0745245
BuildRequires: mysql-devel, cdrecord, postgresql-devel, wxGTK-devel
0745245
BuildRequires: desktop-file-utils, python-devel, sqlite-devel, sed,
0745245
BuildRequires: libacl-devel, latex2html, tetex-latex, tetex, ghostscript
7dc8299
BuildRequires: dvipdfm, qwt-devel
0745245
BuildRequires: tcp_wrappers-devel
a64ae85
BuildRequires: systemd-units
0745245
0745245
%description
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture and is
0745245
efficient and relatively easy to use, while offering many advanced
0745245
storage management features that make it easy to find and recover lost
0745245
or damaged files.
0745245
0745245
0745245
%package director-mysql
0745245
Summary: Bacula Director with MySQL database support
0745245
Group: System Environment/Daemons
0745245
Provides: bacula-director = %{version}-%{release}
0745245
Requires: bacula-director-common = %{version}-%{release}
0745245
Requires: bacula-common = %{version}-%{release}
0745245
0745245
%description director-mysql
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the bacula director, the server which controls 
0745245
your backup run.
0745245
This director has support for the MySQL database.
0745245
0745245
0745245
%package director-sqlite
0745245
Summary: Bacula Director with sqlite database support
0745245
Group: System Environment/Daemons
0745245
Provides: bacula-director = %{version}-%{release}
0745245
Requires: bacula-director-common = %{version}-%{release}
0745245
Requires: bacula-common = %{version}-%{release}
0745245
0745245
%description director-sqlite
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the bacula director, the server which controls 
0745245
your backup run.
0745245
This director has support for the sqlite database.
0745245
0745245
0745245
%package director-postgresql
0745245
Summary: Bacula Director with PostgresSQL database support
0745245
Group: System Environment/Daemons
0745245
Provides: bacula-director = %{version}-%{release}
0745245
Requires: bacula-director-common = %{version}-%{release}
0745245
Requires: bacula-common = %{version}-%{release}
0745245
0745245
%description director-postgresql
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the bacula director, the server which controls 
0745245
your backup run.
0745245
This director has support for the PostgresSQL database.
0745245
0745245
0745245
%package director-common
0745245
Summary: Common Bacula Director files
0745245
Group: System Environment/Daemons
0745245
Requires: bacula-director = %{version}-%{release}
0745245
Requires: bacula-common = %{version}-%{release}
d0bfbcb
Requires: logwatch
0745245
Requires(pre): fedora-usermgmt
0745245
Requires(postun): fedora-usermgmt
a64ae85
Requires(post): systemd-sysv
45643a0
Requires(post): systemd-units
45643a0
Requires(preun): systemd-units
45643a0
Requires(postun): systemd-units
0745245
0745245
%description director-common
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the common director files, which are shared 
0745245
between all database backends. You have to select a possible
0745245
database backend though, which provides the needed bacula-director
0745245
dependency. Please choose from bacula-director-mysql,
0745245
bacula-director-sqlite or bacula-director-postgresql.
0745245
0745245
0745245
%package client
0745245
Summary: Bacula backup client
0745245
Group: System Environment/Daemons
0745245
Requires: bacula-common = %{version}-%{release}
a64ae85
Requires(post): systemd-sysv
45643a0
Requires(post): systemd-units
45643a0
Requires(preun): systemd-units
45643a0
Requires(postun): systemd-units
0745245
0745245
%description client
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the bacula client, the daemon running on the 
0745245
system to be backed up.
0745245
0745245
0745245
%package storage-common
0745245
Summary: Common Bacula storage daemon files
0745245
Group: System Environment/Daemons
0745245
Requires: bacula-storage = %{version}-%{release}
0745245
Requires: bacula-common = %{version}-%{release}
a64ae85
Requires(post): systemd-sysv
45643a0
Requires(post): systemd-units
45643a0
Requires(preun): systemd-units
45643a0
Requires(postun): systemd-units
0745245
0745245
%description storage-common
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the storage daemon, the daemon responsible for 
0745245
writing the data received from the clients onto tape drives or other 
0745245
mass storage devices.
0745245
0745245
0745245
%package storage-mysql
0745245
Summary: MySQL Bacula storage daemon files
0745245
Group: System Environment/Daemons
0745245
Provides: bacula-storage = %{version}-%{release}
0745245
Requires: bacula-storage-common = %{version}-%{release}
0745245
Requires: bacula-common = %{version}-%{release}
0745245
0745245
%description storage-mysql
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the storage daemon, the daemon responsible for 
0745245
writing the data received from the clients onto tape drives or other 
0745245
mass storage devices.
0745245
0745245
0745245
%package storage-sqlite
0745245
Summary: SQLite Bacula storage daemon files
0745245
Group: System Environment/Daemons
0745245
Provides: bacula-storage = %{version}-%{release}
0745245
Requires: bacula-storage-common = %{version}-%{release}
0745245
Requires: bacula-common = %{version}-%{release}
0745245
0745245
%description storage-sqlite
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the storage daemon, the daemon responsible for 
0745245
writing the data received from the clients onto tape drives or other 
0745245
mass storage devices.
0745245
0745245
0745245
%package storage-postgresql
0745245
Summary: Common Bacula storage daemon files
0745245
Group: System Environment/Daemons
0745245
Provides: bacula-storage = %{version}-%{release}
0745245
Requires: bacula-storage-common = %{version}-%{release}
0745245
Requires: bacula-common = %{version}-%{release}
0745245
0745245
%description storage-postgresql
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the storage daemon, the daemon responsible for 
0745245
writing the data received from the clients onto tape drives or other 
0745245
mass storage devices.
0745245
0745245
0745245
%package common
0745245
Summary: Common Bacula utilities
0745245
Group: System Environment/Daemons
0745245
Requires(pre): fedora-usermgmt
ab2ba2c
Obsoletes: bacula-console-gnome <= 3.0.3
0745245
0745245
%description common
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
0745245
%package console
0745245
Summary: Bacula management console
0745245
Group: System Environment/Daemons
0036e0f
Requires: bacula-common = %{version}-%{release}
0745245
0745245
%description console
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the command-line management console for the bacula 
0745245
backup system.
0745245
0745245
ab2ba2c
#%package console-gnome
ab2ba2c
#Summary: Bacula console for the Gnome desktop environment
ab2ba2c
#Group: System Environment/Daemons
ab2ba2c
#Requires: bacula-common = %{version}-%{release}
ab2ba2c
#Requires: usermode
ab2ba2c
#
ab2ba2c
#%description console-gnome
ab2ba2c
#Bacula is a set of programs that allow you to manage the backup,
ab2ba2c
#recovery, and verification of computer data across a network of
ab2ba2c
#different computers. It is based on a client/server architecture.
ab2ba2c
#
ab2ba2c
#This package contains the gnome version of the bacula management console
0745245
7dc8299
%package console-bat
7dc8299
Summary: Bacula bat console
7dc8299
Group: System Environment/Daemons
0036e0f
Requires: bacula-common = %{version}-%{release}
7dc8299
Requires: usermode
7dc8299
7dc8299
%description console-bat
7dc8299
Bacula is a set of programs that allow you to manage the backup,
7dc8299
recovery, and verification of computer data across a network of
7dc8299
different computers. It is based on a client/server architecture.
7dc8299
7dc8299
This package contains the bat version of the bacula management console
7dc8299
0745245
0745245
%package console-wxwidgets
0745245
Summary: Bacula console using the wx widgets toolkit
0745245
Group: System Environment/Daemons
0036e0f
Requires: bacula-common = %{version}-%{release}
0745245
Requires: usermode
0745245
0745245
%description console-wxwidgets
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the wxWidgets version of the bacula management 
0745245
console.
0745245
0745245
0745245
%package traymonitor
0745245
Summary: Bacula monitor for the Gnome and KDE system tray
0745245
Group: System Environment/Daemons
61a7978
Requires: bacula-common = %{version}-%{release}
0745245
0745245
%description traymonitor
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the Gnome- and KDE-compatible tray monitor to 
0745245
monitor your bacula server.
0745245
0745245
0745245
#%package web
0745245
#Summary: Bacula Web Interface for monitoring the Backup status
0745245
#Group: System Environment/Daemons
0745245
#Conflicts: bacula-storage-sqlite
0745245
#Requires: php, webserver, php-pear-DB, php-gd, php-Smarty
0745245
0745245
#%description web
0745245
#Bacula is a set of programs that allow you to manage the backup,
0745245
#recovery, and verification of computer data across a network of
0745245
#different computers. It is based on a client/server architecture.
0745245
0745245
#This package contains the bacula-web PHP application, which is
0745245
#a management level tool for reporting Backup job status.
0745245
0745245
0745245
%package docs
0745245
Summary: Bacula documentation
0745245
Group: Documentation
0745245
0745245
%description docs
0745245
Bacula is a set of programs that allow you to manage the backup,
0745245
recovery, and verification of computer data across a network of
0745245
different computers. It is based on a client/server architecture.
0745245
0745245
This package contains the documentation for most of the bacula-packages.
0745245
0745245
0745245
%prep
0745245
%setup -q -c -n bacula-%{version}
0745245
%setup -q -a 1 -D -T
0745245
#%setup -q -a 2 -D -T
0745245
#%setup -q -a 10 -D -T
0745245
0745245
# Patching and other source preparation
0745245
pushd bacula-%{version}
Jan Görig 38c1d43
#%patch0 -p1
0745245
%patch1 -p1
b87413e
#%patch2 -p1
0745245
%patch3 -p1
b87413e
#%patch4 -p0
b87413e
#%patch5 -p0
b87413e
#%patch6 -p0
b87413e
#%patch7 -p0
b87413e
#%patch8 -p0
b87413e
#%patch9 -p0
a00ecb2
#%patch11 -p0
a00ecb2
#%patch12 -p0
111191f
#%patch13 -p2 -b .openssl
0cbe383
%patch14 -p2
111191f
%patch15 -p2 -b .openssl
7ce52f3
%patch16 -p2 -b .config
Jon Ciesla 915c508
%patch17 -p0 -b .python27
Jon Ciesla c0a3f40
%patch18 -p2
Jan Görig 38c1d43
%patch19 -p2 -b .log-path
Jan Görig 38c1d43
%patch20 -p0 -b .priv
Jan Görig 767f6bf
%patch21 -p2 -b .tray-dir
Jon Ciesla 187db2a
%patch22 -p0 -b .mysql55
36ac69e
#quoting MaxValue in sql scripts
36ac69e
%patch23 -p1 -b .maxvalue
36ac69e
36ac69e
0745245
0745245
# Remove execution permissions from files we're packaging as docs later on
0745245
find examples -type f | xargs chmod -x
0745245
find updatedb -type f | xargs chmod -x
0745245
popd
0745245
0745245
# Remove cvs left-overs
0745245
find -name '.cvsignore' | xargs rm -f 
0745245
0745245
# Fix perms of c files to silent rpmlint
0745245
find -type f -name '*.c' | xargs chmod -x 
0745245
find -type f -name '*.h' | xargs chmod -x 
0745245
0745245
# GUI Stuff is postponed for later
0745245
#pushd bacula-gui-%{gui_version}
0745245
#%patch10 -p0
0745245
#popd
0745245
0745245
# We are building the source several times, each with a different storage backend
0745245
mkdir bacula-mysql bacula-postgresql bacula-sqlite
0745245
0745245
%build
0745245
# Shell function to configure and build a Bacula tree
0745245
build() {
0745245
cp -rl ../bacula-%{version}/* .
7ce52f3
export CFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
82a0ba0
export CPPFLAGS=-I%{_includedir}/ncurses
0cbe383
export QMAKE=/usr/bin/qmake-qt4
0745245
%configure \
0745245
	--sysconfdir=%{_sysconfdir}/bacula \
0745245
	--with-dir-user=bacula \
0745245
	--with-dir-group=bacula \
0745245
	--with-sd-user=bacula \
Jan Görig e51227f
	--with-sd-group=disk \
0745245
	--with-fd-user=root \
0745245
	--with-fd-group=root \
0745245
	--with-dir-password=@@DIR_PASSWORD@@ \
0745245
	--with-fd-password=@@FD_PASSWORD@@ \
0745245
	--with-sd-password=@@SD_PASSWORD@@ \
0745245
	--with-mon-dir-password=@@MON_DIR_PASSWORD@@ \
0745245
	--with-mon-fd-password=@@MON_FD_PASSWORD@@ \
0745245
	--with-mon-sd-password=@@MON_SD_PASSWORD@@ \
0745245
	--with-working-dir=%{working_dir} \
0745245
	--with-scriptdir=%{script_dir} \
0745245
	--with-smtp-host=localhost \
0745245
	--with-subsys-dir=%{_localstatedir}/lock/subsys \
0745245
	--with-pid-dir=%{_localstatedir}/run \
0745245
	--enable-conio \
0745245
	--enable-largefile \
b87413e
	--enable-bwx-console \
0745245
	--enable-tray-monitor \
0745245
	--enable-build-dird \
0745245
	--enable-build-stored \
0745245
	--with-openssl \
0745245
	--with-tcp-wrappers \
0745245
	--with-python \
0745245
	--enable-smartalloc \
0745245
	--with-x \
7dc8299
	--enable-bat \
bf00cf0
	--disable-libtool \
0745245
	$*
0745245
# Scratch this, it is trouble
0745245
#	--with-readline \
0745245
0745245
if test $? != 0; then 
0745245
  tail -500 config.log
0745245
  : configure failed
0745245
  exit 1
0745245
fi
0745245
7ce52f3
%{__make} %{?_smp_mflags} NO_ECHO=
0745245
0745245
}				
0745245
0745245
# Build sqlite director
0745245
pushd bacula-sqlite
0745245
%if 0%{?fedora}%{?rhel}
0745245
	%if 0%{?fedora}
5d749cf
		%if 0%{fedora} >= 5
0745245
			%define	sqlite_suffix 3
0745245
			build --with-sqlite3
0745245
		%else
0745245
			build --with-sqlite
0745245
		%endif
0745245
	%endif
0745245
	%if 0%{?rhel}
5d749cf
		%if 0%{rhel} >=  5
0745245
			%define	sqlite_suffix 3
0745245
			build --with-sqlite3
0745245
		%else
0745245
			build --with-sqlite
0745245
		%endif
0745245
	%endif
0745245
%else
0745245
	echo 'Neither %%{fedora} nor %%{rhel} are defined.'
0745245
	echo 'Please call rpmbuild with at least --define "fedora 7" or --define "rhel 5"'
0745245
	echo 'depending on your release version you are building on.'
0745245
	exit 1
0745245
%endif
eb59c7c
eb59c7c
#Regen bat qt project file and build
eb59c7c
pushd src
eb59c7c
pushd qt-console
eb59c7c
/usr/bin/qmake-qt4
eb59c7c
make
eb59c7c
popd
eb59c7c
popd
eb59c7c
0745245
popd
0745245
0745245
# Build MySQL director
0745245
pushd bacula-mysql
0745245
	build --with-mysql
0745245
popd
0745245
0745245
# Build PostgreSQL director
0745245
pushd bacula-postgresql
0745245
	build --with-postgresql
0745245
popd
0745245
0745245
# Build the docs
0745245
pushd bacula-docs-%{docs_version}
0745245
 %configure --with-bacula=%{_builddir}/bacula-%{version}/bacula-%{version}
0745245
 make
0745245
popd
0745245
0745245
%install
0745245
rm -rf %{buildroot}
0745245
0745245
pushd bacula-sqlite
0745245
	make install DESTDIR=%{buildroot}
0745245
	mv %{buildroot}%{_sbindir}/bacula-dir  %{buildroot}%{_sbindir}/bacula-dir.sqlite
0745245
	mv %{buildroot}%{_sbindir}/dbcheck  %{buildroot}%{_sbindir}/dbcheck.sqlite
0745245
	mv %{buildroot}%{_sbindir}/bcopy  %{buildroot}%{_sbindir}/bcopy.sqlite
0745245
	mv %{buildroot}%{_sbindir}/bscan  %{buildroot}%{_sbindir}/bscan.sqlite
0745245
0745245
	for script in create_bacula_database drop_bacula_database drop_bacula_tables \
0745245
			grant_bacula_privileges make_bacula_tables make_catalog_backup \
0745245
			update_bacula_tables; do
0745245
		mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.sqlite
0745245
	done
0745245
popd
0745245
0745245
pushd bacula-mysql
0745245
	make install DESTDIR=%{buildroot}
0745245
	mv %{buildroot}%{_sbindir}/bacula-dir  %{buildroot}%{_sbindir}/bacula-dir.mysql
0745245
	mv %{buildroot}%{_sbindir}/dbcheck  %{buildroot}%{_sbindir}/dbcheck.mysql
0745245
	mv %{buildroot}%{_sbindir}/bcopy  %{buildroot}%{_sbindir}/bcopy.mysql
0745245
	mv %{buildroot}%{_sbindir}/bscan  %{buildroot}%{_sbindir}/bscan.mysql
0745245
0745245
	for script in create_bacula_database drop_bacula_database drop_bacula_tables \
0745245
			grant_bacula_privileges make_bacula_tables make_catalog_backup \
0745245
			update_bacula_tables; do
0745245
		mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.mysql
0745245
	done
0745245
popd
0745245
0745245
pushd bacula-postgresql
0745245
	make install DESTDIR=%{buildroot}
0745245
	mv %{buildroot}%{_sbindir}/bacula-dir  %{buildroot}%{_sbindir}/bacula-dir.postgresql
0745245
	mv %{buildroot}%{_sbindir}/dbcheck  %{buildroot}%{_sbindir}/dbcheck.postgresql
0745245
	mv %{buildroot}%{_sbindir}/bcopy  %{buildroot}%{_sbindir}/bcopy.postgresql
0745245
	mv %{buildroot}%{_sbindir}/bscan  %{buildroot}%{_sbindir}/bscan.postgresql
0745245
0745245
	for script in create_bacula_database drop_bacula_database drop_bacula_tables \
0745245
			grant_bacula_privileges make_bacula_tables make_catalog_backup \
0745245
			update_bacula_tables; do
0745245
		mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.postgresql
0745245
	done
0745245
popd
0745245
0745245
pushd bacula-docs-%{docs_version}
0745245
 # No install target anymore, we'll include the stuff directly in the %%files section
0745245
 #	make install DESTDIR=%{buildroot}
0745245
popd
0745245
0745245
# GUI is not being packaged yet
0745245
#pushd bacula-gui-%{gui_version}/bacula-web
0745245
#	mkdir -p %{buildroot}%{_datadir}/bacula-web
0745245
#	cp -r -p * %{buildroot}%{_datadir}/bacula-web
0745245
#	for f in ChangeLog CONTACT COPYING README TODO; do
0745245
#		rm -f %{buildroot}%{_datadir}/bacula-web/$f
0745245
#	done
0745245
#	rm -f %{buildroot}%{_datadir}/bacula-web/tsmarty2c.php
0745245
#	rm -rf %{buildroot}%{_datadir}/bacula-web/external_packages/smarty
0745245
#	mv %{buildroot}%{_datadir}/bacula-web/configs/bacula.conf %{buildroot}%{_sysconfdir}/bacula/bacula-web.conf
0745245
#	ln -sf /etc/bacula/bacula-web.conf %{buildroot}%{_datadir}/bacula-web/configs/bacula.conf
0745245
#	install -D -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/httpd/conf.d/bacula-web.conf
0745245
#	mkdir -p %{buildroot}%{_localstatedir}/cache/bacula
0745245
#popd
0745245
0745245
0745245
# Rename some manpages
0745245
# Not needed right-now
0745245
#mv %{buildroot}%{_mandir}/man1/bacula-tray-monitor.1 %{buildroot}%{_mandir}/man1/tray-monitor.1
0745245
0745245
0745245
# Fix some wrapper braindeadness
0745245
rm -f %{buildroot}%{_libexecdir}/bacula/bconsole
0745245
rm -f %{buildroot}%{_libexecdir}/bacula/gconsole
b87413e
mv %{buildroot}%{_sbindir}/bwx-console %{buildroot}%{_sbindir}/bwxconsole
b87413e
mv %{buildroot}%{_sysconfdir}/bacula/bwx-console.conf %{buildroot}%{_sysconfdir}/bacula/bwxconsole.conf
0745245
0745245
0745245
# Desktop Integration for the console apps and the traymonitor
0745245
mkdir -p %{buildroot}%{_bindir}
0745245
install -m 644 -D bacula-sqlite/scripts/bacula.png %{buildroot}%{_datadir}/pixmaps/bacula.png
ab2ba2c
#install -m 644 -D bacula-sqlite/scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bgnome-console
ab2ba2c
#install -m 644 -D bacula-sqlite/scripts/bgnome-console.console_apps %{buildroot}%{_sysconfdir}/security/console.apps/bgnome-console
0745245
install -m 644 -D bacula-sqlite/src/wx-console/wxwin16x16.xpm %{buildroot}%{_datadir}/pixmaps/wxwin16x16.xpm
ddc0d55
install -m 644 -D bacula-sqlite/scripts/wxconsole.pamd %{buildroot}%{_sysconfdir}/pam.d/bwxconsole
ddc0d55
install -m 644 -D %{SOURCE14} %{buildroot}%{_sysconfdir}/security/console.apps/bwxconsole
48cee68
#bat.pamd is broken.
48cee68
install -m 644 -D bacula-sqlite/scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bat
ddc0d55
install -m 644 -D bacula-sqlite/scripts/bat.console_apps %{buildroot}%{_sysconfdir}/security/console.apps/bat
0745245
install -m 644 -D bacula-sqlite/src/tray-monitor/generic.xpm %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.xpm
7dc8299
install -m 644 -D bacula-sqlite/src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat_icon.png
08062e1
install -m 644 -D bacula-sqlite/scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bacula-tray-monitor
08062e1
install -m 644 %{SOURCE13} %{buildroot}%{_sysconfdir}/security/console.apps/bacula-tray-monitor
7dc8299
ab2ba2c
#ln -sf consolehelper %{buildroot}%{_bindir}/bgnome-console
ddc0d55
ln -sf consolehelper %{buildroot}%{_bindir}/bwxconsole
48cee68
ln -sf consolehelper %{buildroot}%{_bindir}/bat
08062e1
ln -sf consolehelper %{buildroot}%{_bindir}/bacula-tray-monitor
7dc8299
install -m 755 bacula-sqlite/src/qt-console/bat %{buildroot}%{_sbindir}
0745245
ab2ba2c
#desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE3}
0745245
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE4}
0745245
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE5}
7dc8299
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE12}
0745245
0745245
0745245
# logrotate
0745245
mkdir -p %{buildroot}%{_localstatedir}/log/bacula
0745245
install -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/bacula
0745245
0745245
0745245
# And logwatch
0745245
install -m 755 -D bacula-sqlite/scripts/logwatch/bacula %{buildroot}%{_sysconfdir}/logwatch/scripts/services/bacula
04a9b46
install -m 755 -D bacula-sqlite/scripts/logwatch/applybaculadate %{buildroot}%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
0745245
install -m 644 -D bacula-sqlite/scripts/logwatch/logfile.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
0745245
install -m 644 -D bacula-sqlite/scripts/logwatch/services.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/services/bacula.conf
0745245
a64ae85
# Systemd unit files
a64ae85
mkdir -p ${buildroot}%{_unitdir}
a64ae85
install -m 755 -D %{SOURCE7}  %{buildroot}%{_unitdir}/bacula-fd.service
a64ae85
install -m 755 -D %{SOURCE8}  %{buildroot}%{_unitdir}/bacula-dir.service
a64ae85
install -m 755 -D %{SOURCE9}  %{buildroot}%{_unitdir}/bacula-sd.service
a64ae85
install -m 755 -D %{SOURCE15} %{buildroot}%{_sbindir}/bacula-checkconf
Jan Görig e51227f
Jan Görig e51227f
0745245
# Wipe backup files from the multiple make install calls
0745245
rm -vf %{buildroot}%{_sysconfdir}/bacula/*.{new,old}
0745245
rm -vf %{buildroot}%{_libexecdir}/bacula/*.{new,old}
0745245
0745245
0745245
# Create the spooling
0745245
mkdir -p %{buildroot}%{_localstatedir}/spool/bacula
0745245
0745245
0745245
# Move some files around
0745245
mv %{buildroot}%{_libexecdir}/bacula/query.sql %{buildroot}%{_sysconfdir}/bacula/query.sql
0745245
0745245
0745245
# Nuke the scripts we do not need
0745245
rm -vf %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,startmysql,stopmysql} 
0745245
0cbe383
# Install bat.conf
0cbe383
install -m 644 bacula-sqlite/src/qt-console/bat.conf %{buildroot}%{_sysconfdir}/bacula/bat.conf
0745245
0745245
# Fix up some perms so rpmlint does not complain too much
0745245
chmod 755 %{buildroot}%{_sbindir}/*
0745245
chmod 755 %{buildroot}%{_libexecdir}/bacula/*
0745245
chmod 644 %{buildroot}%{_libexecdir}/bacula/btraceback.*
0745245
bf00cf0
# Remove extra docs
bf00cf0
rm -rf %{buildroot}%{_datadir}/doc/bacula/
bf00cf0
0745245
%clean
0745245
rm -rf %{buildroot}
0745245
0745245
0745245
%post director-mysql
0745245
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.mysql 50 \
0745245
	--slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.mysql \
d03ec39
	--slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.mysql \
d03ec39
	--slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.mysql \
d03ec39
	--slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.mysql \
d03ec39
	--slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.mysql \
d03ec39
	--slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.mysql \
d03ec39
	--slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.mysql \
d03ec39
	--slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.mysql
0745245
0745245
0745245
%post director-sqlite
0745245
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.sqlite 40 \
0745245
	--slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.sqlite \
d03ec39
	--slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.sqlite \
d03ec39
	--slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.sqlite \
d03ec39
	--slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.sqlite \
d03ec39
	--slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.sqlite \
d03ec39
	--slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.sqlite \
d03ec39
	--slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.sqlite \
d03ec39
	--slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.sqlite
0745245
0745245
0745245
%post director-postgresql
0745245
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.postgresql 60 \
0745245
	--slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.postgresql \
d03ec39
	--slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.postgresql \
d03ec39
	--slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.postgresql \
d03ec39
	--slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.postgresql \
d03ec39
	--slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.postgresql \
d03ec39
	--slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.postgresql \
d03ec39
	--slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.postgresql \
d03ec39
	--slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.postgresql
0745245
0745245
0745245
%preun director-mysql
e45f06f
if [ "$1" = 0 ]; then
e45f06f
	/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.mysql
e45f06f
fi
0745245
0745245
0745245
%preun director-sqlite
e45f06f
if [ "$1" = 0 ]; then
e45f06f
	/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.sqlite
e45f06f
fi
0745245
0745245
0745245
%preun director-postgresql
e45f06f
if [ "$1" = 0 ]; then
e45f06f
	/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.postgresql
e45f06f
fi
0745245
0745245
%pre common
0745245
/usr/sbin/fedora-groupadd 33 -r bacula &>/dev/null || :
0745245
/usr/sbin/fedora-useradd  33 -r -s /sbin/nologin -d /var/spool/bacula -M \
0745245
	-c 'Bacula Backup System' -g bacula bacula &>/dev/null || :
0745245
0745245
0745245
%post storage-mysql
0745245
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.mysql 50 \
Jan Görig 767f6bf
	--slave /usr/sbin/bscan bacula-bscan /usr/sbin/bscan.mysql 
0745245
0745245
0745245
%post storage-sqlite
0745245
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.sqlite 40 \
Jan Görig 767f6bf
	--slave /usr/sbin/bscan bacula-bscan /usr/sbin/bscan.sqlite
0745245
0745245
0745245
%post storage-postgresql
0745245
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.postgresql 60 \
Jan Görig 767f6bf
	--slave /usr/sbin/bscan bacula-bscan /usr/sbin/bscan.postgresql
0745245
0745245
0745245
%preun storage-mysql
e45f06f
if [ "$1" = 0 ]; then
e45f06f
	/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.mysql
e45f06f
fi
0745245
0745245
%preun storage-sqlite
e45f06f
if [ "$1" = 0 ]; then
e45f06f
	/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.sqlite
e45f06f
fi
0745245
0745245
%preun storage-postgresql
e45f06f
if [ "$1" = 0 ]; then
e45f06f
	/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.postgresql
e45f06f
fi
0745245
45643a0
%post client
45643a0
if [ $1 -eq 1 ] ; then 
45643a0
    # Initial installation 
45643a0
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
45643a0
fi
45643a0
45643a0
%preun client
45643a0
if [ $1 -eq 0 ] ; then
45643a0
    # Package removal, not upgrade
45643a0
    /bin/systemctl --no-reload disable bacula-fd.service > /dev/null 2>&1 || :
45643a0
    /bin/systemctl stop bacula-fd.service > /dev/null 2>&1 || :
45643a0
fi
45643a0
45643a0
%postun client
45643a0
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
45643a0
if [ $1 -ge 1 ] ; then
45643a0
    # Package upgrade, not uninstall
45643a0
    /bin/systemctl try-restart bacula-fd.service >/dev/null 2>&1 || :
45643a0
fi
45643a0
a64ae85
%triggerun client -- bacula-client < 5.0.3-10
a64ae85
# Save the current service runlevel info
a64ae85
# User must manually run systemd-sysv-convert --apply bacula-fd
a64ae85
# to migrate them to systemd targets
a64ae85
/usr/bin/systemd-sysv-convert --save bacula-fd >/dev/null 2>&1 ||:
0745245
a64ae85
# Run these because the SysV package being removed won't do them
a64ae85
/sbin/chkconfig --del bacula-fd >/dev/null 2>&1 || :
a64ae85
/bin/systemctl try-restart bacula-fd.service >/dev/null 2>&1 || :
0745245
0745245
45643a0
%post director-common
45643a0
if [ $1 -eq 1 ] ; then 
45643a0
    # Initial installation 
45643a0
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
45643a0
fi
45643a0
45643a0
%preun director-common
45643a0
if [ $1 -eq 0 ] ; then
45643a0
    # Package removal, not upgrade
45643a0
    /bin/systemctl --no-reload disable bacula-dir.service > /dev/null 2>&1 || :
45643a0
    /bin/systemctl stop bacula-dir.service > /dev/null 2>&1 || :
45643a0
fi
45643a0
45643a0
%postun director-common
45643a0
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
45643a0
if [ $1 -ge 1 ] ; then
45643a0
    # Package upgrade, not uninstall
45643a0
    /bin/systemctl try-restart bacula-dir.service >/dev/null 2>&1 || :
45643a0
fi
45643a0
a64ae85
%triggerun director-common -- bacula-director-common < 5.0.3-10
a64ae85
# Save the current service runlevel info
a64ae85
# User must manually run systemd-sysv-convert --apply bacula-dir
a64ae85
# to migrate them to systemd targets
a64ae85
/usr/bin/systemd-sysv-convert --save bacula-dir >/dev/null 2>&1 ||:
0745245
a64ae85
# Run these because the SysV package being removed won't do them
a64ae85
/sbin/chkconfig --del bacula-dir >/dev/null 2>&1 || :
a64ae85
/bin/systemctl try-restart bacula-dir.service >/dev/null 2>&1 || :
0745245
0745245
45643a0
%post storage-common
45643a0
if [ $1 -eq 1 ] ; then 
45643a0
    # Initial installation 
45643a0
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
45643a0
fi
45643a0
45643a0
%preun storage-common
45643a0
if [ $1 -eq 0 ] ; then
45643a0
    # Package removal, not upgrade
45643a0
    /bin/systemctl --no-reload disable bacula-sd.service > /dev/null 2>&1 || :
45643a0
    /bin/systemctl stop bacula-sd.service > /dev/null 2>&1 || :
45643a0
fi
45643a0
45643a0
%postun storage-common
45643a0
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
45643a0
if [ $1 -ge 1 ] ; then
45643a0
    # Package upgrade, not uninstall
45643a0
    /bin/systemctl try-restart bacula-sd.service >/dev/null 2>&1 || :
45643a0
fi
45643a0
a64ae85
%triggerun storage-common -- bacula-storage-common < 5.0.3-10 
a64ae85
# Save the current service runlevel info
a64ae85
# User must manually run systemd-sysv-convert --apply bacula-sd
a64ae85
# to migrate them to systemd targets
a64ae85
/usr/bin/systemd-sysv-convert --save bacula-sd >/dev/null 2>&1 ||:
0745245
a64ae85
# Run these because the SysV package being removed won't do them
a64ae85
/sbin/chkconfig --del bacula-sd >/dev/null 2>&1 || :
a64ae85
/bin/systemctl try-restart bacula-sd.service >/dev/null 2>&1 || :
0745245
0745245
0745245
%files common
b87413e
%defattr(-,root,root,-)
0745245
%doc bacula-%{version}/AUTHORS bacula-%{version}/ChangeLog bacula-%{version}/COPYING bacula-%{version}/LICENSE
0745245
%doc bacula-%{version}/README bacula-%{version}/SUPPORT bacula-%{version}/VERIFYING
0745245
%doc bacula-%{version}/examples/
0745245
%config(noreplace) %{_sysconfdir}/logrotate.d/bacula
7ce52f3
%dir %{_sysconfdir}/bacula
0745245
%dir %{_libexecdir}/bacula
0745245
%{_sbindir}/bsmtp
0745245
%{_sbindir}/btraceback
0745245
%{_libexecdir}/bacula/btraceback.dbx
0745245
%{_libexecdir}/bacula/btraceback.gdb
0745245
%{_mandir}/man1/bsmtp.1*
0745245
%{_mandir}/man8/bacula.8*
0745245
%{_mandir}/man8/btraceback.8*
0745245
%dir %attr(750, bacula, bacula) %{_localstatedir}/log/bacula
0745245
%dir %attr(750, bacula, bacula) %{_localstatedir}/spool/bacula
bf00cf0
%{_sbindir}/bacula
ab2ba2c
#%{_libdir}/bpipe-fd.so
bf00cf0
/usr/libexec/bacula/mtx-changer.conf
ab2ba2c
%{_libexecdir}/bacula/bacula_config
Jon Ciesla c0a3f40
%{_libexecdir}/bacula/btraceback.mdb
a64ae85
%{_sbindir}/bacula-checkconf
0745245
0745245
%files client
0745245
%defattr(-,root,root,-)
0745245
%{_sbindir}/bacula-fd
a64ae85
%{_unitdir}/bacula-fd.service
0745245
%config(noreplace) %{_sysconfdir}/bacula/bacula-fd.conf
0745245
%{_mandir}/man8/bacula-fd.8*
0745245
0745245
0745245
%files console
0745245
%defattr(-,root,root,-)
0745245
%{_sbindir}/bconsole
5251a07
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bconsole.conf
0745245
%{_mandir}/man8/bconsole.8*
0745245
0745245
ab2ba2c
#%files console-gnome
ab2ba2c
#%defattr(-,root,root,-)
ab2ba2c
#%config %{_sysconfdir}/security/console.apps/bgnome-console
ab2ba2c
#%config %{_sysconfdir}/pam.d/bgnome-console
ab2ba2c
#%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bgnome-console.conf
ab2ba2c
#%{_bindir}/bgnome-console
ab2ba2c
#%{_sbindir}/bgnome-console
ab2ba2c
#%{_mandir}/man1/bacula-bgnome-console.1.gz
ab2ba2c
##%{_mandir}/man1/bacula-bconsole-gnome.1*
ab2ba2c
#%{_datadir}/applications/fedora-bacula-gconsole.desktop
ab2ba2c
#%{_datadir}/pixmaps/bacula.png
0745245
7dc8299
%files console-bat
7dc8299
%defattr(-,root,root,-)
48cee68
%config %{_sysconfdir}/security/console.apps/bat
48cee68
%config %{_sysconfdir}/pam.d/bat
7dc8299
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bat.conf
48cee68
%{_bindir}/bat
7dc8299
%{_sbindir}/bat
7dc8299
%{_mandir}/man1/bat.1.gz
7dc8299
%{_datadir}/applications/fedora-bacula-bat.desktop
7dc8299
%{_datadir}/pixmaps/bat_icon.png
ab2ba2c
%{_datadir}/pixmaps/bacula.png
7dc8299
0745245
0745245
%files console-wxwidgets
0745245
%defattr(-,root,root,-)
ddc0d55
%config %{_sysconfdir}/security/console.apps/bwxconsole
ddc0d55
%config %{_sysconfdir}/pam.d/bwxconsole
5251a07
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bwxconsole.conf
ddc0d55
%{_bindir}/bwxconsole
b87413e
%{_sbindir}/bwxconsole
b87413e
%{_mandir}/man1/bacula-bwxconsole.1*
0745245
%{_datadir}/applications/fedora-bacula-wxconsole.desktop
0745245
%{_datadir}/pixmaps/wxwin16x16.xpm
0745245
0745245
0745245
%files director-common
0745245
%defattr(-,root,root,-)
b87413e
%doc bacula-%{version}/updatedb/
Jan Görig 38c1d43
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bacula-dir.conf
0745245
%config(noreplace) %{_sysconfdir}/bacula/query.sql
0745245
%config %{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
0745245
%config %{_sysconfdir}/logwatch/conf/services/bacula.conf
0745245
%{_sysconfdir}/logwatch/scripts/services/bacula
04a9b46
%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
a64ae85
%{_unitdir}/bacula-dir.service
0745245
%{_sbindir}/bregex
0745245
%{_sbindir}/bwild
0745245
%{_mandir}/man8/dbcheck.8*
0745245
%{_mandir}/man8/bacula-dir.8*
0745245
%{_libexecdir}/bacula/delete_catalog_backup
ab2ba2c
%{_libexecdir}/bacula/make_catalog_backup.pl
0745245
0745245
%files director-mysql
0745245
%defattr(-,root,root,-)
0745245
%{_sbindir}/bacula-dir.mysql
0745245
%{_sbindir}/dbcheck.mysql
0745245
%{_libexecdir}/bacula/create_mysql_database
0745245
%{_libexecdir}/bacula/drop_mysql_database
0745245
%{_libexecdir}/bacula/drop_mysql_tables
0745245
%{_libexecdir}/bacula/grant_mysql_privileges
0745245
%{_libexecdir}/bacula/make_mysql_tables
0745245
%{_libexecdir}/bacula/update_mysql_tables
0745245
%{_libexecdir}/bacula/create_bacula_database.mysql
0745245
%{_libexecdir}/bacula/drop_bacula_database.mysql
0745245
%{_libexecdir}/bacula/drop_bacula_tables.mysql
0745245
%{_libexecdir}/bacula/grant_bacula_privileges.mysql
0745245
%{_libexecdir}/bacula/make_bacula_tables.mysql
0745245
%{_libexecdir}/bacula/make_catalog_backup.mysql
0745245
%{_libexecdir}/bacula/update_bacula_tables.mysql
0745245
0745245
0745245
0745245
%files director-sqlite
0745245
%defattr(-,root,root,-)
0745245
%{_sbindir}/bacula-dir.sqlite
0745245
%{_sbindir}/dbcheck.sqlite
0745245
# DANGER Will Robinson. Bacula has versioned sqlite filenames
0745245
%{_libexecdir}/bacula/create_sqlite%{?sqlite_suffix}_database
0745245
%{_libexecdir}/bacula/drop_sqlite%{?sqlite_suffix}_database
0745245
%{_libexecdir}/bacula/drop_sqlite%{?sqlite_suffix}_tables
0745245
%{_libexecdir}/bacula/grant_sqlite%{?sqlite_suffix}_privileges
0745245
%{_libexecdir}/bacula/make_sqlite%{?sqlite_suffix}_tables
0745245
%{_libexecdir}/bacula/update_sqlite%{?sqlite_suffix}_tables
0745245
%{_libexecdir}/bacula/create_bacula_database.sqlite
0745245
%{_libexecdir}/bacula/drop_bacula_database.sqlite
0745245
%{_libexecdir}/bacula/drop_bacula_tables.sqlite
0745245
%{_libexecdir}/bacula/grant_bacula_privileges.sqlite
0745245
%{_libexecdir}/bacula/make_bacula_tables.sqlite
0745245
%{_libexecdir}/bacula/make_catalog_backup.sqlite
0745245
%{_libexecdir}/bacula/update_bacula_tables.sqlite
0745245
0745245
0745245
%files director-postgresql
0745245
%defattr(-,root,root,-)
0745245
%{_sbindir}/bacula-dir.postgresql
0745245
%{_sbindir}/dbcheck.postgresql
0745245
%{_libexecdir}/bacula/create_postgresql_database
0745245
%{_libexecdir}/bacula/drop_postgresql_database
0745245
%{_libexecdir}/bacula/drop_postgresql_tables
0745245
%{_libexecdir}/bacula/grant_postgresql_privileges
0745245
%{_libexecdir}/bacula/make_postgresql_tables
0745245
%{_libexecdir}/bacula/update_postgresql_tables
0745245
%{_libexecdir}/bacula/create_bacula_database.postgresql
0745245
%{_libexecdir}/bacula/drop_bacula_database.postgresql
0745245
%{_libexecdir}/bacula/drop_bacula_tables.postgresql
0745245
%{_libexecdir}/bacula/grant_bacula_privileges.postgresql
0745245
%{_libexecdir}/bacula/make_bacula_tables.postgresql
0745245
%{_libexecdir}/bacula/make_catalog_backup.postgresql
0745245
%{_libexecdir}/bacula/update_bacula_tables.postgresql
0745245
0745245
0745245
%files storage-common
0745245
%defattr(-,root,root,-)
0745245
%{_sbindir}/bacula-sd
0745245
%{_sbindir}/bextract
0745245
%{_sbindir}/bls
0745245
%{_sbindir}/btape
0745245
%config(noreplace) %{_sysconfdir}/bacula/bacula-sd.conf
a64ae85
%{_unitdir}/bacula-sd.service
0745245
%{_libexecdir}/bacula/disk-changer
0745245
%{_libexecdir}/bacula/dvd-handler
0745245
%{_libexecdir}/bacula/mtx-changer
0745245
%{_mandir}/man8/bcopy.8*
0745245
%{_mandir}/man8/bextract.8*
0745245
%{_mandir}/man8/bls.8*
0745245
%{_mandir}/man8/bscan.8*
0745245
%{_mandir}/man8/btape.8*
0745245
%{_mandir}/man8/bacula-sd.8*
0745245
0745245
0745245
%files storage-mysql
0745245
%defattr(-,root,root,-)
0745245
%{_sbindir}/bcopy.mysql
0745245
%{_sbindir}/bscan.mysql
0745245
0745245
0745245
%files storage-sqlite
0745245
%defattr(-,root,root,-)
0745245
%{_sbindir}/bcopy.sqlite
0745245
%{_sbindir}/bscan.sqlite
0745245
0745245
0745245
%files storage-postgresql
0745245
%defattr(-,root,root,-)
0745245
%{_sbindir}/bcopy.postgresql
0745245
%{_sbindir}/bscan.postgresql
0745245
0745245
0745245
%files traymonitor
0745245
%defattr(-,root,root,-)
08062e1
%{_bindir}/bacula-tray-monitor
0745245
%{_sbindir}/bacula-tray-monitor
5251a07
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/tray-monitor.conf
08062e1
%config %{_sysconfdir}/security/console.apps/bacula-tray-monitor
08062e1
%config %{_sysconfdir}/pam.d/bacula-tray-monitor
0745245
%{_mandir}/man1/bacula-tray-monitor.1*
0745245
%{_datadir}/applications/fedora-bacula-traymonitor.desktop
0745245
%{_datadir}/pixmaps/bacula-tray-monitor.xpm
0745245
0745245
0745245
%files docs
b87413e
%defattr(-,root,root,-)
ab2ba2c
#%doc bacula-docs-%{docs_version}/manuals/en/old/install/install.pdf
bf00cf0
%doc bacula-docs-%{docs_version}/manuals/en/problems/problems.pdf
bf00cf0
%doc bacula-docs-%{docs_version}/manuals/en/console/console.pdf
bf00cf0
%doc bacula-docs-%{docs_version}/manuals/en/utility/utility.pdf
ab2ba2c
#%doc bacula-docs-%{docs_version}/manuals/en/old/concepts/concepts.pdf
ab2ba2c
#%doc bacula-docs-%{docs_version}/manuals/en/old/catalog/catalog.pdf
bf00cf0
%doc bacula-docs-%{docs_version}/manuals/en/developers/developers.pdf
ab2ba2c
%doc bacula-docs-%{docs_version}/manuals/en/main/main.pdf
ab2ba2c
%doc bacula-docs-%{docs_version}/manuals/en/misc/misc.pdf
0745245
0745245
0745245
#%files web
0745245
#%defattr(-,root,root,-)
0745245
#%doc bacula-gui-%{gui_version}/bacula-web/CONTACT bacula-gui-%{gui_version}/bacula-web/COPYING
0745245
#%doc bacula-gui-%{gui_version}/bacula-web/README bacula-gui-%{gui_version}/bacula-web/TODO
0745245
#%{_datadir}/bacula-web/
0745245
#%config(noreplace) %{_sysconfdir}/bacula/bacula-web.conf
0745245
#%config(noreplace) %{_sysconfdir}/httpd/conf.d/bacula-web.conf
0745245
#%dir %attr(755, apache, apache) %{_localstatedir}/cache/bacula-web
0745245
0745245
0745245
%changelog
8a0e9e7
* Thu Dec 22 2011 Lukáš Nykrýn <lnykryn@redhat.com> - 5.0.3-14
8a0e9e7
- removed duplicity from logrotate file (#755970)
8a0e9e7
13c6f37
* Thu Nov 3 2011 Lukáš Nykrýn <lnykryn@redhat.com> - 5.0.3-13
04e03c8
- fixed creating of bacula MySQL tables and bump
04e03c8
aae7e11
* Fri Oct  9 2011 Lukáš Nykrýn <lnykryn@redhat.com> - 5.0.3-12
aae7e11
- fixed restart option in service files (#745529)
36ac69e
- fixed creating of bacula MySQL tables (#724894)
aae7e11
45643a0
* Fri Sep  9 2011 Tom Callaway <spot@fedoraproject.org> - 5.0.3-11
45643a0
- add missing scriptlets
45643a0
a64ae85
* Thu Sep  8 2011 Tom Callaway <spot@fedoraproject.org> - 5.0.3-10 
a64ae85
- convert to systemd
a64ae85
86f931b
* Wed Mar 23 2011 Dan Horák <dan@danny.cz> - 5.0.3-9
86f931b
- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient)
86f931b
ef0818b
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.3-8
ef0818b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ef0818b
Jon Ciesla 68d1a96
* Mon Jan 03 2011 Jon Ciesla <limb@jcomserv.net> - 5.0.3-7
Jon Ciesla 187db2a
- Rebuild for MySQL 5.5, with patch.
Jon Ciesla 68d1a96
Jan Görig 767f6bf
* Fri Nov 26 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-6
Jan Görig 767f6bf
- Fixed previous fix of alternatives
Jan Görig 767f6bf
- Changed initscript return value for non-configured service
Jan Görig 767f6bf
- Director address is required in tray-monitor config now (#626490)
Jan Görig 767f6bf
Jan Görig 38c1d43
* Tue Nov 23 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-5
Jan Görig 38c1d43
- Fixed alternatives for dbcheck (#650224)
Jan Görig 38c1d43
- Moved director log file to /var/log/bacula/
Jan Görig 38c1d43
- Changed permission of bacula-dir.conf (RHEL #651786)
Jan Görig 38c1d43
- SQLite database is created as bacula user
Jan Görig 38c1d43
Jan Görig e51227f
* Tue Oct 19 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-4
Jan Görig e51227f
- Fixed initscripts and changed default group of bacula-sd (#629697)
Jan Görig e51227f
- Better warning for non-configured password (#556669)
Jan Görig e51227f
Jesse Keating 1b1f00f
* Wed Sep 29 2010 jkeating - 5.0.3-3
Jesse Keating 1b1f00f
- Rebuilt for gcc bug 634757
Jesse Keating 1b1f00f
Jan Görig 7f55ce9
* Thu Sep 23 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-2
Jan Görig 7f55ce9
- fixed openssl patch, thanks to Enrico Scholz
Jan Görig 7f55ce9
Jon Ciesla c0a3f40
* Tue Aug 10 2010 Jon Ciesla <limb@jcomserv.net> - 5.0.3-1
Jon Ciesla c0a3f40
- New upstream.
Jon Ciesla c0a3f40
- DSOlink fix for same.
Jon Ciesla c0a3f40
Jon Ciesla 915c508
* Fri Jul 30 2010 Jon Ciesla <limb@jcomserv.net> - 5.0.2-8
Jon Ciesla 915c508
- Patched configure scripts for Python 2.7.
Jon Ciesla 915c508
Jon Ciesla 915c508
* Fri Jul 30 2010 Jon Ciesla <limb@jcomserv.net> - 5.0.2-7
Jon Ciesla 915c508
- Rebuild against Python 2.7.
Jon Ciesla 915c508
d20cd2f
* Wed Jul 14 2010 Dan Horák <dan@danny.cz> - 5.0.2-6
d20cd2f
- rebuilt against wxGTK-2.8.11-2
d20cd2f
7ce52f3
* Thu Jun 3 2010 Jan Görig <jgorig@redhat.com> 5.0.2-5
7ce52f3
- removed no longer needed sysconfig subpackage (#593307]
7ce52f3
- build with $RPM_OPT_FLAGS, show compiler commands in build log (#575425)
7ce52f3
  fixed by Ville Skyttä
7ce52f3
- dropped tcp_wrappers build conditional (#537250)
7ce52f3
- fixed location of query.xml in config file (#556480)
7ce52f3
ddc0d55
* Wed Jun 2 2010 Jan Görig <jgorig@redhat.com> 5.0.2-4
ddc0d55
- initscripts improvements
ddc0d55
- fixed consolehelper settings and menu entries
ddc0d55
d1fa04c
* Tue Jun 01 2010 Jon Ciesla 
d1fa04c
- Corrected ssl patch, court. jgorig.
d1fa04c
eb59c7c
* Wed May 19 2010 Jon Ciesla 
eb59c7c
- Corrected bat build, BZ 593149.
eb59c7c
- Corrected ssl patch.
eb59c7c
111191f
* Thu Apr 29 2010 Jon Ciesla 
111191f
- New upstream, 5.0.2.
111191f
- Updated openssl patch.
111191f
0cbe383
* Thu Feb 25 2010 Jon Ciesla 
0cbe383
- New upstream, 5.0.1.
0cbe383
ab2ba2c
* Mon Jan 25 2010 Jon Ciesla 
ab2ba2c
- New upstream, 5.0.0.
ab2ba2c
600d108
* Tue Dec 08 2009 Jon Ciesla 
1d0a7f9
- Drop broken postun scriptlet and dep, BZ 545226.
600d108
04a9b46
* Thu Dec 03 2009 Jon Ciesla 
04a9b46
- Fix applybaculadate location.
04a9b46
04a9b46
* Tue Dec 01 2009 Jon Ciesla 
04a9b46
- Add applybaculadate, BZ 540861.
04a9b46
291a27b
* Tue Nov 24 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 3.0.3-2
291a27b
- Rebuild for Qt 4.6.0 RC1 in F13 (was built against Beta 1 with unstable ABI)
291a27b
c61aaeb
* Mon Oct 19 2009 Jon Ciesla 
c61aaeb
- New upstream, 3.0.3.
c61aaeb
43cef8a
* Sat Aug 22 2009 Tomas Mraz <tmraz@redhat.com> - 3.0.2-4
be575fc
- rebuilt with new openssl
be575fc
61a7978
* Mon Aug 10 2009 Jon Ciesla 
61a7978
- Dropped user/group removal per guidelines.
61a7978
- Added -common dep to traymonitor.
61a7978
08062e1
* Thu Jul 30 2009 Jon Ciesla 
08062e1
- gnome-console consolehelper correction. BZ 426790.
08062e1
- add tray-monitor to consolehelper. BZ 426790
08062e1
f7b73b7
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-1
f7b73b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f7b73b7
0036e0f
* Tue Jul 21 2009 Jon Ciesla 
0036e0f
- Update to new upstream, 3.0.2.
0036e0f
- Put full paths in desktop files. BZ 426790.
0036e0f
- Moved console requires from sysconfdir to common BZ 505755.
0036e0f
ffb14ee
* Thu Apr 30 2009 Jon Ciesla 
ffb14ee
- Update to new upstream, 3.0.1.
ffb14ee
bf00cf0
* Tue Apr 21 2009 Jon Ciesla 
bf00cf0
- Update to new upstream, 3.0.0.
bf00cf0
c59737d
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.4-3
c59737d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c59737d
22b9a04
* Fri Jan 23 2009 Jon Ciesla 
22b9a04
- Rebuild against mysql 5.1.
22b9a04
a00ecb2
* Mon Jan 05 2009 Jon Ciesla 
a00ecb2
- Update to new upstream, 2.4.4.
a00ecb2
- Dropped orphaned jobs patch, python 2.6 patch, applied upstream.
a00ecb2
3c14115
* Mon Dec 15 2008 Jon Ciesla 
3c14115
- Patched to support Python 2.6, BZ 476547.
3c14115
48cee68
* Fri Dec 12 2008 Jon Ciesla 
48cee68
- Fix consolehelper behaviour for bat.
48cee68
3bbb33a
* Wed Dec 10 2008 Jon Ciesla 
3bbb33a
- Re-diffed fuzzy bacula-director-configuration and bacula-config patches.
3bbb33a
d0bfbcb
* Mon Dec 1 2008 Andreas Thienemann <andreas@bawue.net> - 2.4.3-4
d0bfbcb
- Fixed dependency "issues" #473627 by adding the sysconfdir subpackage.
d0bfbcb
d372500
* Mon Nov 17 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.3-3
d372500
- Added upstream orphaned jobs patch.
543315a
- Fixed logrotate file.
d372500
7dc8299
* Mon Nov 10 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.3-2
7dc8299
- Added bat.  BZ 470800.
7dc8299
d923dd6
* Wed Oct 22 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.3-1
d923dd6
- Update to 2.4.3.
d923dd6
e45f06f
* Tue Sep 09 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.2-2
e45f06f
- Logrotate fix. BZ 457894.
e45f06f
- Alternatives fix. BZ 458432.
e45f06f
809c9fd
* Thu Jul 31 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.2-1
809c9fd
- Update to 2.4.2.
809c9fd
5d749cf
* Wed Jul 30 2008 Andreas Thienemann <athienem@redhat.com> - 2.2.8-2
5d749cf
- Fixed %%{fedora} comparision, making bacula-sqlite build on rawhide
5d749cf
b87413e
* Fri Jul 25 2008 Jon Ciesla <limb@jcomserv.net> - 2.2.8-1
b87413e
- Update to 2.2.8. BZ 446461.
b87413e
- Dropped director and storage DB-server hard Reqs. BZ 426788.
b87413e
- .desktop fixes.  BZ 450278, 426789.
b87413e
- Updated config patch.
b87413e
- Dropped wxconsole patch, applied upstream.
b87413e
- Updated pamd patch.
b87413e
- Dropped ampm patch, applied upstream.
b87413e
- Dropped maxbyteslist patch, N/A.
b87413e
- Dropped maxwaittime patch, applied upstream.
b87413e
- Dropped scheduler-next-hour patch, applied upstream.
b87413e
- Dropped verify patch, applied upstream.
b87413e
- Dropped tls-disconnect patch, applied upstream.
5251a07
- Fix for 426791.
5251a07
- Introduced patch fuzz workaround, will fix.
b87413e
66f3524
* Mon Jul  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.3-14
66f3524
- fix conditional comparison
66f3524
- fix license tag
66f3524
9bf8f8a
* Mon Jan 07 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.3-13
9bf8f8a
- add BR: dvipdfm
9bf8f8a
8ddf46a
* Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 2.0.3-12
8ddf46a
 - Rebuild for deps
8ddf46a
82a0ba0
* Wed Sep 5 2007 Andreas Thienemann <andreas@bawue.net> - 2.0.3-11
82a0ba0
- Remove spooldir in client, fixing #251879
82a0ba0
- Remove dependency on libtermcap, fixing #251158
82a0ba0
f9acda2
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.0.3-10
f9acda2
- Rebuild for selinux ppc32 issue.
f9acda2
d03ec39
* Wed Jul 25 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-9
d03ec39
- Corrected the %%post alternatives calls. Fixing #249560.
d03ec39
0745245
* Wed Jul 19 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-8
0745245
- Moved some files around in the %%files section and refactored
0745245
  spec parts a bit
0745245
- Fixed up the catalog-backup scripts by including them in the
0745245
  alternatives system
0745245
- Applied tls patch fixing some tls disconnection issues.
0745245
0745245
* Thu Jul 18 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-7
0745245
- Minor specchanges, mostly typos in the comments
0745245
- Incorporated minor changes from dgilmore's review.
0745245
0745245
* Fri Jul 13 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-6
0745245
- Fixing %%preun scripts. Thx to Dan for spotting this
0745245
0745245
* Fri Jul 13 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-5
0745245
- Fixed provides and requires
0745245
0745245
* Wed Jul 11 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-4
0745245
- Fixed many rpmlint issues
0745245
0745245
* Thu Apr 26 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-3
0745245
- Final cleanups for fedora
0745245
- Removed webgui for now. It will be back in a future release
0745245
- Added LANG=C calls to the initscripts
0745245
0745245
* Thu Apr 26 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-2
0745245
- Added logdir
0745245
- Fixed up doc-creation to actually work
0745245
- Fixed up web interface
0745245
- Included docs sub-package
0745245
- Included README et al as docs where appropriate
0745245
0745245
* Sat Mar 10 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-1
0745245
- Updated to 2.0.3
0745245
- Reverted the database-check as we're not sure the db is running on the
0745245
  local machine. A later revision might parse the bacula-dir.conf file
0745245
  and just connect to the db to see if it's running.
0745245
0745245
* Sat Feb 28 2007 Andreas Thienemann <andreas@bawue.net> 2.0.2-1
0745245
- Further updates on the spec
0745245
0745245
* Sat Feb 18 2007 Andreas Thienemann <andreas@bawue.net> 2.0.2-1
0745245
- Much work on the spec
0745245
- Updated to 2.0.2
0745245
0745245
* Sat Feb 18 2006 Andreas Thienemann <andreas@bawue.net> 1.38.11-1
0745245
- Initial spec.