]> git.pld-linux.org Git - packages/bacula.git/blame - bacula.spec
- up to 5.2.2; rel 1; WARNING: incompatible with 5.0, needs conversion
[packages/bacula.git] / bacula.spec
CommitLineData
237bfacd 1# TODO:
b0473ed3 2# - update desktop files, think about su-wrappers for console (with .desktop files)
2b68b0cb 3# - package web admin
2007449a 4# - fix log file permissions
21838166 5# - check on upgrade (5.0 and 5.2 databases are NOT compatible)
2b68b0cb 6#
f2527d22 7# Conditional build:
6d11b02b 8%bcond_without console_wx # wx-console program
6d11b02b 9%bcond_without bat # bat Qt4 GUI
41bc1b6e
JK
10%bcond_without mysql # use MySQL
11%bcond_without pgsql # use PostgreSQL
41bc1b6e 12%bcond_without sqlite3 # use SQLite3
051f919c 13%bcond_without python # Python Scripting support, http://www.bacula.org/3.0.x-manuals/en/concepts/concepts/Python_Scripting.html
819cd4b0 14%bcond_without nagios # build nagios plugin
e979c70d 15%bcond_with rescue
6d11b02b 16%bcond_with sqlite3_sync_off # makes SQLite3 backend much faster, but less reliable
0eba139b 17
8ba087a4 18%if %{without sqlite3}
aeaed87e 19%undefine with_sqlite3_sync_off
20%endif
0eba139b 21
bb6e7dc5 22Summary: Bacula - The Network Backup Solution
6a00efc0 23Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
bb6e7dc5 24Name: bacula
3f7627bd
AM
25Version: 5.2.2
26Release: 1
ccb5f851 27License: AGPL v3
52504a6d 28Group: Networking/Utilities
b0473ed3 29Source0: http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
3f7627bd 30# Source0-md5: 227b88f56ae085da8f48823b220d4c87
b0473ed3 31Source1: http://downloads.sourceforge.net/bacula/%{name}-docs-%{version}.tar.bz2
3f7627bd 32# Source1-md5: 478273c0229f24d6690fdbedbeb50fa4
7ed9cb8e 33Source2: http://downloads.sourceforge.net/bacula/%{name}-rescue-5.0.1.tar.gz
34# Source2-md5: bb194aed8e204f54bf2f61d7e721f257
5ce18635
AM
35Source10: %{name}-dir.init
36Source11: %{name}-fd.init
37Source12: %{name}-sd.init
38Source13: %{name}.logrotate
4280e495
JK
39Source14: %{name}-dir.sysconfig
40Source15: %{name}-fd.sysconfig
41Source16: %{name}-sd.sysconfig
0a03f92d 42Patch0: %{name}-mtx-changer.patch
53a3431c
AM
43Patch1: %{name}-branding.patch
44Patch2: %{name}-conf.patch
45Patch3: %{name}-desktop.patch
46Patch4: make_catalog_backup-setup-home.patch
47Patch5: %{name}-mysql_thread.patch
bb6e7dc5 48URL: http://www.bacula.org/
0819f86f 49BuildRequires: acl-devel
50BuildRequires: autoconf
f2337569 51BuildRequires: automake
0819f86f 52BuildRequires: gettext-devel
f8f434ba 53%{?with_console_wx:BuildRequires: gtk+2-devel}
0819f86f 54BuildRequires: libcap-devel
2ddca527 55BuildRequires: libtool >= 2:2.2
7425cb9d
JK
56%if %{with rescue}
57BuildRequires: fakeroot
58%endif
f183f7ef 59BuildRequires: libwrap-devel
cc01862b 60BuildRequires: ncurses-devel
bb6e7dc5
AM
61BuildRequires: openssl-devel
62BuildRequires: pkgconfig
7425cb9d 63%if %{with python}
e979c70d 64BuildRequires: python-devel
b403dd64 65BuildRequires: python-modules
7425cb9d 66%endif
c19580f6 67%if %{with bat}
304bb97e 68BuildRequires: QtCore-devel
e3dd858d 69BuildRequires: QtGui-devel
63393bb7
AM
70BuildRequires: qt4-build >= 4.6.2
71BuildRequires: qt4-qmake >= 4.6.2
c19580f6 72%endif
4c7199dc
SP
73%{?with_mysql:BuildRequires: mysql-devel}
74%{?with_pgsql:BuildRequires: postgresql-devel}
bb6e7dc5 75BuildRequires: readline-devel
b403dd64 76BuildRequires: rpm-pythonprov
52504a6d 77BuildRequires: rpmbuild(macros) >= 1.268
cc01862b 78BuildRequires: sed >= 4.0
6d11b02b 79%{?with_sqlite3:BuildRequires: sqlite3-devel}
b403dd64 80BuildRequires: which
1376b552 81%if %{with console_wx}
7425cb9d 82BuildRequires: wxGTK2-unicode-devel >= 2.4.0
1376b552 83%endif
bb6e7dc5 84BuildRequires: zlib-devel
bb6e7dc5
AM
85BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
86
d5e827d3 87%define _sysconfdir /etc/%{name}
1a72afd2 88%define _localstatedir /var/lib/%{name}
d5e827d3 89%define nagiosplugindir %{_libdir}/nagios/plugins
bb6e7dc5 90
b8003eec 91# from 'the worst' to 'the best'
53a3431c 92%define databases %{?with_sqlite3:sqlite3} %{?with_mysql:mysql} %{?with_pgsql:postgresql}
41bc1b6e 93
b60fe5cb
ER
94# dependency section is broken. ccache usage is instead to makefiles
95%undefine with_ccache
96
bb6e7dc5
AM
97%description
98Bacula - It comes by night and sucks the vital essence from your
99computers.
100
101Bacula is a set of computer programs that permit you (or the system
102administrator) to manage backup, recovery, and verification of
103computer data across a network of computers of different kinds. In
104technical terms, it is a network client/server based backup program.
105Bacula is relatively easy to use and efficient, while offering many
106advanced storage management features that make it easy to find and
5ce18635 107recover lost or damaged files.
bb6e7dc5 108
192fbfcf
JR
109%description -l pl.UTF-8
110Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 111
192fbfcf
JR
112Bacula to zbiór programów umożliwiających administratorowi na
113zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
168306e6
ER
114sieci komputerów różnego rodzaju. W terminologii technicznej jest to
115program do kopii zapasowych pracujący w architekturze klient-serwer.
116Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
117wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
118ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
119plików.
cc01862b 120
5ce18635
AM
121%package common
122Summary: Common files for bacula package
6a00efc0 123Summary(pl.UTF-8): Pliki wspólne dla pakietu bacula
bb6e7dc5 124Group: Networking/Utilities
237bfacd
JK
125Requires(post): openssl-tools
126Requires(post): sed >= 4.0
1bd568e8 127Requires(post,preun): /sbin/chkconfig
65253ffd
JK
128Requires(postun): /usr/sbin/groupdel
129Requires(postun): /usr/sbin/userdel
1b0a2248 130Requires(pre): /usr/sbin/groupadd
131Requires(pre): /usr/sbin/useradd
abdcd1c5
JB
132Conflicts: bacula-console < 0:1.34.6
133Conflicts: bacula-dir < 0:1.34.6
134Conflicts: bacula-fd < 0:1.34.6
135Conflicts: bacula-sd < 0:1.34.6
bb6e7dc5 136
5ce18635 137%description common
bb6e7dc5
AM
138Bacula - It comes by night and sucks the vital essence from your
139computers.
140
141Bacula is a set of computer programs that permit you (or the system
142administrator) to manage backup, recovery, and verification of
143computer data across a network of computers of different kinds. In
144technical terms, it is a network client/server based backup program.
145Bacula is relatively easy to use and efficient, while offering many
146advanced storage management features that make it easy to find and
5ce18635 147recover lost or damaged files.
bb6e7dc5 148
192fbfcf
JR
149%description common -l pl.UTF-8
150Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 151
192fbfcf
JR
152Bacula to zbiór programów umożliwiających administratorowi na
153zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
168306e6
ER
154sieci komputerów różnego rodzaju. W terminologii technicznej jest to
155program do kopii zapasowych pracujący w architekturze klient-serwer.
156Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
157wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
158ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
159plików.
cc01862b 160
5ce18635
AM
161%package dir
162Summary: Bacula Director and Catalog services
6a00efc0 163Summary(pl.UTF-8): Usługi Bacula Director i Catalog
5ce18635 164Group: Networking/Utilities
237bfacd 165Requires(post): sed >= 4.0
74c2ad1c
ER
166Requires: %{name}-common = %{version}-%{release}
167Requires: bacula(db) = %{version}-%{release}
abdcd1c5 168Obsoletes: bacula-updatedb
bb6e7dc5 169
5ce18635
AM
170%description dir
171Bacula - It comes by night and sucks the vital essence from your
172computers.
173
174Bacula Director is the program that supervises all the backup,
175restore, verify and archive operations. The system administrator uses
176the Bacula Director to schedule backups and to recover files. Catalog
177services are comprised of the software programs responsible for
178maintaining the file indexes and volume databases for all files backed
179up. The Catalog services permit the System Administrator or user to
180quickly locate and restore any desired file, since it maintains a
7533d19f 181record of all Volumes used, all Jobs run, and all Files saved.
5ce18635 182
192fbfcf
JR
183%description dir -l pl.UTF-8
184Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 185
192fbfcf 186Bacula Director to program nadzorujący wszystkie operacje wykonywania
cc01862b 187kopii zapasowych, odzyskiwania, weryfikacji i archiwizowania.
192fbfcf
JR
188Administrator używa Bacula Directora do szeregowania kopii zapasowych
189oraz odzyskiwania plików. Usługi katalogowe (Catalog services) są
168306e6
ER
190używane przez programy odpowiedzialne za zarządzanie indeksami plików
191i bazą danych wolumenów dla wszystkich kopiowanych plików. Usługi
192katalogowe umożliwiają administratorowi lub użytkownikowi szybko
193zlokalizować i odtworzyć dowolny plik, ponieważ utrzymują rekord ze
194wszystkimi używanymi wolumenami, uruchomionymi zadaniami i zapisanymi
195plikami.
cc01862b 196
5ce18635
AM
197%package console
198Summary: Bacula Console
6a00efc0 199Summary(pl.UTF-8): Konsola Baculi
5ce18635 200Group: Networking/Utilities
237bfacd 201Requires(post): sed >= 4.0
74c2ad1c 202Requires: %{name}-common = %{version}-%{release}
5ce18635
AM
203
204%description console
205Bacula - It comes by night and sucks the vital essence from your
206computers.
207
208Bacula Console is the program that allows the administrator or user to
209communicate with the Bacula Director. This is the text only console
210interface.
211
192fbfcf
JR
212%description console -l pl.UTF-8
213Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 214
192fbfcf
JR
215Bacula Console to program umożliwiający administratorowi lub
216użytkownikowi komunikowanie się z programem Bacula Director. To jest
cc01862b
JB
217interfejs czysto tekstowy.
218
5ce18635 219%package console-wx
cc01862b 220Summary: Bacula wxWidgets Console
6a00efc0 221Summary(pl.UTF-8): Konsola Baculi oparta na wxWidgets
5ce18635 222Group: Networking/Utilities
237bfacd 223Requires(post): sed >= 4.0
74c2ad1c 224Requires: %{name}-common = %{version}-%{release}
5ce18635
AM
225
226%description console-wx
227Bacula - It comes by night and sucks the vital essence from your
228computers.
229
230Bacula Console is the program that allows the administrator or user to
cc01862b 231communicate with the Bacula Director. This is the wxWidgets GUI
5ce18635
AM
232interface.
233
192fbfcf
JR
234%description console-wx -l pl.UTF-8
235Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 236
192fbfcf
JR
237Bacula Console to program umożliwiający administratorowi lub
238użytkownikowi komunikowanie się z programem Bacula Director. To jest
cc01862b
JB
239interfejs graficzny oparty na wxWidgets.
240
304bb97e 241%package console-qt4
ece2f4c3
JB
242Summary: Bacula Qt4 Console
243Summary(pl.UTF-8): Konsola Baculi oparta na Qt4
304bb97e
AM
244Group: Networking/Utilities
245Requires(post): sed >= 4.0
63393bb7 246Requires: QtCore >= 4.6.2
74c2ad1c 247Requires: %{name}-common = %{version}-%{release}
304bb97e
AM
248
249%description console-qt4
250Bacula - It comes by night and sucks the vital essence from your
251computers.
252
253Bacula Console is the program that allows the administrator or user to
ece2f4c3 254communicate with the Bacula Director. This is the Qt4 GUI interface.
304bb97e
AM
255
256%description console-qt4 -l pl.UTF-8
257Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
258
259Bacula Console to program umożliwiający administratorowi lub
260użytkownikowi komunikowanie się z programem Bacula Director. To jest
ece2f4c3 261interfejs graficzny oparty na Qt4.
304bb97e 262
237bfacd
JK
263%package tray-monitor
264Summary: Bacula Tray Monitor
265Group: Networking/Utilities
237bfacd 266Requires(post): sed >= 4.0
74c2ad1c 267Requires: %{name}-common = %{version}-%{release}
237bfacd
JK
268
269%description tray-monitor
270Bacula - It comes by night and sucks the vital essence from your
271computers.
272
1b0a2248 273The Monitor program is typically an icon in the system tray. However,
274once the icon is expanded into a full window, the administrator or
275user can obtain status information about the Director or the backup
276status on the local workstation or any other Bacula daemon that is
277configured.
237bfacd 278
5ce18635
AM
279%package fd
280Summary: Bacula File services (Client)
6a00efc0 281Summary(pl.UTF-8): Usługi Bacula File (klient)
5ce18635 282Group: Networking/Utilities
237bfacd 283Requires(post): sed >= 4.0
74c2ad1c 284Requires: %{name}-common = %{version}-%{release}
5ce18635
AM
285
286%description fd
287Bacula - It comes by night and sucks the vital essence from your
288computers.
289
290Bacula File services (or Client program) is the software program that
291is installed on the machine to be backed up. It is specific to the
292operating system on which it runs and is responsible for providing the
293file attributes and data when requested by the Director. The File
294services are also responsible for the file system dependent part of
295restoring the file attributes and data during a recovery operation.
296This program runs as a daemon on the machine to be backed up, and in
297some of the documentation, the File daemon is referred to as the
298Client (for example in Bacula configuration file).
299
192fbfcf
JR
300%description fd -l pl.UTF-8
301Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
302
168306e6
ER
303Usługi Bacula File (inaczej program kliencki) to oprogramowanie, które
304instaluje się na maszynach, z których mają być wykonywane kopie
305zapasowe. Są one specyficzne dla systemu operacyjnego, pod którym
306działa dana maszyna i odpowiadają za dostarczanie atrybutów i danych
307plików na żądanie Directora. Usługi plikowe są także odpowiedzialne za
308zależną od systemu plików część odzyskiwania atrybutów i danych plików
309podczas operacji odzyskiwania danych. Program działa jako demon na
310maszynie, która ma być backupowana i w części dokumentacji demon ten
311(File) jest nazywany klientem (na przykład w pliku konfiguracyjnym
312Baculi).
cc01862b 313
5ce18635
AM
314%package sd
315Summary: Bacula Storage services
6a00efc0 316Summary(pl.UTF-8): Usługi Bacula Storage
5ce18635 317Group: Networking/Utilities
237bfacd 318Requires(post): sed >= 4.0
74c2ad1c 319Requires: %{name}-common = %{version}-%{release}
329073aa 320Conflicts: dvd+rw-tools <= 5.21.4.10.8-1
5ce18635
AM
321
322%description sd
323Bacula - It comes by night and sucks the vital essence from your
324computers.
325
326Bacula Storage services consist of the software programs that perform
327the storage and recovery of the file attributes and data to the
328physical backup media or volumes. In other words, the Storage daemon
329is responsible for reading and writing your tapes (or other storage
330media, e.g. files). The Storage services runs as a daemon on the
331machine that has the backup device (usually a tape drive).
bb6e7dc5 332
192fbfcf
JR
333%description sd -l pl.UTF-8
334Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 335
192fbfcf
JR
336Usługi Bacula Storage składają się z programów obsługujących
337przechowywanie danych oraz odzyskiwanie atrybutów i danych na
168306e6
ER
338fizycznych nośnikach lub wolumenach. Innymi słowy, demon Storage jest
339odpowiedzialny za odczyt i zapis taśm (lub innych nośników do
340przechowywania danych, np. plików). Usługi Storage działają jako demon
341na maszynie, która zawiera urządzenie backupowe (zwykle napęd
192fbfcf 342taśmowy).
cc01862b 343
41bc1b6e
JK
344%package db-postgresql
345Summary: PostgreSQL database driver for Bacula
346Summary(pl.UTF-8): Sterownik bazy PostgreSQL dla Baculi
347Group: Networking/Utilities
348Requires(post): /sbin/ldconfig
74c2ad1c
ER
349Requires: %{name}-common = %{version}-%{release}
350Provides: bacula(db) = %{version}-%{release}
168306e6 351Obsoletes: bacula(db)
41bc1b6e
JK
352
353%description db-postgresql
354PostgreSQL database driver for Bacula.
355
356%description db-postgresql -l pl.UTF-8
357Sterownik bazy PostgreSQL dla Baculi.
358
359%package db-mysql
360Summary: MySQL database driver for Bacula
361Summary(pl.UTF-8): Sterownik bazy MySQL dla Baculi
362Group: Networking/Utilities
363Requires(post): /sbin/ldconfig
74c2ad1c
ER
364Requires: %{name}-common = %{version}-%{release}
365Provides: bacula(db) = %{version}-%{release}
168306e6 366Obsoletes: bacula(db)
41bc1b6e
JK
367
368%description db-mysql
369MySQL database driver for Bacula.
370
371%description db-mysql -l pl.UTF-8
372Sterownik bazy MySQL dla Baculi.
373
374%package db-sqlite3
375Summary: SQLite database driver for Bacula
376Summary(pl.UTF-8): Sterownik bazy SQLite dla Baculi
377Group: Networking/Utilities
378Requires(post): /sbin/ldconfig
74c2ad1c
ER
379Requires: %{name}-common = %{version}-%{release}
380Provides: bacula(db) = %{version}-%{release}
168306e6 381Obsoletes: bacula(db)
41bc1b6e
JK
382
383%description db-sqlite3
384SQLite database driver for Bacula.
385
386%description db-sqlite3 -l pl.UTF-8
387Sterownik bazy SQLite dla Baculi.
388
5ce18635 389%package rescue
bb6e7dc5 390Summary: Bacula - The Network Backup Solution
6a00efc0 391Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
bb6e7dc5 392Group: Networking/Utilities
74c2ad1c 393Requires: %{name}-fd = %{version}-%{release}
bb6e7dc5
AM
394Requires: coreutils
395Requires: util-linux
bb6e7dc5
AM
396
397%description rescue
398Bacula - It comes by night and sucks the vital essence from your
399computers.
400
401Bacula is a set of computer programs that permit you (or the system
402administrator) to manage backup, recovery, and verification of
403computer data across a network of computers of different kinds. In
404technical terms, it is a network client/server based backup program.
405Bacula is relatively easy to use and efficient, while offering many
406advanced storage management features that make it easy to find and
cc01862b 407recover lost or damaged files.
bb6e7dc5
AM
408
409This package installs scripts for disaster recovery and builds rescue
1b0a2248 410floppy disk for bare metal recovery.
237bfacd 411
192fbfcf
JR
412%description rescue -l pl.UTF-8
413Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 414
192fbfcf
JR
415Bacula to zbiór programów umożliwiających administratorowi na
416zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
168306e6
ER
417sieci komputerów różnego rodzaju. W terminologii technicznej jest to
418program do kopii zapasowych pracujący w architekturze klient-serwer.
419Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
420wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
421ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
422plików.
423
424Ten pakiet zawiera skrypty do odtwarzania po awarii i tworzy dyskietkę
425ratunkowe do odtwarzania systemu od zera.
bb6e7dc5 426
b0473ed3
ER
427%package -n nagios-plugin-check_bacula
428Summary: Nagios plugin to check bacula
429Group: Networking
430Requires: nagios-common
431
432%description -n nagios-plugin-check_bacula
433Nagios plugin to check bacula.
434
77ce6669
AM
435# provided by various db libraries as a symlink
436%define _noautoreq libbaccats-%{version}.so
437
bb6e7dc5 438%prep
7425cb9d 439%setup -q -a 1
0a03f92d 440%patch0 -p1
53a3431c 441%patch1 -p1
cf0cfe65 442%patch2 -p1
ecb9bab1 443%patch3 -p1
e740cd49 444%patch4 -p1
c08d8c7a 445%patch5 -p1
aa6db71e 446
783dd8b1 447tar -xf %{SOURCE2} && ln -s bacula-rescue-* rescue
cf50297e 448
10650249
AM
449sed -i -e 's#bindir=.*#bindir=%{_bindir}#g' \
450 src/cats/create_* src/cats/delete_* src/cats/drop_* \
451 src/cats/grant_* src/cats/make_* src/cats/update_*
237bfacd 452sed -i -e 's/@hostname@/--hostname--/' src/*/*.conf.in
efb15923 453sed -i -e 's/@basename@/--hostname--/' src/*/*.conf.in
bb6e7dc5
AM
454
455%build
4a39c080
ER
456cd autoconf
457%{__aclocal} -I bacula-macros -I gettext-macros
458# $BUILD_DIR not seen by libtoolize, export it
459BUILD_DIR=.. %{__libtoolize}
460cd ..
cf50297e
AM
461%{__autoconf} --prepend-include=$(pwd)/autoconf autoconf/configure.in > configure
462
dae3a0bd
JK
463CPPFLAGS="-I/usr/include/ncurses -I%{_includedir}/readline"
464
53a3431c
AM
465WXCONFIG=%{_bindir}/wx-gtk2-unicode-config \
466QMAKE=%{_bindir}/qt4-qmake \
467%configure \
468 --with-scriptdir=%{_libexecdir}/%{name} \
469 %{?with_bat:--enable-bat} \
470 --disable-conio \
471 --enable-smartalloc \
472 %{?with_console_wx:--enable-bwx-console} \
53a3431c
AM
473 --enable-tray-monitor \
474 %{?with_python:--with-python} \
475 --with-readline \
476 --with-tcp-wrappers \
477 --with-working-dir=%{_var}/lib/%{name} \
478 --with-dump-email="root@localhost" \
479 --with-job-email="root@localhost" \
480 --with-smtp-host=localhost \
481 --with-pid-dir=/var/run \
482 --with-subsys-dir=/var/lock/subsys \
3f7627bd 483 --with-systemd=/lib/systemd/system \
53a3431c
AM
484 --enable-batch-insert \
485 %{?with_pgsql:--with-postgresql} \
486 %{?with_mysql:--with-mysql} \
487 %{?with_sqlite3:--with-sqlite3} \
488 %{?with_sqlite3_sync_off:--enable-extra-sqlite3-init="pragma synchronous=0;"} \
489 --with-dir-password="#FAKE-dir-password#" \
490 --with-fd-password="#FAKE-fd-password#" \
491 --with-sd-password="#FAKE-sd-password#" \
492 --with-mon-dir-password="#FAKE-mon-dir-password#" \
493 --with-mon-fd-password="#FAKE-mon-fd-password#" \
494 --with-mon-sd-password="#FAKE-mon-sd-password#" \
495 --with-openssl
bb6e7dc5 496
b8003eec
JK
497%if %{with bat}
498cd src/qt-console
499qmake-qt4 bat.pro
500cd ../..
501%endif
502
ffb67df4
AM
503%{__make} 2>&1 | tee log
504# check for build errors
505grep "Error in" log && exit 1
b8003eec 506
b0473ed3
ER
507%if %{with nagios}
508# nagios plugin
509%{__make} -C examples/nagios/check_bacula
510%endif
511
2b68b0cb
AM
512%if %{with rescue}
513cd rescue
514%configure \
515 --with-bacula=../
516cd linux/cdrom
517fakeroot %{__make}
518%endif
519
bb6e7dc5
AM
520%install
521rm -rf $RPM_BUILD_ROOT
237bfacd
JK
522install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,pam.d,sysconfig}
523install -d $RPM_BUILD_ROOT%{_sysconfdir}/rescue
3c0eac7c 524install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir},%{_bindir},/var/log/bacula}
bb6e7dc5
AM
525
526%{__make} install \
527 DESTDIR=$RPM_BUILD_ROOT
528
21838166
AM
529# create copies of make_catalog_backup for specific databases; zeore default one (will be ghost)
530for database in %{databases}; do
531 sed -e "s#default_db_type=.*#default_db_type=${database}#g" \
532 $RPM_BUILD_ROOT%{_libdir}/%{name}/make_catalog_backup \
533 > $RPM_BUILD_ROOT%{_libdir}/%{name}/make_${database}_catalog_backup
534 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/make_${database}_catalog_backup
535done
536:> $RPM_BUILD_ROOT%{_libdir}/%{name}/make_catalog_backup
537
5a48616e 538# we use db dependant (at compile time) shell script only
53a3431c 539rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/make_catalog_backup.pl
5a48616e 540
53a3431c 541## replace with empty file, replaced by ldconfig from each db-* package on intsall
21838166
AM
542rm $RPM_BUILD_ROOT%{_libdir}/libbaccats-%{version}.so
543touch $RPM_BUILD_ROOT%{_libdir}/libbaccats-%{version}.so
aa70ead8 544
8b9ffa69
ER
545install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-dir
546install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-fd
547install -p %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-sd
548cp -a %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir
549cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/bacula-dir
550cp -a %{SOURCE15} $RPM_BUILD_ROOT/etc/sysconfig/bacula-fd
551cp -a %{SOURCE16} $RPM_BUILD_ROOT/etc/sysconfig/bacula-sd
d907cd57 552
cacc89f5
AZ
553%if %{with console_wx}
554# tray-monitor is for regular users
a3c6e4e6 555#mv $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor $RPM_BUILD_ROOT%{_bindir}
cacc89f5 556
b0473ed3 557cp -a scripts/bacula.png $RPM_BUILD_ROOT%{_pixmapsdir}/bacula.png
a3c6e4e6 558#install src/tray-monitor/generic.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/bacula-tray-monitor.xpm
237bfacd 559sed -e 's/gnome-console/wx-console/g;s/Console/Wx Console/g' \
6b824a09 560 scripts/wxconsole.desktop.consolehelper > $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop
a3c6e4e6
AZ
561#sed -e 's#%{_sbindir}#%{_bindir}#' \
562# scripts/bacula-tray-monitor.desktop > $RPM_BUILD_ROOT%{_desktopdir}/bacula-tray-monitor.desktop
cacc89f5 563%endif
d907cd57 564
304bb97e 565%if %{with bat}
37bd6446
ER
566# qmake somewhy does not always create install_bins target. install our own the bin
567rm -f $RPM_BUILD_ROOT%{_sbindir}/bat
568libtool --silent --mode=install install src/qt-console/bat $RPM_BUILD_ROOT%{_bindir}
b0473ed3 569cp -a scripts/bat.desktop $RPM_BUILD_ROOT%{_desktopdir}
304bb97e
AM
570%endif
571
2b68b0cb 572%if %{with rescue}
d907cd57 573# install the rescue stuff, these are the rescue scripts
b0473ed3
ER
574cp -a rescue/linux/floppy/backup.etc.list $RPM_BUILD_ROOT%{_sysconfdir}/rescue
575cp -a rescue/linux/floppy/sfdisk.bz2 $RPM_BUILD_ROOT%{_sysconfdir}/rescue
576install -p rescue/linux/floppy/*_* $RPM_BUILD_ROOT%{_sysconfdir}/rescue
577install -p rescue/linux/floppy/getdiskinfo $RPM_BUILD_ROOT%{_sysconfdir}/rescue
2b68b0cb 578%endif
bb6e7dc5 579
3c0eac7c
AM
580touch $RPM_BUILD_ROOT/var/log/bacula/log
581
2f8e46d4
ER
582# install the updatedb scripts for older versions that last full release
583# 2.0 -> 3.0 : 10_to_11
21838166 584# 5.0 -> 5.2 : 12_to_14
2f8e46d4 585install -p updatedb/update_*_tables_10_to_11 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
21838166
AM
586install -p updatedb/update_*_tables_11_to_12 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
587install -p updatedb/update_*_tables_12_to_14 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
d907cd57 588
237bfacd
JK
589# place for site passwords
590touch $RPM_BUILD_ROOT%{_sysconfdir}/{dir-password,fd-password,sd-password}
591touch $RPM_BUILD_ROOT%{_sysconfdir}/{mon-dir-password,mon-fd-password,mon-sd-password}
bb6e7dc5 592
5a48616e 593mv $RPM_BUILD_ROOT%{_libexecdir}/%{name}/mtx-changer.conf $RPM_BUILD_ROOT%{_sysconfdir}/mtx-changer.conf
0a03f92d 594
1a72afd2
AM
595# some file changes
596rm -f $RPM_BUILD_ROOT%{_libexecdir}/%{name}/{gconsole,startmysql,stopmysql,bacula,bconsole,fd}
8ba087a4 597%if %{without console_wx}
1376b552 598rm -f $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop
1376b552 599%endif
1a72afd2
AM
600touch $RPM_BUILD_ROOT%{_sysconfdir}/.pw.sed
601
8ba087a4
ER
602rm $RPM_BUILD_ROOT%{_docdir}/bacula/ChangeLog
603rm $RPM_BUILD_ROOT%{_docdir}/bacula/INSTALL
604rm $RPM_BUILD_ROOT%{_docdir}/bacula/LICENSE
605rm $RPM_BUILD_ROOT%{_docdir}/bacula/README
606rm $RPM_BUILD_ROOT%{_docdir}/bacula/ReleaseNotes
607rm $RPM_BUILD_ROOT%{_docdir}/bacula/VERIFYING
608rm $RPM_BUILD_ROOT%{_docdir}/bacula/technotes
609
7545e94f
JK
610# startup scripts, those in /etc/rc.d/init.d are better
611rm $RPM_BUILD_ROOT%{_sbindir}/bacula
612rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/bacula-ctl-*
613
41bc1b6e 614# unsupported
8fb2ca23 615rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/btraceback.mdb
41bc1b6e 616
7545e94f
JK
617# rename to avoid possible conflicts
618mv $RPM_BUILD_ROOT%{_sbindir}/{,bacula-}dbcheck
619mv $RPM_BUILD_ROOT%{_mandir}/man8/{,bacula-}dbcheck.8.gz
620
621# no -devel files packaged, so this is also useless
622rm $RPM_BUILD_ROOT%{_libdir}/libbac{,cfg,find,py,sql}.{so,la}
623
b0473ed3 624%if %{with nagios}
819cd4b0 625install -d $RPM_BUILD_ROOT%{nagiosplugindir}
b0473ed3
ER
626%{__make} -C examples/nagios/check_bacula install \
627 sbindir=%{nagiosplugindir} \
403b68c1 628 INSTALL_PROGRAM="libtool --mode=install install -p" \
b0473ed3
ER
629 DESTDIR=$RPM_BUILD_ROOT
630%endif
7545e94f 631
f2337569
JB
632%clean
633rm -rf $RPM_BUILD_ROOT
634
5ce18635 635%pre common
fbc59152
ER
636%groupadd -P %{name}-common -g 136 -r -f bacula
637%useradd -P %{name}-common -u 136 -r -d /var/lib/bacula -s /bin/false -c "Bacula User" -g bacula bacula
5ce18635 638
b8003eec 639%define update_configs \
210f992b 640echo "Updating bacula passwords and names..." | %banner -a %{name} \
5a48616e 641cd %{_sysconfdir} \
2f8e46d4
ER
642for f in *-password; do \
643 if [ ! -s $f ]; then \
b8003eec
JK
644 openssl rand -base64 33 > $f \
645 fi \
2f8e46d4
ER
646 p=$(cat $f) \
647 for cf in *.conf *.conf.rpmnew; do \
b8003eec
JK
648 [ -f $cf ] && sed -i -e"s:#FAKE-$f#:$p:" "$cf" || : \
649 done \
650done \
2f8e46d4 651for cf in *.conf *.conf.rpmnew; do \
b8003eec
JK
652 [ -f $cf ] && sed -i -e"s:--hostname--:`hostname`:" "$cf" || : \
653done
654
237bfacd 655%post common
0a03f92d 656/sbin/ldconfig
b8003eec 657%update_configs
237bfacd 658
5ce18635 659%postun common
0a03f92d 660/sbin/ldconfig
28c9f5d0
AM
661if [ "$1" = "0" ]; then
662 %userremove bacula
663 %groupremove bacula
664fi
5ce18635 665
b8003eec
JK
666%triggerpostun dir -- %{name}-dir < 5.0
667%banner bacula-dir -t3 <<EOF
668You have upgraded from an older version of Bacula director.
bb6e7dc5 669
b8003eec
JK
670You will probably need to call %{_libexecdir}/%{name}/update_bacula_tables
671script to upgrade the database.
672EOF
237bfacd 673
b8003eec
JK
674%post dir
675%update_configs
1a72afd2 676/sbin/chkconfig --add bacula-dir
52504a6d 677%service bacula-dir restart "Bacula Director daemon"
bb6e7dc5 678
5ce18635 679%preun dir
1a72afd2 680if [ "$1" = "0" ]; then
52504a6d 681 %service bacula-dir stop
9aa69d51 682 /sbin/chkconfig --del bacula-dir
1a72afd2 683fi
bb6e7dc5 684
5ce18635 685%post fd
b8003eec 686%update_configs
1a72afd2 687/sbin/chkconfig --add bacula-fd
52504a6d 688%service bacula-fd restart "Bacula File daemon"
bb6e7dc5 689
5ce18635 690%preun fd
1a72afd2 691if [ "$1" = "0" ]; then
52504a6d 692 %service bacula-fd stop
9aa69d51 693 /sbin/chkconfig --del bacula-fd
1a72afd2 694fi
5ce18635
AM
695
696%post sd
b8003eec 697%update_configs
1a72afd2 698/sbin/chkconfig --add bacula-sd
52504a6d 699%service bacula-sd restart "Bacula Storage daemon"
bb6e7dc5 700
5ce18635 701%preun sd
1a72afd2 702if [ "$1" = "0" ]; then
52504a6d 703 %service bacula-sd stop
9aa69d51 704 /sbin/chkconfig --del bacula-sd
1a72afd2 705fi
5ce18635
AM
706
707%pre console
708if [ -e %{_sysconfdir}/console.conf -a ! -e %{_sysconfdir}/bconsole.conf ]; then
9aa69d51 709 mv %{_sysconfdir}/console.conf %{_sysconfdir}/bconsole.conf
bb6e7dc5
AM
710fi
711
237bfacd 712%post console
b8003eec 713%update_configs
237bfacd
JK
714
715%post console-wx
b8003eec 716%update_configs
237bfacd 717
827db798 718%triggerpostun common -- %{name}-common < 5.0.1-2
44069e22 719find %{_sysconfdir}/bat.conf* -perm /007 -print0 2>/dev/null | xargs -0 -r chmod 600 || :
3a5cd5d7 720
304bb97e 721%post console-qt4
b8003eec 722%update_configs
304bb97e 723
237bfacd 724%post tray-monitor
b8003eec 725%update_configs
bb6e7dc5 726
bb6e7dc5
AM
727%post rescue
728# link our current installed conf file to the rescue directory
f2337569 729ln -sf %{_sysconfdir}/bacula-fd.conf %{_sysconfdir}/rescue/bacula-fd.conf
bb6e7dc5
AM
730
731# run getdiskinfo
732echo "Creating rescue files for this system..."
d907cd57 733cd %{_sysconfdir}/rescue
bb6e7dc5
AM
734./getdiskinfo
735
736%preun rescue
737# remove the files created after the initial rpm installation
f2337569
JB
738if [ "$1" = "0" ]; then
739 rm -f %{_sysconfdir}/rescue/bacula-fd.conf
740 rm -f %{_sysconfdir}/rescue/partition.*
741 rm -f %{_sysconfdir}/rescue/format.*
742 rm -f %{_sysconfdir}/rescue/mount_drives
743 rm -f %{_sysconfdir}/rescue/start_network
744 rm -f %{_sysconfdir}/rescue/sfdisk
745 rm -rf %{_sysconfdir}/rescue/diskinfo/*
746fi
bb6e7dc5 747
41bc1b6e
JK
748%define db_post() \
749/sbin/ldconfig \
b0473ed3 750for name in "create database" "drop tables" "drop database" "grant privileges" "make tables" "update tables"; do \
41bc1b6e
JK
751 prefix="${name%% *}" \
752 suffix="${name#* }" \
b0473ed3 753 ln -sf "${prefix}_%{1}_${suffix}" %{_libexecdir}/%{name}/"${prefix}_bacula_${suffix}" || : \
dae3a0bd 754done \
5a48616e 755ln -sf "make_%{1}_catalog_backup" %{_libexecdir}/%{name}/make_catalog_backup || : \
21838166 756ln -sf libbaccats-%{1}-%{version}.so %{_libdir}/libbaccats-%{version}.so || : \
dae3a0bd
JK
757%service bacula-dir restart "Bacula Director daemon"
758
41bc1b6e
JK
759%post db-postgresql
760%db_post postgresql
761
dfef965d 762%postun db-postgresql -p /sbin/ldconfig
dae3a0bd 763
41bc1b6e
JK
764%post db-mysql
765%db_post mysql
766
dfef965d 767%postun db-mysql -p /sbin/ldconfig
dae3a0bd 768
41bc1b6e
JK
769%post db-sqlite3
770%db_post sqlite3
771
dfef965d 772%postun db-sqlite3 -p /sbin/ldconfig
dae3a0bd 773
5ce18635
AM
774%files common
775%defattr(644,root,root,755)
237bfacd 776%doc LICENSE
051f919c 777%{?with_python:%doc examples/python}
1a72afd2 778%dir %{_sysconfdir}
1b0a2248 779%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*-password
7545e94f
JK
780# do not remove bsmtp from files. Fix build if it is not installed.
781%attr(755,root,root) %{_sbindir}/bsmtp
7425cb9d 782%attr(755,root,root) %{_sbindir}/btraceback
6f3f1b78
JK
783%attr(755,root,root) %{_libdir}/libbac-5*.so
784%attr(755,root,root) %{_libdir}/libbaccfg-5*.so
785%attr(755,root,root) %{_libdir}/libbacfind-5*.so
786%attr(755,root,root) %{_libdir}/libbacpy-5*.so
21838166 787%attr(755,root,root) %{_libdir}/libbacsql-5*.so
c74b041d 788%{_mandir}/man8/bacula.8*
7425cb9d
JK
789%{_mandir}/man1/bsmtp.1*
790%{_mandir}/man8/btraceback.8*
5ce18635 791%dir %{_libexecdir}/%{name}
1376b552 792%{_libexecdir}/%{name}/btraceback.dbx
5ce18635 793%{_libexecdir}/%{name}/btraceback.gdb
7545e94f 794%{_libexecdir}/%{name}/bacula_config
d6dbe33c 795%attr(770,root,bacula) %dir %{_localstatedir}
3c0eac7c
AM
796%attr(750,bacula,logs) %dir /var/log/bacula
797%attr(640,bacula,logs) %ghost /var/log/bacula/log
5ce18635
AM
798
799%files dir
bb6e7dc5 800%defattr(644,root,root,755)
237bfacd 801%doc ChangeLog CheckList ReleaseNotes kernstodo LICENSE
28647453 802#%doc examples %{name}-docs-%{version}/manual/{*.pdf,bacula}
cc515592 803%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-dir.conf
1a72afd2 804%ghost %{_sysconfdir}/.pw.sed
28c9f5d0 805%attr(640,root,root) %config(noreplace) /etc/logrotate.d/bacula-dir
1a72afd2 806%attr(754,root,root) /etc/rc.d/init.d/bacula-dir
cd23ba7c 807%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-dir
5ff0b6a3 808%attr(755,root,root) %{_sbindir}/bacula-dir
7545e94f
JK
809%attr(755,root,root) %{_sbindir}/bregex
810%attr(755,root,root) %{_sbindir}/bwild
811%attr(755,root,root) %{_sbindir}/bacula-dbcheck
79d0fef6 812%{_mandir}/man8/bacula-dir.8*
7545e94f 813%{_mandir}/man8/bacula-dbcheck.8*
3f7627bd
AM
814%{_mandir}/man8/bregex.8*
815%{_mandir}/man8/bwild.8*
79d0fef6 816%{_libexecdir}/%{name}/query.sql
5a48616e 817%attr(755,root,root) %{_libexecdir}/%{name}/delete_catalog_backup
41bc1b6e
JK
818
819%files db-postgresql
820%defattr(644,root,root,755)
821%attr(755,root,root) %{_libexecdir}/%{name}/create_postgresql_database
822%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_database
823%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_tables
824%attr(755,root,root) %{_libexecdir}/%{name}/grant_postgresql_privileges
825%attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_tables
826%attr(755,root,root) %{_libexecdir}/%{name}/update_postgresql_*
21838166 827%attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_catalog_backup
53a3431c 828%attr(755,root,root) %{_libdir}/libbaccats-postgresql-5*.so
41bc1b6e 829
21838166 830%ghost %attr(755,root,root) %{_libdir}/libbaccats-5*.so
41bc1b6e
JK
831%ghost %{_libexecdir}/%{name}/create_bacula_database
832%ghost %{_libexecdir}/%{name}/drop_bacula_tables
833%ghost %{_libexecdir}/%{name}/drop_bacula_database
834%ghost %{_libexecdir}/%{name}/grant_bacula_privileges
835%ghost %{_libexecdir}/%{name}/make_bacula_tables
836%ghost %{_libexecdir}/%{name}/update_bacula_tables
21838166 837%ghost %{_libexecdir}/%{name}/make_catalog_backup
41bc1b6e
JK
838
839%files db-mysql
840%defattr(644,root,root,755)
aeaed87e 841%attr(755,root,root) %{_libexecdir}/%{name}/create_mysql_database
842%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_database
843%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_tables
844%attr(755,root,root) %{_libexecdir}/%{name}/grant_mysql_privileges
845%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_tables
846%attr(755,root,root) %{_libexecdir}/%{name}/update_mysql_*
21838166 847%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_catalog_backup
53a3431c 848%attr(755,root,root) %{_libdir}/libbaccats-mysql-5*.so
41bc1b6e 849
21838166 850%ghost %attr(755,root,root) %{_libdir}/libbaccats-5*.so
41bc1b6e
JK
851%ghost %{_libexecdir}/%{name}/create_bacula_database
852%ghost %{_libexecdir}/%{name}/drop_bacula_tables
853%ghost %{_libexecdir}/%{name}/drop_bacula_database
854%ghost %{_libexecdir}/%{name}/grant_bacula_privileges
855%ghost %{_libexecdir}/%{name}/make_bacula_tables
856%ghost %{_libexecdir}/%{name}/update_bacula_tables
21838166 857%ghost %{_libexecdir}/%{name}/make_catalog_backup
41bc1b6e
JK
858
859%files db-sqlite3
860%defattr(644,root,root,755)
861%attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite3_database
862%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_database
863%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_tables
864%attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite3_privileges
865%attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_tables
866%attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite3_*
21838166 867%attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_catalog_backup
53a3431c 868%attr(755,root,root) %{_libdir}/libbaccats-sqlite3-5*.so
41bc1b6e 869
21838166 870%ghost %attr(755,root,root) %{_libdir}/libbaccats-5*.so
41bc1b6e
JK
871%ghost %{_libexecdir}/%{name}/create_bacula_database
872%ghost %{_libexecdir}/%{name}/drop_bacula_tables
873%ghost %{_libexecdir}/%{name}/drop_bacula_database
874%ghost %{_libexecdir}/%{name}/grant_bacula_privileges
875%ghost %{_libexecdir}/%{name}/make_bacula_tables
876%ghost %{_libexecdir}/%{name}/update_bacula_tables
21838166 877%ghost %{_libexecdir}/%{name}/make_catalog_backup
41bc1b6e 878
5ce18635
AM
879%files fd
880%defattr(644,root,root,755)
237bfacd 881%doc LICENSE
efb15923 882%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-fd.conf
1a72afd2 883%attr(754,root,root) /etc/rc.d/init.d/bacula-fd
cd23ba7c 884%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-fd
5ff0b6a3 885%attr(755,root,root) %{_sbindir}/bacula-fd
7545e94f 886%attr(755,root,root) %{_libdir}/bpipe-fd.so
79d0fef6 887%{_mandir}/man8/bacula-fd.8*
5ce18635
AM
888
889%files sd
890%defattr(644,root,root,755)
237bfacd 891%doc LICENSE
efb15923 892%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-sd.conf
893%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mtx-changer.conf
1a72afd2 894%attr(754,root,root) /etc/rc.d/init.d/bacula-sd
cd23ba7c 895%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-sd
5ff0b6a3
AM
896%attr(755,root,root) %{_sbindir}/bacula-sd
897%attr(755,root,root) %{_sbindir}/bcopy
898%attr(755,root,root) %{_sbindir}/bextract
899%attr(755,root,root) %{_sbindir}/bls
900%attr(755,root,root) %{_sbindir}/bscan
901%attr(755,root,root) %{_sbindir}/btape
329073aa 902%attr(755,root,root) %{_libexecdir}/%{name}/mtx-changer
150db1c2 903%attr(755,root,root) %{_libexecdir}/%{name}/disk-changer
329073aa 904%attr(755,root,root) %{_libexecdir}/%{name}/dvd-handler
5ce18635 905%{_mandir}/man8/bacula-sd.8*
7425cb9d
JK
906%{_mandir}/man8/bcopy.8*
907%{_mandir}/man8/bextract.8*
908%{_mandir}/man8/bls.8*
909%{_mandir}/man8/bscan.8*
910%{_mandir}/man8/btape.8*
5ce18635
AM
911
912%files console
bb6e7dc5 913%defattr(644,root,root,755)
237bfacd 914%doc LICENSE
efb15923 915%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bconsole.conf
1a72afd2 916%attr(755,root,root) %{_sbindir}/bconsole
7425cb9d 917%{_mandir}/man8/bconsole.8*
5ce18635 918
1376b552 919%if %{with console_wx}
5ce18635
AM
920%files console-wx
921%defattr(644,root,root,755)
237bfacd 922%doc LICENSE
1a72afd2 923%{_pixmapsdir}/%{name}.png
237bfacd 924%{_desktopdir}/bacula-wx.desktop
ffb67df4
AM
925%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwx-console.conf
926%attr(755,root,root) %{_sbindir}/bwx-console
e3dd858d 927%{_mandir}/man1/bacula-bwxconsole.1*
1376b552 928%endif
bb6e7dc5 929
304bb97e
AM
930%if %{with bat}
931%files console-qt4
932%defattr(644,root,root,755)
933%doc LICENSE
934%{_pixmapsdir}/%{name}.png
935%{_desktopdir}/bat.desktop
2264d68c 936# Do not make this file world-readable or any user will get full access to the
b0473ed3 937# backup system
2264d68c
JK
938%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bat.conf
939%attr(755,root,root) %{_bindir}/bat
304bb97e 940%{_mandir}/man1/bat.1*
7545e94f 941%{_docdir}/%{name}
304bb97e
AM
942%endif
943
cacc89f5 944%if %{with console_wx}
237bfacd
JK
945%files tray-monitor
946%defattr(644,root,root,755)
947%doc LICENSE
8ba087a4
ER
948%attr(755,root,root) %{_sbindir}/bacula-tray-monitor
949#%{_pixmapsdir}/%{name}-tray-monitor.xpm
950#%{_desktopdir}/%{name}-tray-monitor.desktop
cd23ba7c 951%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tray-monitor.conf
7425cb9d 952%{_mandir}/man1/bacula-tray-monitor.1*
cacc89f5 953%endif
237bfacd 954
2b68b0cb 955%if %{with rescue}
bb6e7dc5
AM
956%files rescue
957%defattr(644,root,root,755)
c741b8e0 958%doc LICENSE
4280e495 959%dir %{_sysconfdir}/rescue
1b0a2248 960%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/backup.etc.list
961%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/bacula-fd
962%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/format_floppy
963%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/getdiskinfo
964%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/make_rescue_disk
965%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_bacula
966%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_etc
967%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_grub
968%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_lilo
969%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/sfdisk.bz2
2b68b0cb 970%endif
b0473ed3
ER
971
972%if %{with nagios}
973%files -n nagios-plugin-check_bacula
974%defattr(644,root,root,755)
975%attr(755,root,root) %{nagiosplugindir}/check_bacula
976%endif
This page took 0.290808 seconds and 4 git commands to generate.