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