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