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