1a9c4f1
%global uid 133
e004908
%global username bacula
4dac1ea
2fee6f8
Name:                   bacula
2e721e2
Version:                5.2.12
145c1df
Release:                3%{?dist}
2fee6f8
Summary:                Cross platform network backup for Linux, Unix, Mac and Windows
66f3524
# See LICENSE for details
2fee6f8
License:                AGPLv3 with exceptions
2fee6f8
Group:                  System Environment/Daemons
2fee6f8
URL:                    http://www.bacula.org
8f6eee7
BuildRoot:              %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
2fee6f8
2fee6f8
Source0:                http://www.bacula.org/downloads/Bacula-%{version}/%{name}-%{version}.tar.gz
2fee6f8
Source5:                README.Fedora
2fee6f8
Source6:                bacula.logrotate
2fee6f8
Source7:                bacula-fd.init
2fee6f8
Source8:                bacula-dir.init
2fee6f8
Source9:                bacula-sd.init
2fee6f8
Source10:               bacula-fd.service
2fee6f8
Source11:               bacula-dir.service
2fee6f8
Source12:               bacula-sd.service
2fee6f8
Source13:               bacula-bat.desktop
2fee6f8
Source14:               bacula-traymonitor.desktop
2fee6f8
Source15:               bacula-fd.sysconfig
2fee6f8
Source16:               bacula-dir.sysconfig
2fee6f8
Source17:               bacula-sd.sysconfig
6c1a0c5
Source18:               bacula-sd.sysconfig.el5
6c1a0c5
Source19:               bacula-checkconf
2fee6f8
4c56045
Patch1:                 bacula-5.0.2-openssl.patch
4c56045
Patch2:                 bacula-5.2.2-queryfile.patch
b410469
Patch3:                 bacula-5.0.3-sqlite-priv.patch
9716ec6
Patch4:                 bacula-5.2.11-bat-build.patch
114d5db
114d5db
BuildRequires:          desktop-file-utils
2fee6f8
BuildRequires:          perl
114d5db
BuildRequires:          sed
900706a
fce586b
BuildRequires:          glibc-devel
fce586b
BuildRequires:          libacl-devel
fce586b
BuildRequires:          libstdc++-devel
fce586b
BuildRequires:          libxml2-devel
fce586b
BuildRequires:          libcap-devel
fce586b
BuildRequires:          lzo-devel
fce586b
BuildRequires:          mysql-devel
fce586b
BuildRequires:          ncurses-devel
fce586b
BuildRequires:          openssl-devel
fce586b
BuildRequires:          postgresql-devel
fce586b
BuildRequires:          python-devel
fce586b
BuildRequires:          readline-devel
fce586b
BuildRequires:          sqlite-devel
fce586b
BuildRequires:          zlib-devel
16d9a36
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
fce586b
BuildRequires:          qt4-devel >= 4.6.2
16d9a36
%endif
16d9a36
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
fce586b
BuildRequires:          tcp_wrappers-devel
16d9a36
%else
fce586b
BuildRequires:          tcp_wrappers
16d9a36
%endif
16d9a36
115b75c
%if 0%{?fedora} || 0%{?rhel} >= 7
5663d98
BuildRequires:          systemd-units
5663d98
%endif
0745245
0745245
%description
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture and is efficient and relatively easy to
8f6eee7
use, while offering many advanced storage management features that make it easy
8f6eee7
to find and recover lost or damaged files.
0745245
0745245
8390fc1
%package libs
2fee6f8
Summary:                Bacula libraries
2fee6f8
Group:                  System Environment/Daemons
2fee6f8
Obsoletes:              bacula-sysconfdir <= 2.4
964c499
964c499
%description libs
964c499
Bacula is a set of programs that allow you to manage the backup,
964c499
recovery, and verification of computer data across a network of
964c499
different computers. It is based on a client/server architecture.
964c499
964c499
This package contains basic Bacula libraries, which are used by all
964c499
Bacula programs.
964c499
964c499
964c499
%package libs-sql
2fee6f8
Summary:                Bacula SQL libraries
2fee6f8
Group:                  System Environment/Daemons
2fee6f8
Obsoletes:              bacula-libs-mysql <= 5.0.3
2fee6f8
Obsoletes:              bacula-libs-sqlite <= 5.0.3
2fee6f8
Obsoletes:              bacula-libs-postgresql <= 5.0.3
2fee6f8
Provides:               bacula-libs-mysql = %{version}-%{release}
2fee6f8
Provides:               bacula-libs-sqlite = %{version}-%{release}
2fee6f8
Provides:               bacula-libs-postgresql = %{version}-%{release}
8390fc1
964c499
%description libs-sql
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
8390fc1
8f6eee7
This package contains the SQL Bacula libraries, which are used by Director and
8f6eee7
Storage daemons. You have to select your preferred catalog library through the
8f6eee7
alternatives system.
8390fc1
8390fc1
7dc2ef0
%package common
2fee6f8
Summary:                Common Bacula files
2fee6f8
Group:                  System Environment/Daemons
2fee6f8
Obsoletes:              bacula-sysconfdir <= 2.4
2fee6f8
Provides:               group(%username) = %uid
2fee6f8
Provides:               user(%username) = %uid
2fee6f8
Requires(pre):          shadow-utils
2fee6f8
Requires(postun):       shadow-utils
7dc2ef0
7dc2ef0
%description common
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
7dc2ef0
54639b9
This package contains files common to all Bacula daemons.
8390fc1
7dc2ef0
bf9089a
%package director
2fee6f8
Summary:                Bacula Director files
2fee6f8
Group:                  System Environment/Daemons
2fee6f8
Requires:               bacula-common%{?_isa} = %{version}-%{release}
2fee6f8
Requires:               logwatch
bf9089a
# Director backends merged into core.
2fee6f8
Provides:               bacula-director-common = %{version}-%{release}
2fee6f8
Obsoletes:              bacula-director-common < 5.2.3-5
2fee6f8
Provides:               bacula-director-mysql = %{version}-%{release}
2fee6f8
Obsoletes:              bacula-director-mysql < 5.2.3-5
2fee6f8
Provides:               bacula-director-sqlite = %{version}-%{release}
2fee6f8
Obsoletes:              bacula-director-sqlite < 5.2.3-5
2fee6f8
Provides:               bacula-director-postgresql = %{version}-%{release}
2fee6f8
Obsoletes:              bacula-director-postgresql < 5.2.3-5
e66bd92
e66bd92
%if 0%{?fedora} == 16 || 0%{?fedora} == 17
2fee6f8
Requires(post):         systemd-units
2fee6f8
Requires(preun):        systemd-units
2fee6f8
Requires(postun):       systemd-units
e66bd92
%endif
e66bd92
e66bd92
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
e66bd92
Requires(post):         systemd-sysv
e66bd92
Requires(post):         systemd
e66bd92
Requires(preun):        systemd
e66bd92
Requires(postun):       systemd
e66bd92
%endif
e66bd92
156c8fd
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
2fee6f8
Requires(post):         /sbin/chkconfig
2fee6f8
Requires(preun):        /sbin/chkconfig
2fee6f8
Requires(preun):        /sbin/service
2fee6f8
Requires(postun):       /sbin/service
7dc2ef0
%endif
7dc2ef0
bf9089a
%description director
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
7dc2ef0
bf9089a
This package contains the director files.
0745245
0745245
7dc2ef0
%package storage
2fee6f8
Summary:                Bacula storage daemon files
2fee6f8
Group:                  System Environment/Daemons
2fee6f8
Requires:               bacula-common%{?_isa} = %{version}-%{release}
7dc2ef0
# Storage backends merged into core.
2fee6f8
Provides:               bacula-storage-common = %{version}-%{release}
2fee6f8
Obsoletes:              bacula-storage-common < 5.2.2-2
2fee6f8
Provides:               bacula-storage-mysql = %{version}-%{release}
2fee6f8
Obsoletes:              bacula-storage-mysql < 5.2.0
2fee6f8
Provides:               bacula-storage-sqlite = %{version}-%{release}
2fee6f8
Obsoletes:              bacula-storage-sqlite < 5.2.0
2fee6f8
Provides:               bacula-storage-postgresql = %{version}-%{release}
2fee6f8
Obsoletes:              bacula-storage-postgresql < 5.2.0
50deab8
50deab8
%if 0%{?fedora} == 16 || 0%{?fedora} == 17
2fee6f8
Requires(post):         systemd-units
2fee6f8
Requires(preun):        systemd-units
2fee6f8
Requires(postun):       systemd-units
50deab8
%endif
50deab8
50deab8
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
50deab8
Requires(post):         systemd-sysv
50deab8
Requires(post):         systemd
50deab8
Requires(preun):        systemd
50deab8
Requires(postun):       systemd
50deab8
%endif
50deab8
50deab8
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
2fee6f8
Requires(post):         /sbin/chkconfig
2fee6f8
Requires(preun):        /sbin/chkconfig
2fee6f8
Requires(preun):        /sbin/service
2fee6f8
Requires(postun):       /sbin/service
16d9a36
%endif
16d9a36
7dc2ef0
%description storage
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
0745245
8f6eee7
This package contains the storage daemon, the daemon responsible for writing
8f6eee7
the data received from the clients onto tape drives or other mass storage
8f6eee7
devices.
0745245
0745245
0745245
%package client
2fee6f8
Summary:                Bacula backup client
2fee6f8
Group:                  System Environment/Daemons
2fee6f8
Requires:               bacula-common%{?_isa} = %{version}-%{release}
50deab8
50deab8
%if 0%{?fedora} == 16 || 0%{?fedora} == 17
2fee6f8
Requires(post):         systemd-units
2fee6f8
Requires(preun):        systemd-units
2fee6f8
Requires(postun):       systemd-units
50deab8
%endif
50deab8
50deab8
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
50deab8
Requires(post):         systemd-sysv
50deab8
Requires(post):         systemd
50deab8
Requires(preun):        systemd
50deab8
Requires(postun):       systemd
50deab8
%endif
50deab8
50deab8
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
2fee6f8
Requires(post):         /sbin/chkconfig
2fee6f8
Requires(preun):        /sbin/chkconfig
2fee6f8
Requires(preun):        /sbin/service
2fee6f8
Requires(postun):       /sbin/service
16d9a36
%endif
0745245
0745245
%description client
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
0745245
8f6eee7
This package contains the bacula client, the daemon running on the system to be
8f6eee7
backed up.
0745245
0745245
0745245
%package console
2fee6f8
Summary:                Bacula management console
2fee6f8
Group:                  System Environment/Daemons
2fee6f8
Obsoletes:              bacula-console-gnome <= 2.4
2fee6f8
Obsoletes:              bacula-console-wxwidgets <= 5.0.3
b882a1b
0745245
0745245
%description console
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
0745245
8f6eee7
This package contains the command-line management console for the bacula backup
8f6eee7
system.
0745245
0745245
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
7dc8299
%package console-bat
2fee6f8
Summary:                Bacula bat console
2fee6f8
Group:                  System Environment/Daemons
7dc8299
7dc8299
%description console-bat
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
7dc8299
8390fc1
This package contains the bat version of the bacula management console.
367ff02
367ff02
367ff02
%package traymonitor
2fee6f8
Summary:                Bacula system tray monitor
2fee6f8
Group:                  System Environment/Daemons
367ff02
367ff02
%description traymonitor
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
367ff02
8f6eee7
This package contains the Gnome and KDE compatible tray monitor to monitor your
8f6eee7
bacula server.
16d9a36
%endif
0745245
3b6cb34
3b6cb34
%package devel
2fee6f8
Summary:                Bacula development files
2fee6f8
Group:                  Development/Libraries
3b6cb34
3b6cb34
%description devel
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
3b6cb34
3b6cb34
This development package contains static libraries and header files.
3b6cb34
3b6cb34
16d9a36
%package -n nagios-plugins-bacula
2fee6f8
Summary:                Nagios Plugin - check_bacula
2fee6f8
Group:                  Applications/System
0745245
16d9a36
%description -n nagios-plugins-bacula
16d9a36
Provides check_bacula support for Nagios.
52eec75
52eec75
16d9a36
%prep
d4f2ea5
%setup -q
4c56045
%patch1 -p2 -b .openssl
4c56045
%patch2 -p1 -b .queryfile
b410469
%patch3 -p0 -b .priv
b410469
%patch4 -p1 -b .bat-build
0745245
0745245
# Remove execution permissions from files we're packaging as docs later on
0745245
find updatedb -type f | xargs chmod -x
0745245
4dac1ea
0745245
%build
900706a
build() {
7ce52f3
export CFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
16d9a36
export CPPFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
0745245
%configure \
2fee6f8
        --sysconfdir=%{_sysconfdir}/bacula \
2fee6f8
        --with-hostname=localhost \
2fee6f8
        --with-basename=bacula \
2fee6f8
        --with-dir-password=@@DIR_PASSWORD@@ \
2fee6f8
        --with-fd-password=@@FD_PASSWORD@@ \
2fee6f8
        --with-sd-password=@@SD_PASSWORD@@ \
2fee6f8
        --with-mon-dir-password=@@MON_DIR_PASSWORD@@ \
2fee6f8
        --with-mon-fd-password=@@MON_FD_PASSWORD@@ \
2fee6f8
        --with-mon-sd-password=@@MON_SD_PASSWORD@@ \
2fee6f8
        --with-working-dir=%{_localstatedir}/spool/bacula \
2fee6f8
        --with-bsrdir=%{_localstatedir}/spool/bacula \
2fee6f8
        --with-logdir=%{_localstatedir}/log/bacula \
2fee6f8
        --with-scriptdir=%{_libexecdir}/bacula \
2fee6f8
        --with-plugindir=%{_libdir}/bacula \
2fee6f8
        --with-smtp-host=localhost \
2fee6f8
        --with-subsys-dir=%{_localstatedir}/lock/subsys \
2fee6f8
        --with-pid-dir=%{_localstatedir}/run \
2fee6f8
        --disable-conio \
2fee6f8
        --enable-batch-insert \
2fee6f8
        --enable-readline \
2fee6f8
        --enable-largefile \
2fee6f8
        --enable-build-dird \
2fee6f8
        --enable-build-stored \
2fee6f8
        --with-openssl \
2fee6f8
        --with-tcp-wrappers \
2fee6f8
        --with-python \
2fee6f8
        --enable-smartalloc \
2fee6f8
        --with-x \
2fee6f8
        --disable-rpath \
2fee6f8
        --with-sqlite3 \
2fee6f8
        --with-mysql \
2fee6f8
        --with-postgresql \
2fee6f8
        $*
900706a
}
900706a
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
900706a
export QMAKE=/usr/bin/qmake-qt4
b410469
build --enable-bat --docdir=%{_datadir}/doc/bacula-console-bat-%{version}
900706a
%else
5fd2356
build --disable-bat
900706a
%endif
0745245
16d9a36
# Remove RPATH
16d9a36
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
16d9a36
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
eb59c7c
33a6de8
make %{?_smp_mflags}
0745245
16d9a36
pushd examples/nagios/check_bacula
2fee6f8
        CFLAGS="%{optflags}" make LIBS="-lpthread -ldl -lssl -lcrypto -lz"
