46d793
%global uid 133
46d793
%global username bacula
46d793
%global _hardened_build 1
46d793
46d793
%global aarchrev .1
46d793
46d793
Name:               bacula
46d793
Version:            5.2.13
46d793
Release:            23%{aarchrev}%{?dist}
46d793
Summary:            Cross platform network backup for Linux, Unix, Mac and Windows
46d793
# See LICENSE for details
46d793
License:            AGPLv3 with exceptions
46d793
Group:              System Environment/Daemons
46d793
URL:                http://www.bacula.org
46d793
BuildRoot:          %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
46d793
46d793
Source0:            http://www.bacula.org/downloads/Bacula-%{version}/%{name}-%{version}.tar.gz
46d793
46d793
Source2:            quickstart_postgresql.txt
46d793
Source3:            quickstart_mysql.txt
46d793
Source4:            quickstart_sqlite3.txt
46d793
Source5:            README.Redhat
46d793
Source6:            %{name}.logrotate
46d793
Source7:            %{name}-fd.init
46d793
Source8:            %{name}-dir.init
46d793
Source9:            %{name}-sd.init
46d793
Source10:           %{name}-fd.service
46d793
Source11:           %{name}-dir.service
46d793
Source12:           %{name}-sd.service
46d793
Source13:           %{name}-bat.desktop
46d793
Source14:           %{name}-traymonitor.desktop
46d793
Source15:           %{name}-fd.sysconfig
46d793
Source16:           %{name}-dir.sysconfig
46d793
Source17:           %{name}-sd.sysconfig
46d793
Source18:           %{name}-sd.sysconfig.el5
46d793
46d793
Patch1:             %{name}-5.0.2-openssl.patch
46d793
Patch2:             %{name}-5.2.2-queryfile.patch
46d793
Patch3:             %{name}-5.0.3-sqlite-priv.patch
46d793
Patch4:             %{name}-5.2.13-bat-build.patch
46d793
Patch5:             %{name}-5.2.12-seg-fault.patch
46d793
Patch6:             %{name}-5.2.13-logwatch.patch
46d793
Patch7:             %{name}-help-update.patch
46d793
Patch8:             %{name}-aarch64.patch
46d793
Patch9:             %{name}-non-free-code.patch
46d793
Patch10:            %{name}-multilib.patch
46d793
Patch11:            %{name}-name-length.patch
46d793
46d793
BuildRequires:      desktop-file-utils
46d793
BuildRequires:      perl
46d793
BuildRequires:      sed
46d793
46d793
BuildRequires:      glibc-devel
46d793
BuildRequires:      libacl-devel
46d793
BuildRequires:      libstdc++-devel
46d793
BuildRequires:      libxml2-devel
46d793
BuildRequires:      libcap-devel
46d793
BuildRequires:      lzo-devel
46d793
BuildRequires:      mysql-devel
46d793
BuildRequires:      ncurses-devel
46d793
BuildRequires:      openssl-devel
46d793
BuildRequires:      postgresql-devel
46d793
BuildRequires:      python-devel
46d793
BuildRequires:      readline-devel
46d793
BuildRequires:      sqlite-devel
46d793
BuildRequires:      zlib-devel
46d793
46d793
%if 0%{?fedora} || 0%{?rhel} >= 6
46d793
BuildRequires:      qt4-devel >= 4.6.2
46d793
%endif
46d793
46d793
%if 0%{?fedora} || 0%{?rhel} >= 6
46d793
BuildRequires:      tcp_wrappers-devel
46d793
%else
46d793
BuildRequires:      tcp_wrappers
46d793
%endif
46d793
46d793
%if 0%{?fedora} || 0%{?rhel} >= 7
46d793
BuildRequires:      systemd-units
46d793
%endif
46d793
46d793
%description
46d793
Bacula is a set of programs that allow you to manage the backup, recovery, and
46d793
verification of computer data across a network of different computers. It is
46d793
based on a client/server architecture and is efficient and relatively easy to
46d793
use, while offering many advanced storage management features that make it easy
46d793
to find and recover lost or damaged files.
46d793
46d793
%package libs
46d793
Summary:            Bacula libraries
46d793
Group:              System Environment/Daemons
46d793
Obsoletes:          bacula-sysconfdir <= 2.4
46d793
46d793
%description libs
46d793
Bacula is a set of programs that allow you to manage the backup,
46d793
recovery, and verification of computer data across a network of
46d793
different computers. It is based on a client/server architecture.
46d793
46d793
This package contains basic Bacula libraries, which are used by all
46d793
Bacula programs.
46d793
46d793
%package libs-sql
46d793
Summary:            Bacula SQL libraries
46d793
Group:              System Environment/Daemons
46d793
Obsoletes:          bacula-libs-mysql <= 5.0.3
46d793
Obsoletes:          bacula-libs-sqlite <= 5.0.3
46d793
Obsoletes:          bacula-libs-postgresql <= 5.0.3
46d793
Provides:           bacula-libs-mysql = %{version}-%{release}
46d793
Provides:           bacula-libs-sqlite = %{version}-%{release}
46d793
Provides:           bacula-libs-postgresql = %{version}-%{release}
46d793
46d793
%description libs-sql
46d793
Bacula is a set of programs that allow you to manage the backup, recovery, and
46d793
verification of computer data across a network of different computers. It is
46d793
based on a client/server architecture.
46d793
46d793
This package contains the SQL Bacula libraries, which are used by Director and
46d793
Storage daemons. You have to select your preferred catalog library through the
46d793
alternatives system.
46d793
46d793
%package common
46d793
Summary:            Common Bacula files
46d793
Group:              System Environment/Daemons
46d793
Obsoletes:          bacula-sysconfdir <= 2.4
46d793
Provides:           group(%username) = %uid
46d793
Provides:           user(%username) = %uid
46d793
Requires(pre):      shadow-utils
46d793
Requires(postun):   shadow-utils
46d793
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
46d793
46d793
%description common
46d793
Bacula is a set of programs that allow you to manage the backup, recovery, and
46d793
verification of computer data across a network of different computers. It is
46d793
based on a client/server architecture.
46d793
46d793
This package contains files common to all Bacula daemons.
46d793
46d793
%package director
46d793
Summary:            Bacula Director files
46d793
Group:              System Environment/Daemons
46d793
Requires:           bacula-common%{?_isa} = %{version}-%{release}
46d793
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
46d793
Requires:           logwatch
46d793
# Director backends merged into core.
46d793
Provides:           bacula-director-common = %{version}-%{release}
46d793
Obsoletes:          bacula-director-common < 5.2.3-5
46d793
Provides:           bacula-director-mysql = %{version}-%{release}
46d793
Obsoletes:          bacula-director-mysql < 5.2.3-5
46d793
Provides:           bacula-director-sqlite = %{version}-%{release}
46d793
Obsoletes:          bacula-director-sqlite < 5.2.3-5
46d793
Provides:           bacula-director-postgresql = %{version}-%{release}
46d793
Obsoletes:          bacula-director-postgresql < 5.2.3-5
46d793
46d793
%if 0%{?fedora} == 17
46d793
Requires(post):     systemd-units
46d793
Requires(preun):    systemd-units
46d793
Requires(postun):   systemd-units
46d793
%endif
46d793
46d793
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
46d793
Requires(post):     systemd-sysv
46d793
Requires(post):     systemd
46d793
Requires(preun):    systemd
46d793
Requires(postun):   systemd
46d793
%endif
46d793
46d793
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
46d793
Requires(post):     /sbin/chkconfig
46d793
Requires(preun):    /sbin/chkconfig
46d793
Requires(preun):    /sbin/service
46d793
Requires(postun):   /sbin/service
46d793
%endif
46d793
46d793
%description director
46d793
Bacula is a set of programs that allow you to manage the backup, recovery, and
46d793
verification of computer data across a network of different computers. It is
46d793
based on a client/server architecture.
46d793
46d793
This package contains the director files.
46d793
46d793
%package storage
46d793
Summary:            Bacula storage daemon files
46d793
Group:              System Environment/Daemons
46d793
Requires:           bacula-common%{?_isa} = %{version}-%{release}
46d793
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
46d793
Requires:           mt-st
46d793
# Storage backends merged into core.
46d793
Provides:           bacula-storage-common = %{version}-%{release}
46d793
Obsoletes:          bacula-storage-common < 5.2.2-2
46d793
Provides:           bacula-storage-mysql = %{version}-%{release}
46d793
Obsoletes:          bacula-storage-mysql < 5.2.0
46d793
Provides:           bacula-storage-sqlite = %{version}-%{release}
46d793
Obsoletes:          bacula-storage-sqlite < 5.2.0
46d793
Provides:           bacula-storage-postgresql = %{version}-%{release}
46d793
Obsoletes:          bacula-storage-postgresql < 5.2.0
46d793
46d793
%if 0%{?fedora} == 17
46d793
Requires(post):     systemd-units
46d793
Requires(preun):    systemd-units
46d793
Requires(postun):   systemd-units
46d793
%endif
46d793
46d793
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
46d793
Requires(post):     systemd-sysv
46d793
Requires(post):     systemd
46d793
Requires(preun):    systemd
46d793
Requires(postun):   systemd
46d793
%endif
46d793
46d793
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
46d793
Requires(post):     /sbin/chkconfig
46d793
Requires(preun):    /sbin/chkconfig
46d793
Requires(preun):    /sbin/service
46d793
Requires(postun):   /sbin/service
46d793
%endif
46d793
46d793
%description storage
46d793
Bacula is a set of programs that allow you to manage the backup, recovery, and
46d793
verification of computer data across a network of different computers. It is
46d793
based on a client/server architecture.
46d793
46d793
This package contains the storage daemon, the daemon responsible for writing
46d793
the data received from the clients onto tape drives or other mass storage
46d793
devices.
46d793
46d793
%package client
46d793
Summary:            Bacula backup client
46d793
Group:              System Environment/Daemons
46d793
Requires:           bacula-common%{?_isa} = %{version}-%{release}
46d793
46d793
%if 0%{?fedora} == 17
46d793
Requires(post):     systemd-units
46d793
Requires(preun):    systemd-units
46d793
Requires(postun):   systemd-units
46d793
%endif
46d793
46d793
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
46d793
Requires(post):     systemd-sysv
46d793
Requires(post):     systemd
46d793
Requires(preun):    systemd
46d793
Requires(postun):   systemd
46d793
%endif
46d793
46d793
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
46d793
Requires(post):     /sbin/chkconfig
46d793
Requires(preun):    /sbin/chkconfig
46d793
Requires(preun):    /sbin/service
46d793
Requires(postun):   /sbin/service
46d793
%endif
46d793
46d793
%description client
46d793
Bacula is a set of programs that allow you to manage the backup, recovery, and
46d793
verification of computer data across a network of different computers. It is
46d793
based on a client/server architecture.
46d793
46d793
This package contains the bacula client, the daemon running on the system to be
46d793
backed up.
46d793
46d793
%package console
46d793
Summary:            Bacula management console
46d793
Group:              System Environment/Daemons
46d793
Obsoletes:          bacula-console-gnome <= 2.4
46d793
Obsoletes:          bacula-console-wxwidgets <= 5.0.3
46d793
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
46d793
46d793
%description console
46d793
Bacula is a set of programs that allow you to manage the backup, recovery, and
46d793
verification of computer data across a network of different computers. It is
46d793
based on a client/server architecture.
46d793
46d793
This package contains the command-line management console for the bacula backup
46d793
system.
46d793
46d793
%if 0%{?fedora} || 0%{?rhel} >= 6
46d793
%package console-bat
46d793
Summary:            Bacula bat console
46d793
Group:              System Environment/Daemons
46d793
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
46d793
46d793
%description console-bat
46d793
Bacula is a set of programs that allow you to manage the backup, recovery, and
46d793
verification of computer data across a network of different computers. It is
46d793
based on a client/server architecture.
46d793
46d793
This package contains the bat version of the bacula management console.
46d793
46d793
%package traymonitor
46d793
Summary:            Bacula system tray monitor
46d793
Group:              System Environment/Daemons
46d793
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
46d793
46d793
%description traymonitor
46d793
Bacula is a set of programs that allow you to manage the backup, recovery, and
46d793
verification of computer data across a network of different computers. It is
46d793
based on a client/server architecture.
46d793
46d793
This package contains the Gnome and KDE compatible tray monitor to monitor your
46d793
bacula server.
46d793
%endif
46d793
46d793
%package devel
46d793
Summary:            Bacula development files
46d793
Group:              Development/Libraries
46d793
46d793
%description devel
46d793
Bacula is a set of programs that allow you to manage the backup, recovery, and
46d793
verification of computer data across a network of different computers. It is
46d793
based on a client/server architecture.
46d793
46d793
This development package contains static libraries and header files.
46d793
46d793
46d793
%package -n nagios-plugins-bacula
46d793
Summary:            Nagios Plugin - check_bacula
46d793
Group:              Applications/System
46d793
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
46d793
46d793
%description -n nagios-plugins-bacula
46d793
Provides check_bacula support for Nagios.
46d793
46d793
%prep
46d793
%setup -q
46d793
%patch1 -p2 -b .openssl
46d793
%patch2 -p1 -b .queryfile
46d793
%patch3 -p0 -b .priv
46d793
%patch4 -p1 -b .bat-build
46d793
%patch5 -p1 -b .seg-fault
46d793
%patch6 -p1 -b .logwatch
46d793
%patch7 -p1 -b .help-update
46d793
%patch8 -p1 -b .aarch64
46d793
%patch9 -p1 -b .non-free-code
46d793
%patch10 -p1 -b .multilib
46d793
%patch11 -p1 -b .name-length
46d793
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} .
46d793
46d793
# Remove execution permissions from files we're packaging as docs later on
46d793
find updatedb -type f | xargs chmod -x
46d793
46d793
%build
46d793
build() {
46d793
export CFLAGS="$RPM_OPT_FLAGS -fPIE -Wl,-z,relro,-z,now -I%{_includedir}/ncurses"
46d793
export CPPFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
46d793
%configure \
46d793
        --sysconfdir=%{_sysconfdir}/bacula \
46d793
        --with-hostname=localhost \
46d793
        --with-basename=bacula \
46d793
        --with-dir-password=@@DIR_PASSWORD@@ \
46d793
        --with-fd-password=@@FD_PASSWORD@@ \
46d793
        --with-sd-password=@@SD_PASSWORD@@ \
46d793
        --with-mon-dir-password=@@MON_DIR_PASSWORD@@ \
46d793
        --with-mon-fd-password=@@MON_FD_PASSWORD@@ \
46d793
        --with-mon-sd-password=@@MON_SD_PASSWORD@@ \
46d793
        --with-working-dir=%{_localstatedir}/spool/bacula \
46d793
        --with-bsrdir=%{_localstatedir}/spool/bacula \
46d793
        --with-logdir=%{_localstatedir}/log/bacula \
46d793
        --with-scriptdir=%{_libexecdir}/bacula \
46d793
        --with-plugindir=%{_libdir}/bacula \
46d793
        --with-smtp-host=localhost \
46d793
        --with-subsys-dir=%{_localstatedir}/lock/subsys \
46d793
        --with-pid-dir=%{_localstatedir}/run \
46d793
        --disable-conio \
46d793
        --enable-batch-insert \
46d793
        --enable-readline \
46d793
        --enable-largefile \
46d793
        --enable-build-dird \
46d793
        --enable-build-stored \
46d793
        --with-openssl \
46d793
        --with-tcp-wrappers \
46d793
        --with-python \
46d793
        --enable-smartalloc \
46d793
        --with-x \
46d793
        --disable-rpath \
46d793
        --with-sqlite3 \
46d793
        --with-mysql \
46d793
        --with-postgresql \
46d793
        $*
46d793
}
46d793
46d793
%if 0%{?fedora} || 0%{?rhel} >= 6
46d793
export QMAKE=/usr/bin/qmake-qt4
46d793
build --enable-bat --docdir=%{_datadir}/doc/bacula-console-bat-%{version}
46d793
%else
46d793
build --disable-bat
46d793
%endif
46d793
46d793
# Remove RPATH
46d793
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
46d793
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
46d793
46d793
make %{?_smp_mflags}
46d793
46d793
pushd examples/nagios/check_bacula
46d793
        CFLAGS="%{optflags}" make LIBS="-lpthread -ldl -lssl -lcrypto -lz"
