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