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