]> git.pld-linux.org Git - packages/bacula.git/blame - bacula.spec
- started update to 5.2.1; dbi is gone; support for multiple databases is base in...
[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
2b68b0cb 5#
f2527d22 6# Conditional build:
6d11b02b 7%bcond_without console_wx # wx-console program
53a3431c 8%bcond_without console_gnome # gnome console
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
53a3431c
AM
25Version: 5.2.1
26Release: 0.1
ccb5f851 27License: AGPL v3
52504a6d 28Group: Networking/Utilities
b0473ed3 29Source0: http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
53a3431c 30# Source0-md5: 793da9f89fc5e024b6b95eb16a3120e5
b0473ed3 31Source1: http://downloads.sourceforge.net/bacula/%{name}-docs-%{version}.tar.bz2
53a3431c 32# Source1-md5: d4db495def9e7843bcca8aff2d4d493b
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
846b23db
JB
70BuildRequires: qt4-build >= 4.3.3-3
71BuildRequires: qt4-qmake >= 4.3.3-3
b403dd64 72#BuildRequires: qwt-devel >= 5.0.2-2
c19580f6 73%endif
4c7199dc
SP
74%{?with_mysql:BuildRequires: mysql-devel}
75%{?with_pgsql:BuildRequires: postgresql-devel}
bb6e7dc5 76BuildRequires: readline-devel
b403dd64 77BuildRequires: rpm-pythonprov
52504a6d 78BuildRequires: rpmbuild(macros) >= 1.268
cc01862b 79BuildRequires: sed >= 4.0
6d11b02b 80%{?with_sqlite3:BuildRequires: sqlite3-devel}
b403dd64 81BuildRequires: which
1376b552 82%if %{with console_wx}
7425cb9d 83BuildRequires: wxGTK2-unicode-devel >= 2.4.0
1376b552 84%endif
bb6e7dc5 85BuildRequires: zlib-devel
bb6e7dc5
AM
86BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
87
d5e827d3 88%define _sysconfdir /etc/%{name}
1a72afd2 89%define _localstatedir /var/lib/%{name}
d5e827d3 90%define nagiosplugindir %{_libdir}/nagios/plugins
bb6e7dc5 91
b8003eec 92# from 'the worst' to 'the best'
53a3431c 93%define databases %{?with_sqlite3:sqlite3} %{?with_mysql:mysql} %{?with_pgsql:postgresql}
41bc1b6e 94
b60fe5cb
ER
95# dependency section is broken. ccache usage is instead to makefiles
96%undefine with_ccache
97
bb6e7dc5
AM
98%description
99Bacula - It comes by night and sucks the vital essence from your
100computers.
101
102Bacula is a set of computer programs that permit you (or the system
103administrator) to manage backup, recovery, and verification of
104computer data across a network of computers of different kinds. In
105technical terms, it is a network client/server based backup program.
106Bacula is relatively easy to use and efficient, while offering many
107advanced storage management features that make it easy to find and
5ce18635 108recover lost or damaged files.
bb6e7dc5 109
192fbfcf
JR
110%description -l pl.UTF-8
111Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 112
192fbfcf
JR
113Bacula to zbiór programów umożliwiających administratorowi na
114zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
168306e6
ER
115sieci komputerów różnego rodzaju. W terminologii technicznej jest to
116program do kopii zapasowych pracujący w architekturze klient-serwer.
117Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
118wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
119ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
120plików.
cc01862b 121
5ce18635
AM
122%package common
123Summary: Common files for bacula package
6a00efc0 124Summary(pl.UTF-8): Pliki wspólne dla pakietu bacula
bb6e7dc5 125Group: Networking/Utilities
237bfacd
JK
126Requires(post): openssl-tools
127Requires(post): sed >= 4.0
1bd568e8 128Requires(post,preun): /sbin/chkconfig
65253ffd
JK
129Requires(postun): /usr/sbin/groupdel
130Requires(postun): /usr/sbin/userdel
1b0a2248 131Requires(pre): /usr/sbin/groupadd
132Requires(pre): /usr/sbin/useradd
abdcd1c5
JB
133Conflicts: bacula-console < 0:1.34.6
134Conflicts: bacula-dir < 0:1.34.6
135Conflicts: bacula-fd < 0:1.34.6
136Conflicts: bacula-sd < 0:1.34.6
bb6e7dc5 137
5ce18635 138%description common
bb6e7dc5
AM
139Bacula - It comes by night and sucks the vital essence from your
140computers.
141
142Bacula is a set of computer programs that permit you (or the system
143administrator) to manage backup, recovery, and verification of
144computer data across a network of computers of different kinds. In
145technical terms, it is a network client/server based backup program.
146Bacula is relatively easy to use and efficient, while offering many
147advanced storage management features that make it easy to find and
5ce18635 148recover lost or damaged files.
bb6e7dc5 149
192fbfcf
JR
150%description common -l pl.UTF-8
151Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 152
192fbfcf
JR
153Bacula to zbiór programów umożliwiających administratorowi na
154zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
168306e6
ER
155sieci komputerów różnego rodzaju. W terminologii technicznej jest to
156program do kopii zapasowych pracujący w architekturze klient-serwer.
157Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
158wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
159ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
160plików.
cc01862b 161
5ce18635
AM
162%package dir
163Summary: Bacula Director and Catalog services
6a00efc0 164Summary(pl.UTF-8): Usługi Bacula Director i Catalog
5ce18635 165Group: Networking/Utilities
237bfacd 166Requires(post): sed >= 4.0
74c2ad1c
ER
167Requires: %{name}-common = %{version}-%{release}
168Requires: bacula(db) = %{version}-%{release}
abdcd1c5 169Obsoletes: bacula-updatedb
bb6e7dc5 170
5ce18635
AM
171%description dir
172Bacula - It comes by night and sucks the vital essence from your
173computers.
174
175Bacula Director is the program that supervises all the backup,
176restore, verify and archive operations. The system administrator uses
177the Bacula Director to schedule backups and to recover files. Catalog
178services are comprised of the software programs responsible for
179maintaining the file indexes and volume databases for all files backed
180up. The Catalog services permit the System Administrator or user to
181quickly locate and restore any desired file, since it maintains a
7533d19f 182record of all Volumes used, all Jobs run, and all Files saved.
5ce18635 183
192fbfcf
JR
184%description dir -l pl.UTF-8
185Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 186
192fbfcf 187Bacula Director to program nadzorujący wszystkie operacje wykonywania
cc01862b 188kopii zapasowych, odzyskiwania, weryfikacji i archiwizowania.
192fbfcf
JR
189Administrator używa Bacula Directora do szeregowania kopii zapasowych
190oraz odzyskiwania plików. Usługi katalogowe (Catalog services) są
168306e6
ER
191używane przez programy odpowiedzialne za zarządzanie indeksami plików
192i bazą danych wolumenów dla wszystkich kopiowanych plików. Usługi
193katalogowe umożliwiają administratorowi lub użytkownikowi szybko
194zlokalizować i odtworzyć dowolny plik, ponieważ utrzymują rekord ze
195wszystkimi używanymi wolumenami, uruchomionymi zadaniami i zapisanymi
196plikami.
cc01862b 197
5ce18635
AM
198%package console
199Summary: Bacula Console
6a00efc0 200Summary(pl.UTF-8): Konsola Baculi
5ce18635 201Group: Networking/Utilities
237bfacd 202Requires(post): sed >= 4.0
74c2ad1c 203Requires: %{name}-common = %{version}-%{release}
5ce18635
AM
204
205%description console
206Bacula - It comes by night and sucks the vital essence from your
207computers.
208
209Bacula Console is the program that allows the administrator or user to
210communicate with the Bacula Director. This is the text only console
211interface.
212
192fbfcf
JR
213%description console -l pl.UTF-8
214Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 215
192fbfcf
JR
216Bacula Console to program umożliwiający administratorowi lub
217użytkownikowi komunikowanie się z programem Bacula Director. To jest
cc01862b
JB
218interfejs czysto tekstowy.
219
5ce18635 220%package console-wx
cc01862b 221Summary: Bacula wxWidgets Console
6a00efc0 222Summary(pl.UTF-8): Konsola Baculi oparta na wxWidgets
5ce18635 223Group: Networking/Utilities
237bfacd 224Requires(post): sed >= 4.0
74c2ad1c 225Requires: %{name}-common = %{version}-%{release}
5ce18635
AM
226
227%description console-wx
228Bacula - It comes by night and sucks the vital essence from your
229computers.
230
231Bacula Console is the program that allows the administrator or user to
cc01862b 232communicate with the Bacula Director. This is the wxWidgets GUI
5ce18635
AM
233interface.
234
192fbfcf
JR
235%description console-wx -l pl.UTF-8
236Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 237
192fbfcf
JR
238Bacula Console to program umożliwiający administratorowi lub
239użytkownikowi komunikowanie się z programem Bacula Director. To jest
cc01862b
JB
240interfejs graficzny oparty na wxWidgets.
241
304bb97e 242%package console-qt4
ece2f4c3
JB
243Summary: Bacula Qt4 Console
244Summary(pl.UTF-8): Konsola Baculi oparta na Qt4
304bb97e
AM
245Group: Networking/Utilities
246Requires(post): sed >= 4.0
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
bb6e7dc5 435%prep
7425cb9d 436%setup -q -a 1
0a03f92d 437%patch0 -p1
53a3431c 438%patch1 -p1
cf0cfe65 439%patch2 -p1
ecb9bab1 440%patch3 -p1
e740cd49 441%patch4 -p1
c08d8c7a 442%patch5 -p1
aa6db71e 443
783dd8b1 444tar -xf %{SOURCE2} && ln -s bacula-rescue-* rescue
cf50297e 445
10650249
AM
446sed -i -e 's#bindir=.*#bindir=%{_bindir}#g' \
447 src/cats/create_* src/cats/delete_* src/cats/drop_* \
448 src/cats/grant_* src/cats/make_* src/cats/update_*
237bfacd 449sed -i -e 's/@hostname@/--hostname--/' src/*/*.conf.in
efb15923 450sed -i -e 's/@basename@/--hostname--/' src/*/*.conf.in
bb6e7dc5
AM
451
452%build
4a39c080
ER
453cd autoconf
454%{__aclocal} -I bacula-macros -I gettext-macros
455# $BUILD_DIR not seen by libtoolize, export it
456BUILD_DIR=.. %{__libtoolize}
457cd ..
cf50297e
AM
458%{__autoconf} --prepend-include=$(pwd)/autoconf autoconf/configure.in > configure
459
dae3a0bd
JK
460CPPFLAGS="-I/usr/include/ncurses -I%{_includedir}/readline"
461
53a3431c
AM
462WXCONFIG=%{_bindir}/wx-gtk2-unicode-config \
463QMAKE=%{_bindir}/qt4-qmake \
464%configure \
465 --with-scriptdir=%{_libexecdir}/%{name} \
466 %{?with_bat:--enable-bat} \
467 --disable-conio \
468 --enable-smartalloc \
469 %{?with_console_wx:--enable-bwx-console} \
470 %{?with_console_gnome:--enable-gnome} \
471 --enable-tray-monitor \
472 %{?with_python:--with-python} \
473 --with-readline \
474 --with-tcp-wrappers \
475 --with-working-dir=%{_var}/lib/%{name} \
476 --with-dump-email="root@localhost" \
477 --with-job-email="root@localhost" \
478 --with-smtp-host=localhost \
479 --with-pid-dir=/var/run \
480 --with-subsys-dir=/var/lock/subsys \
481 --enable-batch-insert \
482 %{?with_pgsql:--with-postgresql} \
483 %{?with_mysql:--with-mysql} \
484 %{?with_sqlite3:--with-sqlite3} \
485 %{?with_sqlite3_sync_off:--enable-extra-sqlite3-init="pragma synchronous=0;"} \
486 --with-dir-password="#FAKE-dir-password#" \
487 --with-fd-password="#FAKE-fd-password#" \
488 --with-sd-password="#FAKE-sd-password#" \
489 --with-mon-dir-password="#FAKE-mon-dir-password#" \
490 --with-mon-fd-password="#FAKE-mon-fd-password#" \
491 --with-mon-sd-password="#FAKE-mon-sd-password#" \
492 --with-openssl
bb6e7dc5 493
b8003eec
JK
494%if %{with bat}
495cd src/qt-console
496qmake-qt4 bat.pro
497cd ../..
498%endif
499
500%{__make}
501
b0473ed3
ER
502%if %{with nagios}
503# nagios plugin
504%{__make} -C examples/nagios/check_bacula
505%endif
506
2b68b0cb
AM
507%if %{with rescue}
508cd rescue
509%configure \
510 --with-bacula=../
511cd linux/cdrom
512fakeroot %{__make}
513%endif
514
bb6e7dc5
AM
515%install
516rm -rf $RPM_BUILD_ROOT
237bfacd
JK
517install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,pam.d,sysconfig}
518install -d $RPM_BUILD_ROOT%{_sysconfdir}/rescue
3c0eac7c 519install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir},%{_bindir},/var/log/bacula}
bb6e7dc5
AM
520
521%{__make} install \
522 DESTDIR=$RPM_BUILD_ROOT
523
5a48616e 524# we use db dependant (at compile time) shell script only
53a3431c
AM
525rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/make_catalog_backup.pl
526## dbi is not actual dbtype
527#rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/make_dbi_catalog_backup
5a48616e 528
53a3431c
AM
529## replace with empty file, replaced by ldconfig from each db-* package on intsall
530#rm $RPM_BUILD_ROOT%{_libdir}/libbaccats-%{version}.so
531#touch $RPM_BUILD_ROOT%{_libdir}/libbaccats-%{version}.so
aa70ead8 532
8b9ffa69
ER
533install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-dir
534install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-fd
535install -p %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-sd
536cp -a %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir
537cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/bacula-dir
538cp -a %{SOURCE15} $RPM_BUILD_ROOT/etc/sysconfig/bacula-fd
539cp -a %{SOURCE16} $RPM_BUILD_ROOT/etc/sysconfig/bacula-sd
d907cd57 540
cacc89f5
AZ
541%if %{with console_wx}
542# tray-monitor is for regular users
a3c6e4e6 543#mv $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor $RPM_BUILD_ROOT%{_bindir}
cacc89f5 544
b0473ed3 545cp -a scripts/bacula.png $RPM_BUILD_ROOT%{_pixmapsdir}/bacula.png
a3c6e4e6 546#install src/tray-monitor/generic.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/bacula-tray-monitor.xpm
237bfacd
JK
547sed -e 's/gnome-console/wx-console/g;s/Console/Wx Console/g' \
548 scripts/bacula.desktop.gnome2 > $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop
a3c6e4e6
AZ
549#sed -e 's#%{_sbindir}#%{_bindir}#' \
550# scripts/bacula-tray-monitor.desktop > $RPM_BUILD_ROOT%{_desktopdir}/bacula-tray-monitor.desktop
cacc89f5 551%endif
d907cd57 552
304bb97e 553%if %{with bat}
37bd6446
ER
554# qmake somewhy does not always create install_bins target. install our own the bin
555rm -f $RPM_BUILD_ROOT%{_sbindir}/bat
556libtool --silent --mode=install install src/qt-console/bat $RPM_BUILD_ROOT%{_bindir}
b0473ed3 557cp -a scripts/bat.desktop $RPM_BUILD_ROOT%{_desktopdir}
304bb97e
AM
558%endif
559
2b68b0cb 560%if %{with rescue}
d907cd57 561# install the rescue stuff, these are the rescue scripts
b0473ed3
ER
562cp -a rescue/linux/floppy/backup.etc.list $RPM_BUILD_ROOT%{_sysconfdir}/rescue
563cp -a rescue/linux/floppy/sfdisk.bz2 $RPM_BUILD_ROOT%{_sysconfdir}/rescue
564install -p rescue/linux/floppy/*_* $RPM_BUILD_ROOT%{_sysconfdir}/rescue
565install -p rescue/linux/floppy/getdiskinfo $RPM_BUILD_ROOT%{_sysconfdir}/rescue
2b68b0cb 566%endif
bb6e7dc5 567
3c0eac7c
AM
568touch $RPM_BUILD_ROOT/var/log/bacula/log
569
2f8e46d4
ER
570# install the updatedb scripts for older versions that last full release
571# 2.0 -> 3.0 : 10_to_11
572install -p updatedb/update_*_tables_10_to_11 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
d907cd57 573
237bfacd
JK
574# place for site passwords
575touch $RPM_BUILD_ROOT%{_sysconfdir}/{dir-password,fd-password,sd-password}
576touch $RPM_BUILD_ROOT%{_sysconfdir}/{mon-dir-password,mon-fd-password,mon-sd-password}
bb6e7dc5 577
5a48616e 578mv $RPM_BUILD_ROOT%{_libexecdir}/%{name}/mtx-changer.conf $RPM_BUILD_ROOT%{_sysconfdir}/mtx-changer.conf
0a03f92d 579
1a72afd2
AM
580# some file changes
581rm -f $RPM_BUILD_ROOT%{_libexecdir}/%{name}/{gconsole,startmysql,stopmysql,bacula,bconsole,fd}
8ba087a4 582%if %{without console_wx}
1376b552 583rm -f $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop
1376b552 584%endif
1a72afd2
AM
585touch $RPM_BUILD_ROOT%{_sysconfdir}/.pw.sed
586
8ba087a4
ER
587rm $RPM_BUILD_ROOT%{_docdir}/bacula/ChangeLog
588rm $RPM_BUILD_ROOT%{_docdir}/bacula/INSTALL
589rm $RPM_BUILD_ROOT%{_docdir}/bacula/LICENSE
590rm $RPM_BUILD_ROOT%{_docdir}/bacula/README
591rm $RPM_BUILD_ROOT%{_docdir}/bacula/ReleaseNotes
592rm $RPM_BUILD_ROOT%{_docdir}/bacula/VERIFYING
593rm $RPM_BUILD_ROOT%{_docdir}/bacula/technotes
594
7545e94f
JK
595# startup scripts, those in /etc/rc.d/init.d are better
596rm $RPM_BUILD_ROOT%{_sbindir}/bacula
597rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/bacula-ctl-*
598
41bc1b6e 599# unsupported
8fb2ca23 600rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/btraceback.mdb
41bc1b6e 601
7545e94f
JK
602# rename to avoid possible conflicts
603mv $RPM_BUILD_ROOT%{_sbindir}/{,bacula-}dbcheck
604mv $RPM_BUILD_ROOT%{_mandir}/man8/{,bacula-}dbcheck.8.gz
605
606# no -devel files packaged, so this is also useless
607rm $RPM_BUILD_ROOT%{_libdir}/libbac{,cfg,find,py,sql}.{so,la}
608
53a3431c
AM
609# FIXME, something in post
610rm $RPM_BUILD_ROOT/usr/lib64/libbaccats-5.2.1.so
611
b0473ed3 612%if %{with nagios}
819cd4b0 613install -d $RPM_BUILD_ROOT%{nagiosplugindir}
b0473ed3
ER
614%{__make} -C examples/nagios/check_bacula install \
615 sbindir=%{nagiosplugindir} \
403b68c1 616 INSTALL_PROGRAM="libtool --mode=install install -p" \
b0473ed3
ER
617 DESTDIR=$RPM_BUILD_ROOT
618%endif
7545e94f 619
f2337569
JB
620%clean
621rm -rf $RPM_BUILD_ROOT
622
5ce18635 623%pre common
fbc59152
ER
624%groupadd -P %{name}-common -g 136 -r -f bacula
625%useradd -P %{name}-common -u 136 -r -d /var/lib/bacula -s /bin/false -c "Bacula User" -g bacula bacula
5ce18635 626
b8003eec 627%define update_configs \
210f992b 628echo "Updating bacula passwords and names..." | %banner -a %{name} \
5a48616e 629cd %{_sysconfdir} \
2f8e46d4
ER
630for f in *-password; do \
631 if [ ! -s $f ]; then \
b8003eec
JK
632 openssl rand -base64 33 > $f \
633 fi \
2f8e46d4
ER
634 p=$(cat $f) \
635 for cf in *.conf *.conf.rpmnew; do \
b8003eec
JK
636 [ -f $cf ] && sed -i -e"s:#FAKE-$f#:$p:" "$cf" || : \
637 done \
638done \
2f8e46d4 639for cf in *.conf *.conf.rpmnew; do \
b8003eec
JK
640 [ -f $cf ] && sed -i -e"s:--hostname--:`hostname`:" "$cf" || : \
641done
642
237bfacd 643%post common
0a03f92d 644/sbin/ldconfig
b8003eec 645%update_configs
237bfacd 646
5ce18635 647%postun common
0a03f92d 648/sbin/ldconfig
28c9f5d0
AM
649if [ "$1" = "0" ]; then
650 %userremove bacula
651 %groupremove bacula
652fi
5ce18635 653
b8003eec
JK
654%triggerpostun dir -- %{name}-dir < 5.0
655%banner bacula-dir -t3 <<EOF
656You have upgraded from an older version of Bacula director.
bb6e7dc5 657
b8003eec
JK
658You will probably need to call %{_libexecdir}/%{name}/update_bacula_tables
659script to upgrade the database.
660EOF
237bfacd 661
b8003eec
JK
662%post dir
663%update_configs
1a72afd2 664/sbin/chkconfig --add bacula-dir
52504a6d 665%service bacula-dir restart "Bacula Director daemon"
bb6e7dc5 666
5ce18635 667%preun dir
1a72afd2 668if [ "$1" = "0" ]; then
52504a6d 669 %service bacula-dir stop
9aa69d51 670 /sbin/chkconfig --del bacula-dir
1a72afd2 671fi
bb6e7dc5 672
5ce18635 673%post fd
b8003eec 674%update_configs
1a72afd2 675/sbin/chkconfig --add bacula-fd
52504a6d 676%service bacula-fd restart "Bacula File daemon"
bb6e7dc5 677
5ce18635 678%preun fd
1a72afd2 679if [ "$1" = "0" ]; then
52504a6d 680 %service bacula-fd stop
9aa69d51 681 /sbin/chkconfig --del bacula-fd
1a72afd2 682fi
5ce18635
AM
683
684%post sd
b8003eec 685%update_configs
1a72afd2 686/sbin/chkconfig --add bacula-sd
52504a6d 687%service bacula-sd restart "Bacula Storage daemon"
bb6e7dc5 688
5ce18635 689%preun sd
1a72afd2 690if [ "$1" = "0" ]; then
52504a6d 691 %service bacula-sd stop
9aa69d51 692 /sbin/chkconfig --del bacula-sd
1a72afd2 693fi
5ce18635
AM
694
695%pre console
696if [ -e %{_sysconfdir}/console.conf -a ! -e %{_sysconfdir}/bconsole.conf ]; then
9aa69d51 697 mv %{_sysconfdir}/console.conf %{_sysconfdir}/bconsole.conf
bb6e7dc5
AM
698fi
699
237bfacd 700%post console
b8003eec 701%update_configs
237bfacd
JK
702
703%post console-wx
b8003eec 704%update_configs
237bfacd 705
827db798 706%triggerpostun common -- %{name}-common < 5.0.1-2
44069e22 707find %{_sysconfdir}/bat.conf* -perm /007 -print0 2>/dev/null | xargs -0 -r chmod 600 || :
3a5cd5d7 708
304bb97e 709%post console-qt4
b8003eec 710%update_configs
304bb97e 711
237bfacd 712%post tray-monitor
b8003eec 713%update_configs
bb6e7dc5 714
bb6e7dc5
AM
715%post rescue
716# link our current installed conf file to the rescue directory
f2337569 717ln -sf %{_sysconfdir}/bacula-fd.conf %{_sysconfdir}/rescue/bacula-fd.conf
bb6e7dc5
AM
718
719# run getdiskinfo
720echo "Creating rescue files for this system..."
d907cd57 721cd %{_sysconfdir}/rescue
bb6e7dc5
AM
722./getdiskinfo
723
724%preun rescue
725# remove the files created after the initial rpm installation
f2337569
JB
726if [ "$1" = "0" ]; then
727 rm -f %{_sysconfdir}/rescue/bacula-fd.conf
728 rm -f %{_sysconfdir}/rescue/partition.*
729 rm -f %{_sysconfdir}/rescue/format.*
730 rm -f %{_sysconfdir}/rescue/mount_drives
731 rm -f %{_sysconfdir}/rescue/start_network
732 rm -f %{_sysconfdir}/rescue/sfdisk
733 rm -rf %{_sysconfdir}/rescue/diskinfo/*
734fi
bb6e7dc5 735
41bc1b6e
JK
736%define db_post() \
737/sbin/ldconfig \
b0473ed3 738for name in "create database" "drop tables" "drop database" "grant privileges" "make tables" "update tables"; do \
41bc1b6e
JK
739 prefix="${name%% *}" \
740 suffix="${name#* }" \
b0473ed3 741 ln -sf "${prefix}_%{1}_${suffix}" %{_libexecdir}/%{name}/"${prefix}_bacula_${suffix}" || : \
dae3a0bd 742done \
5a48616e 743ln -sf "make_%{1}_catalog_backup" %{_libexecdir}/%{name}/make_catalog_backup || : \
dae3a0bd
JK
744%service bacula-dir restart "Bacula Director daemon"
745
41bc1b6e
JK
746%post db-postgresql
747%db_post postgresql
748
dfef965d 749%postun db-postgresql -p /sbin/ldconfig
dae3a0bd 750
41bc1b6e
JK
751%post db-mysql
752%db_post mysql
753
dfef965d 754%postun db-mysql -p /sbin/ldconfig
dae3a0bd 755
41bc1b6e
JK
756%post db-sqlite3
757%db_post sqlite3
758
dfef965d 759%postun db-sqlite3 -p /sbin/ldconfig
dae3a0bd 760
5ce18635
AM
761%files common
762%defattr(644,root,root,755)
237bfacd 763%doc LICENSE
051f919c 764%{?with_python:%doc examples/python}
1a72afd2 765%dir %{_sysconfdir}
1b0a2248 766%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*-password
7545e94f
JK
767# do not remove bsmtp from files. Fix build if it is not installed.
768%attr(755,root,root) %{_sbindir}/bsmtp
7425cb9d 769%attr(755,root,root) %{_sbindir}/btraceback
6f3f1b78
JK
770%attr(755,root,root) %{_libdir}/libbac-5*.so
771%attr(755,root,root) %{_libdir}/libbaccfg-5*.so
772%attr(755,root,root) %{_libdir}/libbacfind-5*.so
773%attr(755,root,root) %{_libdir}/libbacpy-5*.so
c74b041d 774%{_mandir}/man8/bacula.8*
7425cb9d
JK
775%{_mandir}/man1/bsmtp.1*
776%{_mandir}/man8/btraceback.8*
5ce18635 777%dir %{_libexecdir}/%{name}
1376b552 778%{_libexecdir}/%{name}/btraceback.dbx
5ce18635 779%{_libexecdir}/%{name}/btraceback.gdb
7545e94f 780%{_libexecdir}/%{name}/bacula_config
d6dbe33c 781%attr(770,root,bacula) %dir %{_localstatedir}
3c0eac7c
AM
782%attr(750,bacula,logs) %dir /var/log/bacula
783%attr(640,bacula,logs) %ghost /var/log/bacula/log
5ce18635
AM
784
785%files dir
bb6e7dc5 786%defattr(644,root,root,755)
237bfacd 787%doc ChangeLog CheckList ReleaseNotes kernstodo LICENSE
28647453 788#%doc examples %{name}-docs-%{version}/manual/{*.pdf,bacula}
cc515592 789%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-dir.conf
1a72afd2 790%ghost %{_sysconfdir}/.pw.sed
28c9f5d0 791%attr(640,root,root) %config(noreplace) /etc/logrotate.d/bacula-dir
1a72afd2 792%attr(754,root,root) /etc/rc.d/init.d/bacula-dir
cd23ba7c 793%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-dir
5ff0b6a3 794%attr(755,root,root) %{_sbindir}/bacula-dir
7545e94f
JK
795%attr(755,root,root) %{_sbindir}/bregex
796%attr(755,root,root) %{_sbindir}/bwild
797%attr(755,root,root) %{_sbindir}/bacula-dbcheck
79d0fef6 798%{_mandir}/man8/bacula-dir.8*
7545e94f 799%{_mandir}/man8/bacula-dbcheck.8*
79d0fef6 800%{_libexecdir}/%{name}/query.sql
5a48616e 801%attr(755,root,root) %{_libexecdir}/%{name}/delete_catalog_backup
41bc1b6e
JK
802
803%files db-postgresql
804%defattr(644,root,root,755)
53a3431c 805#%attr(755,root,root) %{_libexecdir}/%{name}/fix_postgresql_tables
41bc1b6e
JK
806%attr(755,root,root) %{_libexecdir}/%{name}/create_postgresql_database
807%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_database
808%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_tables
809%attr(755,root,root) %{_libexecdir}/%{name}/grant_postgresql_privileges
810%attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_tables
811%attr(755,root,root) %{_libexecdir}/%{name}/update_postgresql_*
53a3431c
AM
812#attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_catalog_backup
813%attr(755,root,root) %{_libdir}/libbaccats-postgresql-5*.so
41bc1b6e 814
53a3431c 815#%ghost %attr(755,root,root) %{_libdir}/libbaccats-5*.so
41bc1b6e
JK
816%ghost %{_libexecdir}/%{name}/create_bacula_database
817%ghost %{_libexecdir}/%{name}/drop_bacula_tables
818%ghost %{_libexecdir}/%{name}/drop_bacula_database
819%ghost %{_libexecdir}/%{name}/grant_bacula_privileges
820%ghost %{_libexecdir}/%{name}/make_bacula_tables
821%ghost %{_libexecdir}/%{name}/update_bacula_tables
53a3431c 822#%ghost %{_libexecdir}/%{name}/make_catalog_backup
41bc1b6e
JK
823
824%files db-mysql
825%defattr(644,root,root,755)
aeaed87e 826%attr(755,root,root) %{_libexecdir}/%{name}/create_mysql_database
827%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_database
828%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_tables
829%attr(755,root,root) %{_libexecdir}/%{name}/grant_mysql_privileges
830%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_tables
831%attr(755,root,root) %{_libexecdir}/%{name}/update_mysql_*
53a3431c
AM
832#%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_catalog_backup
833%attr(755,root,root) %{_libdir}/libbaccats-mysql-5*.so
41bc1b6e 834
53a3431c 835#%ghost %attr(755,root,root) %{_libdir}/libbaccats-5*.so
41bc1b6e
JK
836%ghost %{_libexecdir}/%{name}/create_bacula_database
837%ghost %{_libexecdir}/%{name}/drop_bacula_tables
838%ghost %{_libexecdir}/%{name}/drop_bacula_database
839%ghost %{_libexecdir}/%{name}/grant_bacula_privileges
840%ghost %{_libexecdir}/%{name}/make_bacula_tables
841%ghost %{_libexecdir}/%{name}/update_bacula_tables
53a3431c 842#%ghost %{_libexecdir}/%{name}/make_catalog_backup
41bc1b6e
JK
843
844%files db-sqlite3
845%defattr(644,root,root,755)
846%attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite3_database
847%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_database
848%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_tables
849%attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite3_privileges
850%attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_tables
851%attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite3_*
53a3431c
AM
852#%attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_catalog_backup
853%attr(755,root,root) %{_libdir}/libbaccats-sqlite3-5*.so
41bc1b6e 854
53a3431c 855#%ghost %attr(755,root,root) %{_libdir}/libbaccats-5*.so
41bc1b6e
JK
856%ghost %{_libexecdir}/%{name}/create_bacula_database
857%ghost %{_libexecdir}/%{name}/drop_bacula_tables
858%ghost %{_libexecdir}/%{name}/drop_bacula_database
859%ghost %{_libexecdir}/%{name}/grant_bacula_privileges
860%ghost %{_libexecdir}/%{name}/make_bacula_tables
861%ghost %{_libexecdir}/%{name}/update_bacula_tables
53a3431c 862#%ghost %{_libexecdir}/%{name}/make_catalog_backup
41bc1b6e 863
5ce18635
AM
864%files fd
865%defattr(644,root,root,755)
237bfacd 866%doc LICENSE
efb15923 867%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-fd.conf
1a72afd2 868%attr(754,root,root) /etc/rc.d/init.d/bacula-fd
cd23ba7c 869%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-fd
5ff0b6a3 870%attr(755,root,root) %{_sbindir}/bacula-fd
7545e94f 871%attr(755,root,root) %{_libdir}/bpipe-fd.so
79d0fef6 872%{_mandir}/man8/bacula-fd.8*
5ce18635
AM
873
874%files sd
875%defattr(644,root,root,755)
237bfacd 876%doc LICENSE
efb15923 877%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-sd.conf
878%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mtx-changer.conf
1a72afd2 879%attr(754,root,root) /etc/rc.d/init.d/bacula-sd
cd23ba7c 880%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-sd
5ff0b6a3
AM
881%attr(755,root,root) %{_sbindir}/bacula-sd
882%attr(755,root,root) %{_sbindir}/bcopy
883%attr(755,root,root) %{_sbindir}/bextract
884%attr(755,root,root) %{_sbindir}/bls
885%attr(755,root,root) %{_sbindir}/bscan
886%attr(755,root,root) %{_sbindir}/btape
329073aa 887%attr(755,root,root) %{_libexecdir}/%{name}/mtx-changer
150db1c2 888%attr(755,root,root) %{_libexecdir}/%{name}/disk-changer
329073aa 889%attr(755,root,root) %{_libexecdir}/%{name}/dvd-handler
5ce18635 890%{_mandir}/man8/bacula-sd.8*
7425cb9d
JK
891%{_mandir}/man8/bcopy.8*
892%{_mandir}/man8/bextract.8*
893%{_mandir}/man8/bls.8*
894%{_mandir}/man8/bscan.8*
895%{_mandir}/man8/btape.8*
5ce18635
AM
896
897%files console
bb6e7dc5 898%defattr(644,root,root,755)
237bfacd 899%doc LICENSE
efb15923 900%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bconsole.conf
1a72afd2 901%attr(755,root,root) %{_sbindir}/bconsole
7425cb9d 902%{_mandir}/man8/bconsole.8*
5ce18635 903
1376b552 904%if %{with console_wx}
5ce18635
AM
905%files console-wx
906%defattr(644,root,root,755)
237bfacd 907%doc LICENSE
1a72afd2 908%{_pixmapsdir}/%{name}.png
237bfacd 909%{_desktopdir}/bacula-wx.desktop
53a3431c
AM
910#%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwx-console.conf
911#%attr(755,root,root) %{_sbindir}/bwx-console
e3dd858d 912%{_mandir}/man1/bacula-bwxconsole.1*
1376b552 913%endif
bb6e7dc5 914
304bb97e
AM
915%if %{with bat}
916%files console-qt4
917%defattr(644,root,root,755)
918%doc LICENSE
919%{_pixmapsdir}/%{name}.png
920%{_desktopdir}/bat.desktop
2264d68c 921# Do not make this file world-readable or any user will get full access to the
b0473ed3 922# backup system
2264d68c
JK
923%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bat.conf
924%attr(755,root,root) %{_bindir}/bat
304bb97e 925%{_mandir}/man1/bat.1*
7545e94f 926%{_docdir}/%{name}
304bb97e
AM
927%endif
928
cacc89f5 929%if %{with console_wx}
237bfacd
JK
930%files tray-monitor
931%defattr(644,root,root,755)
932%doc LICENSE
8ba087a4
ER
933%attr(755,root,root) %{_sbindir}/bacula-tray-monitor
934#%{_pixmapsdir}/%{name}-tray-monitor.xpm
935#%{_desktopdir}/%{name}-tray-monitor.desktop
cd23ba7c 936%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tray-monitor.conf
7425cb9d 937%{_mandir}/man1/bacula-tray-monitor.1*
cacc89f5 938%endif
237bfacd 939
2b68b0cb 940%if %{with rescue}
bb6e7dc5
AM
941%files rescue
942%defattr(644,root,root,755)
c741b8e0 943%doc LICENSE
4280e495 944%dir %{_sysconfdir}/rescue
1b0a2248 945%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/backup.etc.list
946%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/bacula-fd
947%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/format_floppy
948%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/getdiskinfo
949%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/make_rescue_disk
950%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_bacula
951%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_etc
952%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_grub
953%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_lilo
954%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/sfdisk.bz2
2b68b0cb 955%endif
b0473ed3
ER
956
957%if %{with nagios}
958%files -n nagios-plugin-check_bacula
959%defattr(644,root,root,755)
960%attr(755,root,root) %{nagiosplugindir}/check_bacula
961%endif
This page took 0.467718 seconds and 4 git commands to generate.