Update spec and readme for 5.2.4

This commit is contained in:
Simone Caronni 2012-01-18 17:33:53 +01:00
parent 740f709300
commit e95438fe75
2 changed files with 41 additions and 32 deletions

View File

@ -1,41 +1,44 @@
======== Features ======== Features
- Standard components: director, storage, client, docs, bconsole. - Components: bat, bconsole, bacula-tray-monitor, director, storage daemon,
- Graphical components: bat, bacula-tray-monitor (where supported). client, docs, Nagios plugin.
- Nagios plugin.
- HTML/PDF docs. - HTML/PDF docs.
- File Daemon bpipe-fd plugin. - File Daemon bpipe-fd plugin.
- POSIX.1e capabilities for File Daemon. - POSIX.1e capabilities for File Daemon.
- Systemd for Fedora 15+. - Systemd for Fedora 15+.
- GZIP/LZO compression (where supported). - LZO compression.
- Static uid/gid of 133 (see "setup" package). - Static uid/gid of 133 (see "setup" package).
- No usermode / fedora-usermgmt stuff in the console packages. - No usermode / fedora-usermgmt stuff in the packages.
======== PostgreSQL, MySQL and SQLite databases ======== PostgreSQL, MySQL and SQLite databases
Bacula director supports different databases backends, if you want to switch Bacula director supports different databases backends, if you want to switch
away from the default PostgreSQL one you need to change the "libbaccats" (the away from the default PostgreSQL one you need to change the "libbaccats" (the
catalogue library) symlink to the real library. The following examples use catalogue library) symlink to the real library. The following examples uses
version 5.2.3, substitute it with the version you have installed. version 5.2.4, substitute them with you running version.
Show the current database backend: Show the current database backend:
# update-alternatives --display libbaccats-5.2.3.so # alternatives --display libbaccats-5.2.4.so
libbaccats-5.2.3.so - status is auto. libbaccats-5.2.4.so - status is auto.
link currently points to /usr/lib64/libbaccats-postgresql-5.2.3.so link currently points to /usr/lib64/libbaccats-postgresql-5.2.4.so
/usr/lib64/libbaccats-mysql-5.2.3.so - priority 50 /usr/lib64/libbaccats-mysql-5.2.4.so - priority 50
/usr/lib64/libbaccats-sqlite3-5.2.3.so - priority 40 slave libbaccats.so: /usr/lib64/libbaccats-5.2.4.so
/usr/lib64/libbaccats-postgresql-5.2.3.so - priority 60 /usr/lib64/libbaccats-sqlite3-5.2.4.so - priority 40
Current `best' version is /usr/lib64/libbaccats-postgresql-5.2.3.so. slave libbaccats.so: /usr/lib64/libbaccats-5.2.4.so
/usr/lib64/libbaccats-postgresql-5.2.4.so - priority 60
slave libbaccats.so: /usr/lib64/libbaccats-5.2.4.so
Current `best' version is /usr/lib64/libbaccats-postgresql-5.2.4.so.
To change to a different backend (i.e. MySQL), issue the following command: To change to a different backend (i.e. MySQL), issue the following command:
# update-alternatives --set libbaccats-5.2.3.so /usr/lib64/libbaccats-mysql-5.2.3.so # update-alternatives --set libbaccats-5.2.4.so /usr/lib64/libbaccats-mysql-5.2.4.so
======== Quick installation guide with the default PostgreSQL backend ======== Quick installation guide with the default PostgreSQL backend
Perform the following commands to install Bacula with its default configuration Perform the following commands as root to install Bacula with its default
and all daemons and consoles in one server. configuration and all daemons and consoles in one server. Tune your commands
accordingly.
1) Install packages 1) Install packages
@ -48,10 +51,10 @@ and all daemons and consoles in one server.
# systemctl enable postgresql.service # systemctl enable postgresql.service
# systemctl start postgresql.service # systemctl start postgresql.service
# su - postgres # su - postgres
$ cd /usr/libexec/bacula # cd /usr/libexec/bacula
$ ./create_bacula_database # ./create_bacula_database
$ ./make_bacula_tables # ./make_bacula_tables
$ ./grant_bacula_privileges # ./grant_bacula_privileges
3) Change passwords in /etc/bacula/*conf with something you like 3) Change passwords in /etc/bacula/*conf with something you like

View File

@ -2,8 +2,8 @@
%global username bacula %global username bacula
Name: bacula Name: bacula
Version: 5.2.3 Version: 5.2.4
Release: 8%{?dist} Release: 1%{?dist}
Summary: Cross platform network backup for Linux, Unix, Mac and Windows Summary: Cross platform network backup for Linux, Unix, Mac and Windows
# See LICENSE for details # See LICENSE for details
License: GPLv2 with exceptions License: GPLv2 with exceptions
@ -357,9 +357,9 @@ make install DESTDIR=%{buildroot}
# Nagios plugin # Nagios plugin
%{__install} -m 755 -D examples/nagios/check_bacula/.libs/check_bacula %{buildroot}%{_libdir}/nagios/plugins/check_bacula %{__install} -m 755 -D examples/nagios/check_bacula/.libs/check_bacula %{buildroot}%{_libdir}/nagios/plugins/check_bacula
# Catalogue dummy # Remove catalogue backend symlinks
rm -f %{buildroot}%{_libdir}/libbaccats.so
rm -f %{buildroot}%{_libdir}/libbaccats-%{version}.so rm -f %{buildroot}%{_libdir}/libbaccats-%{version}.so
%{__install} -m 755 src/cats/.libs/libbaccats-%{version}.so %{buildroot}%{_libdir}/
# Sample query file # Sample query file
%{__install} -m 640 -D examples/sample-query.sql %{buildroot}%{_sysconfdir}/bacula/query.sql %{__install} -m 640 -D examples/sample-query.sql %{buildroot}%{_sysconfdir}/bacula/query.sql
@ -438,9 +438,12 @@ rm -rf %{buildroot}
%post libs %post libs
/usr/sbin/alternatives --install %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-mysql-%{version}.so 50 /usr/sbin/alternatives --install %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-mysql-%{version}.so 50 \
/usr/sbin/alternatives --install %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-sqlite3-%{version}.so 40 --slave %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-%{version}.so
/usr/sbin/alternatives --install %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-postgresql-%{version}.so 60 /usr/sbin/alternatives --install %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-sqlite3-%{version}.so 40 \
--slave %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-%{version}.so
/usr/sbin/alternatives --install %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-postgresql-%{version}.so 60 \
--slave %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-%{version}.so
/sbin/ldconfig /sbin/ldconfig
@ -451,6 +454,7 @@ if [ "$1" = 0 ]; then
/usr/sbin/alternatives --remove libbaccats-%{version}.so %{_libdir}/libbaccats-postgresql-%{version}.so /usr/sbin/alternatives --remove libbaccats-%{version}.so %{_libdir}/libbaccats-postgresql-%{version}.so
fi fi
/sbin/ldconfig /sbin/ldconfig
exit 0
%pre common %pre common
@ -626,8 +630,6 @@ fi
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/libbac-%{version}.so %{_libdir}/libbac-%{version}.so
%{_libdir}/libbac.so %{_libdir}/libbac.so
%{_libdir}/libbaccats.so
%attr(755,root,root) %ghost %{_libdir}/libbaccats-%{version}.so
%{_libdir}/libbaccats-mysql-%{version}.so %{_libdir}/libbaccats-mysql-%{version}.so
%{_libdir}/libbaccats-mysql.so %{_libdir}/libbaccats-mysql.so
%{_libdir}/libbaccats-postgresql-%{version}.so %{_libdir}/libbaccats-postgresql-%{version}.so
@ -795,6 +797,10 @@ fi
%changelog %changelog
* Wed Jan 18 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-1
- Update to 5.2.4, rework libbaccats installation as they have
fixed the soname library problem.
* Sun Jan 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-8 * Sun Jan 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-8
- Fix tray monitor desktop file. - Fix tray monitor desktop file.