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