]> git.pld-linux.org Git - packages/bacula.git/blame - bacula.spec
- BR: acl-devel autoconf gettext-devel libcap-devel libtool
[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
bb6e7dc5 111URL: http://www.bacula.org/
0819f86f 112BuildRequires: acl-devel
113BuildRequires: autoconf
f2337569 114BuildRequires: automake
0819f86f 115BuildRequires: gettext-devel
116BuildRequires: libcap-devel
919e8378 117%{?with_dbi:BuildRequires: libdbi-devel >= 0.8.4}
0819f86f 118BuildRequires: libtool
7425cb9d
JK
119%if %{with rescue}
120BuildRequires: fakeroot
121%endif
f183f7ef 122BuildRequires: libwrap-devel
d907cd57 123BuildRequires: mtx
cc01862b 124BuildRequires: ncurses-devel
bb6e7dc5
AM
125BuildRequires: openssl-devel
126BuildRequires: pkgconfig
7425cb9d
JK
127%if %{with python}
128BuildRequires: python-static
129%endif
c19580f6 130%if %{with bat}
304bb97e 131BuildRequires: QtCore-devel
e3dd858d 132BuildRequires: QtGui-devel
846b23db
JB
133BuildRequires: qt4-build >= 4.3.3-3
134BuildRequires: qt4-qmake >= 4.3.3-3
6d11b02b 135BuildRequires: qwt-devel >= 5.0.2-2
c19580f6 136%endif
4c7199dc
SP
137%{?with_mysql:BuildRequires: mysql-devel}
138%{?with_pgsql:BuildRequires: postgresql-devel}
bb6e7dc5 139BuildRequires: readline-devel
52504a6d 140BuildRequires: rpmbuild(macros) >= 1.268
cc01862b 141BuildRequires: sed >= 4.0
6d11b02b 142%{?with_sqlite3:BuildRequires: sqlite3-devel}
1376b552 143%if %{with console_wx}
7425cb9d 144BuildRequires: wxGTK2-unicode-devel >= 2.4.0
1376b552 145%endif
bb6e7dc5 146BuildRequires: zlib-devel
bb6e7dc5
AM
147BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
148
149%define _sysconfdir /etc/%{name}
1a72afd2 150%define _localstatedir /var/lib/%{name}
bb6e7dc5 151
b60fe5cb
ER
152# dependency section is broken. ccache usage is instead to makefiles
153%undefine with_ccache
154
bb6e7dc5
AM
155%description
156Bacula - It comes by night and sucks the vital essence from your
157computers.
158
159Bacula is a set of computer programs that permit you (or the system
160administrator) to manage backup, recovery, and verification of
161computer data across a network of computers of different kinds. In
162technical terms, it is a network client/server based backup program.
163Bacula is relatively easy to use and efficient, while offering many
164advanced storage management features that make it easy to find and
5ce18635 165recover lost or damaged files.
bb6e7dc5 166
192fbfcf
JR
167%description -l pl.UTF-8
168Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 169
192fbfcf
JR
170Bacula to zbiór programów umożliwiających administratorowi na
171zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
172sieci komputerów różnego rodzaju. W terminologii technicznej jest to
173program do kopii zapasowych pracujący w architekturze klient-serwer.
174Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
175wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
176ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
177plików.
cc01862b 178
5ce18635
AM
179%package common
180Summary: Common files for bacula package
6a00efc0 181Summary(pl.UTF-8): Pliki wspólne dla pakietu bacula
bb6e7dc5 182Group: Networking/Utilities
237bfacd
JK
183Requires(post): openssl-tools
184Requires(post): sed >= 4.0
1bd568e8 185Requires(post,preun): /sbin/chkconfig
65253ffd
JK
186Requires(postun): /usr/sbin/groupdel
187Requires(postun): /usr/sbin/userdel
1b0a2248 188Requires(pre): /usr/sbin/groupadd
189Requires(pre): /usr/sbin/useradd
abdcd1c5
JB
190Conflicts: bacula-console < 0:1.34.6
191Conflicts: bacula-dir < 0:1.34.6
192Conflicts: bacula-fd < 0:1.34.6
193Conflicts: bacula-sd < 0:1.34.6
bb6e7dc5 194
5ce18635 195%description common
bb6e7dc5
AM
196Bacula - It comes by night and sucks the vital essence from your
197computers.
198
199Bacula is a set of computer programs that permit you (or the system
200administrator) to manage backup, recovery, and verification of
201computer data across a network of computers of different kinds. In
202technical terms, it is a network client/server based backup program.
203Bacula is relatively easy to use and efficient, while offering many
204advanced storage management features that make it easy to find and
5ce18635 205recover lost or damaged files.
bb6e7dc5 206
192fbfcf
JR
207%description common -l pl.UTF-8
208Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 209
192fbfcf
JR
210Bacula to zbiór programów umożliwiających administratorowi na
211zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
212sieci komputerów różnego rodzaju. W terminologii technicznej jest to
213program do kopii zapasowych pracujący w architekturze klient-serwer.
214Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
215wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
216ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
217plików.
cc01862b 218
5ce18635
AM
219%package dir
220Summary: Bacula Director and Catalog services
6a00efc0 221Summary(pl.UTF-8): Usługi Bacula Director i Catalog
5ce18635 222Group: Networking/Utilities
237bfacd 223Requires(post): sed >= 4.0
abdcd1c5
JB
224Requires: %{name}-common = %{epoch}:%{version}-%{release}
225Obsoletes: bacula-updatedb
bb6e7dc5 226
5ce18635
AM
227%description dir
228Bacula - It comes by night and sucks the vital essence from your
229computers.
230
231Bacula Director is the program that supervises all the backup,
232restore, verify and archive operations. The system administrator uses
233the Bacula Director to schedule backups and to recover files. Catalog
234services are comprised of the software programs responsible for
235maintaining the file indexes and volume databases for all files backed
236up. The Catalog services permit the System Administrator or user to
237quickly locate and restore any desired file, since it maintains a
7533d19f 238record of all Volumes used, all Jobs run, and all Files saved.
5ce18635 239
192fbfcf
JR
240%description dir -l pl.UTF-8
241Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 242
192fbfcf 243Bacula Director to program nadzorujący wszystkie operacje wykonywania
cc01862b 244kopii zapasowych, odzyskiwania, weryfikacji i archiwizowania.
192fbfcf
JR
245Administrator używa Bacula Directora do szeregowania kopii zapasowych
246oraz odzyskiwania plików. Usługi katalogowe (Catalog services) są
247używane przez programy odpowiedzialne za zarządzanie indeksami plików
248i bazą danych wolumenów dla wszystkich kopiowanych plików. Usługi
249katalogowe umożliwiają administratorowi lub użytkownikowi szybko
250zlokalizować i odtworzyć dowolny plik, ponieważ utrzymują rekord ze
251wszystkimi używanymi wolumenami, uruchomionymi zadaniami i zapisanymi
7533d19f 252plikami.
cc01862b 253
5ce18635
AM
254%package console
255Summary: Bacula Console
6a00efc0 256Summary(pl.UTF-8): Konsola Baculi
5ce18635 257Group: Networking/Utilities
237bfacd 258Requires(post): sed >= 4.0
abdcd1c5 259Requires: %{name}-common = %{epoch}:%{version}-%{release}
5ce18635
AM
260
261%description console
262Bacula - It comes by night and sucks the vital essence from your
263computers.
264
265Bacula Console is the program that allows the administrator or user to
266communicate with the Bacula Director. This is the text only console
267interface.
268
192fbfcf
JR
269%description console -l pl.UTF-8
270Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 271
192fbfcf
JR
272Bacula Console to program umożliwiający administratorowi lub
273użytkownikowi komunikowanie się z programem Bacula Director. To jest
cc01862b
JB
274interfejs czysto tekstowy.
275
5ce18635 276%package console-wx
cc01862b 277Summary: Bacula wxWidgets Console
6a00efc0 278Summary(pl.UTF-8): Konsola Baculi oparta na wxWidgets
5ce18635 279Group: Networking/Utilities
237bfacd 280Requires(post): sed >= 4.0
abdcd1c5 281Requires: %{name}-common = %{epoch}:%{version}-%{release}
5ce18635
AM
282
283%description console-wx
284Bacula - It comes by night and sucks the vital essence from your
285computers.
286
287Bacula Console is the program that allows the administrator or user to
cc01862b 288communicate with the Bacula Director. This is the wxWidgets GUI
5ce18635
AM
289interface.
290
192fbfcf
JR
291%description console-wx -l pl.UTF-8
292Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 293
192fbfcf
JR
294Bacula Console to program umożliwiający administratorowi lub
295użytkownikowi komunikowanie się z programem Bacula Director. To jest
cc01862b
JB
296interfejs graficzny oparty na wxWidgets.
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
a3c6e4e6 457#%patch6 -p1
0f65a227 458%{?with_dbi:%patch7 -p1}
aa6db71e 459
783dd8b1 460tar -xf %{SOURCE2} && ln -s bacula-rescue-* rescue
cf50297e 461
10650249
AM
462sed -i -e 's#bindir=.*#bindir=%{_bindir}#g' \
463 src/cats/create_* src/cats/delete_* src/cats/drop_* \
464 src/cats/grant_* src/cats/make_* src/cats/update_*
237bfacd 465sed -i -e 's/@hostname@/--hostname--/' src/*/*.conf.in
bb6e7dc5 466
d626c535 467%if %{with dbi}
a3c6e4e6 468for dbtype in bdb mysql postgresql sqlite3; do
0f65a227
MM
469 sed -i -e "s,@DB_TYPE@,$dbtype,g" src/cats/*_${dbtype}_*
470done
d626c535 471%endif
0f65a227 472
bb6e7dc5 473%build
4a39c080
ER
474cd autoconf
475%{__aclocal} -I bacula-macros -I gettext-macros
476# $BUILD_DIR not seen by libtoolize, export it
477BUILD_DIR=.. %{__libtoolize}
478cd ..
cf50297e
AM
479%{__autoconf} --prepend-include=$(pwd)/autoconf autoconf/configure.in > configure
480
1bd568e8 481CPPFLAGS="-I/usr/include/ncurses -I%{_includedir}/readline"
cf50297e 482WXCONFIG=%{_bindir}/wx-gtk2-unicode-config \
bb6e7dc5 483%configure \
5ce18635 484 --with-scriptdir=%{_libexecdir}/%{name} \
c19580f6 485 %{?with_bat:--enable-bat} \
bb6e7dc5 486 --disable-conio \
5ce18635 487 --enable-smartalloc \
e3dd858d 488 %{?with_console_wx:--enable-bwx-console} \
237bfacd 489 --enable-tray-monitor \
2007449a 490 %{?with_python:--with-python} \
bb6e7dc5
AM
491 --with-readline \
492 --with-tcp-wrappers \
493 --with-working-dir=%{_var}/lib/%{name} \
494 --with-dump-email="root@localhost" \
495 --with-job-email="root@localhost" \
496 --with-smtp-host=localhost \
497 --with-pid-dir=/var/run \
498 --with-subsys-dir=/var/lock/subsys \
cf50297e 499 --enable-batch-insert \
8e872bc4 500 --with-%{database} \
aa6db71e 501 %{?with_sqlite3_sync_off:--enable-extra-sqlite3-init="pragma synchronous=0;"} \
237bfacd
JK
502 --with-dir-password="#FAKE-dir-password#" \
503 --with-fd-password="#FAKE-fd-password#" \
504 --with-sd-password="#FAKE-sd-password#" \
505 --with-mon-dir-password="#FAKE-mon-dir-password#" \
506 --with-mon-fd-password="#FAKE-mon-fd-password#" \
507 --with-mon-sd-password="#FAKE-mon-sd-password#" \
2b68b0cb 508 --with-openssl
304bb97e
AM
509
510%if %{with bat}
511cd src/qt-console
846b23db 512qmake-qt4 bat.pro
304bb97e
AM
513cd ../..
514%endif
515
bb6e7dc5
AM
516%{__make}
517
2b68b0cb
AM
518%if %{with rescue}
519cd rescue
520%configure \
521 --with-bacula=../
522cd linux/cdrom
523fakeroot %{__make}
524%endif
525
bb6e7dc5
AM
526%install
527rm -rf $RPM_BUILD_ROOT
528
237bfacd
JK
529install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,pam.d,sysconfig}
530install -d $RPM_BUILD_ROOT%{_sysconfdir}/rescue
3c0eac7c 531install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir},%{_bindir},/var/log/bacula}
bb6e7dc5
AM
532
533%{__make} install \
534 DESTDIR=$RPM_BUILD_ROOT
535
5ce18635
AM
536install %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-dir
537install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-fd
538install %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-sd
1a72afd2 539install %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir
4280e495
JK
540install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/bacula-dir
541install %{SOURCE15} $RPM_BUILD_ROOT/etc/sysconfig/bacula-fd
542install %{SOURCE16} $RPM_BUILD_ROOT/etc/sysconfig/bacula-sd
d907cd57 543
cacc89f5
AZ
544%if %{with console_wx}
545# tray-monitor is for regular users
a3c6e4e6 546#mv $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor $RPM_BUILD_ROOT%{_bindir}
cacc89f5 547
d907cd57 548install scripts/bacula.png $RPM_BUILD_ROOT%{_pixmapsdir}/bacula.png
a3c6e4e6 549#install src/tray-monitor/generic.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/bacula-tray-monitor.xpm
237bfacd
JK
550sed -e 's/gnome-console/wx-console/g;s/Console/Wx Console/g' \
551 scripts/bacula.desktop.gnome2 > $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop
a3c6e4e6
AZ
552#sed -e 's#%{_sbindir}#%{_bindir}#' \
553# scripts/bacula-tray-monitor.desktop > $RPM_BUILD_ROOT%{_desktopdir}/bacula-tray-monitor.desktop
cacc89f5 554%endif
d907cd57 555
304bb97e 556%if %{with bat}
d626c535 557install src/qt-console/.libs/bat $RPM_BUILD_ROOT%{_sbindir}
304bb97e
AM
558install scripts/bat.desktop $RPM_BUILD_ROOT%{_desktopdir}
559%endif
560
2b68b0cb 561%if %{with rescue}
d907cd57 562# install the rescue stuff, these are the rescue scripts
237bfacd
JK
563install rescue/linux/floppy/backup.etc.list $RPM_BUILD_ROOT%{_sysconfdir}/rescue
564install rescue/linux/floppy/*_* $RPM_BUILD_ROOT%{_sysconfdir}/rescue
565install rescue/linux/floppy/getdiskinfo $RPM_BUILD_ROOT%{_sysconfdir}/rescue
566install rescue/linux/floppy/sfdisk.bz2 $RPM_BUILD_ROOT%{_sysconfdir}/rescue
2b68b0cb 567%endif
bb6e7dc5 568
3c0eac7c
AM
569touch $RPM_BUILD_ROOT/var/log/bacula/log
570
bb6e7dc5 571# install the updatedb scripts
237bfacd 572install updatedb/update_sqlite* $RPM_BUILD_ROOT%{_libexecdir}/%{name}
d907cd57 573
237bfacd
JK
574# place for site passwords
575touch $RPM_BUILD_ROOT%{_sysconfdir}/{dir-password,fd-password,sd-password}
576touch $RPM_BUILD_ROOT%{_sysconfdir}/{mon-dir-password,mon-fd-password,mon-sd-password}
bb6e7dc5 577
8ba087a4 578mv $RPM_BUILD_ROOT%{_libdir}/bacula/mtx-changer.conf $RPM_BUILD_ROOT/etc/bacula/mtx-changer.conf
0a03f92d 579
1a72afd2
AM
580# some file changes
581rm -f $RPM_BUILD_ROOT%{_libexecdir}/%{name}/{gconsole,startmysql,stopmysql,bacula,bconsole,fd}
8ba087a4 582%if %{without console_wx}
1376b552 583rm -f $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop
1376b552 584%endif
1a72afd2
AM
585touch $RPM_BUILD_ROOT%{_sysconfdir}/.pw.sed
586
8ba087a4
ER
587rm $RPM_BUILD_ROOT%{_docdir}/bacula/ChangeLog
588rm $RPM_BUILD_ROOT%{_docdir}/bacula/INSTALL
589rm $RPM_BUILD_ROOT%{_docdir}/bacula/LICENSE
590rm $RPM_BUILD_ROOT%{_docdir}/bacula/README
591rm $RPM_BUILD_ROOT%{_docdir}/bacula/ReleaseNotes
592rm $RPM_BUILD_ROOT%{_docdir}/bacula/VERIFYING
593rm $RPM_BUILD_ROOT%{_docdir}/bacula/technotes
594
f2337569
JB
595%clean
596rm -rf $RPM_BUILD_ROOT
597
5ce18635 598%pre common
fbc59152
ER
599%groupadd -P %{name}-common -g 136 -r -f bacula
600%useradd -P %{name}-common -u 136 -r -d /var/lib/bacula -s /bin/false -c "Bacula User" -g bacula bacula
5ce18635 601
237bfacd 602%post common
0a03f92d 603/sbin/ldconfig
237bfacd
JK
604echo "Updating bacula passwords and names..."
605cd /etc/bacula
606for f in *-password ; do
fbc59152 607 if [ ! -s $f ] ; then
237bfacd
JK
608 openssl rand -base64 33 > $f
609 fi
610 p=`cat $f`
b41d8966 611 for cf in *.conf *.conf.rpmnew ; do
237bfacd
JK
612 [ -f $cf ] && sed -i -e"s:#FAKE-$f#:$p:" "$cf" || :
613 done
614done
b41d8966 615for cf in *.conf *.conf.rpmnew ; do
237bfacd
JK
616 [ -f $cf ] && sed -i -e"s:--hostname--:`hostname`:" "$cf" || :
617done
618
5ce18635 619%postun common
0a03f92d 620/sbin/ldconfig
28c9f5d0
AM
621if [ "$1" = "0" ]; then
622 %userremove bacula
623 %groupremove bacula
624fi
5ce18635
AM
625
626%post dir
627umask 077
acd8643c
AM
628
629# XXX: Most of this upgrade procedure is safe for sqlite only. Other databases would require knowledge
630# about currently used version so we can't easily support these :(
631
a3c6e4e6 632%if %{with sqlite3}
1a72afd2 633[ -s %{_localstatedir}/bacula.db ] && \
9aa69d51 634 DB_VER=`echo "select * from Version;" | \
cece716a 635 %{_bindir}/sqlite%{?with_sqlite3:3} %{_localstatedir}/bacula.db | tail -n 1 2>/dev/null`
acd8643c 636
5ce18635
AM
637if [ -z "$DB_VER" ]; then
638# grant privileges and create tables
9aa69d51 639 %{_libexecdir}/%{name}/grant_bacula_privileges > dev/null
640 %{_libexecdir}/%{name}/create_bacula_database > dev/null
641 %{_libexecdir}/%{name}/make_bacula_tables > dev/null
acd8643c 642else
9aa69d51 643 echo "Backing up bacula tables"
cece716a 644 echo ".dump" | sqlite%{?with_sqlite3:3} %{_localstatedir}/bacula.db | bzip2 > %{_localstatedir}/bacula_backup.sql.bz2
acd8643c 645
8e872bc4 646 db_type="%{database}"
acd8643c
AM
647
648 next_ver=$(($DB_VER + 1))
649 # support up to version 30; increase this if needed
650 for ver in $(seq $next_ver 30); do
651 prev_ver=$(($ver - 1))
652
653 if [ -x %{_libexecdir}/%{name}/update_${type}_tables_${prev_ver}_to_${ver} ]; then
654 echo "Upgrading bacula database: db=${db_type} from ${prev_ver} to ${ver}..."
655 %{_libexecdir}/%{name}/update_${type}_tables_${prev_ver}_to_${ver}
9aa69d51 656 fi
acd8643c
AM
657 done
658
9aa69d51 659 %{_libexecdir}/%{name}/update_bacula_tables
660 echo "If bacula works correctly you can remove the backup file %{_localstatedir}/bacula_backup.sql.bz2"
bb6e7dc5 661fi
28c9f5d0
AM
662chown -R bacula:bacula %{_localstatedir}
663chmod -R u+rX,go-rwx %{_localstatedir}/*
acd8643c 664%endif
bb6e7dc5 665
237bfacd
JK
666echo "Updating Bacula passwords and names..."
667cd /etc/bacula
dabeb284 668for f in *-password; do
237bfacd 669 p=`cat $f`
329073aa 670 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || :
237bfacd 671done
329073aa 672sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || :
237bfacd 673
1a72afd2 674/sbin/chkconfig --add bacula-dir
52504a6d 675%service bacula-dir restart "Bacula Director daemon"
bb6e7dc5 676
5ce18635 677%preun dir
1a72afd2 678if [ "$1" = "0" ]; then
52504a6d 679 %service bacula-dir stop
9aa69d51 680 /sbin/chkconfig --del bacula-dir
1a72afd2 681fi
bb6e7dc5 682
5ce18635 683%post fd
237bfacd
JK
684echo "Updating Bacula passwords and names..."
685cd /etc/bacula
dabeb284 686for f in *-password; do
237bfacd 687 p=`cat $f`
329073aa 688 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || :
237bfacd 689done
329073aa 690sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || :
237bfacd 691
1a72afd2 692/sbin/chkconfig --add bacula-fd
52504a6d 693%service bacula-fd restart "Bacula File daemon"
bb6e7dc5 694
5ce18635 695%preun fd
1a72afd2 696if [ "$1" = "0" ]; then
52504a6d 697 %service bacula-fd stop
9aa69d51 698 /sbin/chkconfig --del bacula-fd
1a72afd2 699fi
5ce18635
AM
700
701%post sd
237bfacd
JK
702echo "Updating Bacula passwords and names..."
703cd /etc/bacula
dabeb284 704for f in *-password; do
237bfacd 705 p=`cat $f`
329073aa 706 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || :
237bfacd 707done
329073aa 708sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || :
237bfacd 709
1a72afd2 710/sbin/chkconfig --add bacula-sd
52504a6d 711%service bacula-sd restart "Bacula Storage daemon"
bb6e7dc5 712
5ce18635 713%preun sd
1a72afd2 714if [ "$1" = "0" ]; then
52504a6d 715 %service bacula-sd stop
9aa69d51 716 /sbin/chkconfig --del bacula-sd
1a72afd2 717fi
5ce18635
AM
718
719%pre console
720if [ -e %{_sysconfdir}/console.conf -a ! -e %{_sysconfdir}/bconsole.conf ]; then
9aa69d51 721 mv %{_sysconfdir}/console.conf %{_sysconfdir}/bconsole.conf
bb6e7dc5
AM
722fi
723
237bfacd
JK
724%post console
725echo "Updating Bacula passwords and names..."
726cd /etc/bacula
dabeb284 727for f in *-password; do
237bfacd 728 p=`cat $f`
329073aa 729 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || :
237bfacd 730done
329073aa 731sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || :
237bfacd
JK
732
733%post console-wx
734echo "Updating Bacula passwords and names..."
735cd /etc/bacula
dabeb284 736for f in *-password; do
237bfacd 737 p=`cat $f`
329073aa 738 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || :
237bfacd 739done
329073aa 740sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || :
237bfacd 741
304bb97e
AM
742%post console-qt4
743echo "Updating Bacula passwords and names..."
744cd /etc/bacula
dabeb284 745for f in *-password; do
304bb97e
AM
746 p=`cat $f`
747 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || :
748done
749sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || :
750
237bfacd
JK
751%post tray-monitor
752echo "Updating Bacula passwords and names..."
753cd /etc/bacula
dabeb284 754for f in *-password; do
237bfacd 755 p=`cat $f`
329073aa 756 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || :
237bfacd 757done
329073aa 758sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || :
bb6e7dc5 759
bb6e7dc5
AM
760%post rescue
761# link our current installed conf file to the rescue directory
f2337569 762ln -sf %{_sysconfdir}/bacula-fd.conf %{_sysconfdir}/rescue/bacula-fd.conf
bb6e7dc5
AM
763
764# run getdiskinfo
765echo "Creating rescue files for this system..."
d907cd57 766cd %{_sysconfdir}/rescue
bb6e7dc5
AM
767./getdiskinfo
768
769%preun rescue
770# remove the files created after the initial rpm installation
f2337569
JB
771if [ "$1" = "0" ]; then
772 rm -f %{_sysconfdir}/rescue/bacula-fd.conf
773 rm -f %{_sysconfdir}/rescue/partition.*
774 rm -f %{_sysconfdir}/rescue/format.*
775 rm -f %{_sysconfdir}/rescue/mount_drives
776 rm -f %{_sysconfdir}/rescue/start_network
777 rm -f %{_sysconfdir}/rescue/sfdisk
778 rm -rf %{_sysconfdir}/rescue/diskinfo/*
779fi
bb6e7dc5 780
5ce18635
AM
781%files common
782%defattr(644,root,root,755)
237bfacd 783%doc LICENSE
1a72afd2 784%dir %{_sysconfdir}
1b0a2248 785%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*-password
8ba087a4 786#%attr(755,root,root) %{_sbindir}/bsmtp
7425cb9d 787%attr(755,root,root) %{_sbindir}/btraceback
8ba087a4
ER
788%attr(755,root,root) /%{_libdir}/libbac-%{version}.so
789%attr(755,root,root) /%{_libdir}/libbaccfg-%{version}.so
790%attr(755,root,root) /%{_libdir}/libbacfind-%{version}.so
791%attr(755,root,root) /%{_libdir}/libbacpy-%{version}.so
792%attr(755,root,root) /%{_libdir}/libbacsql-%{version}.so
c74b041d 793%{_mandir}/man8/bacula.8*
7425cb9d
JK
794%{_mandir}/man1/bsmtp.1*
795%{_mandir}/man8/btraceback.8*
5ce18635 796%dir %{_libexecdir}/%{name}
1376b552 797%{_libexecdir}/%{name}/btraceback.dbx
5ce18635 798%{_libexecdir}/%{name}/btraceback.gdb
d6dbe33c 799%attr(770,root,bacula) %dir %{_localstatedir}
3c0eac7c
AM
800%attr(750,bacula,logs) %dir /var/log/bacula
801%attr(640,bacula,logs) %ghost /var/log/bacula/log
5ce18635
AM
802
803%files dir
bb6e7dc5 804%defattr(644,root,root,755)
237bfacd 805%doc ChangeLog CheckList ReleaseNotes kernstodo LICENSE
28647453 806#%doc examples %{name}-docs-%{version}/manual/{*.pdf,bacula}
cc515592 807%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-dir.conf
1a72afd2 808%ghost %{_sysconfdir}/.pw.sed
28c9f5d0 809%attr(640,root,root) %config(noreplace) /etc/logrotate.d/bacula-dir
1a72afd2 810%attr(754,root,root) /etc/rc.d/init.d/bacula-dir
cd23ba7c 811%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-dir
5ff0b6a3 812%attr(755,root,root) %{_sbindir}/bacula-dir
8ba087a4
ER
813#%attr(755,root,root) %{_sbindir}/bregex
814#%attr(755,root,root) %{_sbindir}/bwild
815#%attr(755,root,root) %{_sbindir}/dbcheck
79d0fef6 816%{_mandir}/man8/bacula-dir.8*
7425cb9d 817%{_mandir}/man8/dbcheck.8*
79d0fef6 818%{_libexecdir}/%{name}/query.sql
0f65a227
MM
819%if %{with bdb} || %{with dbi}
820%attr(755,root,root) %{_libexecdir}/%{name}/create_bdb_database
821%attr(755,root,root) %{_libexecdir}/%{name}/drop_bdb_database
822%attr(755,root,root) %{_libexecdir}/%{name}/drop_bdb_tables
823%attr(755,root,root) %{_libexecdir}/%{name}/grant_bdb_privileges
824%attr(755,root,root) %{_libexecdir}/%{name}/make_bdb_tables
825%attr(755,root,root) %{_libexecdir}/%{name}/update_bdb_*
826%endif
827%if %{with sqlite3} || %{with dbi}
7425cb9d
JK
828%attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite3_database
829%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_database
830%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_tables
831%attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite3_privileges
832%attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_tables
833%attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite3_*
aeaed87e 834%endif
0f65a227 835%if %{with mysql} || %{with dbi}
aeaed87e 836%attr(755,root,root) %{_libexecdir}/%{name}/create_mysql_database
837%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_database
838%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_tables
839%attr(755,root,root) %{_libexecdir}/%{name}/grant_mysql_privileges
840%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_tables
841%attr(755,root,root) %{_libexecdir}/%{name}/update_mysql_*
842%endif
0f65a227 843%if %{with pgsql} || %{with dbi}
e090896a
JK
844%attr(755,root,root) %{_libexecdir}/%{name}/create_postgresql_database
845%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_database
846%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_tables
847%attr(755,root,root) %{_libexecdir}/%{name}/grant_postgresql_privileges
848%attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_tables
849%attr(755,root,root) %{_libexecdir}/%{name}/update_postgresql_*
850%endif
0f65a227 851%if %{without dbi}
f0a88766 852%attr(755,root,root) %{_libexecdir}/%{name}/create_bacula_database
853%attr(755,root,root) %{_libexecdir}/%{name}/drop_bacula_database
854%attr(755,root,root) %{_libexecdir}/%{name}/drop_bacula_tables
855%attr(755,root,root) %{_libexecdir}/%{name}/grant_bacula_privileges
856%attr(755,root,root) %{_libexecdir}/%{name}/make_bacula_tables
857%attr(755,root,root) %{_libexecdir}/%{name}/update_bacula_tables
0f65a227 858%endif
8ba087a4
ER
859#%attr(755,root,root) %{_libexecdir}/%{name}/make_catalog_backup
860#%attr(755,root,root) %{_libexecdir}/%{name}/delete_catalog_backup
5ce18635
AM
861
862%files fd
863%defattr(644,root,root,755)
237bfacd 864%doc LICENSE
1b0a2248 865%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-fd.conf
1a72afd2 866%attr(754,root,root) /etc/rc.d/init.d/bacula-fd
cd23ba7c 867%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-fd
5ff0b6a3 868%attr(755,root,root) %{_sbindir}/bacula-fd
79d0fef6 869%{_mandir}/man8/bacula-fd.8*
5ce18635
AM
870
871%files sd
872%defattr(644,root,root,755)
237bfacd 873%doc LICENSE
1b0a2248 874%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-sd.conf
0a03f92d 875%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mtx-changer.conf
1a72afd2 876%attr(754,root,root) /etc/rc.d/init.d/bacula-sd
cd23ba7c 877%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-sd
5ff0b6a3
AM
878%attr(755,root,root) %{_sbindir}/bacula-sd
879%attr(755,root,root) %{_sbindir}/bcopy
880%attr(755,root,root) %{_sbindir}/bextract
881%attr(755,root,root) %{_sbindir}/bls
882%attr(755,root,root) %{_sbindir}/bscan
883%attr(755,root,root) %{_sbindir}/btape
329073aa 884%attr(755,root,root) %{_libexecdir}/%{name}/mtx-changer
150db1c2 885%attr(755,root,root) %{_libexecdir}/%{name}/disk-changer
329073aa 886%attr(755,root,root) %{_libexecdir}/%{name}/dvd-handler
5ce18635 887%{_mandir}/man8/bacula-sd.8*
7425cb9d
JK
888%{_mandir}/man8/bcopy.8*
889%{_mandir}/man8/bextract.8*
890%{_mandir}/man8/bls.8*
891%{_mandir}/man8/bscan.8*
892%{_mandir}/man8/btape.8*
5ce18635
AM
893
894%files console
bb6e7dc5 895%defattr(644,root,root,755)
237bfacd 896%doc LICENSE
1b0a2248 897%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bconsole.conf
1a72afd2 898%attr(755,root,root) %{_sbindir}/bconsole
7425cb9d 899%{_mandir}/man8/bconsole.8*
5ce18635 900
1376b552 901%if %{with console_wx}
5ce18635
AM
902%files console-wx
903%defattr(644,root,root,755)
237bfacd 904%doc LICENSE
1a72afd2 905%{_pixmapsdir}/%{name}.png
237bfacd 906%{_desktopdir}/bacula-wx.desktop
e3dd858d 907%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwx-console.conf
908%attr(755,root,root) %{_sbindir}/bwx-console
909%{_mandir}/man1/bacula-bwxconsole.1*
1376b552 910%endif
bb6e7dc5 911
304bb97e
AM
912%if %{with bat}
913%files console-qt4
914%defattr(644,root,root,755)
915%doc LICENSE
916%{_pixmapsdir}/%{name}.png
917%{_desktopdir}/bat.desktop
dabeb284 918%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bat.conf
304bb97e
AM
919%attr(755,root,root) %{_sbindir}/bat
920%{_mandir}/man1/bat.1*
921%endif
922
cacc89f5 923%if %{with console_wx}
237bfacd
JK
924%files tray-monitor
925%defattr(644,root,root,755)
926%doc LICENSE
8ba087a4
ER
927%attr(755,root,root) %{_sbindir}/bacula-tray-monitor
928#%{_pixmapsdir}/%{name}-tray-monitor.xpm
929#%{_desktopdir}/%{name}-tray-monitor.desktop
cd23ba7c 930%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tray-monitor.conf
7425cb9d 931%{_mandir}/man1/bacula-tray-monitor.1*
cacc89f5 932%endif
237bfacd 933
2b68b0cb 934%if %{with rescue}
bb6e7dc5
AM
935%files rescue
936%defattr(644,root,root,755)
c741b8e0 937%doc LICENSE
4280e495 938%dir %{_sysconfdir}/rescue
1b0a2248 939%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/backup.etc.list
940%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/bacula-fd
941%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/format_floppy
942%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/getdiskinfo
943%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/make_rescue_disk
944%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_bacula
945%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_etc
946%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_grub
947%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_lilo
948%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/sfdisk.bz2
2b68b0cb 949%endif
This page took 0.191089 seconds and 4 git commands to generate.