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