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