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