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