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