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