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