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