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