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