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