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