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