]> git.pld-linux.org Git - packages/bacula.git/blame - bacula.spec
- build process doesn't fail when something fails to build - catch errors from log...
[packages/bacula.git] / bacula.spec
CommitLineData
237bfacd 1# TODO:
b0473ed3 2# - update desktop files, think about su-wrappers for console (with .desktop files)
2b68b0cb 3# - package web admin
2007449a 4# - fix log file permissions
21838166 5# - check on upgrade (5.0 and 5.2 databases are NOT compatible)
2b68b0cb 6#
f2527d22 7# Conditional build:
6d11b02b 8%bcond_without console_wx # wx-console program
6d11b02b 9%bcond_without bat # bat Qt4 GUI
41bc1b6e
JK
10%bcond_without mysql # use MySQL
11%bcond_without pgsql # use PostgreSQL
41bc1b6e 12%bcond_without sqlite3 # use SQLite3
051f919c 13%bcond_without python # Python Scripting support, http://www.bacula.org/3.0.x-manuals/en/concepts/concepts/Python_Scripting.html
819cd4b0 14%bcond_without nagios # build nagios plugin
e979c70d 15%bcond_with rescue
6d11b02b 16%bcond_with sqlite3_sync_off # makes SQLite3 backend much faster, but less reliable
0eba139b 17
8ba087a4 18%if %{without sqlite3}
aeaed87e 19%undefine with_sqlite3_sync_off
20%endif
0eba139b 21
bb6e7dc5 22Summary: Bacula - The Network Backup Solution
6a00efc0 23Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
bb6e7dc5 24Name: bacula
53a3431c
AM
25Version: 5.2.1
26Release: 0.1
ccb5f851 27License: AGPL v3
52504a6d 28Group: Networking/Utilities
b0473ed3 29Source0: http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
53a3431c 30# Source0-md5: 793da9f89fc5e024b6b95eb16a3120e5
b0473ed3 31Source1: http://downloads.sourceforge.net/bacula/%{name}-docs-%{version}.tar.bz2
53a3431c 32# Source1-md5: d4db495def9e7843bcca8aff2d4d493b
7ed9cb8e 33Source2: http://downloads.sourceforge.net/bacula/%{name}-rescue-5.0.1.tar.gz
34# Source2-md5: bb194aed8e204f54bf2f61d7e721f257
5ce18635
AM
35Source10: %{name}-dir.init
36Source11: %{name}-fd.init
37Source12: %{name}-sd.init
38Source13: %{name}.logrotate
4280e495
JK
39Source14: %{name}-dir.sysconfig
40Source15: %{name}-fd.sysconfig
41Source16: %{name}-sd.sysconfig
0a03f92d 42Patch0: %{name}-mtx-changer.patch
53a3431c
AM
43Patch1: %{name}-branding.patch
44Patch2: %{name}-conf.patch
45Patch3: %{name}-desktop.patch
46Patch4: make_catalog_backup-setup-home.patch
47Patch5: %{name}-mysql_thread.patch
ffb67df4 48Patch6: %{name}-wxconsole.patch
bb6e7dc5 49URL: http://www.bacula.org/
0819f86f 50BuildRequires: acl-devel
51BuildRequires: autoconf
f2337569 52BuildRequires: automake
0819f86f 53BuildRequires: gettext-devel
f8f434ba 54%{?with_console_wx:BuildRequires: gtk+2-devel}
0819f86f 55BuildRequires: libcap-devel
2ddca527 56BuildRequires: libtool >= 2:2.2
7425cb9d
JK
57%if %{with rescue}
58BuildRequires: fakeroot
59%endif
f183f7ef 60BuildRequires: libwrap-devel
cc01862b 61BuildRequires: ncurses-devel
bb6e7dc5
AM
62BuildRequires: openssl-devel
63BuildRequires: pkgconfig
7425cb9d 64%if %{with python}
e979c70d 65BuildRequires: python-devel
b403dd64 66BuildRequires: python-modules
7425cb9d 67%endif
c19580f6 68%if %{with bat}
304bb97e 69BuildRequires: QtCore-devel
e3dd858d 70BuildRequires: QtGui-devel
63393bb7
AM
71BuildRequires: qt4-build >= 4.6.2
72BuildRequires: qt4-qmake >= 4.6.2
c19580f6 73%endif
4c7199dc
SP
74%{?with_mysql:BuildRequires: mysql-devel}
75%{?with_pgsql:BuildRequires: postgresql-devel}
bb6e7dc5 76BuildRequires: readline-devel
b403dd64 77BuildRequires: rpm-pythonprov
52504a6d 78BuildRequires: rpmbuild(macros) >= 1.268
cc01862b 79BuildRequires: sed >= 4.0
6d11b02b 80%{?with_sqlite3:BuildRequires: sqlite3-devel}
b403dd64 81BuildRequires: which
1376b552 82%if %{with console_wx}
7425cb9d 83BuildRequires: wxGTK2-unicode-devel >= 2.4.0
1376b552 84%endif
bb6e7dc5 85BuildRequires: zlib-devel
bb6e7dc5
AM
86BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
87
d5e827d3 88%define _sysconfdir /etc/%{name}
1a72afd2 89%define _localstatedir /var/lib/%{name}
d5e827d3 90%define nagiosplugindir %{_libdir}/nagios/plugins
bb6e7dc5 91
b8003eec 92# from 'the worst' to 'the best'
53a3431c 93%define databases %{?with_sqlite3:sqlite3} %{?with_mysql:mysql} %{?with_pgsql:postgresql}
41bc1b6e 94
b60fe5cb
ER
95# dependency section is broken. ccache usage is instead to makefiles
96%undefine with_ccache
97
bb6e7dc5
AM
98%description
99Bacula - It comes by night and sucks the vital essence from your
100computers.
101
102Bacula is a set of computer programs that permit you (or the system
103administrator) to manage backup, recovery, and verification of
104computer data across a network of computers of different kinds. In
105technical terms, it is a network client/server based backup program.
106Bacula is relatively easy to use and efficient, while offering many
107advanced storage management features that make it easy to find and
5ce18635 108recover lost or damaged files.
bb6e7dc5 109
192fbfcf
JR
110%description -l pl.UTF-8
111Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 112
192fbfcf
JR
113Bacula to zbiór programów umożliwiających administratorowi na
114zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
168306e6
ER
115sieci komputerów różnego rodzaju. W terminologii technicznej jest to
116program do kopii zapasowych pracujący w architekturze klient-serwer.
117Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
118wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
119ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
120plików.
cc01862b 121
5ce18635
AM
122%package common
123Summary: Common files for bacula package
6a00efc0 124Summary(pl.UTF-8): Pliki wspólne dla pakietu bacula
bb6e7dc5 125Group: Networking/Utilities
237bfacd
JK
126Requires(post): openssl-tools
127Requires(post): sed >= 4.0
1bd568e8 128Requires(post,preun): /sbin/chkconfig
65253ffd
JK
129Requires(postun): /usr/sbin/groupdel
130Requires(postun): /usr/sbin/userdel
1b0a2248 131Requires(pre): /usr/sbin/groupadd
132Requires(pre): /usr/sbin/useradd
abdcd1c5
JB
133Conflicts: bacula-console < 0:1.34.6
134Conflicts: bacula-dir < 0:1.34.6
135Conflicts: bacula-fd < 0:1.34.6
136Conflicts: bacula-sd < 0:1.34.6
bb6e7dc5 137
5ce18635 138%description common
bb6e7dc5
AM
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 common -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
168306e6
ER
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 dir
163Summary: Bacula Director and Catalog services
6a00efc0 164Summary(pl.UTF-8): Usługi Bacula Director i Catalog
5ce18635 165Group: Networking/Utilities
237bfacd 166Requires(post): sed >= 4.0
74c2ad1c
ER
167Requires: %{name}-common = %{version}-%{release}
168Requires: bacula(db) = %{version}-%{release}
abdcd1c5 169Obsoletes: bacula-updatedb
bb6e7dc5 170
5ce18635
AM
171%description dir
172Bacula - It comes by night and sucks the vital essence from your
173computers.
174
175Bacula Director is the program that supervises all the backup,
176restore, verify and archive operations. The system administrator uses
177the Bacula Director to schedule backups and to recover files. Catalog
178services are comprised of the software programs responsible for
179maintaining the file indexes and volume databases for all files backed
180up. The Catalog services permit the System Administrator or user to
181quickly locate and restore any desired file, since it maintains a
7533d19f 182record of all Volumes used, all Jobs run, and all Files saved.
5ce18635 183
192fbfcf
JR
184%description dir -l pl.UTF-8
185Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 186
192fbfcf 187Bacula Director to program nadzorujący wszystkie operacje wykonywania
cc01862b 188kopii zapasowych, odzyskiwania, weryfikacji i archiwizowania.
192fbfcf
JR
189Administrator używa Bacula Directora do szeregowania kopii zapasowych
190oraz odzyskiwania plików. Usługi katalogowe (Catalog services) są
168306e6
ER
191używane przez programy odpowiedzialne za zarządzanie indeksami plików
192i bazą danych wolumenów dla wszystkich kopiowanych plików. Usługi
193katalogowe umożliwiają administratorowi lub użytkownikowi szybko
194zlokalizować i odtworzyć dowolny plik, ponieważ utrzymują rekord ze
195wszystkimi używanymi wolumenami, uruchomionymi zadaniami i zapisanymi
196plikami.
cc01862b 197
5ce18635
AM
198%package console
199Summary: Bacula Console
6a00efc0 200Summary(pl.UTF-8): Konsola Baculi
5ce18635 201Group: Networking/Utilities
237bfacd 202Requires(post): sed >= 4.0
74c2ad1c 203Requires: %{name}-common = %{version}-%{release}
5ce18635
AM
204
205%description console
206Bacula - It comes by night and sucks the vital essence from your
207computers.
208
209Bacula Console is the program that allows the administrator or user to
210communicate with the Bacula Director. This is the text only console
211interface.
212
192fbfcf
JR
213%description console -l pl.UTF-8
214Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 215
192fbfcf
JR
216Bacula Console to program umożliwiający administratorowi lub
217użytkownikowi komunikowanie się z programem Bacula Director. To jest
cc01862b
JB
218interfejs czysto tekstowy.
219
5ce18635 220%package console-wx
cc01862b 221Summary: Bacula wxWidgets Console
6a00efc0 222Summary(pl.UTF-8): Konsola Baculi oparta na wxWidgets
5ce18635 223Group: Networking/Utilities
237bfacd 224Requires(post): sed >= 4.0
74c2ad1c 225Requires: %{name}-common = %{version}-%{release}
5ce18635
AM
226
227%description console-wx
228Bacula - It comes by night and sucks the vital essence from your
229computers.
230
231Bacula Console is the program that allows the administrator or user to
cc01862b 232communicate with the Bacula Director. This is the wxWidgets GUI
5ce18635
AM
233interface.
234
192fbfcf
JR
235%description console-wx -l pl.UTF-8
236Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 237
192fbfcf
JR
238Bacula Console to program umożliwiający administratorowi lub
239użytkownikowi komunikowanie się z programem Bacula Director. To jest
cc01862b
JB
240interfejs graficzny oparty na wxWidgets.
241
304bb97e 242%package console-qt4
ece2f4c3
JB
243Summary: Bacula Qt4 Console
244Summary(pl.UTF-8): Konsola Baculi oparta na Qt4
304bb97e
AM
245Group: Networking/Utilities
246Requires(post): sed >= 4.0
63393bb7 247Requires: QtCore >= 4.6.2
74c2ad1c 248Requires: %{name}-common = %{version}-%{release}
304bb97e
AM
249
250%description console-qt4
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
ece2f4c3 255communicate with the Bacula Director. This is the Qt4 GUI interface.
304bb97e
AM
256
257%description console-qt4 -l pl.UTF-8
258Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
259
260Bacula Console to program umożliwiający administratorowi lub
261użytkownikowi komunikowanie się z programem Bacula Director. To jest
ece2f4c3 262interfejs graficzny oparty na Qt4.
304bb97e 263
237bfacd
JK
264%package tray-monitor
265Summary: Bacula Tray Monitor
266Group: Networking/Utilities
237bfacd 267Requires(post): sed >= 4.0
74c2ad1c 268Requires: %{name}-common = %{version}-%{release}
237bfacd
JK
269
270%description tray-monitor
271Bacula - It comes by night and sucks the vital essence from your
272computers.
273
1b0a2248 274The Monitor program is typically an icon in the system tray. However,
275once the icon is expanded into a full window, the administrator or
276user can obtain status information about the Director or the backup
277status on the local workstation or any other Bacula daemon that is
278configured.
237bfacd 279
5ce18635
AM
280%package fd
281Summary: Bacula File services (Client)
6a00efc0 282Summary(pl.UTF-8): Usługi Bacula File (klient)
5ce18635 283Group: Networking/Utilities
237bfacd 284Requires(post): sed >= 4.0
74c2ad1c 285Requires: %{name}-common = %{version}-%{release}
5ce18635
AM
286
287%description fd
288Bacula - It comes by night and sucks the vital essence from your
289computers.
290
291Bacula File services (or Client program) is the software program that
292is installed on the machine to be backed up. It is specific to the
293operating system on which it runs and is responsible for providing the
294file attributes and data when requested by the Director. The File
295services are also responsible for the file system dependent part of
296restoring the file attributes and data during a recovery operation.
297This program runs as a daemon on the machine to be backed up, and in
298some of the documentation, the File daemon is referred to as the
299Client (for example in Bacula configuration file).
300
192fbfcf
JR
301%description fd -l pl.UTF-8
302Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
303
168306e6
ER
304Usługi Bacula File (inaczej program kliencki) to oprogramowanie, które
305instaluje się na maszynach, z których mają być wykonywane kopie
306zapasowe. Są one specyficzne dla systemu operacyjnego, pod którym
307działa dana maszyna i odpowiadają za dostarczanie atrybutów i danych
308plików na żądanie Directora. Usługi plikowe są także odpowiedzialne za
309zależną od systemu plików część odzyskiwania atrybutów i danych plików
310podczas operacji odzyskiwania danych. Program działa jako demon na
311maszynie, która ma być backupowana i w części dokumentacji demon ten
312(File) jest nazywany klientem (na przykład w pliku konfiguracyjnym
313Baculi).
cc01862b 314
5ce18635
AM
315%package sd
316Summary: Bacula Storage services
6a00efc0 317Summary(pl.UTF-8): Usługi Bacula Storage
5ce18635 318Group: Networking/Utilities
237bfacd 319Requires(post): sed >= 4.0
74c2ad1c 320Requires: %{name}-common = %{version}-%{release}
329073aa 321Conflicts: dvd+rw-tools <= 5.21.4.10.8-1
5ce18635
AM
322
323%description sd
324Bacula - It comes by night and sucks the vital essence from your
325computers.
326
327Bacula Storage services consist of the software programs that perform
328the storage and recovery of the file attributes and data to the
329physical backup media or volumes. In other words, the Storage daemon
330is responsible for reading and writing your tapes (or other storage
331media, e.g. files). The Storage services runs as a daemon on the
332machine that has the backup device (usually a tape drive).
bb6e7dc5 333
192fbfcf
JR
334%description sd -l pl.UTF-8
335Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 336
192fbfcf
JR
337Usługi Bacula Storage składają się z programów obsługujących
338przechowywanie danych oraz odzyskiwanie atrybutów i danych na
168306e6
ER
339fizycznych nośnikach lub wolumenach. Innymi słowy, demon Storage jest
340odpowiedzialny za odczyt i zapis taśm (lub innych nośników do
341przechowywania danych, np. plików). Usługi Storage działają jako demon
342na maszynie, która zawiera urządzenie backupowe (zwykle napęd
192fbfcf 343taśmowy).
cc01862b 344
41bc1b6e
JK
345%package db-postgresql
346Summary: PostgreSQL database driver for Bacula
347Summary(pl.UTF-8): Sterownik bazy PostgreSQL dla Baculi
348Group: Networking/Utilities
349Requires(post): /sbin/ldconfig
74c2ad1c
ER
350Requires: %{name}-common = %{version}-%{release}
351Provides: bacula(db) = %{version}-%{release}
168306e6 352Obsoletes: bacula(db)
41bc1b6e
JK
353
354%description db-postgresql
355PostgreSQL database driver for Bacula.
356
357%description db-postgresql -l pl.UTF-8
358Sterownik bazy PostgreSQL dla Baculi.
359
360%package db-mysql
361Summary: MySQL database driver for Bacula
362Summary(pl.UTF-8): Sterownik bazy MySQL dla Baculi
363Group: Networking/Utilities
364Requires(post): /sbin/ldconfig
74c2ad1c
ER
365Requires: %{name}-common = %{version}-%{release}
366Provides: bacula(db) = %{version}-%{release}
168306e6 367Obsoletes: bacula(db)
41bc1b6e
JK
368
369%description db-mysql
370MySQL database driver for Bacula.
371
372%description db-mysql -l pl.UTF-8
373Sterownik bazy MySQL dla Baculi.
374
375%package db-sqlite3
376Summary: SQLite database driver for Bacula
377Summary(pl.UTF-8): Sterownik bazy SQLite dla Baculi
378Group: Networking/Utilities
379Requires(post): /sbin/ldconfig
74c2ad1c
ER
380Requires: %{name}-common = %{version}-%{release}
381Provides: bacula(db) = %{version}-%{release}
168306e6 382Obsoletes: bacula(db)
41bc1b6e
JK
383
384%description db-sqlite3
385SQLite database driver for Bacula.
386
387%description db-sqlite3 -l pl.UTF-8
388Sterownik bazy SQLite dla Baculi.
389
5ce18635 390%package rescue
bb6e7dc5 391Summary: Bacula - The Network Backup Solution
6a00efc0 392Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
bb6e7dc5 393Group: Networking/Utilities
74c2ad1c 394Requires: %{name}-fd = %{version}-%{release}
bb6e7dc5
AM
395Requires: coreutils
396Requires: util-linux
bb6e7dc5
AM
397
398%description rescue
399Bacula - It comes by night and sucks the vital essence from your
400computers.
401
402Bacula is a set of computer programs that permit you (or the system
403administrator) to manage backup, recovery, and verification of
404computer data across a network of computers of different kinds. In
405technical terms, it is a network client/server based backup program.
406Bacula is relatively easy to use and efficient, while offering many
407advanced storage management features that make it easy to find and
cc01862b 408recover lost or damaged files.
bb6e7dc5
AM
409
410This package installs scripts for disaster recovery and builds rescue
1b0a2248 411floppy disk for bare metal recovery.
237bfacd 412
192fbfcf
JR
413%description rescue -l pl.UTF-8
414Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 415
192fbfcf
JR
416Bacula to zbiór programów umożliwiających administratorowi na
417zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
168306e6
ER
418sieci komputerów różnego rodzaju. W terminologii technicznej jest to
419program do kopii zapasowych pracujący w architekturze klient-serwer.
420Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
421wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
422ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
423plików.
424
425Ten pakiet zawiera skrypty do odtwarzania po awarii i tworzy dyskietkę
426ratunkowe do odtwarzania systemu od zera.
bb6e7dc5 427
b0473ed3
ER
428%package -n nagios-plugin-check_bacula
429Summary: Nagios plugin to check bacula
430Group: Networking
431Requires: nagios-common
432
433%description -n nagios-plugin-check_bacula
434Nagios plugin to check bacula.
435
bb6e7dc5 436%prep
7425cb9d 437%setup -q -a 1
0a03f92d 438%patch0 -p1
53a3431c 439%patch1 -p1
cf0cfe65 440%patch2 -p1
ecb9bab1 441%patch3 -p1
e740cd49 442%patch4 -p1
c08d8c7a 443%patch5 -p1
ffb67df4 444%patch6 -p1
aa6db71e 445
783dd8b1 446tar -xf %{SOURCE2} && ln -s bacula-rescue-* rescue
cf50297e 447
10650249
AM
448sed -i -e 's#bindir=.*#bindir=%{_bindir}#g' \
449 src/cats/create_* src/cats/delete_* src/cats/drop_* \
450 src/cats/grant_* src/cats/make_* src/cats/update_*
237bfacd 451sed -i -e 's/@hostname@/--hostname--/' src/*/*.conf.in
efb15923 452sed -i -e 's/@basename@/--hostname--/' src/*/*.conf.in
bb6e7dc5
AM
453
454%build
4a39c080
ER
455cd autoconf
456%{__aclocal} -I bacula-macros -I gettext-macros
457# $BUILD_DIR not seen by libtoolize, export it
458BUILD_DIR=.. %{__libtoolize}
459cd ..
cf50297e
AM
460%{__autoconf} --prepend-include=$(pwd)/autoconf autoconf/configure.in > configure
461
dae3a0bd
JK
462CPPFLAGS="-I/usr/include/ncurses -I%{_includedir}/readline"
463
53a3431c
AM
464WXCONFIG=%{_bindir}/wx-gtk2-unicode-config \
465QMAKE=%{_bindir}/qt4-qmake \
466%configure \
467 --with-scriptdir=%{_libexecdir}/%{name} \
468 %{?with_bat:--enable-bat} \
469 --disable-conio \
470 --enable-smartalloc \
471 %{?with_console_wx:--enable-bwx-console} \
53a3431c
AM
472 --enable-tray-monitor \
473 %{?with_python:--with-python} \
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 \
482 --enable-batch-insert \
483 %{?with_pgsql:--with-postgresql} \
484 %{?with_mysql:--with-mysql} \
485 %{?with_sqlite3:--with-sqlite3} \
486 %{?with_sqlite3_sync_off:--enable-extra-sqlite3-init="pragma synchronous=0;"} \
487 --with-dir-password="#FAKE-dir-password#" \
488 --with-fd-password="#FAKE-fd-password#" \
489 --with-sd-password="#FAKE-sd-password#" \
490 --with-mon-dir-password="#FAKE-mon-dir-password#" \
491 --with-mon-fd-password="#FAKE-mon-fd-password#" \
492 --with-mon-sd-password="#FAKE-mon-sd-password#" \
493 --with-openssl
bb6e7dc5 494
b8003eec
JK
495%if %{with bat}
496cd src/qt-console
497qmake-qt4 bat.pro
498cd ../..
499%endif
500
ffb67df4
AM
501%{__make} 2>&1 | tee log
502# check for build errors
503grep "Error in" log && exit 1
b8003eec 504
b0473ed3
ER
505%if %{with nagios}
506# nagios plugin
507%{__make} -C examples/nagios/check_bacula
508%endif
509
2b68b0cb
AM
510%if %{with rescue}
511cd rescue
512%configure \
513 --with-bacula=../
514cd linux/cdrom
515fakeroot %{__make}
516%endif
517
bb6e7dc5
AM
518%install
519rm -rf $RPM_BUILD_ROOT
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
21838166
AM
527# create copies of make_catalog_backup for specific databases; zeore default one (will be ghost)
528for database in %{databases}; do
529 sed -e "s#default_db_type=.*#default_db_type=${database}#g" \
530 $RPM_BUILD_ROOT%{_libdir}/%{name}/make_catalog_backup \
531 > $RPM_BUILD_ROOT%{_libdir}/%{name}/make_${database}_catalog_backup
532 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/make_${database}_catalog_backup
533done
534:> $RPM_BUILD_ROOT%{_libdir}/%{name}/make_catalog_backup
535
5a48616e 536# we use db dependant (at compile time) shell script only
53a3431c 537rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/make_catalog_backup.pl
5a48616e 538
53a3431c 539## replace with empty file, replaced by ldconfig from each db-* package on intsall
21838166
AM
540rm $RPM_BUILD_ROOT%{_libdir}/libbaccats-%{version}.so
541touch $RPM_BUILD_ROOT%{_libdir}/libbaccats-%{version}.so
aa70ead8 542
8b9ffa69
ER
543install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-dir
544install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-fd
545install -p %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-sd
546cp -a %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir
547cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/bacula-dir
548cp -a %{SOURCE15} $RPM_BUILD_ROOT/etc/sysconfig/bacula-fd
549cp -a %{SOURCE16} $RPM_BUILD_ROOT/etc/sysconfig/bacula-sd
d907cd57 550
cacc89f5
AZ
551%if %{with console_wx}
552# tray-monitor is for regular users
a3c6e4e6 553#mv $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor $RPM_BUILD_ROOT%{_bindir}
cacc89f5 554
b0473ed3 555cp -a scripts/bacula.png $RPM_BUILD_ROOT%{_pixmapsdir}/bacula.png
a3c6e4e6 556#install src/tray-monitor/generic.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/bacula-tray-monitor.xpm
237bfacd 557sed -e 's/gnome-console/wx-console/g;s/Console/Wx Console/g' \
6b824a09 558 scripts/wxconsole.desktop.consolehelper > $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop
a3c6e4e6
AZ
559#sed -e 's#%{_sbindir}#%{_bindir}#' \
560# scripts/bacula-tray-monitor.desktop > $RPM_BUILD_ROOT%{_desktopdir}/bacula-tray-monitor.desktop
cacc89f5 561%endif
d907cd57 562
304bb97e 563%if %{with bat}
37bd6446
ER
564# qmake somewhy does not always create install_bins target. install our own the bin
565rm -f $RPM_BUILD_ROOT%{_sbindir}/bat
566libtool --silent --mode=install install src/qt-console/bat $RPM_BUILD_ROOT%{_bindir}
b0473ed3 567cp -a scripts/bat.desktop $RPM_BUILD_ROOT%{_desktopdir}
304bb97e
AM
568%endif
569
2b68b0cb 570%if %{with rescue}
d907cd57 571# install the rescue stuff, these are the rescue scripts
b0473ed3
ER
572cp -a rescue/linux/floppy/backup.etc.list $RPM_BUILD_ROOT%{_sysconfdir}/rescue
573cp -a rescue/linux/floppy/sfdisk.bz2 $RPM_BUILD_ROOT%{_sysconfdir}/rescue
574install -p rescue/linux/floppy/*_* $RPM_BUILD_ROOT%{_sysconfdir}/rescue
575install -p rescue/linux/floppy/getdiskinfo $RPM_BUILD_ROOT%{_sysconfdir}/rescue
2b68b0cb 576%endif
bb6e7dc5 577
3c0eac7c
AM
578touch $RPM_BUILD_ROOT/var/log/bacula/log
579
2f8e46d4
ER
580# install the updatedb scripts for older versions that last full release
581# 2.0 -> 3.0 : 10_to_11
21838166 582# 5.0 -> 5.2 : 12_to_14
2f8e46d4 583install -p updatedb/update_*_tables_10_to_11 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
21838166
AM
584install -p updatedb/update_*_tables_11_to_12 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
585install -p updatedb/update_*_tables_12_to_14 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
d907cd57 586
237bfacd
JK
587# place for site passwords
588touch $RPM_BUILD_ROOT%{_sysconfdir}/{dir-password,fd-password,sd-password}
589touch $RPM_BUILD_ROOT%{_sysconfdir}/{mon-dir-password,mon-fd-password,mon-sd-password}
bb6e7dc5 590
5a48616e 591mv $RPM_BUILD_ROOT%{_libexecdir}/%{name}/mtx-changer.conf $RPM_BUILD_ROOT%{_sysconfdir}/mtx-changer.conf
0a03f92d 592
1a72afd2
AM
593# some file changes
594rm -f $RPM_BUILD_ROOT%{_libexecdir}/%{name}/{gconsole,startmysql,stopmysql,bacula,bconsole,fd}
8ba087a4 595%if %{without console_wx}
1376b552 596rm -f $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop
1376b552 597%endif
1a72afd2
AM
598touch $RPM_BUILD_ROOT%{_sysconfdir}/.pw.sed
599
8ba087a4
ER
600rm $RPM_BUILD_ROOT%{_docdir}/bacula/ChangeLog
601rm $RPM_BUILD_ROOT%{_docdir}/bacula/INSTALL
602rm $RPM_BUILD_ROOT%{_docdir}/bacula/LICENSE
603rm $RPM_BUILD_ROOT%{_docdir}/bacula/README
604rm $RPM_BUILD_ROOT%{_docdir}/bacula/ReleaseNotes
605rm $RPM_BUILD_ROOT%{_docdir}/bacula/VERIFYING
606rm $RPM_BUILD_ROOT%{_docdir}/bacula/technotes
607
7545e94f
JK
608# startup scripts, those in /etc/rc.d/init.d are better
609rm $RPM_BUILD_ROOT%{_sbindir}/bacula
610rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/bacula-ctl-*
611
41bc1b6e 612# unsupported
8fb2ca23 613rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/btraceback.mdb
41bc1b6e 614
7545e94f
JK
615# rename to avoid possible conflicts
616mv $RPM_BUILD_ROOT%{_sbindir}/{,bacula-}dbcheck
617mv $RPM_BUILD_ROOT%{_mandir}/man8/{,bacula-}dbcheck.8.gz
618
619# no -devel files packaged, so this is also useless
620rm $RPM_BUILD_ROOT%{_libdir}/libbac{,cfg,find,py,sql}.{so,la}
621
b0473ed3 622%if %{with nagios}
819cd4b0 623install -d $RPM_BUILD_ROOT%{nagiosplugindir}
b0473ed3
ER
624%{__make} -C examples/nagios/check_bacula install \
625 sbindir=%{nagiosplugindir} \
403b68c1 626 INSTALL_PROGRAM="libtool --mode=install install -p" \
b0473ed3
ER
627 DESTDIR=$RPM_BUILD_ROOT
628%endif
7545e94f 629
f2337569
JB
630%clean
631rm -rf $RPM_BUILD_ROOT
632
5ce18635 633%pre common
fbc59152
ER
634%groupadd -P %{name}-common -g 136 -r -f bacula
635%useradd -P %{name}-common -u 136 -r -d /var/lib/bacula -s /bin/false -c "Bacula User" -g bacula bacula
5ce18635 636
b8003eec 637%define update_configs \
210f992b 638echo "Updating bacula passwords and names..." | %banner -a %{name} \
5a48616e 639cd %{_sysconfdir} \
2f8e46d4
ER
640for f in *-password; do \
641 if [ ! -s $f ]; then \
b8003eec
JK
642 openssl rand -base64 33 > $f \
643 fi \
2f8e46d4
ER
644 p=$(cat $f) \
645 for cf in *.conf *.conf.rpmnew; do \
b8003eec
JK
646 [ -f $cf ] && sed -i -e"s:#FAKE-$f#:$p:" "$cf" || : \
647 done \
648done \
2f8e46d4 649for cf in *.conf *.conf.rpmnew; do \
b8003eec
JK
650 [ -f $cf ] && sed -i -e"s:--hostname--:`hostname`:" "$cf" || : \
651done
652
237bfacd 653%post common
0a03f92d 654/sbin/ldconfig
b8003eec 655%update_configs
237bfacd 656
5ce18635 657%postun common
0a03f92d 658/sbin/ldconfig
28c9f5d0
AM
659if [ "$1" = "0" ]; then
660 %userremove bacula
661 %groupremove bacula
662fi
5ce18635 663
b8003eec
JK
664%triggerpostun dir -- %{name}-dir < 5.0
665%banner bacula-dir -t3 <<EOF
666You have upgraded from an older version of Bacula director.
bb6e7dc5 667
b8003eec
JK
668You will probably need to call %{_libexecdir}/%{name}/update_bacula_tables
669script to upgrade the database.
670EOF
237bfacd 671
b8003eec
JK
672%post dir
673%update_configs
1a72afd2 674/sbin/chkconfig --add bacula-dir
52504a6d 675%service bacula-dir restart "Bacula Director daemon"
bb6e7dc5 676
5ce18635 677%preun dir
1a72afd2 678if [ "$1" = "0" ]; then
52504a6d 679 %service bacula-dir stop
9aa69d51 680 /sbin/chkconfig --del bacula-dir
1a72afd2 681fi
bb6e7dc5 682
5ce18635 683%post fd
b8003eec 684%update_configs
1a72afd2 685/sbin/chkconfig --add bacula-fd
52504a6d 686%service bacula-fd restart "Bacula File daemon"
bb6e7dc5 687
5ce18635 688%preun fd
1a72afd2 689if [ "$1" = "0" ]; then
52504a6d 690 %service bacula-fd stop
9aa69d51 691 /sbin/chkconfig --del bacula-fd
1a72afd2 692fi
5ce18635
AM
693
694%post sd
b8003eec 695%update_configs
1a72afd2 696/sbin/chkconfig --add bacula-sd
52504a6d 697%service bacula-sd restart "Bacula Storage daemon"
bb6e7dc5 698
5ce18635 699%preun sd
1a72afd2 700if [ "$1" = "0" ]; then
52504a6d 701 %service bacula-sd stop
9aa69d51 702 /sbin/chkconfig --del bacula-sd
1a72afd2 703fi
5ce18635
AM
704
705%pre console
706if [ -e %{_sysconfdir}/console.conf -a ! -e %{_sysconfdir}/bconsole.conf ]; then
9aa69d51 707 mv %{_sysconfdir}/console.conf %{_sysconfdir}/bconsole.conf
bb6e7dc5
AM
708fi
709
237bfacd 710%post console
b8003eec 711%update_configs
237bfacd
JK
712
713%post console-wx
b8003eec 714%update_configs
237bfacd 715
827db798 716%triggerpostun common -- %{name}-common < 5.0.1-2
44069e22 717find %{_sysconfdir}/bat.conf* -perm /007 -print0 2>/dev/null | xargs -0 -r chmod 600 || :
3a5cd5d7 718
304bb97e 719%post console-qt4
b8003eec 720%update_configs
304bb97e 721
237bfacd 722%post tray-monitor
b8003eec 723%update_configs
bb6e7dc5 724
bb6e7dc5
AM
725%post rescue
726# link our current installed conf file to the rescue directory
f2337569 727ln -sf %{_sysconfdir}/bacula-fd.conf %{_sysconfdir}/rescue/bacula-fd.conf
bb6e7dc5
AM
728
729# run getdiskinfo
730echo "Creating rescue files for this system..."
d907cd57 731cd %{_sysconfdir}/rescue
bb6e7dc5
AM
732./getdiskinfo
733
734%preun rescue
735# remove the files created after the initial rpm installation
f2337569
JB
736if [ "$1" = "0" ]; then
737 rm -f %{_sysconfdir}/rescue/bacula-fd.conf
738 rm -f %{_sysconfdir}/rescue/partition.*
739 rm -f %{_sysconfdir}/rescue/format.*
740 rm -f %{_sysconfdir}/rescue/mount_drives
741 rm -f %{_sysconfdir}/rescue/start_network
742 rm -f %{_sysconfdir}/rescue/sfdisk
743 rm -rf %{_sysconfdir}/rescue/diskinfo/*
744fi
bb6e7dc5 745
41bc1b6e
JK
746%define db_post() \
747/sbin/ldconfig \
b0473ed3 748for name in "create database" "drop tables" "drop database" "grant privileges" "make tables" "update tables"; do \
41bc1b6e
JK
749 prefix="${name%% *}" \
750 suffix="${name#* }" \
b0473ed3 751 ln -sf "${prefix}_%{1}_${suffix}" %{_libexecdir}/%{name}/"${prefix}_bacula_${suffix}" || : \
dae3a0bd 752done \
5a48616e 753ln -sf "make_%{1}_catalog_backup" %{_libexecdir}/%{name}/make_catalog_backup || : \
21838166 754ln -sf libbaccats-%{1}-%{version}.so %{_libdir}/libbaccats-%{version}.so || : \
dae3a0bd
JK
755%service bacula-dir restart "Bacula Director daemon"
756
41bc1b6e
JK
757%post db-postgresql
758%db_post postgresql
759
dfef965d 760%postun db-postgresql -p /sbin/ldconfig
dae3a0bd 761
41bc1b6e
JK
762%post db-mysql
763%db_post mysql
764
dfef965d 765%postun db-mysql -p /sbin/ldconfig
dae3a0bd 766
41bc1b6e
JK
767%post db-sqlite3
768%db_post sqlite3
769
dfef965d 770%postun db-sqlite3 -p /sbin/ldconfig
dae3a0bd 771
5ce18635
AM
772%files common
773%defattr(644,root,root,755)
237bfacd 774%doc LICENSE
051f919c 775%{?with_python:%doc examples/python}
1a72afd2 776%dir %{_sysconfdir}
1b0a2248 777%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*-password
7545e94f
JK
778# do not remove bsmtp from files. Fix build if it is not installed.
779%attr(755,root,root) %{_sbindir}/bsmtp
7425cb9d 780%attr(755,root,root) %{_sbindir}/btraceback
6f3f1b78
JK
781%attr(755,root,root) %{_libdir}/libbac-5*.so
782%attr(755,root,root) %{_libdir}/libbaccfg-5*.so
783%attr(755,root,root) %{_libdir}/libbacfind-5*.so
784%attr(755,root,root) %{_libdir}/libbacpy-5*.so
21838166 785%attr(755,root,root) %{_libdir}/libbacsql-5*.so
c74b041d 786%{_mandir}/man8/bacula.8*
7425cb9d
JK
787%{_mandir}/man1/bsmtp.1*
788%{_mandir}/man8/btraceback.8*
5ce18635 789%dir %{_libexecdir}/%{name}
1376b552 790%{_libexecdir}/%{name}/btraceback.dbx
5ce18635 791%{_libexecdir}/%{name}/btraceback.gdb
7545e94f 792%{_libexecdir}/%{name}/bacula_config
d6dbe33c 793%attr(770,root,bacula) %dir %{_localstatedir}
3c0eac7c
AM
794%attr(750,bacula,logs) %dir /var/log/bacula
795%attr(640,bacula,logs) %ghost /var/log/bacula/log
5ce18635
AM
796
797%files dir
bb6e7dc5 798%defattr(644,root,root,755)
237bfacd 799%doc ChangeLog CheckList ReleaseNotes kernstodo LICENSE
28647453 800#%doc examples %{name}-docs-%{version}/manual/{*.pdf,bacula}
cc515592 801%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-dir.conf
1a72afd2 802%ghost %{_sysconfdir}/.pw.sed
28c9f5d0 803%attr(640,root,root) %config(noreplace) /etc/logrotate.d/bacula-dir
1a72afd2 804%attr(754,root,root) /etc/rc.d/init.d/bacula-dir
cd23ba7c 805%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-dir
5ff0b6a3 806%attr(755,root,root) %{_sbindir}/bacula-dir
7545e94f
JK
807%attr(755,root,root) %{_sbindir}/bregex
808%attr(755,root,root) %{_sbindir}/bwild
809%attr(755,root,root) %{_sbindir}/bacula-dbcheck
79d0fef6 810%{_mandir}/man8/bacula-dir.8*
7545e94f 811%{_mandir}/man8/bacula-dbcheck.8*
79d0fef6 812%{_libexecdir}/%{name}/query.sql
5a48616e 813%attr(755,root,root) %{_libexecdir}/%{name}/delete_catalog_backup
41bc1b6e
JK
814
815%files db-postgresql
816%defattr(644,root,root,755)
817%attr(755,root,root) %{_libexecdir}/%{name}/create_postgresql_database
818%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_database
819%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_tables
820%attr(755,root,root) %{_libexecdir}/%{name}/grant_postgresql_privileges
821%attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_tables
822%attr(755,root,root) %{_libexecdir}/%{name}/update_postgresql_*
21838166 823%attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_catalog_backup
53a3431c 824%attr(755,root,root) %{_libdir}/libbaccats-postgresql-5*.so
41bc1b6e 825
21838166 826%ghost %attr(755,root,root) %{_libdir}/libbaccats-5*.so
41bc1b6e
JK
827%ghost %{_libexecdir}/%{name}/create_bacula_database
828%ghost %{_libexecdir}/%{name}/drop_bacula_tables
829%ghost %{_libexecdir}/%{name}/drop_bacula_database
830%ghost %{_libexecdir}/%{name}/grant_bacula_privileges
831%ghost %{_libexecdir}/%{name}/make_bacula_tables
832%ghost %{_libexecdir}/%{name}/update_bacula_tables
21838166 833%ghost %{_libexecdir}/%{name}/make_catalog_backup
41bc1b6e
JK
834
835%files db-mysql
836%defattr(644,root,root,755)
aeaed87e 837%attr(755,root,root) %{_libexecdir}/%{name}/create_mysql_database
838%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_database
839%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_tables
840%attr(755,root,root) %{_libexecdir}/%{name}/grant_mysql_privileges
841%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_tables
842%attr(755,root,root) %{_libexecdir}/%{name}/update_mysql_*
21838166 843%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_catalog_backup
53a3431c 844%attr(755,root,root) %{_libdir}/libbaccats-mysql-5*.so
41bc1b6e 845
21838166 846%ghost %attr(755,root,root) %{_libdir}/libbaccats-5*.so
41bc1b6e
JK
847%ghost %{_libexecdir}/%{name}/create_bacula_database
848%ghost %{_libexecdir}/%{name}/drop_bacula_tables
849%ghost %{_libexecdir}/%{name}/drop_bacula_database
850%ghost %{_libexecdir}/%{name}/grant_bacula_privileges
851%ghost %{_libexecdir}/%{name}/make_bacula_tables
852%ghost %{_libexecdir}/%{name}/update_bacula_tables
21838166 853%ghost %{_libexecdir}/%{name}/make_catalog_backup
41bc1b6e
JK
854
855%files db-sqlite3
856%defattr(644,root,root,755)
857%attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite3_database
858%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_database
859%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_tables
860%attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite3_privileges
861%attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_tables
862%attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite3_*
21838166 863%attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_catalog_backup
53a3431c 864%attr(755,root,root) %{_libdir}/libbaccats-sqlite3-5*.so
41bc1b6e 865
21838166 866%ghost %attr(755,root,root) %{_libdir}/libbaccats-5*.so
41bc1b6e
JK
867%ghost %{_libexecdir}/%{name}/create_bacula_database
868%ghost %{_libexecdir}/%{name}/drop_bacula_tables
869%ghost %{_libexecdir}/%{name}/drop_bacula_database
870%ghost %{_libexecdir}/%{name}/grant_bacula_privileges
871%ghost %{_libexecdir}/%{name}/make_bacula_tables
872%ghost %{_libexecdir}/%{name}/update_bacula_tables
21838166 873%ghost %{_libexecdir}/%{name}/make_catalog_backup
41bc1b6e 874
5ce18635
AM
875%files fd
876%defattr(644,root,root,755)
237bfacd 877%doc LICENSE
efb15923 878%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-fd.conf
1a72afd2 879%attr(754,root,root) /etc/rc.d/init.d/bacula-fd
cd23ba7c 880%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-fd
5ff0b6a3 881%attr(755,root,root) %{_sbindir}/bacula-fd
7545e94f 882%attr(755,root,root) %{_libdir}/bpipe-fd.so
79d0fef6 883%{_mandir}/man8/bacula-fd.8*
5ce18635
AM
884
885%files sd
886%defattr(644,root,root,755)
237bfacd 887%doc LICENSE
efb15923 888%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-sd.conf
889%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mtx-changer.conf
1a72afd2 890%attr(754,root,root) /etc/rc.d/init.d/bacula-sd
cd23ba7c 891%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-sd
5ff0b6a3
AM
892%attr(755,root,root) %{_sbindir}/bacula-sd
893%attr(755,root,root) %{_sbindir}/bcopy
894%attr(755,root,root) %{_sbindir}/bextract
895%attr(755,root,root) %{_sbindir}/bls
896%attr(755,root,root) %{_sbindir}/bscan
897%attr(755,root,root) %{_sbindir}/btape
329073aa 898%attr(755,root,root) %{_libexecdir}/%{name}/mtx-changer
150db1c2 899%attr(755,root,root) %{_libexecdir}/%{name}/disk-changer
329073aa 900%attr(755,root,root) %{_libexecdir}/%{name}/dvd-handler
5ce18635 901%{_mandir}/man8/bacula-sd.8*
7425cb9d
JK
902%{_mandir}/man8/bcopy.8*
903%{_mandir}/man8/bextract.8*
904%{_mandir}/man8/bls.8*
905%{_mandir}/man8/bscan.8*
906%{_mandir}/man8/btape.8*
5ce18635
AM
907
908%files console
bb6e7dc5 909%defattr(644,root,root,755)
237bfacd 910%doc LICENSE
efb15923 911%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bconsole.conf
1a72afd2 912%attr(755,root,root) %{_sbindir}/bconsole
7425cb9d 913%{_mandir}/man8/bconsole.8*
5ce18635 914
1376b552 915%if %{with console_wx}
5ce18635
AM
916%files console-wx
917%defattr(644,root,root,755)
237bfacd 918%doc LICENSE
1a72afd2 919%{_pixmapsdir}/%{name}.png
237bfacd 920%{_desktopdir}/bacula-wx.desktop
ffb67df4
AM
921%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwx-console.conf
922%attr(755,root,root) %{_sbindir}/bwx-console
e3dd858d 923%{_mandir}/man1/bacula-bwxconsole.1*
1376b552 924%endif
bb6e7dc5 925
304bb97e
AM
926%if %{with bat}
927%files console-qt4
928%defattr(644,root,root,755)
929%doc LICENSE
930%{_pixmapsdir}/%{name}.png
931%{_desktopdir}/bat.desktop
2264d68c 932# Do not make this file world-readable or any user will get full access to the
b0473ed3 933# backup system
2264d68c
JK
934%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bat.conf
935%attr(755,root,root) %{_bindir}/bat
304bb97e 936%{_mandir}/man1/bat.1*
7545e94f 937%{_docdir}/%{name}
304bb97e
AM
938%endif
939
cacc89f5 940%if %{with console_wx}
237bfacd
JK
941%files tray-monitor
942%defattr(644,root,root,755)
943%doc LICENSE
8ba087a4
ER
944%attr(755,root,root) %{_sbindir}/bacula-tray-monitor
945#%{_pixmapsdir}/%{name}-tray-monitor.xpm
946#%{_desktopdir}/%{name}-tray-monitor.desktop
cd23ba7c 947%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tray-monitor.conf
7425cb9d 948%{_mandir}/man1/bacula-tray-monitor.1*
cacc89f5 949%endif
237bfacd 950
2b68b0cb 951%if %{with rescue}
bb6e7dc5
AM
952%files rescue
953%defattr(644,root,root,755)
c741b8e0 954%doc LICENSE
4280e495 955%dir %{_sysconfdir}/rescue
1b0a2248 956%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/backup.etc.list
957%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/bacula-fd
958%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/format_floppy
959%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/getdiskinfo
960%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/make_rescue_disk
961%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_bacula
962%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_etc
963%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_grub
964%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_lilo
965%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/sfdisk.bz2
2b68b0cb 966%endif
b0473ed3
ER
967
968%if %{with nagios}
969%files -n nagios-plugin-check_bacula
970%defattr(644,root,root,755)
971%attr(755,root,root) %{nagiosplugindir}/check_bacula
972%endif
This page took 0.205649 seconds and 4 git commands to generate.