46d793
popd
46d793
46d793
%if 0%{?fedora} || 0%{?rhel} >= 6
46d793
pushd src/qt-console/tray-monitor
46d793
        /usr/bin/qmake-qt4 tray-monitor.pro
46d793
        make %{?_smp_mflags}
46d793
        cp -f .libs/bacula-tray-monitor .
46d793
popd
46d793
%endif
46d793
46d793
%install
46d793
rm -rf %{buildroot}
46d793
make install DESTDIR=%{buildroot}
46d793
46d793
# Nagios plugin
46d793
install -p -m 755 -D examples/nagios/check_bacula/.libs/check_bacula %{buildroot}%{_libdir}/nagios/plugins/check_bacula
46d793
46d793
# Bacula plugin info utility
46d793
install -p -m 755 -D src/tools/.libs/bpluginfo %{buildroot}%{_sbindir}/bpluginfo
46d793
install -p -m 644 -D manpages/bpluginfo.8 %{buildroot}%{_mandir}/man8/bpluginfo.8
46d793
46d793
# Remove catalogue backend symlinks
46d793
rm -f %{buildroot}%{_libdir}/libbaccats.so
46d793
rm -f %{buildroot}%{_libdir}/libbaccats-%{version}.so
46d793
46d793
# Sample query file
46d793
mv %{buildroot}%{_libexecdir}/bacula/query.sql %{buildroot}%{_sysconfdir}/bacula/query.sql
46d793
46d793
%if 0%{?fedora} || 0%{?rhel} >= 6
46d793
# Bat
46d793
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat.png
46d793
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE13}
46d793
46d793
# QT Tray monitor
46d793
install -p -m 755 -D src/qt-console/tray-monitor/bacula-tray-monitor %{buildroot}%{_sbindir}/bacula-tray-monitor
46d793
install -p -m 644 -D src/qt-console/tray-monitor/tray-monitor.conf %{buildroot}%{_sysconfdir}/bacula/tray-monitor.conf
46d793
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.png
46d793
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE14}
46d793
46d793
%else
46d793
rm -f %{buildroot}%{_mandir}/man1/bat.1*
46d793
%endif
46d793
46d793
# Logrotate
46d793
mkdir -p %{buildroot}%{_localstatedir}/log/bacula
46d793
install -p -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/bacula
46d793
46d793
# Logwatch
46d793
install -p -m 755 -D scripts/logwatch/bacula %{buildroot}%{_sysconfdir}/logwatch/scripts/services/bacula
46d793
install -p -m 755 -D scripts/logwatch/applybaculadate %{buildroot}%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
46d793
install -p -m 644 -D scripts/logwatch/logfile.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
46d793
install -p -m 644 -D scripts/logwatch/services.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/services/bacula.conf
46d793
46d793
%if 0%{?fedora} || 0%{?rhel} >= 7
46d793
# Systemd unit files
46d793
mkdir -p %{buildroot}%{_unitdir}
46d793
install -p -m 644 -D %{SOURCE10} %{buildroot}%{_unitdir}/bacula-fd.service
46d793
install -p -m 644 -D %{SOURCE11} %{buildroot}%{_unitdir}/bacula-dir.service
46d793
install -p -m 644 -D %{SOURCE12} %{buildroot}%{_unitdir}/bacula-sd.service
46d793
%else
46d793
# Initscripts
46d793
install -p -m 755 -D %{SOURCE7} %{buildroot}%{_initrddir}/bacula-fd
46d793
install -p -m 755 -D %{SOURCE8} %{buildroot}%{_initrddir}/bacula-dir
46d793
install -p -m 755 -D %{SOURCE9} %{buildroot}%{_initrddir}/bacula-sd
46d793
%endif
46d793
46d793
# Sysconfig
46d793
install -p -m 644 -D %{SOURCE15} %{buildroot}%{_sysconfdir}/sysconfig/bacula-fd
46d793
install -p -m 644 -D %{SOURCE16} %{buildroot}%{_sysconfdir}/sysconfig/bacula-dir
46d793
%if 0%{?fedora} || 0%{?rhel} >= 6
46d793
install -p -m 644 -D %{SOURCE17} %{buildroot}%{_sysconfdir}/sysconfig/bacula-sd
46d793
%else
46d793
install -p -m 644 -D %{SOURCE18} %{buildroot}%{_sysconfdir}/sysconfig/bacula-sd
46d793
%endif
46d793
46d793
# Spool directory
46d793
mkdir -p %{buildroot}%{_localstatedir}/spool/bacula
46d793
46d793
# Remove stuff we do not need
46d793
rm -f %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,startmysql,stopmysql,bconsole,make_catalog_backup}
46d793
rm -f %{buildroot}%{_sbindir}/bacula
46d793
rm -f %{buildroot}%{_mandir}/man8/bacula.8.gz
46d793
rm -f %{buildroot}%{_mandir}/man1/bacula-bwxconsole.1*
46d793
rm -f %{buildroot}%{_mandir}/man1/bacula-tray-monitor.1*
46d793
rm -rf %{buildroot}%{_datadir}/doc/bacula/
46d793
46d793
# Fix up some perms so rpmlint does not complain too much
46d793
chmod 755 %{buildroot}%{_sbindir}/*
46d793
chmod 755 %{buildroot}%{_libdir}/bacula/*
46d793
chmod 755 %{buildroot}%{_libexecdir}/bacula/*
46d793
chmod 644 %{buildroot}%{_libexecdir}/bacula/btraceback.*
46d793
46d793
# Install headers
46d793
mkdir -p %{buildroot}%{_includedir}/bacula
46d793
for dir in src src/cats src/console src/dird src/filed src/findlib src/lib src/plugins/fd src/stored; do
46d793
        mkdir -p %{buildroot}%{_includedir}/bacula/$dir
46d793
        install -p -m 644 $dir/*.h %{buildroot}%{_includedir}/bacula/$dir
46d793
done
46d793
46d793
# fix multilib issues
46d793
mv $RPM_BUILD_ROOT%{_includedir}/bacula/src/config.h \
46d793
   $RPM_BUILD_ROOT%{_includedir}/bacula/src/config-%{__isa_bits}.h
46d793
46d793
cat >$RPM_BUILD_ROOT%{_includedir}/bacula/src/config.h <
46d793
#ifndef BACULACONF_H_MULTILIB
46d793
#define BACULACONF_H_MULTILIB
46d793
46d793
#include <bits/wordsize.h>
46d793
46d793
#if __WORDSIZE == 32
46d793
# include "config-32.h"
46d793
#elif __WORDSIZE == 64
46d793
# include "config-64.h"
46d793
#else
46d793
# error "unexpected value for __WORDSIZE macro"
46d793
#endif
46d793
46d793
#endif
46d793
EOF
46d793
46d793
%clean
46d793
rm -rf %{buildroot}
46d793
46d793
%post libs
46d793
/sbin/ldconfig
46d793
46d793
%postun libs
46d793
/sbin/ldconfig
46d793
exit 0
46d793
46d793
%post libs-sql
46d793
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql.so 50
46d793
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-sqlite3.so 40
46d793
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-postgresql.so 60
46d793
# Fix for automatic selection of backends during upgrades
46d793
if readlink /etc/alternatives/libbaccats.so | grep --silent mysql || \
46d793
   readlink /etc/alternatives/bacula-dir | grep --silent mysql || \
46d793
   readlink /etc/alternatives/bacula-sd | grep --silent mysql; then
46d793
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-mysql.so
46d793
elif readlink /etc/alternatives/libbaccats.so | grep --silent sqlite || \
46d793
   readlink /etc/alternatives/bacula-dir | grep --silent sqlite || \
46d793
   readlink /etc/alternatives/bacula-sd | grep --silent sqlite; then
46d793
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-sqlite3.so
46d793
else
46d793
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-postgresql.so
46d793
fi
46d793
/sbin/ldconfig
46d793
46d793
%preun libs-sql
46d793
if [ "$1" = 0 ]; then
46d793
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-mysql.so
46d793
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-sqlite3.so
46d793
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-postgresql.so
46d793
fi
46d793
46d793
%postun libs-sql
46d793
/sbin/ldconfig
46d793
exit 0
46d793
46d793
%pre common
46d793
getent group %username >/dev/null || groupadd -g %uid -r %username &>/dev/null || :
46d793
getent passwd %username >/dev/null || useradd -u %uid -r -s /sbin/nologin \
46d793
    -d /var/spool/bacula -M -c 'Bacula Backup System' -g %username %username &>/dev/null || :
46d793
exit 0
46d793
46d793
%if 0%{?fedora} == 17
46d793
46d793
%post client
46d793
if [ $1 -eq 1 ] ; then
46d793
    # Initial installation
46d793
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
46d793
fi
46d793
46d793
%preun client
46d793
if [ $1 -eq 0 ] ; then
46d793
    # Package removal, not upgrade
46d793
    /bin/systemctl --no-reload disable bacula-fd.service > /dev/null 2>&1 || :
46d793
    /bin/systemctl stop bacula-fd.service > /dev/null 2>&1 || :
46d793
fi
46d793
46d793
%postun client
46d793
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
46d793
if [ $1 -ge 1 ] ; then
46d793
    # Package upgrade, not uninstall
46d793
    /bin/systemctl try-restart bacula-fd.service >/dev/null 2>&1 || :
46d793
fi
46d793
46d793
%triggerun client -- bacula-client < 5.0.3-10
46d793
# Save the current service runlevel info
46d793
# User must manually run systemd-sysv-convert --apply bacula-fd
46d793
# to migrate them to systemd targets
46d793
/usr/bin/systemd-sysv-convert --save bacula-fd >/dev/null 2>&1 ||:
46d793
46d793
# Run these because the SysV package being removed won't do them
46d793
/sbin/chkconfig --del bacula-fd >/dev/null 2>&1 || :
46d793
/bin/systemctl try-restart bacula-fd.service >/dev/null 2>&1 || :
46d793
46d793
%post director
46d793
if [ $1 -eq 1 ] ; then
46d793
    # Initial installation
46d793
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
46d793
fi
46d793
46d793
%preun director
46d793
if [ $1 -eq 0 ] ; then
46d793
    # Package removal, not upgrade
46d793
    /bin/systemctl --no-reload disable bacula-dir.service > /dev/null 2>&1 || :
46d793
    /bin/systemctl stop bacula-dir.service > /dev/null 2>&1 || :
46d793
fi
46d793
46d793
%postun director
46d793
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
46d793
if [ $1 -ge 1 ] ; then
46d793
    # Package upgrade, not uninstall
46d793
    /bin/systemctl try-restart bacula-dir.service >/dev/null 2>&1 || :
46d793
fi
46d793
46d793
%triggerun director -- bacula-director-common < 5.0.3-10
46d793
# Save the current service runlevel info
46d793
# User must manually run systemd-sysv-convert --apply bacula-dir
46d793
# to migrate them to systemd targets
46d793
/usr/bin/systemd-sysv-convert --save bacula-dir >/dev/null 2>&1 ||:
46d793
46d793
# Run these because the SysV package being removed won't do them
46d793
/sbin/chkconfig --del bacula-dir >/dev/null 2>&1 || :
46d793
/bin/systemctl try-restart bacula-dir.service >/dev/null 2>&1 || :
46d793
46d793
%post storage
46d793
if [ $1 -eq 1 ] ; then
46d793
    # Initial installation
46d793
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
46d793
fi
46d793
46d793
%preun storage
46d793
if [ $1 -eq 0 ] ; then
46d793
    # Package removal, not upgrade
46d793
    /bin/systemctl --no-reload disable bacula-sd.service > /dev/null 2>&1 || :
46d793
    /bin/systemctl stop bacula-sd.service > /dev/null 2>&1 || :
46d793
fi
46d793
46d793
%postun storage
46d793
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
46d793
if [ $1 -ge 1 ] ; then
46d793
    # Package upgrade, not uninstall
46d793
    /bin/systemctl try-restart bacula-sd.service >/dev/null 2>&1 || :
46d793
fi
46d793
46d793
%triggerun storage -- bacula-storage-common < 5.0.3-10
46d793
# Save the current service runlevel info
46d793
# User must manually run systemd-sysv-convert --apply bacula-sd
46d793
# to migrate them to systemd targets
46d793
/usr/bin/systemd-sysv-convert --save bacula-sd >/dev/null 2>&1 ||:
46d793
46d793
# Run these because the SysV package being removed won't do them
46d793
/sbin/chkconfig --del bacula-sd >/dev/null 2>&1 || :
46d793
/bin/systemctl try-restart bacula-sd.service >/dev/null 2>&1 || :
46d793
46d793
%endif
46d793
46d793
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
46d793
46d793
%post client
46d793
%systemd_post %{name}-fd.service
46d793
46d793
%preun client
46d793
%systemd_preun %{name}-fd.service
46d793
46d793
%postun client
46d793
%systemd_postun_with_restart %{name}-fd.service
46d793
46d793
%triggerun client -- bacula-client < 5.0.3-10
46d793
/usr/bin/systemd-sysv-convert --save bacula-fd >/dev/null 2>&1 ||:
46d793
/sbin/chkconfig --del bacula-fd >/dev/null 2>&1 || :
46d793
/bin/systemctl try-restart bacula-fd.service >/dev/null 2>&1 || :
46d793
46d793
%post director
46d793
%systemd_post %{name}-dir.service
46d793
46d793
%preun director
46d793
%systemd_preun %{name}-dir.service
46d793
46d793
%postun director
46d793
%systemd_postun_with_restart %{name}-dir.service
46d793
46d793
%triggerun director -- bacula-director-common < 5.0.3-10
46d793
/usr/bin/systemd-sysv-convert --save bacula-dir >/dev/null 2>&1 ||:
46d793
/sbin/chkconfig --del bacula-dir >/dev/null 2>&1 || :
46d793
/bin/systemctl try-restart bacula-dir.service >/dev/null 2>&1 || :
46d793
46d793
%post storage
46d793
%systemd_post %{name}-sd.service
46d793
46d793
%preun storage
46d793
%systemd_preun %{name}-sd.service
46d793
46d793
%postun storage
46d793
%systemd_postun_with_restart %{name}-sd.service
46d793
46d793
%triggerun storage -- bacula-storage-common < 5.0.3-10
46d793
/usr/bin/systemd-sysv-convert --save bacula-sd >/dev/null 2>&1 ||:
46d793
/sbin/chkconfig --del bacula-sd >/dev/null 2>&1 || :
46d793
/bin/systemctl try-restart bacula-sd.service >/dev/null 2>&1 || :
46d793
46d793
%endif
46d793
46d793
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
46d793
46d793
%post client
46d793
/sbin/chkconfig --add bacula-fd
46d793
46d793
%preun client
46d793
if [ "$1" = 0 ]; then
46d793
        /sbin/service bacula-fd stop >/dev/null 2>&1 || :
46d793
        /sbin/chkconfig --del bacula-fd
46d793
fi
46d793
46d793
%postun client
46d793
if [ "$1" -ge "1" ]; then
46d793
        /sbin/service bacula-fd condrestart >/dev/null 2>&1 || :
46d793
fi
46d793
46d793
%post director
46d793
/sbin/chkconfig --add bacula-dir
46d793
46d793
%preun director
46d793
if [ "$1" = 0 ]; then
46d793
        /sbin/service bacula-dir stop >/dev/null 2>&1 || :
46d793
        /sbin/chkconfig --del bacula-dir
46d793
fi
46d793
46d793
%postun director
46d793
if [ "$1" -ge "1" ]; then
46d793
        /sbin/service bacula-dir condrestart >/dev/null 2>&1 || :
46d793
fi
46d793
46d793
%post storage
46d793
/sbin/chkconfig --add bacula-sd
46d793
46d793
%preun storage
46d793
if [ "$1" = 0 ]; then
46d793
        /sbin/service bacula-sd stop >/dev/null 2>&1 || :
46d793
        /sbin/chkconfig --del bacula-sd
46d793
fi
46d793
46d793
%postun storage
46d793
if [ "$1" -ge "1" ]; then
46d793
        /sbin/service bacula-sd condrestart >/dev/null 2>&1 || :
46d793
fi
46d793
46d793
%endif
46d793
46d793
%files libs
46d793
%defattr(-,root,root,-)
46d793
%{_libdir}/libbac-%{version}.so
46d793
%{_libdir}/libbaccfg-%{version}.so
46d793
%{_libdir}/libbacfind-%{version}.so
46d793
%{_libdir}/libbacpy-%{version}.so
46d793
46d793
%files libs-sql
46d793
%defattr(-,root,root,-)
46d793
%{_libdir}/libbaccats-mysql-%{version}.so
46d793
%{_libdir}/libbaccats-mysql.so
46d793
%{_libdir}/libbaccats-postgresql-%{version}.so
46d793
%{_libdir}/libbaccats-postgresql.so
46d793
%{_libdir}/libbaccats-sqlite3-%{version}.so
46d793
%{_libdir}/libbaccats-sqlite3.so
46d793
%{_libdir}/libbacsql-%{version}.so
46d793
46d793
%files common
46d793
%defattr(-,root,root,-)
46d793
%doc AUTHORS ChangeLog LICENSE SUPPORT
46d793
%doc README.Redhat quickstart_*
46d793
%config(noreplace) %{_sysconfdir}/logrotate.d/bacula
46d793
%attr(755,root,root) %dir %{_sysconfdir}/%{name}
46d793
%dir %{_libexecdir}/%{name}
46d793
%{_sbindir}/btraceback
46d793
%{_sbindir}/bpluginfo
46d793
%{_libexecdir}/%{name}/btraceback.dbx
46d793
%{_libexecdir}/%{name}/btraceback.gdb
46d793
%{_libexecdir}/%{name}/bacula_config
46d793
%{_libexecdir}/%{name}/btraceback.mdb
46d793
%{_mandir}/man8/btraceback.8*
46d793
%{_mandir}/man8/bpluginfo.8*
46d793
%dir %attr(750, bacula, bacula) %{_localstatedir}/log/bacula
46d793
%dir %attr(750, bacula, bacula) %{_localstatedir}/spool/bacula
46d793
46d793
%files director
46d793
%defattr(-,root,root,-)
46d793
%doc updatedb examples/sample-query.sql
46d793
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bacula-dir.conf
46d793
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/query.sql
46d793
%config(noreplace) %{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
46d793
%config(noreplace) %{_sysconfdir}/logwatch/conf/services/bacula.conf
46d793
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir
46d793
%{_sysconfdir}/logwatch/scripts/services/bacula
46d793
%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
46d793
%if 0%{?fedora} || 0%{?rhel} >= 7
46d793
%{_unitdir}/bacula-dir.service
46d793
%else
46d793
%{_initrddir}/bacula-dir
46d793
%endif
46d793
%{_sbindir}/bacula-dir
46d793
%{_sbindir}/bregex
46d793
%{_sbindir}/bsmtp
46d793
%{_sbindir}/bwild
46d793
%{_sbindir}/dbcheck
46d793
%{_mandir}/man1/bsmtp.1*
46d793
%{_mandir}/man8/bacula-dir.8*
46d793
%{_mandir}/man8/bregex.8*
46d793
%{_mandir}/man8/bwild.8*
46d793
%{_mandir}/man8/dbcheck.8*
46d793
%{_libexecdir}/%{name}/create_bacula_database
46d793
%{_libexecdir}/%{name}/delete_catalog_backup
46d793
%{_libexecdir}/%{name}/drop_bacula_database
46d793
%{_libexecdir}/%{name}/drop_bacula_tables
46d793
%{_libexecdir}/%{name}/grant_bacula_privileges
46d793
%{_libexecdir}/%{name}/make_bacula_tables
46d793
%{_libexecdir}/%{name}/make_catalog_backup.pl
46d793
%{_libexecdir}/%{name}/update_bacula_tables
46d793
%{_libexecdir}/%{name}/create_mysql_database
46d793
%{_libexecdir}/%{name}/drop_mysql_database
46d793
%{_libexecdir}/%{name}/drop_mysql_tables
46d793
%{_libexecdir}/%{name}/grant_mysql_privileges
46d793
%{_libexecdir}/%{name}/make_mysql_tables
46d793
%{_libexecdir}/%{name}/update_mysql_tables
46d793
%{_libexecdir}/%{name}/create_sqlite3_database
46d793
%{_libexecdir}/%{name}/drop_sqlite3_database
46d793
%{_libexecdir}/%{name}/drop_sqlite3_tables
46d793
%{_libexecdir}/%{name}/grant_sqlite3_privileges
46d793
%{_libexecdir}/%{name}/make_sqlite3_tables
46d793
%{_libexecdir}/%{name}/update_sqlite3_tables
46d793
%{_libexecdir}/%{name}/create_postgresql_database
46d793
%{_libexecdir}/%{name}/drop_postgresql_database
46d793
%{_libexecdir}/%{name}/drop_postgresql_tables
46d793
%{_libexecdir}/%{name}/grant_postgresql_privileges
46d793
%{_libexecdir}/%{name}/make_postgresql_tables
46d793
%{_libexecdir}/%{name}/update_postgresql_tables
46d793
46d793
%files storage
46d793
%defattr(-,root,root,-)
46d793
%{_sbindir}/bacula-sd
46d793
%{_sbindir}/bcopy
46d793
%{_sbindir}/bextract
46d793
%{_sbindir}/bls
46d793
%{_sbindir}/bscan
46d793
%{_sbindir}/btape
46d793
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/bacula-sd.conf
46d793
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-sd
46d793
%if 0%{?fedora} || 0%{?rhel} >= 7
46d793
%{_unitdir}/bacula-sd.service
46d793
%else
46d793
%{_initrddir}/bacula-sd
46d793
%endif
46d793
%{_libexecdir}/%{name}/disk-changer
46d793
%{_libexecdir}/%{name}/dvd-handler
46d793
%{_libexecdir}/%{name}/mtx-changer
46d793
%{_libexecdir}/%{name}/mtx-changer.conf
46d793
%{_mandir}/man8/bacula-sd.8*
46d793
%{_mandir}/man8/bcopy.8*
46d793
%{_mandir}/man8/bextract.8*
46d793
%{_mandir}/man8/bls.8*
46d793
%{_mandir}/man8/bscan.8*
46d793
%{_mandir}/man8/btape.8*
46d793
46d793
%files client
46d793
%defattr(-,root,root,-)
46d793
%{_sbindir}/bacula-fd
46d793
%if 0%{?fedora} || 0%{?rhel} >= 7
46d793
%{_unitdir}/bacula-fd.service
46d793
%else
46d793
%{_initrddir}/bacula-fd
46d793
%endif
46d793
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/bacula-fd.conf
46d793
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-fd
46d793
%{_mandir}/man8/bacula-fd.8*
46d793
%{_libdir}/bacula/bpipe-fd.so
46d793
46d793
%files console
46d793
%defattr(-,root,root,-)
46d793
%{_sbindir}/bconsole
46d793
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/bconsole.conf
46d793
%{_mandir}/man8/bconsole.8*
46d793
46d793
%if 0%{?fedora} || 0%{?rhel} >= 6
46d793
%files console-bat
46d793
%defattr(-,root,root,-)
46d793
%doc %{_datadir}/doc/bacula-console-bat-%{version}/*
46d793
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/bat.conf
46d793
%{_sbindir}/bat
46d793
%{_mandir}/man1/bat.1*
46d793
%{_datadir}/applications/bacula-bat.desktop
46d793
%{_datadir}/pixmaps/bat.png
46d793
46d793
%files traymonitor
46d793
%defattr(-,root,root,-)
46d793
%{_sbindir}/bacula-tray-monitor
46d793
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/tray-monitor.conf
46d793
%{_datadir}/applications/bacula-traymonitor.desktop
46d793
%{_datadir}/pixmaps/bacula-tray-monitor.png
46d793
%endif
46d793
46d793
%files devel
46d793
%defattr(-,root,root,-)
46d793
%{_includedir}/bacula
46d793
%{_libdir}/libbac.la
46d793
%{_libdir}/libbac.so
46d793
%{_libdir}/libbaccats.la
46d793
%{_libdir}/libbaccats-mysql.la
46d793
%{_libdir}/libbaccats-postgresql.la
46d793
%{_libdir}/libbaccats-sqlite3.la
46d793
%{_libdir}/libbaccfg.la
46d793
%{_libdir}/libbaccfg.so
46d793
%{_libdir}/libbacfind.la
46d793
%{_libdir}/libbacfind.so
46d793
%{_libdir}/libbacpy.la
46d793
%{_libdir}/libbacpy.so
46d793
%{_libdir}/libbacsql.la
46d793
%{_libdir}/libbacsql.so
46d793
46d793
%files -n nagios-plugins-bacula
46d793
%defattr(-,root,root)
46d793
%{_libdir}/nagios/plugins/check_bacula
46d793
46d793
%changelog
46d793
* Fri Aug 07 2015 Petr Hracek <phracek@redhat.com> - 5.2.13-23.1
46d793
- Update SPEC file
46d793
  Related: #1195625
46d793
46d793
* Mon May 11 2015 Petr Hracek <phracek@redhat.com> - 5.2.13-22.1
46d793
- Update SPEC file
46d793
  Related: #1195625
46d793
46d793
* Mon May 11 2015 Petr Hracek <phracek@redhat.com> - 5.2.13-21.1
46d793
- Increase bacula daemon name to 64 characters
46d793
Resolves: #1195625
46d793
46d793
* Wed May 06 2015 Petr Hracek <phracek@redhat.com> - 5.2.13-20.1
46d793
- PIE and RELRO check
46d793
Resolves: #1092525
46d793
46d793
* Thu Jul 31 2014 Petr Hracek <phracek@redhat.com> - 5.2.13-19.1
46d793
- Bump version
46d793
Resolves: #1059611
46d793
46d793
* Tue Mar 18 2014 Petr Hracek <phracek@redhat.com> - 5.2.13-18.1
46d793
- Add aarch64 support
46d793
Resolves: #1059611
46d793
46d793
* Tue Feb 4 2014 Brendan Conoboy <blc@redhat.com> - 5.2.13-17.1
46d793
- Per Marcin, add aarch64 to bacula-multilib.patch.
46d793
46d793
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 5.2.13-17
46d793
- Mass rebuild 2014-01-24
46d793
46d793
* Wed Jan 15 2014 Honza Horak <hhorak@redhat.com> - 5.2.13-16
46d793
- Rebuild for mariadb-libs
46d793
  Related: #1045013
46d793
46d793
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 5.2.13-15
46d793
- Mass rebuild 2013-12-27
46d793
46d793
* Tue Dec 17 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-14
46d793
- Resolves: #881146 Multilib issue
46d793
46d793
* Mon Jul 15 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-13
46d793
- make dependency of bacula packages on bacula-libs RHEL-7 rpmdiff (#881146)
46d793
46d793
* Thu Jun 27 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-12
46d793
- Correct systemd unitfiles permissions (#978833)
46d793
46d793
* Tue May 28 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-11
46d793
- Fix for nonfree code (#967417)
46d793
46d793
* Thu May 16 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-10
46d793
- Add aarch64 patch (#925072).
46d793
- Add bpluginfo commmand.
46d793
46d793
* Tue Apr 16 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-9
46d793
- Systemd service files cleanup, thanks Michal Schmidt (#952334)
46d793
46d793
* Mon Apr 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-8
46d793
- Correcting options and man pages (#948837)
46d793
46d793
* Mon Apr 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-7
46d793
- include /var/log/bacula/*.log in logwatch (#924797)
46d793
46d793
* Mon Mar 04 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-6
46d793
- Add mt-st requirement to storage package; update quick start docs.
46d793
46d793
* Tue Feb 26 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-5
46d793
- Improve documentation.
46d793
46d793
* Mon Feb 25 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-4
46d793
- Fix director reload command.
46d793
- Adjust to 5.2.13 permission changes.
46d793
46d793
* Fri Feb 22 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-3
46d793
- Renamed README to README.Redhat.
46d793
46d793
* Thu Feb 21 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-2
46d793
- Removed bacula-checkconf stuff.
46d793
- Separated postgresql, sqlite3 and mysql how to from README.
46d793
46d793
* Wed Feb 20 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-1
46d793
- Update to 5.2.13, drop upstreamed patch.
46d793
- Remove Fedora 16 (EOL) checks.
46d793
46d793
* Sun Feb 10 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 5.2.12-9
46d793
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
46d793
46d793
* Fri Feb 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.12-8
46d793
- Fix: (#881146) syntax error in update_postgresql_tables_10_to_11.in
46d793
46d793
* Mon Feb 04 2013 Petr Hracek <phracek@redhat.com> - 5.2.12-7
46d793
- Fix (#905309) e_msg: Process /usr/sbin/bat was killed by signal 11 (SIGSEGV)
46d793
46d793
* Thu Jan 10 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-6
46d793
- Added missing line in bacula-sd SysV init script.
46d793
46d793
* Wed Jan 09 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-5
46d793
- Move unversioned libraries into the devel package (#889244).
46d793
46d793
* Wed Jan 09 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-4
46d793
- Updated SysV init script according to Fedora template:
46d793
  https://fedoraproject.org/wiki/Packaging:SysVInitScript
46d793
46d793
* Wed Oct 17 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-3
46d793
- Add sample-query.sql file to Director's docs.
46d793
46d793
* Wed Oct 17 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-2
46d793
- Fix fedpkg checks. Requires fedpkg > 1.10:
46d793
  http://git.fedorahosted.org/cgit/fedpkg.git/commit/?id=11c46c06a3c9cc2f58d68aea964dd37dc028e349
46d793
- Change systemd requirements as per new package guidelines.
46d793
46d793
* Fri Sep 14 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-1
46d793
- Update to 5.2.12, containing only patches from 5.2.11-4.
46d793
46d793
* Fri Sep 14 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-4
46d793
- Add a sleep timer for RHEL init scripts restart as Debian does.
46d793
  Problems verified on the sd exiting too early on VMs and slow boxes.
46d793
46d793
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-3
46d793
- Introduce last minute critical patches.
46d793
46d793
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-2
46d793
- Do not remove user on common subpackage uninstall.
46d793
46d793
* Tue Sep 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-1
46d793
- Update to 5.2.11.
46d793
- Removed upstreamed patches.
46d793
- Updated bat patch.
46d793
- Removed useless docs.
46d793
46d793
* Tue Sep 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-7
46d793
- Add Fedora 18 systemd macros.
46d793
- Remove old distribution checks.
46d793
46d793
* Wed Aug 29 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-6
46d793
- Remove user definition during prep so they are not used during the install
46d793
  phase (rhbz#852732).
46d793
- Enforce permissions in default config files.
46d793
46d793
* Fri Jul 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-5
46d793
- Removed make_catalog_backup bash script, leave only the default perl one (rhbz#456612,665498).
46d793
46d793
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.10-4
46d793
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
46d793
46d793
* Mon Jul 16 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-3
46d793
- Updated log path patch (rhbz#837706).
46d793
46d793
* Tue Jul 10 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-2
46d793
- Add nss-lookup.target as required to service files (rhbz#838828).
46d793
- Fix bsmtp upstream bug sending mails to ipv4/ipv6 hosts.
46d793
46d793
* Mon Jul 02 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-1
46d793
- Update to 5.2.10.
46d793
46d793
* Tue Jun 19 2012 Simone Caronni <negativo17@gmail.com> - 5.2.9-2
46d793
- Remove _isa on BuildRequires.
46d793
- Remove useless code in SysV init scripts.
46d793
46d793
* Tue Jun 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.9-1
46d793
- Update to 5.2.9, remove termlib patch.
46d793
46d793
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-2
46d793
- Fix console build on RHEL 5.
46d793
46d793
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-1
46d793
- Update to 5.2.8.
46d793
- Removed upstram xattr patch.
46d793
- Added database backend detection to bacula-libs-sql for upgrades from
46d793
  <= 5.0.3-28-fc16 and 5.2.6-1.fc17.
46d793
46d793
* Fri Jun 08 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-4
46d793
- Make a note about mt-st and mtx (bz#829888).
46d793
- Update README.Fedora with current information.
46d793
- Fix bacula-sd group on Fedora and RHEL >= 6 (bz#829509).
46d793
46d793
* Wed Jun 06 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-3
46d793
- Final xattr patch from upstream for bz#819158.
46d793
- Switch alternatives to point to the unversioned system libraries.
46d793
  Pointed out by the closely related bug #829219.
46d793
46d793
* Mon Jun 04 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-2
46d793
- Remove python-devel test leftover.
46d793
- Updated bat build patch to add support for RHEL 6.
46d793
46d793
* Mon Jun 04 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-1
46d793
- Updated to 5.2.7, removed patches included upstream.
46d793
- Removed python-devel patch, fix included in python package.
46d793
- Replaced tabs with blanks in spec file (rpmlint).
46d793
46d793
* Mon May 28 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-6
46d793
- Even if pulled in by dependencies, re-add explict BR on systemd-units.
46d793
- Remove .gz suffix for man pages in file lists as per packaging guidelines.
46d793
46d793
* Mon May 28 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-5
46d793
- Patch for bug #819158.
46d793
- Updated hostname patch with official fix.
46d793
- Sorted all BuildRequires and removed useless systemd-units.
46d793
46d793
* Wed May 23 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-4
46d793
- Added python config workaround for Fedora 16.
46d793
46d793
* Mon May 21 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-3
46d793
- Removed _install, _mkdir and _make macro.
46d793
- Added _isa to BuildRequires.
46d793
- Removed lzo-devel option for RHEL 4 (EOL).
46d793
46d793
* Fri Mar 16 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-2
46d793
- Move libbaccats and libbacsql into bacula-libs-sql package so only
46d793
  Director and Storage daemons pull in SQL dependencies:
46d793
  http://old.nabble.com/Standalone-client-question-td33495990.html
46d793
46d793
* Wed Feb 22 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-1
46d793
- Update to 5.2.6.
46d793
46d793
* Fri Feb 10 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-3
46d793
- WX and gnome console should be upgraded from bconsole, not
46d793
  libraries.
46d793
46d793
* Mon Jan 30 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-2
46d793
- License has changed to AGPLv3 in 5.0.3. Thanks Erinn.
46d793
- Fix ldconfig/alternatives symlinks on removal of packages and
46d793
  upgrades from recent f15/f16 changes.
46d793
46d793
* Thu Jan 26 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-1
46d793
- Update to 5.2.5.
46d793
- Change the alternative library to the base shared object name
46d793
  so the preference set is not lost when changing releases.
46d793
46d793
* Mon Jan 23 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-4
46d793
- Remove old BuildRequires for bacula-docs.
46d793
46d793
* Fri Jan 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-3
46d793
- Fix for rhbz#728693.
46d793
46d793
* Fri Jan 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-2
46d793
- Close bugs rhbz#708712, rhbz#556669, rhbz#726147
46d793
46d793
* Wed Jan 18 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-1
46d793
- Update to 5.2.4, rework libbaccats installation as they have
46d793
  fixed the soname library problem.
46d793
46d793
* Thu Jan 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-8
46d793
- Fix tray monitor desktop file.
46d793
46d793
* Wed Jan 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-7
46d793
- Split off bacula-docs subpackage.
46d793
46d793
* Thu Jan 05 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-6
46d793
- Make docs conditional at build for testing.
46d793
- Add devel subpackage.
46d793
46d793
* Tue Jan 03 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-5
46d793
- Trim changelog.
46d793
- Merge bacula-director backends and move libbacats alternatives
46d793
  to bacula-libs.
46d793
- Move bscan to bacula-storage now that is dependent only on
46d793
  bacula-libs.
46d793
- Added README.Fedora.
46d793
46d793
* Tue Dec 20 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-4
46d793
- Changing uid from 33 per previous discussion, static uid
46d793
  already allocated is 133:
46d793
  "cat /usr/share/doc/setup-2.8.36/uidgid | grep bacula"
46d793
46d793
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-3
46d793
- Remove fedora-usermgmt entirely, see thread at:
46d793
  http://lists.fedoraproject.org/pipermail/packaging/2011-December/008034.html
46d793
46d793
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-2
46d793
- Remove leftover users when removing bacula-common.
46d793
- Allow building "--without fedora" to avoid RHEL dependency on EPEL:
46d793
  http://fedoraproject.org/wiki/PackageUserCreation
46d793
46d793
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-1
46d793
- Updated to 5.2.3.
46d793
- Remove fedora-usermgmt from libs Requires section.
46d793
46d793
* Sun Dec 11 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-11
46d793
- Add bat html docs so the help button works.
46d793
- Minor packaging changes.
46d793
- Default permissions on bconsole and bat.
46d793
- Use localhost as default on config files instead of patching fake
46d793
  example.com hostnames.
46d793
- Add QT tray monitor.
46d793
46d793
* Sat Dec 10 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-10
46d793
- Added patch for mysql 5.5.18 from Oliver Falk.
46d793
46d793
* Wed Dec 07 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-9
46d793
- Add sample-query.sql as config file.
46d793
- Small log changes.
46d793
46d793
* Wed Dec 07 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-8
46d793
- Fixed building on RHEL/CentOS 4.
46d793
- Split out libs package to remove dependency on bacula-common for
46d793
  bconsole, bat and check_bacula.
46d793
- Fix typo in post scriptlet for director-sqlite.
46d793
46d793
* Tue Dec 06 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-7
46d793
- Added libcap for POSIX.1e capabilities in bacula-fd (5.0.0 feature).
46d793
- Allow systemd files to read options set in the sysconfig
46d793
  configuration files like SysV scripts to enable capabilities.
46d793
- Set capabilities as optional for now.
46d793
46d793
* Mon Dec 05 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-6
46d793
- Removed leftover files and small rpmlint fixes.
46d793
- Additional file moves between packages.
46d793
- Enabled LZO compression (5.2.1 feature).
46d793
46d793
* Mon Dec 05 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-5
46d793
- Remove redundant user/group in service files.
46d793
- Reduce patching for what can be passed through configure.
46d793
- Remove dsolink patch, not needed anymore.
46d793
46d793
* Fri Dec 02 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-4
46d793
- Rename storage-common to storage and make it provide storage-common.
46d793
- Move bscan to director-common.
46d793
- Move storage scripts to storage.
46d793
- Add html docs.
46d793
- Install dummy catalogue library and mark it as ghost.
46d793
46d793
* Thu Dec 01 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-3
46d793
- Add missing conditional for bat in the build section.
46d793
- Make bat require qt4-devel on build (rhel 5 fix).
46d793
- Bumped requirement for qt >= 4.6.2 for 5.2.2.
46d793
- Renamed bacula-config.patch to bacula-5.2.2-config.patch as it
46d793
  always changes.
46d793
- Fix installation of bat and check_bacula binaries. Enabling
46d793
  libtool for bpipe-fd.so produces binaries under .libs.
46d793
- Removed fedora-usermgmt requirement for director-common.
46d793
- Removed examples from docs and make them "noarch".
46d793
- Fix bacula-console requirements.
46d793
- Fix nagios plugin summary.
46d793
- Removed checkconf functions from SysV init files and replace
46d793
  the call with the script used in systemd service files. Make
46d793
  the script available in all builds.
46d793
- Make docs NoArch where supported.
46d793
46d793
* Thu Dec  1 2011 Tom Callaway <spot@fedoraproject.org> - 5.2.2-2
46d793
- resolve broken dependency issues
46d793
46d793
* Tue Nov 29 2011 Tom Callaway <spot@fedoraproject.org> - 5.2.2-1
46d793
- Update to 5.2.2
46d793
- minor spec cleanups, conditionalized support for systemd
46d793
46d793
* Fri Nov 04 2011 Simone Caronni <negativo17@gmail.com> - 5.2.1-1
46d793
- Updated to 5.2.1.
46d793
- Reworked and removed some patches for 5.2.1 codebase.
46d793
- Reworked bat installation.
46d793
- Removed sqlite2 support.
46d793
- Removed all the fancy database backend rebuilding.
46d793
- Disabled libtool for bpipe-fd.so.
46d793
- Passed plugins dir as libdir/bacula.
46d793
- Added sql libs to alternatives.
46d793
- Disabled traymonitor.
46d793
- Minor fixes to spec file, rpmlint fixes.
46d793
- Nagios patch for Enterprise FDs.
46d793
- Removed all gui/web stuff.
46d793
- Removed a lot of comments.
46d793
- Conditional on Fedora 11 / RHEL 6 for bat build.
46d793
- Obsolete bacula-sysconfdir.
46d793
- Removed bwxconsole.
46d793
46d793
* Thu Nov 3 2011 Lukáš Nykrýn <lnykryn@redhat.com> - 5.0.3-13
46d793
- fixed creating of bacula MySQL tables and bump
46d793
46d793
* Sun Oct  9 2011 Lukáš Nykrýn <lnykryn@redhat.com> - 5.0.3-12
46d793
- fixed restart option in service files (#745529)
46d793
- fixed creating of bacula MySQL tables (#724894)
46d793
46d793
* Fri Sep  9 2011 Tom Callaway <spot@fedoraproject.org> - 5.0.3-11
46d793
- add missing scriptlets
46d793
46d793
* Thu Sep  8 2011 Tom Callaway <spot@fedoraproject.org> - 5.0.3-10 
46d793
- convert to systemd
46d793
46d793
* Wed Mar 23 2011 Dan Horák <dan@danny.cz> - 5.0.3-9
46d793
- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient)
46d793
46d793
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.3-8
46d793
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
46d793
46d793
* Mon Jan 03 2011 Jon Ciesla <limb@jcomserv.net> - 5.0.3-7
46d793
- Rebuild for MySQL 5.5, with patch.
46d793
46d793
* Fri Nov 26 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-6
46d793
- Fixed previous fix of alternatives
46d793
- Changed initscript return value for non-configured service
46d793
- Director address is required in tray-monitor config now (#626490)
46d793
46d793
* Tue Nov 23 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-5
46d793
- Fixed alternatives for dbcheck (#650224)
46d793
- Moved director log file to /var/log/bacula/
46d793
- Changed permission of bacula-dir.conf (RHEL #651786)
46d793
- SQLite database is created as bacula user
46d793
46d793
* Tue Oct 19 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-4
46d793
- Fixed initscripts and changed default group of bacula-sd (#629697)
46d793
- Better warning for non-configured password (#556669)
46d793
46d793
* Wed Sep 29 2010 jkeating - 5.0.3-3
46d793
- Rebuilt for gcc bug 634757
46d793
46d793
* Thu Sep 23 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-2
46d793
- fixed openssl patch, thanks to Enrico Scholz
46d793
46d793
* Tue Aug 10 2010 Jon Ciesla <limb@jcomserv.net> - 5.0.3-1
46d793
- New upstream.
46d793
- DSOlink fix for same.
46d793
46d793
* Fri Jul 30 2010 Jon Ciesla <limb@jcomserv.net> - 5.0.2-8
46d793
- Patched configure scripts for Python 2.7.
46d793
46d793
* Fri Jul 30 2010 Jon Ciesla <limb@jcomserv.net> - 5.0.2-7
46d793
- Rebuild against Python 2.7.
46d793
46d793
* Wed Jul 14 2010 Dan Horák <dan@danny.cz> - 5.0.2-6
46d793
- rebuilt against wxGTK-2.8.11-2
46d793
46d793
* Thu Jun 3 2010 Jan Görig <jgorig@redhat.com> 5.0.2-5
46d793
- removed no longer needed sysconfig subpackage (#593307]
46d793
- build with $RPM_OPT_FLAGS, show compiler commands in build log (#575425)
46d793
  fixed by Ville Skyttä
46d793
- dropped tcp_wrappers build conditional (#537250)
46d793
- fixed location of query.xml in config file (#556480)
46d793
46d793
* Wed Jun 2 2010 Jan Görig <jgorig@redhat.com> 5.0.2-4
46d793
- initscripts improvements
46d793
- fixed consolehelper settings and menu entries
46d793
46d793
* Tue Jun 01 2010 Jon Ciesla 
46d793
- Corrected ssl patch, court. jgorig.
46d793
46d793
* Wed May 19 2010 Jon Ciesla 
46d793
- Corrected bat build, BZ 593149.
46d793
- Corrected ssl patch.
46d793
46d793
* Thu Apr 29 2010 Jon Ciesla 
46d793
- New upstream, 5.0.2.
46d793
- Updated openssl patch.
46d793
46d793
* Thu Feb 25 2010 Jon Ciesla 
46d793
- New upstream, 5.0.1.
46d793
46d793
* Mon Jan 25 2010 Jon Ciesla 
46d793
- New upstream, 5.0.0.