0745245
popd
4dac1ea
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
16d9a36
pushd src/qt-console/tray-monitor
2fee6f8
        /usr/bin/qmake-qt4
2fee6f8
        make %{?_smp_mflags}
0745245
popd
16d9a36
%endif
0745245
f5d09cc
cp %{SOURCE5} .
51ec14d
0745245
%install
0745245
rm -rf %{buildroot}
16d9a36
make install DESTDIR=%{buildroot}
0745245
3b6cb34
# Nagios plugin
33a6de8
install -p -m 755 -D examples/nagios/check_bacula/.libs/check_bacula %{buildroot}%{_libdir}/nagios/plugins/check_bacula
fae5422
e95438f
# Remove catalogue backend symlinks
e95438f
rm -f %{buildroot}%{_libdir}/libbaccats.so
fae5422
rm -f %{buildroot}%{_libdir}/libbaccats-%{version}.so
0745245
3b6cb34
# Sample query file
07887b2
mv %{buildroot}%{_libexecdir}/bacula/query.sql %{buildroot}%{_sysconfdir}/bacula/query.sql
9e56892
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
367ff02
# Bat
33a6de8
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat.png
16d9a36
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE13}
367ff02
367ff02
# QT Tray monitor
33a6de8
install -p -m 755 -D src/qt-console/tray-monitor/.libs/bacula-tray-monitor %{buildroot}%{_sbindir}/bacula-tray-monitor
33a6de8
install -p -m 644 -D src/qt-console/tray-monitor/tray-monitor.conf %{buildroot}%{_sysconfdir}/bacula/tray-monitor.conf
33a6de8
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.png
367ff02
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE14}
367ff02
16d9a36
%else
16d9a36
rm -f %{buildroot}%{_mandir}/man1/bat.1*
16d9a36
%endif
0745245
3b6cb34
# Logrotate
33a6de8
mkdir -p %{buildroot}%{_localstatedir}/log/bacula
33a6de8
install -p -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/bacula
0745245
3b6cb34
# Logwatch
33a6de8
install -p -m 755 -D scripts/logwatch/bacula %{buildroot}%{_sysconfdir}/logwatch/scripts/services/bacula
33a6de8
install -p -m 755 -D scripts/logwatch/applybaculadate %{buildroot}%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
33a6de8
install -p -m 644 -D scripts/logwatch/logfile.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
33a6de8
install -p -m 644 -D scripts/logwatch/services.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/services/bacula.conf
0745245
6c1a0c5
install -p -m 755 -D %{SOURCE19}  %{buildroot}%{_sbindir}/bacula-checkconf
115b75c
%if 0%{?fedora} || 0%{?rhel} >= 7
99bb2e4
# Systemd unit files
33a6de8
mkdir -p %{buildroot}%{_unitdir}
33a6de8
install -p -m 755 -D %{SOURCE10} %{buildroot}%{_unitdir}/bacula-fd.service
33a6de8
install -p -m 755 -D %{SOURCE11} %{buildroot}%{_unitdir}/bacula-dir.service
33a6de8
install -p -m 755 -D %{SOURCE12} %{buildroot}%{_unitdir}/bacula-sd.service
16d9a36
%else
16d9a36
# Initscripts
33a6de8
install -p -m 755 -D %{SOURCE7} %{buildroot}%{_initrddir}/bacula-fd
33a6de8
install -p -m 755 -D %{SOURCE8} %{buildroot}%{_initrddir}/bacula-dir
33a6de8
install -p -m 755 -D %{SOURCE9} %{buildroot}%{_initrddir}/bacula-sd
16d9a36
%endif
Jan Görig e51227f
16d9a36
# Sysconfig
33a6de8
install -p -m 644 -D %{SOURCE15} %{buildroot}%{_sysconfdir}/sysconfig/bacula-fd
33a6de8
install -p -m 644 -D %{SOURCE16} %{buildroot}%{_sysconfdir}/sysconfig/bacula-dir
6c1a0c5
%if 0%{?fedora} || 0%{?rhel} >= 6
33a6de8
install -p -m 644 -D %{SOURCE17} %{buildroot}%{_sysconfdir}/sysconfig/bacula-sd
6c1a0c5
%else
6c1a0c5
install -p -m 644 -D %{SOURCE18} %{buildroot}%{_sysconfdir}/sysconfig/bacula-sd
6c1a0c5
%endif
Jan Görig e51227f
3b6cb34
# Spool directory
33a6de8
mkdir -p %{buildroot}%{_localstatedir}/spool/bacula
0745245
3b6cb34
# Remove stuff we do not need
07d3fd8
rm -f %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,startmysql,stopmysql,bconsole,make_catalog_backup}
d49b54f
rm -f %{buildroot}%{_sbindir}/bacula
d49b54f
rm -f %{buildroot}%{_mandir}/man8/bacula.8.gz
3b6cb34
rm -f %{buildroot}%{_mandir}/man1/bacula-bwxconsole.1*
3b6cb34
rm -f %{buildroot}%{_mandir}/man1/bacula-tray-monitor.1*
3b6cb34
rm -rf %{buildroot}%{_datadir}/doc/bacula/
0745245
0745245
# Fix up some perms so rpmlint does not complain too much
0745245
chmod 755 %{buildroot}%{_sbindir}/*
16d9a36
chmod 755 %{buildroot}%{_libdir}/bacula/*
0745245
chmod 755 %{buildroot}%{_libexecdir}/bacula/*
0745245
chmod 644 %{buildroot}%{_libexecdir}/bacula/btraceback.*
0745245
3b6cb34
# Install headers
33a6de8
mkdir -p %{buildroot}%{_includedir}/bacula
f5b1393
for dir in src src/cats src/console src/dird src/filed src/findlib src/lib src/plugins/fd src/stored; do
2fee6f8
        mkdir -p %{buildroot}%{_includedir}/bacula/$dir
2fee6f8
        install -p -m 644 $dir/*.h %{buildroot}%{_includedir}/bacula/$dir
3b6cb34
done
16d9a36
5c03735
0745245
%clean
0745245
rm -rf %{buildroot}
0745245
0745245
bf9089a
%post libs
964c499
/sbin/ldconfig
964c499
964c499
964c499
%postun libs
964c499
/sbin/ldconfig
964c499
exit 0
964c499
964c499
964c499
%post libs-sql
ac1739c
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql.so 50
ac1739c
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-sqlite3.so 40
ac1739c
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-postgresql.so 60
ddc6de9
# Fix for automatic selection of backends during upgrades
ddc6de9
if readlink /etc/alternatives/libbaccats.so | grep --silent mysql || \
ddc6de9
   readlink /etc/alternatives/bacula-dir | grep --silent mysql || \
ddc6de9
   readlink /etc/alternatives/bacula-sd | grep --silent mysql; then
ddc6de9
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-mysql.so
ddc6de9
elif readlink /etc/alternatives/libbaccats.so | grep --silent sqlite || \
ddc6de9
   readlink /etc/alternatives/bacula-dir | grep --silent sqlite || \
ddc6de9
   readlink /etc/alternatives/bacula-sd | grep --silent sqlite; then
ddc6de9
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-sqlite3.so
ddc6de9
else
ddc6de9
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-postgresql.so
ddc6de9
fi
bf9089a
/sbin/ldconfig
16d9a36
3b6cb34
964c499
%preun libs-sql
e45f06f
if [ "$1" = 0 ]; then
ac1739c
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-mysql.so
ac1739c
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-sqlite3.so
ac1739c
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-postgresql.so
e45f06f
fi
3b2d941
3b2d941
964c499
%postun libs-sql
bf9089a
/sbin/ldconfig
e95438f
exit 0
4dac1ea
3b6cb34
0745245
%pre common
e004908
getent group %username >/dev/null || groupadd -g %uid -r %username &>/dev/null || :
e004908
getent passwd %username >/dev/null || useradd -u %uid -r -s /sbin/nologin \
e004908
    -d /var/spool/bacula -M -c 'Bacula Backup System' -g %username %username &>/dev/null || :
e004908
exit 0
4dac1ea
3b6cb34
e66bd92
%if 0%{?fedora} == 16 || 0%{?fedora} == 17
0745245
9911bee
%post client
16d9a36
if [ $1 -eq 1 ] ; then
16d9a36
    # Initial installation
9911bee
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
9911bee
fi
9911bee
4dac1ea
9911bee
%preun client
9911bee
if [ $1 -eq 0 ] ; then
9911bee
    # Package removal, not upgrade
9911bee
    /bin/systemctl --no-reload disable bacula-fd.service > /dev/null 2>&1 || :
9911bee
    /bin/systemctl stop bacula-fd.service > /dev/null 2>&1 || :
9911bee
fi
9911bee
4dac1ea
9911bee
%postun client
9911bee
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
9911bee
if [ $1 -ge 1 ] ; then
9911bee
    # Package upgrade, not uninstall
9911bee
    /bin/systemctl try-restart bacula-fd.service >/dev/null 2>&1 || :
9911bee
fi
9911bee
4dac1ea
99bb2e4
%triggerun client -- bacula-client < 5.0.3-10
99bb2e4
# Save the current service runlevel info
99bb2e4
# User must manually run systemd-sysv-convert --apply bacula-fd
99bb2e4
# to migrate them to systemd targets
99bb2e4
/usr/bin/systemd-sysv-convert --save bacula-fd >/dev/null 2>&1 ||:
0745245
99bb2e4
# Run these because the SysV package being removed won't do them
99bb2e4
/sbin/chkconfig --del bacula-fd >/dev/null 2>&1 || :
99bb2e4
/bin/systemctl try-restart bacula-fd.service >/dev/null 2>&1 || :
0745245
4dac1ea
bf9089a
%post director
16d9a36
if [ $1 -eq 1 ] ; then
16d9a36
    # Initial installation
9911bee
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
9911bee
fi
9911bee
4dac1ea
bf9089a
%preun director
9911bee
if [ $1 -eq 0 ] ; then
9911bee
    # Package removal, not upgrade
9911bee
    /bin/systemctl --no-reload disable bacula-dir.service > /dev/null 2>&1 || :
9911bee
    /bin/systemctl stop bacula-dir.service > /dev/null 2>&1 || :
9911bee
fi
9911bee
4dac1ea
bf9089a
%postun director
9911bee
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
9911bee
if [ $1 -ge 1 ] ; then
9911bee
    # Package upgrade, not uninstall
9911bee
    /bin/systemctl try-restart bacula-dir.service >/dev/null 2>&1 || :
9911bee
fi
9911bee
4dac1ea
bf9089a
%triggerun director -- bacula-director-common < 5.0.3-10
99bb2e4
# Save the current service runlevel info
99bb2e4
# User must manually run systemd-sysv-convert --apply bacula-dir
99bb2e4
# to migrate them to systemd targets
99bb2e4
/usr/bin/systemd-sysv-convert --save bacula-dir >/dev/null 2>&1 ||:
0745245
99bb2e4
# Run these because the SysV package being removed won't do them
99bb2e4
/sbin/chkconfig --del bacula-dir >/dev/null 2>&1 || :
99bb2e4
/bin/systemctl try-restart bacula-dir.service >/dev/null 2>&1 || :
0745245
0745245
900706a
%post storage
16d9a36
if [ $1 -eq 1 ] ; then
16d9a36
    # Initial installation
9911bee
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
9911bee
fi
9911bee
4dac1ea
900706a
%preun storage
9911bee
if [ $1 -eq 0 ] ; then
9911bee
    # Package removal, not upgrade
9911bee
    /bin/systemctl --no-reload disable bacula-sd.service > /dev/null 2>&1 || :
9911bee
    /bin/systemctl stop bacula-sd.service > /dev/null 2>&1 || :
9911bee
fi
9911bee
4dac1ea
900706a
%postun storage
9911bee
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
9911bee
if [ $1 -ge 1 ] ; then
9911bee
    # Package upgrade, not uninstall
9911bee
    /bin/systemctl try-restart bacula-sd.service >/dev/null 2>&1 || :
9911bee
fi
9911bee
4dac1ea
900706a
%triggerun storage -- bacula-storage-common < 5.0.3-10
99bb2e4
# Save the current service runlevel info
99bb2e4
# User must manually run systemd-sysv-convert --apply bacula-sd
99bb2e4
# to migrate them to systemd targets
99bb2e4
/usr/bin/systemd-sysv-convert --save bacula-sd >/dev/null 2>&1 ||:
0745245
99bb2e4
# Run these because the SysV package being removed won't do them
99bb2e4
/sbin/chkconfig --del bacula-sd >/dev/null 2>&1 || :
99bb2e4
/bin/systemctl try-restart bacula-sd.service >/dev/null 2>&1 || :
0745245
2529f6c
%endif
2529f6c
2529f6c
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
2529f6c
2529f6c
%post client
2529f6c
%systemd_post %{name}-fd.service
2529f6c
2529f6c
%preun client
2529f6c
%systemd_preun %{name}-fd.service
2529f6c
2529f6c
%postun client
2529f6c
%systemd_postun_with_restart %{name}-fd.service
2529f6c
2529f6c
%triggerun client -- bacula-client < 5.0.3-10
2529f6c
/usr/bin/systemd-sysv-convert --save bacula-fd >/dev/null 2>&1 ||:
2529f6c
/sbin/chkconfig --del bacula-fd >/dev/null 2>&1 || :
2529f6c
/bin/systemctl try-restart bacula-fd.service >/dev/null 2>&1 || :
2529f6c
2529f6c
%post director
2529f6c
%systemd_post %{name}-dir.service
2529f6c
2529f6c
%preun director
2529f6c
%systemd_preun %{name}-dir.service
2529f6c
2529f6c
%postun director
2529f6c
%systemd_postun_with_restart %{name}-dir.service
2529f6c
2529f6c
%triggerun director -- bacula-director-common < 5.0.3-10
2529f6c
/usr/bin/systemd-sysv-convert --save bacula-dir >/dev/null 2>&1 ||:
2529f6c
/sbin/chkconfig --del bacula-dir >/dev/null 2>&1 || :
2529f6c
/bin/systemctl try-restart bacula-dir.service >/dev/null 2>&1 || :
2529f6c
2529f6c
%post storage
2529f6c
%systemd_post %{name}-sd.service
2529f6c
2529f6c
%preun storage
2529f6c
%systemd_preun %{name}-sd.service
2529f6c
2529f6c
%postun storage
2529f6c
%systemd_postun_with_restart %{name}-sd.service
2529f6c
2529f6c
%triggerun storage -- bacula-storage-common < 5.0.3-10
2529f6c
/usr/bin/systemd-sysv-convert --save bacula-sd >/dev/null 2>&1 ||:
2529f6c
/sbin/chkconfig --del bacula-sd >/dev/null 2>&1 || :
2529f6c
/bin/systemctl try-restart bacula-sd.service >/dev/null 2>&1 || :
2529f6c
2529f6c
%endif
2529f6c
115b75c
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
16d9a36
16d9a36
%post client
16d9a36
/sbin/chkconfig --add bacula-fd
16d9a36
16d9a36
16d9a36
%preun client
16d9a36
if [ "$1" = 0 ]; then
2fee6f8
        /sbin/service bacula-fd stop >/dev/null 2>&1 || :
2fee6f8
        /sbin/chkconfig --del bacula-fd
16d9a36
fi
16d9a36
16d9a36
16d9a36
%postun client
16d9a36
if [ "$1" -ge "1" ]; then
2fee6f8
        /sbin/service bacula-fd condrestart >/dev/null 2>&1 || :
16d9a36
fi
16d9a36
16d9a36
bf9089a
%post director
16d9a36
/sbin/chkconfig --add bacula-dir
16d9a36
16d9a36
bf9089a
%preun director
16d9a36
if [ "$1" = 0 ]; then
2fee6f8
        /sbin/service bacula-dir stop >/dev/null 2>&1 || :
2fee6f8
        /sbin/chkconfig --del bacula-dir
16d9a36
fi
16d9a36
16d9a36
bf9089a
%postun director
16d9a36
if [ "$1" -ge "1" ]; then
2fee6f8
        /sbin/service bacula-dir condrestart >/dev/null 2>&1 || :
16d9a36
fi
16d9a36
16d9a36
900706a
%post storage
16d9a36
/sbin/chkconfig --add bacula-sd
16d9a36
16d9a36
900706a
%preun storage
16d9a36
if [ "$1" = 0 ]; then
2fee6f8
        /sbin/service bacula-sd stop >/dev/null 2>&1 || :
2fee6f8
        /sbin/chkconfig --del bacula-sd
16d9a36
fi
16d9a36
16d9a36
900706a
%postun storage
16d9a36
if [ "$1" -ge "1" ]; then
2fee6f8
        /sbin/service bacula-sd condrestart >/dev/null 2>&1 || :
16d9a36
fi
16d9a36
16d9a36
%endif
16d9a36
8390fc1
%files libs
8390fc1
%defattr(-,root,root,-)
8390fc1
%{_libdir}/libbac-%{version}.so
8390fc1
%{_libdir}/libbac.so
964c499
%{_libdir}/libbaccfg-%{version}.so
964c499
%{_libdir}/libbaccfg.so
964c499
%{_libdir}/libbacfind-%{version}.so
964c499
%{_libdir}/libbacfind.so
964c499
%{_libdir}/libbacpy-%{version}.so
964c499
%{_libdir}/libbacpy.so
964c499
964c499
%files libs-sql
964c499
%defattr(-,root,root,-)
bf9089a
%{_libdir}/libbaccats-mysql-%{version}.so
bf9089a
%{_libdir}/libbaccats-mysql.so
bf9089a
%{_libdir}/libbaccats-postgresql-%{version}.so
bf9089a
%{_libdir}/libbaccats-postgresql.so
bf9089a
%{_libdir}/libbaccats-sqlite3-%{version}.so
bf9089a
%{_libdir}/libbaccats-sqlite3.so
bf9089a
%{_libdir}/libbacsql.so
bf9089a
%{_libdir}/libbacsql-%{version}.so
0745245
0745245
%files common
b87413e
%defattr(-,root,root,-)
9716ec6
%doc AUTHORS ChangeLog LICENSE SUPPORT ReleaseNotes
f5d09cc
%doc README.Fedora
0745245
%config(noreplace) %{_sysconfdir}/logrotate.d/bacula
16d9a36
%dir %{_sysconfdir}/%{name}
16d9a36
%dir %{_libexecdir}/%{name}
0745245
%{_sbindir}/btraceback
16d9a36
%{_libexecdir}/%{name}/btraceback.dbx
16d9a36
%{_libexecdir}/%{name}/btraceback.gdb
16d9a36
%{_libexecdir}/%{name}/bacula_config
16d9a36
%{_libexecdir}/%{name}/btraceback.mdb
5663d98
%{_mandir}/man8/btraceback.8.*
0745245
%dir %attr(750, bacula, bacula) %{_localstatedir}/log/bacula
0745245
%dir %attr(750, bacula, bacula) %{_localstatedir}/spool/bacula
99bb2e4
%{_sbindir}/bacula-checkconf
0745245
bf9089a
%files director
0745245
%defattr(-,root,root,-)
145c1df
%doc updatedb examples/sample-query.sql
0462b22
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/bacula-dir.conf
9e56892
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/query.sql
16d9a36
%config(noreplace) %{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
16d9a36
%config(noreplace) %{_sysconfdir}/logwatch/conf/services/bacula.conf
16d9a36
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir
0745245
%{_sysconfdir}/logwatch/scripts/services/bacula
04a9b46
%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
115b75c
%if 0%{?fedora} || 0%{?rhel} >= 7
99bb2e4
%{_unitdir}/bacula-dir.service
16d9a36
%else
16d9a36
%{_initrddir}/bacula-dir
16d9a36
%endif
16d9a36
%{_sbindir}/bacula-dir
0745245
%{_sbindir}/bregex
d49b54f
%{_sbindir}/bsmtp
0745245
%{_sbindir}/bwild
16d9a36
%{_sbindir}/dbcheck
5663d98
%{_mandir}/man1/bsmtp.1.*
5663d98
%{_mandir}/man8/bacula-dir.8.*
5663d98
%{_mandir}/man8/bregex.8.*
5663d98
%{_mandir}/man8/bwild.8.*
5663d98
%{_mandir}/man8/dbcheck.8.*
16d9a36
%{_libexecdir}/%{name}/create_bacula_database
16d9a36
%{_libexecdir}/%{name}/delete_catalog_backup
16d9a36
%{_libexecdir}/%{name}/drop_bacula_database
16d9a36
%{_libexecdir}/%{name}/drop_bacula_tables
16d9a36
%{_libexecdir}/%{name}/grant_bacula_privileges
16d9a36
%{_libexecdir}/%{name}/make_bacula_tables
16d9a36
%{_libexecdir}/%{name}/make_catalog_backup.pl
16d9a36
%{_libexecdir}/%{name}/update_bacula_tables
16d9a36
%{_libexecdir}/%{name}/create_mysql_database
16d9a36
%{_libexecdir}/%{name}/drop_mysql_database
16d9a36
%{_libexecdir}/%{name}/drop_mysql_tables
16d9a36
%{_libexecdir}/%{name}/grant_mysql_privileges
16d9a36
%{_libexecdir}/%{name}/make_mysql_tables
16d9a36
%{_libexecdir}/%{name}/update_mysql_tables
16d9a36
%{_libexecdir}/%{name}/create_sqlite3_database
16d9a36
%{_libexecdir}/%{name}/drop_sqlite3_database
16d9a36
%{_libexecdir}/%{name}/drop_sqlite3_tables
16d9a36
%{_libexecdir}/%{name}/grant_sqlite3_privileges
16d9a36
%{_libexecdir}/%{name}/make_sqlite3_tables
16d9a36
%{_libexecdir}/%{name}/update_sqlite3_tables
16d9a36
%{_libexecdir}/%{name}/create_postgresql_database
16d9a36
%{_libexecdir}/%{name}/drop_postgresql_database
16d9a36
%{_libexecdir}/%{name}/drop_postgresql_tables
16d9a36
%{_libexecdir}/%{name}/grant_postgresql_privileges
16d9a36
%{_libexecdir}/%{name}/make_postgresql_tables
16d9a36
%{_libexecdir}/%{name}/update_postgresql_tables
0745245
900706a
%files storage
0745245
%defattr(-,root,root,-)
0745245
%{_sbindir}/bacula-sd
16d9a36
%{_sbindir}/bcopy
0745245
%{_sbindir}/bextract
0745245
%{_sbindir}/bls
bf9089a
%{_sbindir}/bscan
0745245
%{_sbindir}/btape
0462b22
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/bacula-sd.conf
16d9a36
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-sd
115b75c
%if 0%{?fedora} || 0%{?rhel} >= 7
99bb2e4
%{_unitdir}/bacula-sd.service
16d9a36
%else
16d9a36
%{_initrddir}/bacula-sd
16d9a36
%endif
5fd2356
%{_libexecdir}/%{name}/disk-changer
5fd2356
%{_libexecdir}/%{name}/dvd-handler
5fd2356
%{_libexecdir}/%{name}/mtx-changer
5fd2356
%{_libexecdir}/%{name}/mtx-changer.conf
5663d98
%{_mandir}/man8/bacula-sd.8.*
5663d98
%{_mandir}/man8/bcopy.8.*
5663d98
%{_mandir}/man8/bextract.8.*
5663d98
%{_mandir}/man8/bls.8.*
5663d98
%{_mandir}/man8/bscan.8.*
5663d98
%{_mandir}/man8/btape.8.*
0745245
7dc2ef0
%files client
7dc2ef0
%defattr(-,root,root,-)
7dc2ef0
%{_sbindir}/bacula-fd
115b75c
%if 0%{?fedora} || 0%{?rhel} >= 7
7dc2ef0
%{_unitdir}/bacula-fd.service
7dc2ef0
%else
7dc2ef0
%{_initrddir}/bacula-fd
7dc2ef0
%endif
0462b22
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/bacula-fd.conf
7dc2ef0
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-fd
5663d98
%{_mandir}/man8/bacula-fd.8.*
7dc2ef0
%{_libdir}/bacula/bpipe-fd.so
7dc2ef0
7dc2ef0
%files console
7dc2ef0
%defattr(-,root,root,-)
7dc2ef0
%{_sbindir}/bconsole
88081c4
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/bacula/bconsole.conf
5663d98
%{_mandir}/man8/bconsole.8.*
7dc2ef0
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
7dc2ef0
%files console-bat
7dc2ef0
%defattr(-,root,root,-)
51ec14d
%doc %{_datadir}/doc/bacula-console-bat-%{version}/*
88081c4
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/bacula/bat.conf
7dc2ef0
%{_sbindir}/bat
5663d98
%{_mandir}/man1/bat.1.*
7dc2ef0
%{_datadir}/applications/fedora-bacula-bat.desktop
367ff02
%{_datadir}/pixmaps/bat.png
367ff02
367ff02
%files traymonitor
367ff02
%defattr(-,root,root,-)
367ff02
%{_sbindir}/bacula-tray-monitor
367ff02
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/bacula/tray-monitor.conf
367ff02
%{_datadir}/applications/fedora-bacula-traymonitor.desktop
367ff02
%{_datadir}/pixmaps/bacula-tray-monitor.png
7dc2ef0
%endif
7dc2ef0
3b6cb34
%files devel
3b6cb34
%defattr(-,root,root,-)
3b6cb34
%{_includedir}/bacula
3b6cb34
%{_libdir}/libbac.la
3b6cb34
%{_libdir}/libbaccats.la
3b6cb34
%{_libdir}/libbaccats-mysql.la
3b6cb34
%{_libdir}/libbaccats-postgresql.la
3b6cb34
%{_libdir}/libbaccats-sqlite3.la
3b6cb34
%{_libdir}/libbacsql.la
3b6cb34
%{_libdir}/libbaccfg.la
3b6cb34
%{_libdir}/libbacfind.la
3b6cb34
%{_libdir}/libbacpy.la
3b6cb34
16d9a36
%files -n nagios-plugins-bacula
16d9a36
%defattr(-,root,root)
16d9a36
%{_libdir}/nagios/plugins/check_bacula
0745245
0745245
0745245
%changelog
145c1df
* Wed Oct 17 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-3
145c1df
- Add sample-query.sql file to Director's docs.
145c1df
e66bd92
* Wed Oct 17 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-2
e66bd92
- Fix fedpkg checks. Requires fedpkg > 1.10:
e66bd92
  http://git.fedorahosted.org/cgit/fedpkg.git/commit/?id=11c46c06a3c9cc2f58d68aea964dd37dc028e349
e66bd92
- Change systemd requirements as per new package guidelines.
e66bd92
2e721e2
* Fri Sep 14 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-1
2e721e2
- Update to 5.2.12, containing only patches from 5.2.11-4.
2e721e2
7874639
* Fri Sep 14 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-4
7874639
- Add a sleep timer for RHEL init scripts restart as Debian does.
7874639
  Problems verified on the sd exiting too early on VMs and slow boxes.
7874639
40e02d4
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-3
40e02d4
- Introduce last minute critical patches.
40e02d4
c8ac0a0
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-2
c8ac0a0
- Do not remove user on common subpackage uninstall.
c8ac0a0
b410469
* Tue Sep 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-1
b410469
- Update to 5.2.11.
b410469
- Removed upstreamed patches.
9716ec6
- Updated bat patch.
9716ec6
- Removed useless docs.
b410469
2529f6c
* Tue Sep 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-7
2529f6c
- Add Fedora 18 systemd macros.
2529f6c
- Remove old distribution checks.
2529f6c
07887b2
* Wed Aug 29 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-6
07887b2
- Remove user definition during prep so they are not used during the install
07887b2
  phase (rhbz#852732).
07887b2
- Enforce permissions in default config files.
07887b2
07d3fd8
* Fri Jul 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-5
ac6894c
- Removed make_catalog_backup bash script, leave only the default perl one (rhbz#456612,665498).
07d3fd8
b09c1c9
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.10-4
b09c1c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b09c1c9
6ddbf50
* Mon Jul 16 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-3
6ddbf50
- Updated log path patch (rhbz#837706).
6ddbf50
217785f
* Tue Jul 10 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-2
3939b2b
- Add nss-lookup.target as required to service files (rhbz#838828).
3939b2b
- Fix bsmtp upstream bug sending mails to ipv4/ipv6 hosts.
217785f
1bd589a
* Mon Jul 02 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-1
1bd589a
- Update to 5.2.10.
1bd589a
fce586b
* Fri Jun 19 2012 Simone Caronni <negativo17@gmail.com> - 5.2.9-2
fce586b
- Remove _isa on BuildRequires.
bf11b44
- Remove useless code in SysV init scripts.
fce586b
154d0ad
* Tue Jun 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.9-1
154d0ad
- Update to 5.2.9, remove termlib patch.
154d0ad
cd32a5c
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-2
cd32a5c
- Fix console build on RHEL 5.
cd32a5c
9b2d74d
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-1
9b2d74d
- Update to 5.2.8.
9b2d74d
- Removed upstram xattr patch.
ddc6de9
- Added database backend detection to bacula-libs-sql for upgrades from
ddc6de9
  <= 5.0.3-28-fc16 and 5.2.6-1.fc17.
9b2d74d
6c1a0c5
* Fri Jun 08 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-4
6c1a0c5
- Make a note about mt-st and mtx (bz#829888).
6c1a0c5
- Update README.Fedora with current information.
6c1a0c5
- Fix bacula-sd group on Fedora and RHEL >= 6 (bz#829509).
6c1a0c5
0d818a8
* Wed Jun 06 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-3
0d818a8
- Final xattr patch from upstream for bz#819158.
ac1739c
- Switch alternatives to point to the unversioned system libraries.
ac1739c
  Pointed out by the closely related bug #829219.
0d818a8
80bfa76
* Mon Jun 04 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-2
80bfa76
- Remove python-devel test leftover.
80bfa76
- Updated bat build patch to add support for RHEL 6.
80bfa76
2fee6f8
* Mon Jun 04 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-1
2fee6f8
- Updated to 5.2.7, removed patches included upstream.
2fee6f8
- Removed python-devel patch, fix included in python package.
2fee6f8
- Replaced tabs with blanks in spec file (rpmlint).
2fee6f8
5663d98
* Mon May 28 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-6
5663d98
- Even if pulled in by dependencies, re-add explict BR on systemd-units.
5663d98
- Remove .gz suffix for man pages in file lists as per packaging guidelines.
5663d98
114d5db
* Mon May 28 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-5
114d5db
- Patch for bug #819158.
114d5db
- Updated hostname patch with official fix.
114d5db
- Sorted all BuildRequires and removed useless systemd-units.
114d5db
114d5db
* Wed May 23 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-4
275d7ea
- Added python config workaround for Fedora 16.
275d7ea
33a6de8
* Mon May 21 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-3
33a6de8
- Removed _install, _mkdir and _make macro.
eeddef5
- Added _isa to BuildRequires.
eeddef5
- Removed lzo-devel option for RHEL 4 (EOL).
33a6de8
964c499
* Fri Mar 16 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-2
964c499
- Move libbaccats and libbacsql into bacula-libs-sql package so only
964c499
  Director and Storage daemons pull in SQL dependencies:
964c499
  http://old.nabble.com/Standalone-client-question-td33495990.html
964c499
470ee2d
* Wed Feb 22 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-1
470ee2d
- Update to 5.2.6.
470ee2d
b882a1b
* Fri Feb 10 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-3
b882a1b
- WX and gnome console should be upgraded from bconsole, not
b882a1b
  libraries.
b882a1b
3b2d941
* Mon Jan 30 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-2
19abfa2
- License has changed to AGPLv3 in 5.0.3. Thanks Erinn.
3b2d941
- Fix ldconfig/alternatives symlinks on removal of packages and
3b2d941
  upgrades from recent f15/f16 changes.
19abfa2
f5b1393
* Thu Jan 26 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-1
f5b1393
- Update to 5.2.5.
f5b1393
- Change the alternative library to the base shared object name
f5b1393
  so the preference set is not lost when changing releases.
f5b1393
420ad7d
* Mon Jan 23 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-4
420ad7d
- Remove old BuildRequires for bacula-docs.
420ad7d
65d849b
* Fri Jan 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-3
65d849b
- Fix for rhbz#728693.
65d849b
e48b5c7
* Fri Jan 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-2
e48b5c7
- Close bugs rhbz#708712, rhbz#556669, rhbz#726147
e48b5c7
e95438f
* Wed Jan 18 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-1
e95438f
- Update to 5.2.4, rework libbaccats installation as they have
e95438f
  fixed the soname library problem.
e95438f
57f5003
* Sun Jan 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-8
57f5003
- Fix tray monitor desktop file.
57f5003
d4f2ea5
* Wed Jan 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-7
d4f2ea5
- Split off bacula-docs subpackage.
d4f2ea5
3edd26e
* Thu Jan 05 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-6
3edd26e
- Make docs conditional at build for testing.
3b6cb34
- Add devel subpackage.
3edd26e
bf9089a
* Tue Jan 03 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-5
bf9089a
- Trim changelog.
bf9089a
- Merge bacula-director backends and move libbacats alternatives
bf9089a
  to bacula-libs.
bf9089a
- Move bscan to bacula-storage now that is dependent only on
bf9089a
  bacula-libs.
f5d09cc
- Added README.Fedora.
bf9089a
1a9c4f1
* Tue Dec 20 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-4
1a9c4f1
- Changing uid from 33 per previous discussion, static uid
1a9c4f1
  already allocated is 133:
1a9c4f1
  "cat /usr/share/doc/setup-2.8.36/uidgid | grep bacula"
1a9c4f1
e004908
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-3
e004908
- Remove fedora-usermgmt entirely, see thread at:
e004908
  http://lists.fedoraproject.org/pipermail/packaging/2011-December/008034.html
e004908
4dac1ea
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-2
4dac1ea
- Remove leftover users when removing bacula-common.
4dac1ea
- Allow building "--without fedora" to avoid RHEL dependency on EPEL:
4dac1ea
  http://fedoraproject.org/wiki/PackageUserCreation
4dac1ea
d55721f
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-1
d55721f
- Updated to 5.2.3.
baa4b32
- Remove fedora-usermgmt from libs Requires section.
d55721f
51ec14d
* Sun Dec 11 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-11
51ec14d
- Add bat html docs so the help button works.
51ec14d
- Minor packaging changes.
88081c4
- Default permissions on bconsole and bat.
f45ba58
- Use localhost as default on config files instead of patching fake
f45ba58
  example.com hostnames.
367ff02
- Add QT tray monitor.
51ec14d
0e75ff5
* Sat Dec 10 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-10
0e75ff5
- Added patch for mysql 5.5.18 from Oliver Falk.
0e75ff5
9e56892
* Wed Dec 07 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-9
9e56892
- Add sample-query.sql as config file.
b43f212
- Small log changes.
9e56892
c3b2c9b
* Wed Dec 07 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-8
c3b2c9b
- Fixed building on RHEL/CentOS 4.
8390fc1
- Split out libs package to remove dependency on bacula-common for
8390fc1
  bconsole, bat and check_bacula.
e6d3589
- Fix typo in post scriptlet for director-sqlite.
c3b2c9b
a9c6a94
* Tue Dec 06 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-7
a9c6a94
- Added libcap for POSIX.1e capabilities in bacula-fd (5.0.0 feature).
a9c6a94
- Allow systemd files to read options set in the sysconfig
a9c6a94
  configuration files like SysV scripts to enable capabilities.
a9c6a94
- Set capabilities as optional for now.
a9c6a94
d49b54f
* Mon Dec 05 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-6
d49b54f
- Removed leftover files and small rpmlint fixes.
d49b54f
- Additional file moves between packages.
f5dea45
- Enabled LZO compression (5.2.1 feature).
d49b54f
6872dfc
* Mon Dec 05 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-5
6872dfc
- Remove redundant user/group in service files.
d6447bb
- Reduce patching for what can be passed through configure.
905079f
- Remove dsolink patch, not needed anymore.
6872dfc
900706a
* Thu Dec 02 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-4
900706a
- Rename storage-common to storage and make it provide storage-common.
5fd2356
- Move bscan to director-common.
5fd2356
- Move storage scripts to storage.
1adcaf0
- Add html docs.
fae5422
- Install dummy catalogue library and mark it as ghost.
900706a
900706a
* Thu Dec 01 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-3
900706a
- Add missing conditional for bat in the build section.
900706a
- Make bat require qt4-devel on build (rhel 5 fix).
900706a
- Bumped requirement for qt >= 4.6.2 for 5.2.2.
900706a
- Renamed bacula-config.patch to bacula-5.2.2-config.patch as it
900706a
  always changes.
900706a
- Fix installation of bat and check_bacula binaries. Enabling
900706a
  libtool for bpipe-fd.so produces binaries under .libs.
900706a
- Removed fedora-usermgmt requirement for director-common.
900706a
- Removed examples from docs and make them "noarch".
900706a
- Fix bacula-console requirements.
900706a
- Fix nagios plugin summary.
900706a
- Removed checkconf functions from SysV init files and replace
900706a
  the call with the script used in systemd service files. Make
900706a
  the script available in all builds.
900706a
- Make docs NoArch where supported.
900706a
0e92b95
* Thu Dec  1 2011 Tom Callaway <spot@fedoraproject.org> - 5.2.2-2
0e92b95
- resolve broken dependency issues
0e92b95
16d9a36
* Tue Nov 29 2011 Tom Callaway <spot@fedoraproject.org> - 5.2.2-1
16d9a36
- Update to 5.2.2
16d9a36
- minor spec cleanups, conditionalized support for systemd
16d9a36
16d9a36
* Fri Nov 04 2011 Simone Caronni <negativo17@gmail.com> - 5.2.1-1
16d9a36
- Updated to 5.2.1.
16d9a36
- Reworked and removed some patches for 5.2.1 codebase.
16d9a36
- Reworked bat installation.
16d9a36
- Removed sqlite2 support.
16d9a36
- Removed all the fancy database backend rebuilding.
16d9a36
- Disabled libtool for bpipe-fd.so.
16d9a36
- Passed plugins dir as libdir/bacula.
16d9a36
- Added sql libs to alternatives.
16d9a36
- Disabled traymonitor.
16d9a36
- Minor fixes to spec file, rpmlint fixes.
16d9a36
- Nagios patch for Enterprise FDs.
16d9a36
- Removed all gui/web stuff.
16d9a36
- Removed a lot of comments.
16d9a36
- Conditional on Fedora 11 / RHEL 6 for bat build.
16d9a36
- Obsolete bacula-sysconfdir.
16d9a36
- Removed bwxconsole.
16d9a36
8e931ae
* Thu Nov 3 2011 Lukáš Nykrýn <lnykryn@redhat.com> - 5.0.3-13
49a19f0
- fixed creating of bacula MySQL tables and bump
49a19f0
baeeb20
* Fri Oct  9 2011 Lukáš Nykrýn <lnykryn@redhat.com> - 5.0.3-12
baeeb20
- fixed restart option in service files (#745529)
52eec75
- fixed creating of bacula MySQL tables (#724894)
baeeb20
9911bee
* Fri Sep  9 2011 Tom Callaway <spot@fedoraproject.org> - 5.0.3-11
9911bee
- add missing scriptlets
9911bee
99bb2e4
* Thu Sep  8 2011 Tom Callaway <spot@fedoraproject.org> - 5.0.3-10 
99bb2e4
- convert to systemd
99bb2e4
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