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