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