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