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