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