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