]> git.pld-linux.org Git - packages/bacula.git/blame - bacula.spec
- disable dbi for ac
[packages/bacula.git] / bacula.spec
CommitLineData
237bfacd 1# TODO:
b0473ed3 2# - update desktop files, think about su-wrappers for console (with .desktop files)
2b68b0cb 3# - package web admin
2007449a 4# - fix log file permissions
0eba139b
ER
5# - no longer builds:
6#make[1]: *** No rule to make target `../lib/libbac.la', needed by `bacula-dir'. Stop.
7#make[1]: *** Waiting for unfinished jobs....
8#make[1]: Leaving directory `/home/users/glen/rpm/BUILD.x86_64-linux/bacula-5.0.2/src/dird'
2b68b0cb 9#
f2527d22 10# Conditional build:
6d11b02b 11%bcond_without console_wx # wx-console program
6d11b02b 12%bcond_without bat # bat Qt4 GUI
28841ecd 13%if "%{pld_release}" != "ac"
7533d19f 14%bcond_without dbi # use Database Independent Abstraction Layer (libdbi)
28841ecd
ER
15%else
16%bcond_with dbi # use Database Independent Abstraction Layer (libdbi)
17%endif
41bc1b6e
JK
18%bcond_without mysql # use MySQL
19%bcond_without pgsql # use PostgreSQL
41bc1b6e 20%bcond_without sqlite3 # use SQLite3
e979c70d 21%bcond_without python
819cd4b0 22%bcond_without nagios # build nagios plugin
e979c70d 23%bcond_with rescue
6d11b02b 24%bcond_with sqlite3_sync_off # makes SQLite3 backend much faster, but less reliable
0eba139b 25
8ba087a4 26%if %{without sqlite3}
aeaed87e 27%undefine with_sqlite3_sync_off
28%endif
0eba139b 29
bb6e7dc5 30Summary: Bacula - The Network Backup Solution
6a00efc0 31Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
bb6e7dc5 32Name: bacula
7ed9cb8e 33Version: 5.0.3
d5e827d3 34Release: 6
237bfacd 35License: extended GPL v2
52504a6d 36Group: Networking/Utilities
b0473ed3 37Source0: http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
7ed9cb8e 38# Source0-md5: 9de254ae39cab0587fdb2f5d8d90b03b
b0473ed3 39Source1: http://downloads.sourceforge.net/bacula/%{name}-docs-%{version}.tar.bz2
7ed9cb8e 40# Source1-md5: 7a00557dcf0dfa40de9e74176fefd1ae
41Source2: http://downloads.sourceforge.net/bacula/%{name}-rescue-5.0.1.tar.gz
42# Source2-md5: bb194aed8e204f54bf2f61d7e721f257
5ce18635
AM
43Source10: %{name}-dir.init
44Source11: %{name}-fd.init
45Source12: %{name}-sd.init
46Source13: %{name}.logrotate
4280e495
JK
47Source14: %{name}-dir.sysconfig
48Source15: %{name}-fd.sysconfig
49Source16: %{name}-sd.sysconfig
0a03f92d 50Patch0: %{name}-mtx-changer.patch
38a7d6ba 51Patch1: %{name}-link.patch
0a03f92d 52Patch2: %{name}-tinfo-readline.patch
53Patch3: %{name}-branding.patch
54Patch4: %{name}-conf.patch
c08d8c7a 55Patch5: %{name}-desktop.patch
0f65a227 56Patch7: %{name}-dbi_fixes.patch
7545e94f 57Patch8: %{name}-dbi_dbcheck.patch
4de53c49 58Patch9: %{name}-openssl1.patch
5ac6c43c 59Patch10: %{name}-dvd_rewind.patch
bb6e7dc5 60URL: http://www.bacula.org/
0819f86f 61BuildRequires: acl-devel
62BuildRequires: autoconf
f2337569 63BuildRequires: automake
0819f86f 64BuildRequires: gettext-devel
b403dd64 65BuildRequires: gtk+2-devel
0819f86f 66BuildRequires: libcap-devel
919e8378 67%{?with_dbi:BuildRequires: libdbi-devel >= 0.8.4}
2ddca527 68BuildRequires: libtool >= 2:2.2
7425cb9d
JK
69%if %{with rescue}
70BuildRequires: fakeroot
71%endif
f183f7ef 72BuildRequires: libwrap-devel
cc01862b 73BuildRequires: ncurses-devel
bb6e7dc5
AM
74BuildRequires: openssl-devel
75BuildRequires: pkgconfig
7425cb9d 76%if %{with python}
e979c70d 77BuildRequires: python-devel
b403dd64 78BuildRequires: python-modules
7425cb9d 79%endif
c19580f6 80%if %{with bat}
304bb97e 81BuildRequires: QtCore-devel
e3dd858d 82BuildRequires: QtGui-devel
846b23db
JB
83BuildRequires: qt4-build >= 4.3.3-3
84BuildRequires: qt4-qmake >= 4.3.3-3
b403dd64 85#BuildRequires: qwt-devel >= 5.0.2-2
c19580f6 86%endif
4c7199dc
SP
87%{?with_mysql:BuildRequires: mysql-devel}
88%{?with_pgsql:BuildRequires: postgresql-devel}
bb6e7dc5 89BuildRequires: readline-devel
b403dd64 90BuildRequires: rpm-pythonprov
52504a6d 91BuildRequires: rpmbuild(macros) >= 1.268
cc01862b 92BuildRequires: sed >= 4.0
6d11b02b 93%{?with_sqlite3:BuildRequires: sqlite3-devel}
b403dd64 94BuildRequires: which
1376b552 95%if %{with console_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
b8003eec
JK
105# from 'the worst' to 'the best'
106%define databases %{?with_dbi:dbi} %{?with_sqlite3:sqlite3} %{?with_mysql:mysql} %{?with_pgsql:postgresql}
41bc1b6e 107
b60fe5cb
ER
108# dependency section is broken. ccache usage is instead to makefiles
109%undefine with_ccache
110
bb6e7dc5
AM
111%description
112Bacula - It comes by night and sucks the vital essence from your
113computers.
114
115Bacula is a set of computer programs that permit you (or the system
116administrator) to manage backup, recovery, and verification of
117computer data across a network of computers of different kinds. In
118technical terms, it is a network client/server based backup program.
119Bacula is relatively easy to use and efficient, while offering many
120advanced storage management features that make it easy to find and
5ce18635 121recover lost or damaged files.
bb6e7dc5 122
192fbfcf
JR
123%description -l pl.UTF-8
124Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 125
192fbfcf
JR
126Bacula to zbiór programów umożliwiających administratorowi na
127zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
168306e6
ER
128sieci komputerów różnego rodzaju. W terminologii technicznej jest to
129program do kopii zapasowych pracujący w architekturze klient-serwer.
130Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
131wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
132ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
133plików.
cc01862b 134
5ce18635
AM
135%package common
136Summary: Common files for bacula package
6a00efc0 137Summary(pl.UTF-8): Pliki wspólne dla pakietu bacula
bb6e7dc5 138Group: Networking/Utilities
237bfacd
JK
139Requires(post): openssl-tools
140Requires(post): sed >= 4.0
1bd568e8 141Requires(post,preun): /sbin/chkconfig
65253ffd
JK
142Requires(postun): /usr/sbin/groupdel
143Requires(postun): /usr/sbin/userdel
1b0a2248 144Requires(pre): /usr/sbin/groupadd
145Requires(pre): /usr/sbin/useradd
abdcd1c5
JB
146Conflicts: bacula-console < 0:1.34.6
147Conflicts: bacula-dir < 0:1.34.6
148Conflicts: bacula-fd < 0:1.34.6
149Conflicts: bacula-sd < 0:1.34.6
bb6e7dc5 150
5ce18635 151%description common
bb6e7dc5
AM
152Bacula - It comes by night and sucks the vital essence from your
153computers.
154
155Bacula is a set of computer programs that permit you (or the system
156administrator) to manage backup, recovery, and verification of
157computer data across a network of computers of different kinds. In
158technical terms, it is a network client/server based backup program.
159Bacula is relatively easy to use and efficient, while offering many
160advanced storage management features that make it easy to find and
5ce18635 161recover lost or damaged files.
bb6e7dc5 162
192fbfcf
JR
163%description common -l pl.UTF-8
164Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 165
192fbfcf
JR
166Bacula to zbiór programów umożliwiających administratorowi na
167zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
168306e6
ER
168sieci komputerów różnego rodzaju. W terminologii technicznej jest to
169program do kopii zapasowych pracujący w architekturze klient-serwer.
170Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
171wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
172ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
173plików.
cc01862b 174
5ce18635
AM
175%package dir
176Summary: Bacula Director and Catalog services
6a00efc0 177Summary(pl.UTF-8): Usługi Bacula Director i Catalog
5ce18635 178Group: Networking/Utilities
237bfacd 179Requires(post): sed >= 4.0
74c2ad1c
ER
180Requires: %{name}-common = %{version}-%{release}
181Requires: bacula(db) = %{version}-%{release}
abdcd1c5 182Obsoletes: bacula-updatedb
bb6e7dc5 183
5ce18635
AM
184%description dir
185Bacula - It comes by night and sucks the vital essence from your
186computers.
187
188Bacula Director is the program that supervises all the backup,
189restore, verify and archive operations. The system administrator uses
190the Bacula Director to schedule backups and to recover files. Catalog
191services are comprised of the software programs responsible for
192maintaining the file indexes and volume databases for all files backed
193up. The Catalog services permit the System Administrator or user to
194quickly locate and restore any desired file, since it maintains a
7533d19f 195record of all Volumes used, all Jobs run, and all Files saved.
5ce18635 196
192fbfcf
JR
197%description dir -l pl.UTF-8
198Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 199
192fbfcf 200Bacula Director to program nadzorujący wszystkie operacje wykonywania
cc01862b 201kopii zapasowych, odzyskiwania, weryfikacji i archiwizowania.
192fbfcf
JR
202Administrator używa Bacula Directora do szeregowania kopii zapasowych
203oraz odzyskiwania plików. Usługi katalogowe (Catalog services) są
168306e6
ER
204używane przez programy odpowiedzialne za zarządzanie indeksami plików
205i bazą danych wolumenów dla wszystkich kopiowanych plików. Usługi
206katalogowe umożliwiają administratorowi lub użytkownikowi szybko
207zlokalizować i odtworzyć dowolny plik, ponieważ utrzymują rekord ze
208wszystkimi używanymi wolumenami, uruchomionymi zadaniami i zapisanymi
209plikami.
cc01862b 210
5ce18635
AM
211%package console
212Summary: Bacula Console
6a00efc0 213Summary(pl.UTF-8): Konsola Baculi
5ce18635 214Group: Networking/Utilities
237bfacd 215Requires(post): sed >= 4.0
74c2ad1c 216Requires: %{name}-common = %{version}-%{release}
5ce18635
AM
217
218%description console
219Bacula - It comes by night and sucks the vital essence from your
220computers.
221
222Bacula Console is the program that allows the administrator or user to
223communicate with the Bacula Director. This is the text only console
224interface.
225
192fbfcf
JR
226%description console -l pl.UTF-8
227Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 228
192fbfcf
JR
229Bacula Console to program umożliwiający administratorowi lub
230użytkownikowi komunikowanie się z programem Bacula Director. To jest
cc01862b
JB
231interfejs czysto tekstowy.
232
5ce18635 233%package console-wx
cc01862b 234Summary: Bacula wxWidgets Console
6a00efc0 235Summary(pl.UTF-8): Konsola Baculi oparta na wxWidgets
5ce18635 236Group: Networking/Utilities
237bfacd 237Requires(post): sed >= 4.0
74c2ad1c 238Requires: %{name}-common = %{version}-%{release}
5ce18635
AM
239
240%description console-wx
241Bacula - It comes by night and sucks the vital essence from your
242computers.
243
244Bacula Console is the program that allows the administrator or user to
cc01862b 245communicate with the Bacula Director. This is the wxWidgets GUI
5ce18635
AM
246interface.
247
192fbfcf
JR
248%description console-wx -l pl.UTF-8
249Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 250
192fbfcf
JR
251Bacula Console to program umożliwiający administratorowi lub
252użytkownikowi komunikowanie się z programem Bacula Director. To jest
cc01862b
JB
253interfejs graficzny oparty na wxWidgets.
254
304bb97e 255%package console-qt4
ece2f4c3
JB
256Summary: Bacula Qt4 Console
257Summary(pl.UTF-8): Konsola Baculi oparta na Qt4
304bb97e
AM
258Group: Networking/Utilities
259Requires(post): sed >= 4.0
74c2ad1c 260Requires: %{name}-common = %{version}-%{release}
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
402%package db-dbi
403Summary: libdbi database driver for Bacula
404Summary(pl.UTF-8): Sterownik bazy libdbi dla Baculi
405Group: Networking/Utilities
406Requires(post): /sbin/ldconfig
74c2ad1c
ER
407Requires: %{name}-common = %{version}-%{release}
408Provides: bacula(db) = %{version}-%{release}
168306e6 409Obsoletes: bacula(db)
41bc1b6e
JK
410
411%description db-dbi
412libdbi database driver for Bacula.
413
414%description db-dbi -l pl.UTF-8
415Sterownik baz libdbi dla Baculi.
416
5ce18635 417%package rescue
bb6e7dc5 418Summary: Bacula - The Network Backup Solution
6a00efc0 419Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
bb6e7dc5 420Group: Networking/Utilities
74c2ad1c 421Requires: %{name}-fd = %{version}-%{release}
bb6e7dc5
AM
422Requires: coreutils
423Requires: util-linux
bb6e7dc5
AM
424
425%description rescue
426Bacula - It comes by night and sucks the vital essence from your
427computers.
428
429Bacula is a set of computer programs that permit you (or the system
430administrator) to manage backup, recovery, and verification of
431computer data across a network of computers of different kinds. In
432technical terms, it is a network client/server based backup program.
433Bacula is relatively easy to use and efficient, while offering many
434advanced storage management features that make it easy to find and
cc01862b 435recover lost or damaged files.
bb6e7dc5
AM
436
437This package installs scripts for disaster recovery and builds rescue
1b0a2248 438floppy disk for bare metal recovery.
237bfacd 439
192fbfcf
JR
440%description rescue -l pl.UTF-8
441Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów.
cc01862b 442
192fbfcf
JR
443Bacula to zbiór programów umożliwiających administratorowi na
444zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w
168306e6
ER
445sieci komputerów różnego rodzaju. W terminologii technicznej jest to
446program do kopii zapasowych pracujący w architekturze klient-serwer.
447Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym
448wiele zaawansowanych możliwości przy zarządzaniu nośnikami,
449ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych
450plików.
451
452Ten pakiet zawiera skrypty do odtwarzania po awarii i tworzy dyskietkę
453ratunkowe do odtwarzania systemu od zera.
bb6e7dc5 454
b0473ed3
ER
455%package -n nagios-plugin-check_bacula
456Summary: Nagios plugin to check bacula
457Group: Networking
458Requires: nagios-common
459
460%description -n nagios-plugin-check_bacula
461Nagios plugin to check bacula.
462
bb6e7dc5 463%prep
7425cb9d 464%setup -q -a 1
0a03f92d 465%patch0 -p1
b22d4b59 466%patch1 -p0
cf0cfe65 467%patch2 -p1
ecb9bab1 468%patch3 -p1
e740cd49 469%patch4 -p1
c08d8c7a 470%patch5 -p1
dae3a0bd 471%patch7 -p1
7545e94f 472%patch8 -p1
4de53c49 473%patch9 -p1
5ac6c43c 474%patch10 -p1
aa6db71e 475
783dd8b1 476tar -xf %{SOURCE2} && ln -s bacula-rescue-* rescue
cf50297e 477
10650249
AM
478sed -i -e 's#bindir=.*#bindir=%{_bindir}#g' \
479 src/cats/create_* src/cats/delete_* src/cats/drop_* \
480 src/cats/grant_* src/cats/make_* src/cats/update_*
237bfacd 481sed -i -e 's/@hostname@/--hostname--/' src/*/*.conf.in
bb6e7dc5 482
d626c535 483%if %{with dbi}
41bc1b6e 484for dbtype in mysql postgresql sqlite3; do
0f65a227
MM
485 sed -i -e "s,@DB_TYPE@,$dbtype,g" src/cats/*_${dbtype}_*
486done
d626c535 487%endif
0f65a227 488
bb6e7dc5 489%build
4a39c080
ER
490cd autoconf
491%{__aclocal} -I bacula-macros -I gettext-macros
492# $BUILD_DIR not seen by libtoolize, export it
493BUILD_DIR=.. %{__libtoolize}
494cd ..
cf50297e
AM
495%{__autoconf} --prepend-include=$(pwd)/autoconf autoconf/configure.in > configure
496
dae3a0bd
JK
497CPPFLAGS="-I/usr/include/ncurses -I%{_includedir}/readline"
498
b8003eec 499# we wan't the 'base' build built with the last database in the list,
dae3a0bd 500# to make sure it is full-featured
b0473ed3 501for database in %{databases}; do
41bc1b6e 502 WXCONFIG=%{_bindir}/wx-gtk2-unicode-config \
b403dd64 503 QMAKE=%{_bindir}/qt4-qmake \
41bc1b6e
JK
504 %configure \
505 --with-scriptdir=%{_libexecdir}/%{name} \
506 %{?with_bat:--enable-bat} \
507 --disable-conio \
508 --enable-smartalloc \
509 %{?with_console_wx:--enable-bwx-console} \
510 --enable-tray-monitor \
511 %{?with_python:--with-python} \
512 --with-readline \
513 --with-tcp-wrappers \
514 --with-working-dir=%{_var}/lib/%{name} \
515 --with-dump-email="root@localhost" \
516 --with-job-email="root@localhost" \
517 --with-smtp-host=localhost \
518 --with-pid-dir=/var/run \
519 --with-subsys-dir=/var/lock/subsys \
520 --enable-batch-insert \
521 --with-$database \
522 %{?with_sqlite3_sync_off:--enable-extra-sqlite3-init="pragma synchronous=0;"} \
523 --with-dir-password="#FAKE-dir-password#" \
524 --with-fd-password="#FAKE-fd-password#" \
525 --with-sd-password="#FAKE-sd-password#" \
526 --with-mon-dir-password="#FAKE-mon-dir-password#" \
527 --with-mon-fd-password="#FAKE-mon-fd-password#" \
528 --with-mon-sd-password="#FAKE-mon-sd-password#" \
529 --with-openssl
530
b8003eec
JK
531 # build the database library
532 %{__make} -C src/cats clean
533 %{__make} -C src/cats
41bc1b6e 534
b8003eec 535 # install the database library in a temporary location
41bc1b6e
JK
536 install -d libbacsql/$database%{_libdir}
537 %{__make} -C src/cats libtool-install DESTDIR=$PWD/libbacsql/$database
538done
bb6e7dc5 539
b8003eec
JK
540%if %{with bat}
541cd src/qt-console
542qmake-qt4 bat.pro
543cd ../..
544%endif
545
546%{__make}
547
b0473ed3
ER
548%if %{with nagios}
549# nagios plugin
550%{__make} -C examples/nagios/check_bacula
551%endif
552
2b68b0cb
AM
553%if %{with rescue}
554cd rescue
555%configure \
556 --with-bacula=../
557cd linux/cdrom
558fakeroot %{__make}
559%endif
560
bb6e7dc5
AM
561%install
562rm -rf $RPM_BUILD_ROOT
237bfacd
JK
563install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,pam.d,sysconfig}
564install -d $RPM_BUILD_ROOT%{_sysconfdir}/rescue
3c0eac7c 565install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir},%{_bindir},/var/log/bacula}
bb6e7dc5
AM
566
567%{__make} install \
568 DESTDIR=$RPM_BUILD_ROOT
569
41bc1b6e
JK
570# install libraries for all the database backends
571# ldconfig will add the soname symlinks when one of the packages is installed
b0473ed3 572for database in %{databases}; do
8b9ffa69
ER
573 for libfile in libbacsql/$database%{_libdir}/lib*-*.so; do
574 orig_name=${libfile##*/}
575 file_prefix=${orig_name%%-*.so}
576 file_suffix=${orig_name#*-}
577 file_name=$file_prefix-$database-$file_suffix
2f8e46d4
ER
578 install -p $libfile $RPM_BUILD_ROOT%{_libdir}/$file_name
579 touch $RPM_BUILD_ROOT%{_libdir}/$orig_name
41bc1b6e
JK
580 done
581done
582
aa70ead8
ER
583# replace with empty file, replaced by ldconfig from each db-* package on intsall
584rm -f $RPM_BUILD_ROOT%{_libdir}/libbacsql-%{version}.so
585touch $RPM_BUILD_ROOT%{_libdir}/libbacsql-%{version}.so
586
8b9ffa69
ER
587install -p %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-dir
588install -p %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-fd
589install -p %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-sd
590cp -a %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir
591cp -a %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/bacula-dir
592cp -a %{SOURCE15} $RPM_BUILD_ROOT/etc/sysconfig/bacula-fd
593cp -a %{SOURCE16} $RPM_BUILD_ROOT/etc/sysconfig/bacula-sd
d907cd57 594
cacc89f5
AZ
595%if %{with console_wx}
596# tray-monitor is for regular users
a3c6e4e6 597#mv $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor $RPM_BUILD_ROOT%{_bindir}
cacc89f5 598
b0473ed3 599cp -a scripts/bacula.png $RPM_BUILD_ROOT%{_pixmapsdir}/bacula.png
a3c6e4e6 600#install src/tray-monitor/generic.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/bacula-tray-monitor.xpm
237bfacd
JK
601sed -e 's/gnome-console/wx-console/g;s/Console/Wx Console/g' \
602 scripts/bacula.desktop.gnome2 > $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop
a3c6e4e6
AZ
603#sed -e 's#%{_sbindir}#%{_bindir}#' \
604# scripts/bacula-tray-monitor.desktop > $RPM_BUILD_ROOT%{_desktopdir}/bacula-tray-monitor.desktop
cacc89f5 605%endif
d907cd57 606
304bb97e 607%if %{with bat}
8186e042
ER
608%{__make} -C src/qt-console install \
609 DESTDIR=$RPM_BUILD_ROOT
325e3bd5 610mv $RPM_BUILD_ROOT{%{_sbindir},%{_bindir}}/bat
b0473ed3 611cp -a scripts/bat.desktop $RPM_BUILD_ROOT%{_desktopdir}
304bb97e
AM
612%endif
613
2b68b0cb 614%if %{with rescue}
d907cd57 615# install the rescue stuff, these are the rescue scripts
b0473ed3
ER
616cp -a rescue/linux/floppy/backup.etc.list $RPM_BUILD_ROOT%{_sysconfdir}/rescue
617cp -a rescue/linux/floppy/sfdisk.bz2 $RPM_BUILD_ROOT%{_sysconfdir}/rescue
618install -p rescue/linux/floppy/*_* $RPM_BUILD_ROOT%{_sysconfdir}/rescue
619install -p rescue/linux/floppy/getdiskinfo $RPM_BUILD_ROOT%{_sysconfdir}/rescue
2b68b0cb 620%endif
bb6e7dc5 621
3c0eac7c
AM
622touch $RPM_BUILD_ROOT/var/log/bacula/log
623
2f8e46d4
ER
624# install the updatedb scripts for older versions that last full release
625# 2.0 -> 3.0 : 10_to_11
626install -p updatedb/update_*_tables_10_to_11 $RPM_BUILD_ROOT%{_libexecdir}/%{name}
d907cd57 627
237bfacd
JK
628# place for site passwords
629touch $RPM_BUILD_ROOT%{_sysconfdir}/{dir-password,fd-password,sd-password}
630touch $RPM_BUILD_ROOT%{_sysconfdir}/{mon-dir-password,mon-fd-password,mon-sd-password}
bb6e7dc5 631
8ba087a4 632mv $RPM_BUILD_ROOT%{_libdir}/bacula/mtx-changer.conf $RPM_BUILD_ROOT/etc/bacula/mtx-changer.conf
0a03f92d 633
1a72afd2
AM
634# some file changes
635rm -f $RPM_BUILD_ROOT%{_libexecdir}/%{name}/{gconsole,startmysql,stopmysql,bacula,bconsole,fd}
8ba087a4 636%if %{without console_wx}
1376b552 637rm -f $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop
1376b552 638%endif
1a72afd2
AM
639touch $RPM_BUILD_ROOT%{_sysconfdir}/.pw.sed
640
8ba087a4
ER
641rm $RPM_BUILD_ROOT%{_docdir}/bacula/ChangeLog
642rm $RPM_BUILD_ROOT%{_docdir}/bacula/INSTALL
643rm $RPM_BUILD_ROOT%{_docdir}/bacula/LICENSE
644rm $RPM_BUILD_ROOT%{_docdir}/bacula/README
645rm $RPM_BUILD_ROOT%{_docdir}/bacula/ReleaseNotes
646rm $RPM_BUILD_ROOT%{_docdir}/bacula/VERIFYING
647rm $RPM_BUILD_ROOT%{_docdir}/bacula/technotes
648
7545e94f
JK
649# startup scripts, those in /etc/rc.d/init.d are better
650rm $RPM_BUILD_ROOT%{_sbindir}/bacula
651rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/bacula-ctl-*
652
41bc1b6e 653# unsupported
8fb2ca23 654rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/btraceback.mdb
41bc1b6e 655
7545e94f
JK
656# rename to avoid possible conflicts
657mv $RPM_BUILD_ROOT%{_sbindir}/{,bacula-}dbcheck
658mv $RPM_BUILD_ROOT%{_mandir}/man8/{,bacula-}dbcheck.8.gz
659
660# no -devel files packaged, so this is also useless
661rm $RPM_BUILD_ROOT%{_libdir}/libbac{,cfg,find,py,sql}.{so,la}
662
41bc1b6e
JK
663# placeholders for the symlinks set in %%post db-*
664for f in create_bacula_database drop_bacula_database drop_bacula_tables \
665 grant_bacula_privileges make_bacula_tables update_bacula_tables ; do
666
c9fdf288 667 touch $RPM_BUILD_ROOT%{_libexecdir}/%{name}/$f
41bc1b6e 668done
7545e94f 669
b0473ed3 670%if %{with nagios}
819cd4b0 671install -d $RPM_BUILD_ROOT%{nagiosplugindir}
b0473ed3
ER
672%{__make} -C examples/nagios/check_bacula install \
673 sbindir=%{nagiosplugindir} \
403b68c1 674 INSTALL_PROGRAM="libtool --mode=install install -p" \
b0473ed3
ER
675 DESTDIR=$RPM_BUILD_ROOT
676%endif
7545e94f 677
f2337569
JB
678%clean
679rm -rf $RPM_BUILD_ROOT
680
5ce18635 681%pre common
fbc59152
ER
682%groupadd -P %{name}-common -g 136 -r -f bacula
683%useradd -P %{name}-common -u 136 -r -d /var/lib/bacula -s /bin/false -c "Bacula User" -g bacula bacula
5ce18635 684
b8003eec 685%define update_configs \
210f992b 686echo "Updating bacula passwords and names..." | %banner -a %{name} \
b8003eec 687cd /etc/bacula \
2f8e46d4
ER
688for f in *-password; do \
689 if [ ! -s $f ]; then \
b8003eec
JK
690 openssl rand -base64 33 > $f \
691 fi \
2f8e46d4
ER
692 p=$(cat $f) \
693 for cf in *.conf *.conf.rpmnew; do \
b8003eec
JK
694 [ -f $cf ] && sed -i -e"s:#FAKE-$f#:$p:" "$cf" || : \
695 done \
696done \
2f8e46d4 697for cf in *.conf *.conf.rpmnew; do \
b8003eec
JK
698 [ -f $cf ] && sed -i -e"s:--hostname--:`hostname`:" "$cf" || : \
699done
700
237bfacd 701%post common
0a03f92d 702/sbin/ldconfig
b8003eec 703%update_configs
237bfacd 704
5ce18635 705%postun common
0a03f92d 706/sbin/ldconfig
28c9f5d0
AM
707if [ "$1" = "0" ]; then
708 %userremove bacula
709 %groupremove bacula
710fi
5ce18635 711
b8003eec
JK
712%triggerpostun dir -- %{name}-dir < 5.0
713%banner bacula-dir -t3 <<EOF
714You have upgraded from an older version of Bacula director.
bb6e7dc5 715
b8003eec
JK
716You will probably need to call %{_libexecdir}/%{name}/update_bacula_tables
717script to upgrade the database.
718EOF
237bfacd 719
b8003eec
JK
720%post dir
721%update_configs
1a72afd2 722/sbin/chkconfig --add bacula-dir
52504a6d 723%service bacula-dir restart "Bacula Director daemon"
bb6e7dc5 724
5ce18635 725%preun dir
1a72afd2 726if [ "$1" = "0" ]; then
52504a6d 727 %service bacula-dir stop
9aa69d51 728 /sbin/chkconfig --del bacula-dir
1a72afd2 729fi
bb6e7dc5 730
5ce18635 731%post fd
b8003eec 732%update_configs
1a72afd2 733/sbin/chkconfig --add bacula-fd
52504a6d 734%service bacula-fd restart "Bacula File daemon"
bb6e7dc5 735
5ce18635 736%preun fd
1a72afd2 737if [ "$1" = "0" ]; then
52504a6d 738 %service bacula-fd stop
9aa69d51 739 /sbin/chkconfig --del bacula-fd
1a72afd2 740fi
5ce18635
AM
741
742%post sd
b8003eec 743%update_configs
1a72afd2 744/sbin/chkconfig --add bacula-sd
52504a6d 745%service bacula-sd restart "Bacula Storage daemon"
bb6e7dc5 746
5ce18635 747%preun sd
1a72afd2 748if [ "$1" = "0" ]; then
52504a6d 749 %service bacula-sd stop
9aa69d51 750 /sbin/chkconfig --del bacula-sd
1a72afd2 751fi
5ce18635
AM
752
753%pre console
754if [ -e %{_sysconfdir}/console.conf -a ! -e %{_sysconfdir}/bconsole.conf ]; then
9aa69d51 755 mv %{_sysconfdir}/console.conf %{_sysconfdir}/bconsole.conf
bb6e7dc5
AM
756fi
757
237bfacd 758%post console
b8003eec 759%update_configs
237bfacd
JK
760
761%post console-wx
b8003eec 762%update_configs
237bfacd 763
827db798 764%triggerpostun common -- %{name}-common < 5.0.1-2
3a5cd5d7
JK
765find /etc/bacula/bat.conf* -perm /007 -print0 | xargs -0 -r chmod 600 || :
766
304bb97e 767%post console-qt4
b8003eec 768%update_configs
304bb97e 769
237bfacd 770%post tray-monitor
b8003eec 771%update_configs
bb6e7dc5 772
bb6e7dc5
AM
773%post rescue
774# link our current installed conf file to the rescue directory
f2337569 775ln -sf %{_sysconfdir}/bacula-fd.conf %{_sysconfdir}/rescue/bacula-fd.conf
bb6e7dc5
AM
776
777# run getdiskinfo
778echo "Creating rescue files for this system..."
d907cd57 779cd %{_sysconfdir}/rescue
bb6e7dc5
AM
780./getdiskinfo
781
782%preun rescue
783# remove the files created after the initial rpm installation
f2337569
JB
784if [ "$1" = "0" ]; then
785 rm -f %{_sysconfdir}/rescue/bacula-fd.conf
786 rm -f %{_sysconfdir}/rescue/partition.*
787 rm -f %{_sysconfdir}/rescue/format.*
788 rm -f %{_sysconfdir}/rescue/mount_drives
789 rm -f %{_sysconfdir}/rescue/start_network
790 rm -f %{_sysconfdir}/rescue/sfdisk
791 rm -rf %{_sysconfdir}/rescue/diskinfo/*
792fi
bb6e7dc5 793
41bc1b6e
JK
794%define db_post() \
795/sbin/ldconfig \
b0473ed3 796for name in "create database" "drop tables" "drop database" "grant privileges" "make tables" "update tables"; do \
41bc1b6e
JK
797 prefix="${name%% *}" \
798 suffix="${name#* }" \
b0473ed3 799 ln -sf "${prefix}_%{1}_${suffix}" %{_libexecdir}/%{name}/"${prefix}_bacula_${suffix}" || : \
dae3a0bd
JK
800done \
801%service bacula-dir restart "Bacula Director daemon"
802
803%define db_postun() \
804/sbin/ldconfig \
805if [ "$1" = "0" ]; then \
b0473ed3
ER
806 for f in %{_libexecdir}/%{name}/*_bacula_*; do \
807 if [ -L "$f" -a ! -e "$f" ]; then \
dae3a0bd
JK
808 rm "$f" \
809 fi \
810 done \
811fi
41bc1b6e
JK
812
813%post db-postgresql
814%db_post postgresql
815
dae3a0bd
JK
816%postun db-postgresql
817%db_postun postgresql
818
41bc1b6e
JK
819%post db-mysql
820%db_post mysql
821
dae3a0bd
JK
822%postun db-mysql
823%db_postun mysql
824
41bc1b6e
JK
825%post db-sqlite3
826%db_post sqlite3
827
dae3a0bd
JK
828%postun db-sqlite3
829%db_postun sqlite3
830
831# dbi backend is different, as it is not bound with a specific db engine
41bc1b6e
JK
832%post db-dbi
833/sbin/ldconfig
b8003eec 834%service bacula-dir restart "Bacula Director daemon"
41bc1b6e 835
dae3a0bd
JK
836%postun db-dbi -p /sbin/ldconfig
837
5ce18635
AM
838%files common
839%defattr(644,root,root,755)
237bfacd 840%doc LICENSE
1a72afd2 841%dir %{_sysconfdir}
1b0a2248 842%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*-password
7545e94f
JK
843# do not remove bsmtp from files. Fix build if it is not installed.
844%attr(755,root,root) %{_sbindir}/bsmtp
7425cb9d 845%attr(755,root,root) %{_sbindir}/btraceback
6f3f1b78
JK
846%attr(755,root,root) %{_libdir}/libbac-5*.so
847%attr(755,root,root) %{_libdir}/libbaccfg-5*.so
848%attr(755,root,root) %{_libdir}/libbacfind-5*.so
849%attr(755,root,root) %{_libdir}/libbacpy-5*.so
c74b041d 850%{_mandir}/man8/bacula.8*
7425cb9d
JK
851%{_mandir}/man1/bsmtp.1*
852%{_mandir}/man8/btraceback.8*
5ce18635 853%dir %{_libexecdir}/%{name}
1376b552 854%{_libexecdir}/%{name}/btraceback.dbx
5ce18635 855%{_libexecdir}/%{name}/btraceback.gdb
7545e94f 856%{_libexecdir}/%{name}/bacula_config
d6dbe33c 857%attr(770,root,bacula) %dir %{_localstatedir}
3c0eac7c
AM
858%attr(750,bacula,logs) %dir /var/log/bacula
859%attr(640,bacula,logs) %ghost /var/log/bacula/log
5ce18635
AM
860
861%files dir
bb6e7dc5 862%defattr(644,root,root,755)
237bfacd 863%doc ChangeLog CheckList ReleaseNotes kernstodo LICENSE
28647453 864#%doc examples %{name}-docs-%{version}/manual/{*.pdf,bacula}
cc515592 865%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-dir.conf
1a72afd2 866%ghost %{_sysconfdir}/.pw.sed
28c9f5d0 867%attr(640,root,root) %config(noreplace) /etc/logrotate.d/bacula-dir
1a72afd2 868%attr(754,root,root) /etc/rc.d/init.d/bacula-dir
cd23ba7c 869%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-dir
5ff0b6a3 870%attr(755,root,root) %{_sbindir}/bacula-dir
7545e94f
JK
871%attr(755,root,root) %{_sbindir}/bregex
872%attr(755,root,root) %{_sbindir}/bwild
873%attr(755,root,root) %{_sbindir}/bacula-dbcheck
79d0fef6 874%{_mandir}/man8/bacula-dir.8*
7545e94f 875%{_mandir}/man8/bacula-dbcheck.8*
79d0fef6 876%{_libexecdir}/%{name}/query.sql
41bc1b6e
JK
877#%attr(755,root,root) %{_libexecdir}/%{name}/make_catalog_backup
878#%attr(755,root,root) %{_libexecdir}/%{name}/delete_catalog_backup
879
880%files db-postgresql
881%defattr(644,root,root,755)
882%attr(755,root,root) %{_libexecdir}/%{name}/create_postgresql_database
883%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_database
884%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_tables
885%attr(755,root,root) %{_libexecdir}/%{name}/grant_postgresql_privileges
886%attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_tables
887%attr(755,root,root) %{_libexecdir}/%{name}/update_postgresql_*
9fdbb2e7 888%attr(755,root,root) %{_libdir}/libbacsql-postgresql-5*.so
41bc1b6e 889
9fdbb2e7 890%ghost %attr(755,root,root) %{_libdir}/libbacsql-5*.so
41bc1b6e
JK
891%ghost %{_libexecdir}/%{name}/create_bacula_database
892%ghost %{_libexecdir}/%{name}/drop_bacula_tables
893%ghost %{_libexecdir}/%{name}/drop_bacula_database
894%ghost %{_libexecdir}/%{name}/grant_bacula_privileges
895%ghost %{_libexecdir}/%{name}/make_bacula_tables
896%ghost %{_libexecdir}/%{name}/update_bacula_tables
897
898%files db-mysql
899%defattr(644,root,root,755)
aeaed87e 900%attr(755,root,root) %{_libexecdir}/%{name}/create_mysql_database
901%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_database
902%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_tables
903%attr(755,root,root) %{_libexecdir}/%{name}/grant_mysql_privileges
904%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_tables
905%attr(755,root,root) %{_libexecdir}/%{name}/update_mysql_*
6f3f1b78 906%attr(755,root,root) %{_libdir}/libbacsql-mysql-5*.so
41bc1b6e 907
6f3f1b78 908%ghost %attr(755,root,root) %{_libdir}/libbacsql-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
915
916%files db-sqlite3
917%defattr(644,root,root,755)
918%attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite3_database
919%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_database
920%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_tables
921%attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite3_privileges
922%attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_tables
923%attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite3_*
6f3f1b78 924%attr(755,root,root) %{_libdir}/libbacsql-sqlite3-5*.so
41bc1b6e 925
6f3f1b78 926%ghost %attr(755,root,root) %{_libdir}/libbacsql-5*.so
41bc1b6e
JK
927%ghost %{_libexecdir}/%{name}/create_bacula_database
928%ghost %{_libexecdir}/%{name}/drop_bacula_tables
929%ghost %{_libexecdir}/%{name}/drop_bacula_database
930%ghost %{_libexecdir}/%{name}/grant_bacula_privileges
931%ghost %{_libexecdir}/%{name}/make_bacula_tables
932%ghost %{_libexecdir}/%{name}/update_bacula_tables
933
01b2eaa4 934%if %{with dbi}
41bc1b6e
JK
935%files db-dbi
936%defattr(644,root,root,755)
e090896a
JK
937%attr(755,root,root) %{_libexecdir}/%{name}/create_postgresql_database
938%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_database
939%attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_tables
940%attr(755,root,root) %{_libexecdir}/%{name}/grant_postgresql_privileges
941%attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_tables
942%attr(755,root,root) %{_libexecdir}/%{name}/update_postgresql_*
41bc1b6e
JK
943%attr(755,root,root) %{_libexecdir}/%{name}/create_mysql_database
944%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_database
945%attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_tables
946%attr(755,root,root) %{_libexecdir}/%{name}/grant_mysql_privileges
947%attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_tables
948%attr(755,root,root) %{_libexecdir}/%{name}/update_mysql_*
949%attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite3_database
950%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_database
951%attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_tables
952%attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite3_privileges
953%attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_tables
954%attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite3_*
6f3f1b78 955%attr(755,root,root) %{_libdir}/libbacsql-dbi-5*.so
41bc1b6e 956
6f3f1b78 957%ghost %attr(755,root,root) %{_libdir}/libbacsql-5*.so
01b2eaa4 958%endif
41bc1b6e 959
5ce18635
AM
960%files fd
961%defattr(644,root,root,755)
237bfacd 962%doc LICENSE
1b0a2248 963%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-fd.conf
1a72afd2 964%attr(754,root,root) /etc/rc.d/init.d/bacula-fd
cd23ba7c 965%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-fd
5ff0b6a3 966%attr(755,root,root) %{_sbindir}/bacula-fd
7545e94f 967%attr(755,root,root) %{_libdir}/bpipe-fd.so
79d0fef6 968%{_mandir}/man8/bacula-fd.8*
5ce18635
AM
969
970%files sd
971%defattr(644,root,root,755)
237bfacd 972%doc LICENSE
1b0a2248 973%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-sd.conf
0a03f92d 974%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mtx-changer.conf
1a72afd2 975%attr(754,root,root) /etc/rc.d/init.d/bacula-sd
cd23ba7c 976%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-sd
5ff0b6a3
AM
977%attr(755,root,root) %{_sbindir}/bacula-sd
978%attr(755,root,root) %{_sbindir}/bcopy
979%attr(755,root,root) %{_sbindir}/bextract
980%attr(755,root,root) %{_sbindir}/bls
981%attr(755,root,root) %{_sbindir}/bscan
982%attr(755,root,root) %{_sbindir}/btape
329073aa 983%attr(755,root,root) %{_libexecdir}/%{name}/mtx-changer
150db1c2 984%attr(755,root,root) %{_libexecdir}/%{name}/disk-changer
329073aa 985%attr(755,root,root) %{_libexecdir}/%{name}/dvd-handler
5ce18635 986%{_mandir}/man8/bacula-sd.8*
7425cb9d
JK
987%{_mandir}/man8/bcopy.8*
988%{_mandir}/man8/bextract.8*
989%{_mandir}/man8/bls.8*
990%{_mandir}/man8/bscan.8*
991%{_mandir}/man8/btape.8*
5ce18635
AM
992
993%files console
bb6e7dc5 994%defattr(644,root,root,755)
237bfacd 995%doc LICENSE
1b0a2248 996%attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bconsole.conf
1a72afd2 997%attr(755,root,root) %{_sbindir}/bconsole
7425cb9d 998%{_mandir}/man8/bconsole.8*
5ce18635 999
1376b552 1000%if %{with console_wx}
5ce18635
AM
1001%files console-wx
1002%defattr(644,root,root,755)
237bfacd 1003%doc LICENSE
1a72afd2 1004%{_pixmapsdir}/%{name}.png
237bfacd 1005%{_desktopdir}/bacula-wx.desktop
3a5cd5d7 1006%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwx-console.conf
e3dd858d 1007%attr(755,root,root) %{_sbindir}/bwx-console
1008%{_mandir}/man1/bacula-bwxconsole.1*
1376b552 1009%endif
bb6e7dc5 1010
304bb97e
AM
1011%if %{with bat}
1012%files console-qt4
1013%defattr(644,root,root,755)
1014%doc LICENSE
1015%{_pixmapsdir}/%{name}.png
1016%{_desktopdir}/bat.desktop
2264d68c 1017# Do not make this file world-readable or any user will get full access to the
b0473ed3 1018# backup system
2264d68c
JK
1019%attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bat.conf
1020%attr(755,root,root) %{_bindir}/bat
304bb97e 1021%{_mandir}/man1/bat.1*
7545e94f 1022%{_docdir}/%{name}
304bb97e
AM
1023%endif
1024
cacc89f5 1025%if %{with console_wx}
237bfacd
JK
1026%files tray-monitor
1027%defattr(644,root,root,755)
1028%doc LICENSE
8ba087a4
ER
1029%attr(755,root,root) %{_sbindir}/bacula-tray-monitor
1030#%{_pixmapsdir}/%{name}-tray-monitor.xpm
1031#%{_desktopdir}/%{name}-tray-monitor.desktop
cd23ba7c 1032%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tray-monitor.conf
7425cb9d 1033%{_mandir}/man1/bacula-tray-monitor.1*
cacc89f5 1034%endif
237bfacd 1035
2b68b0cb 1036%if %{with rescue}
bb6e7dc5
AM
1037%files rescue
1038%defattr(644,root,root,755)
c741b8e0 1039%doc LICENSE
4280e495 1040%dir %{_sysconfdir}/rescue
1b0a2248 1041%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/backup.etc.list
1042%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/bacula-fd
1043%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/format_floppy
1044%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/getdiskinfo
1045%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/make_rescue_disk
1046%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_bacula
1047%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_etc
1048%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_grub
1049%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_lilo
1050%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/sfdisk.bz2
2b68b0cb 1051%endif
b0473ed3
ER
1052
1053%if %{with nagios}
1054%files -n nagios-plugin-check_bacula
1055%defattr(644,root,root,755)
1056%attr(755,root,root) %{nagiosplugindir}/check_bacula
1057%endif
This page took 0.339797 seconds and 4 git commands to generate.