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