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