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