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