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