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