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