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