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