3 # - update desktop files, think about su-wrappers for console
4 Summary: Bacula - The Network Backup Solution
5 Summary(pl): Bacula - rozwi±zanie do wykonywania kopii zapasowych po sieci
10 Group: Networking/Utilities
11 License: extended GPL v2
12 Source0: http://dl.sourceforge.net/bacula/%{name}-%{version}.tar.gz
13 # Source0-md5: 55a9ab6d211913fa8c73e3d07eabc189
14 Source1: %{name}-manpages.tar.bz2
15 # Source1-md5: e4dae86d6574b360e831efd3913e7f4c
16 Source10: %{name}-dir.init
17 Source11: %{name}-fd.init
18 Source12: %{name}-sd.init
19 Source13: %{name}.logrotate
20 Source14: %{name}-dir.sysconfig
21 Source15: %{name}-fd.sysconfig
22 Source16: %{name}-sd.sysconfig
23 URL: http://www.bacula.org/
24 BuildRequires: acl-static
25 BuildRequires: automake
26 BuildRequires: glibc-static
27 BuildRequires: libgnome-devel >= 2.0
28 BuildRequires: libgnomeui-devel >= 2.0
29 BuildRequires: libstdc++-static
30 BuildRequires: libwrap-static
32 BuildRequires: ncurses-devel
33 BuildRequires: openssl-devel
34 BuildRequires: pkgconfig
35 BuildRequires: readline-devel
36 BuildRequires: sed >= 4.0
37 BuildRequires: sqlite-devel
38 BuildRequires: wxGTK2-devel >= 2.4.0
39 BuildRequires: wxGTK2-devel < 2.5.0
40 BuildRequires: zlib-devel
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %define _sysconfdir /etc/%{name}
44 %define _localstatedir /var/lib/%{name}
47 Bacula - It comes by night and sucks the vital essence from your
50 Bacula is a set of computer programs that permit you (or the system
51 administrator) to manage backup, recovery, and verification of
52 computer data across a network of computers of different kinds. In
53 technical terms, it is a network client/server based backup program.
54 Bacula is relatively easy to use and efficient, while offering many
55 advanced storage management features that make it easy to find and
56 recover lost or damaged files.
59 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
61 Bacula to zbiór programów umo¿liwiaj±cych administratorowi na
62 zarz±dzanie kopiami zapasowymi, odzyskiwaniem i weryfikacj± danych
63 w sieci komputerów ró¿nego rodzaju. W terminologii technicznej jest to
64 program do kopii zapasowych pracuj±cy w architekturze klient-serwer.
65 Bacula jest stosunkowo ³atwa w u¿yciu i wydajna, oferuj±c przy tym
66 wiele zaawansowanych mo¿liwo¶ci przy zarz±dzaniu no¶nikami,
67 u³atwiaj±cych znalezienie i odzyskanie utraconych lub uszkodzonych
71 Summary: Common files for bacula package
72 Summary(pl): Pliki wspólne dla pakietu bacula
73 Group: Networking/Utilities
74 Conflicts: bacula-dir < 0:1.34.6
75 Conflicts: bacula-fd < 0:1.34.6
76 Conflicts: bacula-sd < 0:1.34.6
77 Conflicts: bacula-console < 0:1.34.6
78 Requires(post): openssl-tools
79 Requires(post): sed >= 4.0
82 Bacula - It comes by night and sucks the vital essence from your
85 Bacula is a set of computer programs that permit you (or the system
86 administrator) to manage backup, recovery, and verification of
87 computer data across a network of computers of different kinds. In
88 technical terms, it is a network client/server based backup program.
89 Bacula is relatively easy to use and efficient, while offering many
90 advanced storage management features that make it easy to find and
91 recover lost or damaged files.
93 %description common -l pl
94 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
96 Bacula to zbiór programów umo¿liwiaj±cych administratorowi na
97 zarz±dzanie kopiami zapasowymi, odzyskiwaniem i weryfikacj± danych
98 w sieci komputerów ró¿nego rodzaju. W terminologii technicznej jest to
99 program do kopii zapasowych pracuj±cy w architekturze klient-serwer.
100 Bacula jest stosunkowo ³atwa w u¿yciu i wydajna, oferuj±c przy tym
101 wiele zaawansowanych mo¿liwo¶ci przy zarz±dzaniu no¶nikami,
102 u³atwiaj±cych znalezienie i odzyskanie utraconych lub uszkodzonych
106 Summary: Bacula Director and Catalog services
107 Summary(pl): Us³ugi Bacula Director i Catalog
108 Group: Networking/Utilities
109 Obsoletes: %{name}-updatedb
110 PreReq: bacula-common = %{epoch}:%{version}-%{release}
111 Requires(post): sed >= 4.0
114 Bacula - It comes by night and sucks the vital essence from your
117 Bacula Director is the program that supervises all the backup,
118 restore, verify and archive operations. The system administrator uses
119 the Bacula Director to schedule backups and to recover files. Catalog
120 services are comprised of the software programs responsible for
121 maintaining the file indexes and volume databases for all files backed
122 up. The Catalog services permit the System Administrator or user to
123 quickly locate and restore any desired file, since it maintains a
124 record of all Volumes used, all Jobs run, and all Files saved. This
125 build requires sqlite to be installed separately as the catalog
128 %description dir -l pl
129 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
131 Bacula Director to program nadzoruj±cy wszystkie operacje wykonywania
132 kopii zapasowych, odzyskiwania, weryfikacji i archiwizowania.
133 Administrator u¿ywa Bacula Directora do szeregowania kopii zapasowych
134 oraz odzyskiwania plików. Us³ugi katalogowe (Catalog services) s±
135 u¿ywane przez programy odpowiedzialne za zarz±dzanie indeksami plików
136 i baz± danych wolumenów dla wszystkich kopiowanych plików. Us³ugi
137 katalogowe umo¿liwiaj± administratorowi lub u¿ytkownikowi szybko
138 zlokalizowaæ i odtworzyæ dowolny plik, poniewa¿ utrzymuj± rekord ze
139 wszystkimi u¿ywanymi wolumenami, uruchomionymi zadaniami i zapisanymi
140 plikami. Pakiet wymaga sqlite zainstalowanego oddzielnie jako bazy
144 Summary: Bacula Console
145 Summary(pl): Konsola Baculi
146 Group: Networking/Utilities
147 PreReq: bacula-common = %{epoch}:%{version}-%{release}
148 Requires(post): sed >= 4.0
151 Bacula - It comes by night and sucks the vital essence from your
154 Bacula Console is the program that allows the administrator or user to
155 communicate with the Bacula Director. This is the text only console
158 %description console -l pl
159 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
161 Bacula Console to program umo¿liwiaj±cy administratorowi lub
162 u¿ytkownikowi komunikowanie siê z programem Bacula Director. To jest
163 interfejs czysto tekstowy.
166 Summary: Bacula wxWidgets Console
167 Summary(pl): Konsola Baculi oparta na wxWidgets
168 Group: Networking/Utilities
169 PreReq: bacula-common = %{epoch}:%{version}-%{release}
170 Requires(post): sed >= 4.0
172 %description console-wx
173 Bacula - It comes by night and sucks the vital essence from your
176 Bacula Console is the program that allows the administrator or user to
177 communicate with the Bacula Director. This is the wxWidgets GUI
180 %description console-wx -l pl
181 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
183 Bacula Console to program umo¿liwiaj±cy administratorowi lub
184 u¿ytkownikowi komunikowanie siê z programem Bacula Director. To jest
185 interfejs graficzny oparty na wxWidgets.
187 %package console-gnome
188 Summary: Bacula GNOME Console
189 Summary(pl): Konsola Baculi oparta dla GNOME
190 Group: Networking/Utilities
191 PreReq: bacula-common = %{epoch}:%{version}-%{release}
192 Requires(post): sed >= 4.0
194 %description console-gnome
195 Bacula - It comes by night and sucks the vital essence from your
198 Bacula Console is the program that allows the administrator or user to
199 communicate with the Bacula Director. This is the GNOME GUI
202 %description console-gnome -l pl
203 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
205 Bacula Console to program umo¿liwiaj±cy administratorowi lub
206 u¿ytkownikowi komunikowanie siê z programem Bacula Director. To jest
207 interfejs graficzny oparty na GNOME.
209 %package tray-monitor
210 Summary: Bacula Tray Monitor
211 Group: Networking/Utilities
212 PreReq: bacula-common = %{epoch}:%{version}-%{release}
213 Requires(post): sed >= 4.0
215 %description tray-monitor
216 Bacula - It comes by night and sucks the vital essence from your
219 The Monitor program is typically an icon in the system tray. However, once the
220 icon is expanded into a full window, the administrator or user can obtain
221 status information about the Director or the backup status on the local
222 workstation or any other Bacula daemon that is configured.
225 Summary: Bacula File services (Client)
226 Summary(pl): Us³ugi Bacula File (klient)
227 Group: Networking/Utilities
228 PreReq: bacula-common = %{epoch}:%{version}-%{release}
229 Requires(post): sed >= 4.0
232 Bacula - It comes by night and sucks the vital essence from your
235 Bacula File services (or Client program) is the software program that
236 is installed on the machine to be backed up. It is specific to the
237 operating system on which it runs and is responsible for providing the
238 file attributes and data when requested by the Director. The File
239 services are also responsible for the file system dependent part of
240 restoring the file attributes and data during a recovery operation.
241 This program runs as a daemon on the machine to be backed up, and in
242 some of the documentation, the File daemon is referred to as the
243 Client (for example in Bacula configuration file).
245 %description fd -l pl
246 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
248 Us³ugi Bacula File (inaczej program kliencki) to oprogramowanie, które
249 instaluje siê na maszynach, z których maj± byæ wykonywane kopie
250 zapasowe. S± one specyficzne dla systemu operacyjnego, pod którym
251 dzia³a dana maszyna i odpowiadaj± za dostarczanie atrybutów i danych
252 plików na ¿±danie Directora. Us³ugi plikowe s± tak¿e odpowiedzialne za
253 zale¿n± od systemu plików czê¶æ odzyskiwania atrybutów i danych plików
254 podczas operacji odzyskiwania danych. Program dzia³a jako demon na
255 maszynie, która ma byæ backupowana i w czê¶ci dokumentacji demon ten
256 (File) jest nazywany klientem (na przyk³ad w pliku konfiguracyjnym
260 Summary: Bacula Storage services
261 Summary(pl): Us³ugi Bacula Storage
262 Group: Networking/Utilities
263 PreReq: bacula-common = %{epoch}:%{version}-%{release}
264 Requires(post): sed >= 4.0
267 Bacula - It comes by night and sucks the vital essence from your
270 Bacula Storage services consist of the software programs that perform
271 the storage and recovery of the file attributes and data to the
272 physical backup media or volumes. In other words, the Storage daemon
273 is responsible for reading and writing your tapes (or other storage
274 media, e.g. files). The Storage services runs as a daemon on the
275 machine that has the backup device (usually a tape drive).
277 %description sd -l pl
278 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
280 Us³ugi Bacula Storage sk³adaj± siê z programów obs³uguj±cych
281 przechowywanie danych oraz odzyskiwanie atrybutów i danych na
282 fizycznych no¶nikach lub wolumenach. Innymi s³owy, demon Storage jest
283 odpowiedzialny za odczyt i zapis ta¶m (lub innych no¶ników do
284 przechowywania danych, np. plików). Us³ugi Storage dzia³aj± jako demon
285 na maszynie, która zawiera urz±dzenie backupowe (zwykle napêd
289 Summary: Bacula - The Network Backup Solution
290 Summary(pl): Bacula - rozwi±zanie do wykonywania kopii zapasowych po sieci
291 Group: Networking/Utilities
292 Requires: %{name}-fd = %{epoch}:%{version}-%{release}
297 Bacula - It comes by night and sucks the vital essence from your
300 Bacula is a set of computer programs that permit you (or the system
301 administrator) to manage backup, recovery, and verification of
302 computer data across a network of computers of different kinds. In
303 technical terms, it is a network client/server based backup program.
304 Bacula is relatively easy to use and efficient, while offering many
305 advanced storage management features that make it easy to find and
306 recover lost or damaged files.
308 This package installs scripts for disaster recovery and builds rescue
309 floppy disk for bare metal recovery.
311 To make the bacula rescue disk run "./make_rescue_disk --copy-static-bacula
312 - --copy-etc-files" from the %{_sysconfdir}/rescue directory. To recreate the
313 rescue information for this system run ./getdiskinfo again.
315 %description rescue -l pl
316 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
318 Bacula to zbiór programów umo¿liwiaj±cych administratorowi na
319 zarz±dzanie kopiami zapasowymi, odzyskiwaniem i weryfikacj± danych
320 w sieci komputerów ró¿nego rodzaju. W terminologii technicznej jest to
321 program do kopii zapasowych pracuj±cy w architekturze klient-serwer.
322 Bacula jest stosunkowo ³atwa w u¿yciu i wydajna, oferuj±c przy tym
323 wiele zaawansowanych mo¿liwo¶ci przy zarz±dzaniu no¶nikami,
324 u³atwiaj±cych znalezienie i odzyskanie utraconych lub uszkodzonych
327 Ten pakiet zawiera skrypty do odtwarzania po awarii i tworzy dyskietkê
328 ratunkowe do odtwarzania systemu od zera.
330 Aby stworzyæ dyskietkê ratunkow± Baculi, nale¿y uruchomiæ "./make_rescue_disk
331 --copy-static-bacula - --copy-etc-files" z katalogu
332 %{_sysconfdir}/rescue . Aby ponownie utworzyæ informacje ratunkowe dla
333 danego systemu, nale¿y ponownie uruchomiæ ./getdiskinfo .
337 sed -i -e 's#wx-config#wxgtk2-2.4-config#g' configure*
338 sed -i -e 's#-lreadline -ltermcap#-lreadline#g' configure*
339 sed -i -e 's#bindir=.*#bindir=%{_bindir}#g' \
340 src/cats/create_* src/cats/delete_* src/cats/drop_* \
341 src/cats/grant_* src/cats/make_* src/cats/update_*
342 sed -i -e 's/@hostname@/--hostname--/' src/*/*.conf.in
345 cp -f %{_datadir}/automake/config.sub autoconf
346 CPPFLAGS="-I%{_includedir}/ncurses -I%{_includedir}/readline"
348 --with-scriptdir=%{_libexecdir}/%{name} \
351 --enable-smartalloc \
352 --enable-wx-console \
353 --enable-tray-monitor \
355 --with-tcp-wrappers \
356 --with-working-dir=%{_var}/lib/%{name} \
357 --with-dump-email="root@localhost" \
358 --with-job-email="root@localhost" \
359 --with-smtp-host=localhost \
360 --with-pid-dir=/var/run \
361 --with-subsys-dir=/var/lock/subsys \
363 --with-dir-password="#FAKE-dir-password#" \
364 --with-fd-password="#FAKE-fd-password#" \
365 --with-sd-password="#FAKE-sd-password#" \
366 --with-mon-dir-password="#FAKE-mon-dir-password#" \
367 --with-mon-fd-password="#FAKE-mon-fd-password#" \
368 --with-mon-sd-password="#FAKE-mon-sd-password#" \
374 rm -rf $RPM_BUILD_ROOT
376 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,pam.d,sysconfig}
377 install -d $RPM_BUILD_ROOT%{_sysconfdir}/rescue
378 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir},%{_bindir}}
381 DESTDIR=$RPM_BUILD_ROOT
384 strip -R.comment -R.note src/filed/static-bacula-fd
385 install src/filed/static-bacula-fd $RPM_BUILD_ROOT%{_sysconfdir}/rescue/bacula-fd
387 # tray-monitor is for regular users
388 mv $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor $RPM_BUILD_ROOT%{_bindir}
390 install %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-dir
391 install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-fd
392 install %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-sd
393 install %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir
394 install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/bacula-dir
395 install %{SOURCE15} $RPM_BUILD_ROOT/etc/sysconfig/bacula-fd
396 install %{SOURCE16} $RPM_BUILD_ROOT/etc/sysconfig/bacula-sd
398 install scripts/bacula.png $RPM_BUILD_ROOT%{_pixmapsdir}/bacula.png
399 install src/tray-monitor/generic.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/bacula-tray-monitor.xpm
400 install scripts/bacula.desktop.gnome2 $RPM_BUILD_ROOT%{_desktopdir}/bacula.desktop
401 sed -e 's/gnome-console/wx-console/g;s/Console/Wx Console/g' \
402 scripts/bacula.desktop.gnome2 > $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop
403 sed -e 's#%{_sbindir}#%{_bindir}#' \
404 scripts/bacula-tray-monitor.desktop > $RPM_BUILD_ROOT%{_desktopdir}/bacula-tray-monitor.desktop
406 # install the rescue stuff, these are the rescue scripts
407 install rescue/linux/floppy/backup.etc.list $RPM_BUILD_ROOT%{_sysconfdir}/rescue
408 install rescue/linux/floppy/*_* $RPM_BUILD_ROOT%{_sysconfdir}/rescue
409 install rescue/linux/floppy/getdiskinfo $RPM_BUILD_ROOT%{_sysconfdir}/rescue
410 install rescue/linux/floppy/sfdisk.bz2 $RPM_BUILD_ROOT%{_sysconfdir}/rescue
412 # install the updatedb scripts
413 install updatedb/update_sqlite* $RPM_BUILD_ROOT%{_libexecdir}/%{name}
416 cp -a man1 man8 $RPM_BUILD_ROOT%{_mandir}
418 install -d html-manual
419 cp -a doc/html-manual/*.{html,jpg,gif,css,png,txt} html-manual
422 # place for site passwords
423 touch $RPM_BUILD_ROOT%{_sysconfdir}/{dir-password,fd-password,sd-password}
424 touch $RPM_BUILD_ROOT%{_sysconfdir}/{mon-dir-password,mon-fd-password,mon-sd-password}
427 rm -f $RPM_BUILD_ROOT%{_libexecdir}/%{name}/{gconsole,startmysql,stopmysql,bacula,bconsole,fd}
428 rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd
429 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/gnome*
430 touch $RPM_BUILD_ROOT%{_sysconfdir}/.pw.sed
433 rm -rf $RPM_BUILD_ROOT
436 if [ -n "`getgid bacula`" ]; then
437 if [ "`getgid bacula`" != "136" ]; then
438 echo "Error: group bacula doesn't have gid=136. Correct this before installing bacula." 1>&2
442 /usr/sbin/groupadd -g 136 -r -f bacula
444 if [ -n "`id -u bacula 2>/dev/null`" ]; then
445 if [ "`id -u bacula`" != "136" ]; then
446 echo "Error: user bacula doesn't have uid=136. Correct this before installing bacula." 1>&2
450 /usr/sbin/useradd -u 136 -r -d /var/lib/bacula -s /bin/false -c "Bacula User" -g bacula bacula 1>&2
454 echo "Updating bacula passwords and names..."
456 for f in *-password ; do
457 if ! [ -s $f ] ; then
458 openssl rand -base64 33 > $f
461 for cf in *.conf *.conf.rpmnew ; do
462 [ -f $cf ] && sed -i -e"s:#FAKE-$f#:$p:" "$cf" || :
465 for cf in *.conf *.conf.rpmnew ; do
466 [ -f $cf ] && sed -i -e"s:--hostname--:`hostname`:" "$cf" || :
470 if [ "$1" = "0" ]; then
477 [ -s %{_localstatedir}/bacula.db ] && \
478 DB_VER=`echo "select * from Version;" | \
479 %{_bindir}/sqlite %{_localstatedir}/bacula.db | tail -n 1 2>/dev/null`
480 if [ -z "$DB_VER" ]; then
481 # grant privileges and create tables
482 %{_libexecdir}/%{name}/grant_bacula_privileges > dev/null
483 %{_libexecdir}/%{name}/create_bacula_database > dev/null
484 %{_libexecdir}/%{name}/make_bacula_tables > dev/null
485 elif [ "$DB_VER" -lt "8" ]; then
486 echo "Backing up bacula tables"
487 echo ".dump" | sqlite %{_localstatedir}/bacula.db | bzip2 > %{_localstatedir}/bacula_backup.sql.bz2
489 echo "Upgrading bacula tables"
490 if [ "$DB_VER" -lt "7" ]; then
491 if [ "$DB_VER" -lt "6" ]; then
492 if [ "$DB_VER" -lt "5" ]; then
493 %{_libexecdir}/%{name}/update_${type}_tables_4_to_5
495 %{_libexecdir}/%{name}/update_${type}_tables_5_to_6
497 %{_libexecdir}/%{name}/update_${type}_tables_6_to_7
499 %{_libexecdir}/%{name}/update_bacula_tables
500 echo "If bacula works correctly you can remove the backup file %{_localstatedir}/bacula_backup.sql.bz2"
502 chown -R bacula:bacula %{_localstatedir}
503 chmod -R u+rX,go-rwx %{_localstatedir}/*
505 echo "Updating Bacula passwords and names..."
507 for f in *-password ; do
509 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew
511 sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew
513 /sbin/chkconfig --add bacula-dir
514 if [ -f /var/lock/subsys/bacula-dir ]; then
515 /etc/rc.d/init.d/bacula-dir restart 1>&2
517 echo "Run \"/etc/rc.d/init.d/bacula-dir start\" to start Bacula Director daemon."
521 if [ "$1" = "0" ]; then
522 if [ -f /var/lock/subsys/bacula-dir ]; then
523 /etc/rc.d/init.d/bacula-dir stop 1>&2
525 /sbin/chkconfig --del bacula-dir
529 echo "Updating Bacula passwords and names..."
531 for f in *-password ; do
533 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew
535 sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew
537 /sbin/chkconfig --add bacula-fd
538 if [ -f /var/lock/subsys/bacula-fd ]; then
539 /etc/rc.d/init.d/bacula-fd restart 1>&2
541 echo "Run \"/etc/rc.d/init.d/bacula-fd start\" to start Bacula File daemon."
545 if [ "$1" = "0" ]; then
546 if [ -f /var/lock/subsys/bacula-fd ]; then
547 /etc/rc.d/init.d/bacula-fd stop 1>&2
549 /sbin/chkconfig --del bacula-fd
553 echo "Updating Bacula passwords and names..."
555 for f in *-password ; do
557 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew
559 sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew
561 /sbin/chkconfig --add bacula-sd
562 if [ -f /var/lock/subsys/bacula-sd ]; then
563 /etc/rc.d/init.d/bacula-sd restart 1>&2
565 echo "Run \"/etc/rc.d/init.d/bacula-sd start\" to start Bacula Storage daemon."
569 if [ "$1" = "0" ]; then
570 if [ -f /var/lock/subsys/bacula-sd ]; then
571 /etc/rc.d/init.d/bacula-sd stop 1>&2
573 /sbin/chkconfig --del bacula-sd
577 if [ -e %{_sysconfdir}/console.conf -a ! -e %{_sysconfdir}/bconsole.conf ]; then
578 mv %{_sysconfdir}/console.conf %{_sysconfdir}/bconsole.conf
582 echo "Updating Bacula passwords and names..."
584 for f in *-password ; do
586 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew
588 sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew
591 echo "Updating Bacula passwords and names..."
593 for f in *-password ; do
595 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew
597 sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew
600 echo "Updating Bacula passwords and names..."
602 for f in *-password ; do
604 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew
606 sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew
609 echo "Updating Bacula passwords and names..."
611 for f in *-password ; do
613 sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew
615 sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew
618 # link our current installed conf file to the rescue directory
619 ln -sf %{_sysconfdir}/bacula-fd.conf %{_sysconfdir}/rescue/bacula-fd.conf
622 echo "Creating rescue files for this system..."
623 cd %{_sysconfdir}/rescue
627 # remove the files created after the initial rpm installation
628 if [ "$1" = "0" ]; then
629 rm -f %{_sysconfdir}/rescue/bacula-fd.conf
630 rm -f %{_sysconfdir}/rescue/partition.*
631 rm -f %{_sysconfdir}/rescue/format.*
632 rm -f %{_sysconfdir}/rescue/mount_drives
633 rm -f %{_sysconfdir}/rescue/start_network
634 rm -f %{_sysconfdir}/rescue/sfdisk
635 rm -rf %{_sysconfdir}/rescue/diskinfo/*
639 %defattr(644,root,root,755)
642 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/*-password
643 %attr(755,root,root) %{_sbindir}/btraceback
644 %attr(755,root,root) %{_sbindir}/bsmtp
645 %dir %{_libexecdir}/%{name}
646 %{_libexecdir}/%{name}/btraceback.gdb
647 %attr(770,root,bacula) %dir %{_localstatedir}
650 %defattr(644,root,root,755)
651 %doc ChangeLog CheckList ReleaseNotes kernstodo LICENSE
652 %doc doc/*.pdf html-manual examples
653 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/bacula-dir.conf
654 %ghost %{_sysconfdir}/.pw.sed
655 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/bacula-dir
656 %attr(754,root,root) /etc/rc.d/init.d/bacula-dir
657 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/bacula-dir
658 %attr(755,root,root) %{_sbindir}/bacula-dir
659 %attr(755,root,root) %{_sbindir}/dbcheck
660 %{_mandir}/man8/bacula-dir.8*
661 %{_mandir}/man1/dbcheck.1*
662 %{_libexecdir}/%{name}/query.sql
663 %attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite_database
664 %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite_database
665 %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite_tables
666 %attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite_privileges
667 %attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite_tables
668 %attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite_tables*
669 %attr(755,root,root) %{_libexecdir}/%{name}/create_bacula_database
670 %attr(755,root,root) %{_libexecdir}/%{name}/drop_bacula_database
671 %attr(755,root,root) %{_libexecdir}/%{name}/drop_bacula_tables
672 %attr(755,root,root) %{_libexecdir}/%{name}/grant_bacula_privileges
673 %attr(755,root,root) %{_libexecdir}/%{name}/make_bacula_tables
674 %attr(755,root,root) %{_libexecdir}/%{name}/update_bacula_tables
675 %attr(755,root,root) %{_libexecdir}/%{name}/make_catalog_backup
676 %attr(755,root,root) %{_libexecdir}/%{name}/delete_catalog_backup
679 %defattr(644,root,root,755)
681 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/bacula-fd.conf
682 %attr(754,root,root) /etc/rc.d/init.d/bacula-fd
683 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/bacula-fd
684 %attr(755,root,root) %{_sbindir}/bacula-fd
685 %{_mandir}/man8/bacula-fd.8*
688 %defattr(644,root,root,755)
691 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/bacula-sd.conf
692 %attr(754,root,root) /etc/rc.d/init.d/bacula-sd
693 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/bacula-sd
694 %attr(755,root,root) %{_sbindir}/bacula-sd
695 %attr(755,root,root) %{_sbindir}/bcopy
696 %attr(755,root,root) %{_sbindir}/bextract
697 %attr(755,root,root) %{_sbindir}/bls
698 %attr(755,root,root) %{_sbindir}/bscan
699 %attr(755,root,root) %{_sbindir}/btape
700 %{_libexecdir}/%{name}/mtx-changer
701 %{_mandir}/man8/bacula-sd.8*
702 %{_mandir}/man1/bcopy.1*
703 %{_mandir}/man1/bextract.1*
704 %{_mandir}/man1/bls.1*
705 %{_mandir}/man1/bscan.1*
706 %{_mandir}/man1/btape.1*
709 %defattr(644,root,root,755)
711 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/bconsole.conf
712 %attr(755,root,root) %{_sbindir}/bconsole
713 %{_mandir}/man1/bconsole.1*
716 %defattr(644,root,root,755)
718 %{_pixmapsdir}/%{name}.png
719 %{_desktopdir}/bacula-wx.desktop
720 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/wx-console.conf
721 %attr(755,root,root) %{_sbindir}/wx-console
722 %{_mandir}/man1/wx-console.1*
725 %defattr(644,root,root,755)
727 %{_pixmapsdir}/%{name}.png
728 %{_desktopdir}/bacula.desktop
729 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/gnome-console.conf
730 %attr(755,root,root) %{_sbindir}/gnome-console
731 #%{_mandir}/man1/gnome-console.1*
734 %defattr(644,root,root,755)
736 %{_pixmapsdir}/%{name}-tray-monitor.xpm
737 %{_desktopdir}/%{name}-tray-monitor.desktop
738 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/tray-monitor.conf
739 %attr(755,root,root) %{_bindir}/bacula-tray-monitor
740 #%{_mandir}/man1/bacula-tray-monitor.1*
743 %defattr(644,root,root,755)
745 %dir %{_sysconfdir}/rescue
746 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/backup.etc.list
747 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/bacula-fd
748 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/format_floppy
749 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/getdiskinfo
750 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/make_rescue_disk
751 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/restore_bacula
752 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/restore_etc
753 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/run_grub
754 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/run_lilo
755 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/sfdisk.bz2