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