]> git.pld-linux.org Git - packages/bacula.git/blob - bacula.spec
- include PNG images in the documentation
[packages/bacula.git] / bacula.spec
1 #
2 Summary:        Bacula - The Network Backup Solution
3 Summary(pl):    Bacula - rozwi±zanie do wykonywania kopii zapasowych po sieci
4 Name:           bacula
5 Version:        1.34.6
6 Release:        3
7 Epoch:          0
8 Group:          Networking/Utilities
9 License:        GPL v2
10 Source0:        http://dl.sourceforge.net/bacula/%{name}-%{version}.tar.gz
11 # Source0-md5:  9de593cb206df126a8e27774281c5bf6
12 Source1:        http://www.tux.org/pub/distributions/tinylinux/tomsrtbt/tomsrtbt-2.0.103.tar.gz
13 # Source1-md5:  d5ee50efb28986d564547d5da5de2483
14 Source2:        %{name}-manpages.tar.bz2
15 # Source2-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 Patch0:         %{name}-pidfile.patch
24 URL:            http://www.bacula.org/
25 BuildRequires:  acl-static
26 BuildRequires:  automake
27 BuildRequires:  glibc-static
28 BuildRequires:  libstdc++-static
29 BuildRequires:  libwrap-static
30 BuildRequires:  mtx
31 BuildRequires:  ncurses-devel
32 BuildRequires:  openssl-devel
33 BuildRequires:  pkgconfig
34 BuildRequires:  readline-devel
35 BuildRequires:  sed >= 4.0
36 BuildRequires:  sqlite-devel
37 BuildRequires:  wxGTK2-devel
38 BuildRequires:  zlib-devel
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %define         _sysconfdir     /etc/%{name}
42 %define         _localstatedir  /var/lib/%{name}
43
44 %description
45 Bacula - It comes by night and sucks the vital essence from your
46 computers.
47
48 Bacula is a set of computer programs that permit you (or the system
49 administrator) to manage backup, recovery, and verification of
50 computer data across a network of computers of different kinds. In
51 technical terms, it is a network client/server based backup program.
52 Bacula is relatively easy to use and efficient, while offering many
53 advanced storage management features that make it easy to find and
54 recover lost or damaged files.
55
56 %description -l pl
57 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
58
59 Bacula to zbiór programów umo¿liwiaj±cych administratorowi na
60 zarz±dzanie kopiami zapasowymi, odzyskiwaniem i weryfikacj± danych
61 w sieci komputerów ró¿nego rodzaju. W terminologii technicznej jest to
62 program do kopii zapasowych pracuj±cy w architekturze klient-serwer.
63 Bacula jest stosunkowo ³atwa w u¿yciu i wydajna, oferuj±c przy tym
64 wiele zaawansowanych mo¿liwo¶ci przy zarz±dzaniu no¶nikami,
65 u³atwiaj±cych znalezienie i odzyskanie utraconych lub uszkodzonych
66 plików.
67
68 %package common
69 Summary:        Common files for bacula package
70 Summary(pl):    Pliki wspólne dla pakietu bacula
71 Group:          Networking/Utilities
72 Conflicts:      bacula-dir < 0:1.34.6
73 Conflicts:      bacula-fd < 0:1.34.6
74 Conflicts:      bacula-sd < 0:1.34.6
75 Conflicts:      bacula-console < 0:1.34.6
76
77 %description common
78 Bacula - It comes by night and sucks the vital essence from your
79 computers.
80
81 Bacula is a set of computer programs that permit you (or the system
82 administrator) to manage backup, recovery, and verification of
83 computer data across a network of computers of different kinds. In
84 technical terms, it is a network client/server based backup program.
85 Bacula is relatively easy to use and efficient, while offering many
86 advanced storage management features that make it easy to find and
87 recover lost or damaged files.
88
89 %description common -l pl
90 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
91
92 Bacula to zbiór programów umo¿liwiaj±cych administratorowi na
93 zarz±dzanie kopiami zapasowymi, odzyskiwaniem i weryfikacj± danych
94 w sieci komputerów ró¿nego rodzaju. W terminologii technicznej jest to
95 program do kopii zapasowych pracuj±cy w architekturze klient-serwer.
96 Bacula jest stosunkowo ³atwa w u¿yciu i wydajna, oferuj±c przy tym
97 wiele zaawansowanych mo¿liwo¶ci przy zarz±dzaniu no¶nikami,
98 u³atwiaj±cych znalezienie i odzyskanie utraconych lub uszkodzonych
99 plików.
100
101 %package dir
102 Summary:        Bacula Director and Catalog services
103 Summary(pl):    Us³ugi Bacula Director i Catalog
104 Group:          Networking/Utilities
105 PreReq:         bacula-common = %{epoch}:%{version}-%{release}
106
107 %description dir
108 Bacula - It comes by night and sucks the vital essence from your
109 computers.
110
111 Bacula Director is the program that supervises all the backup,
112 restore, verify and archive operations. The system administrator uses
113 the Bacula Director to schedule backups and to recover files. Catalog
114 services are comprised of the software programs responsible for
115 maintaining the file indexes and volume databases for all files backed
116 up. The Catalog services permit the System Administrator or user to
117 quickly locate and restore any desired file, since it maintains a
118 record of all Volumes used, all Jobs run, and all Files saved. This
119 build requires sqlite to be installed separately as the catalog
120 database.
121
122 %description dir -l pl
123 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
124
125 Bacula Director to program nadzoruj±cy wszystkie operacje wykonywania
126 kopii zapasowych, odzyskiwania, weryfikacji i archiwizowania.
127 Administrator u¿ywa Bacula Directora do szeregowania kopii zapasowych
128 oraz odzyskiwania plików. Us³ugi katalogowe (Catalog services) s±
129 u¿ywane przez programy odpowiedzialne za zarz±dzanie indeksami plików
130 i baz± danych wolumenów dla wszystkich kopiowanych plików. Us³ugi
131 katalogowe umo¿liwiaj± administratorowi lub u¿ytkownikowi szybko
132 zlokalizowaæ i odtworzyæ dowolny plik, poniewa¿ utrzymuj± rekord ze
133 wszystkimi u¿ywanymi wolumenami, uruchomionymi zadaniami i zapisanymi
134 plikami. Pakiet wymaga sqlite zainstalowanego oddzielnie jako bazy
135 danych dla katalogu.
136
137 %package console
138 Summary:        Bacula Console
139 Summary(pl):    Konsola Baculi
140 Group:          Networking/Utilities
141 PreReq:         bacula-common = %{epoch}:%{version}-%{release}
142
143 %description console
144 Bacula - It comes by night and sucks the vital essence from your
145 computers.
146
147 Bacula Console is the program that allows the administrator or user to
148 communicate with the Bacula Director. This is the text only console
149 interface.
150
151 %description console -l pl
152 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
153
154 Bacula Console to program umo¿liwiaj±cy administratorowi lub
155 u¿ytkownikowi komunikowanie siê z programem Bacula Director. To jest
156 interfejs czysto tekstowy.
157
158 %package console-wx
159 Summary:        Bacula wxWidgets Console
160 Summary(pl):    Konsola Baculi oparta na wxWidgets
161 Group:          Networking/Utilities
162 PreReq:         bacula-common = %{epoch}:%{version}-%{release}
163
164 %description console-wx
165 Bacula - It comes by night and sucks the vital essence from your
166 computers.
167
168 Bacula Console is the program that allows the administrator or user to
169 communicate with the Bacula Director. This is the wxWidgets GUI
170 interface.
171
172 %description console-wx -l pl
173 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
174
175 Bacula Console to program umo¿liwiaj±cy administratorowi lub
176 u¿ytkownikowi komunikowanie siê z programem Bacula Director. To jest
177 interfejs graficzny oparty na wxWidgets.
178
179 %package fd
180 Summary:        Bacula File services (Client)
181 Summary(pl):    Us³ugi Bacula File (klient)
182 Group:          Networking/Utilities
183 PreReq:         bacula-common = %{epoch}:%{version}-%{release}
184
185 %description fd
186 Bacula - It comes by night and sucks the vital essence from your
187 computers.
188
189 Bacula File services (or Client program) is the software program that
190 is installed on the machine to be backed up. It is specific to the
191 operating system on which it runs and is responsible for providing the
192 file attributes and data when requested by the Director. The File
193 services are also responsible for the file system dependent part of
194 restoring the file attributes and data during a recovery operation.
195 This program runs as a daemon on the machine to be backed up, and in
196 some of the documentation, the File daemon is referred to as the
197 Client (for example in Bacula configuration file).
198
199 %description fd -l pl
200 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
201
202 Us³ugi Bacula File (inaczej program kliencki) to oprogramowanie, które
203 instaluje siê na maszynach, z których maj± byæ wykonywane kopie
204 zapasowe. S± one specyficzne dla systemu operacyjnego, pod którym
205 dzia³a dana maszyna i odpowiadaj± za dostarczanie atrybutów i danych
206 plików na ¿±danie Directora. Us³ugi plikowe s± tak¿e odpowiedzialne za
207 zale¿n± od systemu plików czê¶æ odzyskiwania atrybutów i danych plików
208 podczas operacji odzyskiwania danych. Program dzia³a jako demon na
209 maszynie, która ma byæ backupowana i w czê¶ci dokumentacji demon ten
210 (File) jest nazywany klientem (na przyk³ad w pliku konfiguracyjnym
211 Baculi).
212
213 %package sd
214 Summary:        Bacula Storage services
215 Summary(pl):    Us³ugi Bacula Storage
216 Group:          Networking/Utilities
217 PreReq:         bacula-common = %{epoch}:%{version}-%{release}
218
219 %description sd
220 Bacula - It comes by night and sucks the vital essence from your
221 computers.
222
223 Bacula Storage services consist of the software programs that perform
224 the storage and recovery of the file attributes and data to the
225 physical backup media or volumes. In other words, the Storage daemon
226 is responsible for reading and writing your tapes (or other storage
227 media, e.g. files). The Storage services runs as a daemon on the
228 machine that has the backup device (usually a tape drive).
229
230 %description sd -l pl
231 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
232
233 Us³ugi Bacula Storage sk³adaj± siê z programów obs³uguj±cych
234 przechowywanie danych oraz odzyskiwanie atrybutów i danych na
235 fizycznych no¶nikach lub wolumenach. Innymi s³owy, demon Storage jest
236 odpowiedzialny za odczyt i zapis ta¶m (lub innych no¶ników do
237 przechowywania danych, np. plików). Us³ugi Storage dzia³aj± jako demon
238 na maszynie, która zawiera urz±dzenie backupowe (zwykle napêd
239 ta¶mowy).
240
241 %package rescue
242 Summary:        Bacula - The Network Backup Solution
243 Summary(pl):    Bacula - rozwi±zanie do wykonywania kopii zapasowych po sieci
244 Group:          Networking/Utilities
245 Requires:       %{name}-fd = %{epoch}:%{version}-%{release}
246 Requires:       coreutils
247 Requires:       util-linux
248
249 %description rescue
250 Bacula - It comes by night and sucks the vital essence from your
251 computers.
252
253 Bacula is a set of computer programs that permit you (or the system
254 administrator) to manage backup, recovery, and verification of
255 computer data across a network of computers of different kinds. In
256 technical terms, it is a network client/server based backup program.
257 Bacula is relatively easy to use and efficient, while offering many
258 advanced storage management features that make it easy to find and
259 recover lost or damaged files.
260
261 This package installs scripts for disaster recovery and builds rescue
262 floppy disks for bare metal recovery. This package includes tomsrtbt
263 (http://www.toms.net/rb/, by Tom Oehser, Tom@Toms.NET) to provide a
264 tool to build a boot floppy disk.
265
266 To create a boot disk run "./getdiskinfo" from the
267 %{_sysconfdir}/rescue directory (this is done when the package is
268 first installed), then run "./install.s" from the
269 %{_sysconfdir}/rescue/tomsrtbt directory. To make the bacula rescue
270 disk run "./make_rescue_disk --copy-static-bacula - --copy-etc-files"
271 from the %{_sysconfdir}/rescue directory. To recreate the rescue
272 information for this system run ./getdiskinfo again.
273
274 %description rescue -l pl
275 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
276
277 Bacula to zbiór programów umo¿liwiaj±cych administratorowi na
278 zarz±dzanie kopiami zapasowymi, odzyskiwaniem i weryfikacj± danych
279 w sieci komputerów ró¿nego rodzaju. W terminologii technicznej jest to
280 program do kopii zapasowych pracuj±cy w architekturze klient-serwer.
281 Bacula jest stosunkowo ³atwa w u¿yciu i wydajna, oferuj±c przy tym
282 wiele zaawansowanych mo¿liwo¶ci przy zarz±dzaniu no¶nikami,
283 u³atwiaj±cych znalezienie i odzyskanie utraconych lub uszkodzonych
284 plików.
285
286 Ten pakiet zawiera skrypty do odtwarzania po awarii i tworzy dyskietki
287 ratunkowe do odtwarzania systemu od zera. Ten pakiet zawiera tomsrtbt
288 (http://www.toms.net/rb/ Toma Oehsera, Tom@Toms.NET), aby dostarczyæ
289 narzêdzie do tworzenia bootowalnych dyskietek.
290
291 Aby utworzyæ bootowaln± dyskietkê nale¿y uruchomiæ "./getdiskinfo" z
292 katalogu %{_sysconfdir}/rescue (jest to wykonywane kiedy pakiet jest
293 po raz pierwszy instalowany), a nastêpnie uruchomiæ "./install.s" z
294 katalogu %{_sysconfdir}/rescue/tomsrtbt. Aby stworzyæ dyskietkê
295 ratunkow± Baculi, nale¿y uruchomiæ "./make_rescue_disk
296 --copy-static-bacula - --copy-etc-files" z katalogu
297 %{_sysconfdir}/rescue . Aby ponownie utworzyæ informacje ratunkowe dla
298 danego systemu, nale¿y ponownie uruchomiæ ./getdiskinfo .
299
300 %package updatedb
301 Summary:        Bacula - The Network Backup Solution
302 Summary(pl):    Bacula - rozwi±zanie do wykonywania kopii zapasowych po sieci
303 Group:          Networking/Utilities
304
305 %description updatedb
306 Bacula - It comes by night and sucks the vital essence from your
307 computers.
308
309 Bacula is a set of computer programs that permit you (or the system
310 administrator) to manage backup, recovery, and verification of
311 computer data across a network of computers of different kinds. In
312 technical terms, it is a network client/server based backup program.
313 Bacula is relatively easy to use and efficient, while offering many
314 advanced storage management features that make it easy to find and
315 recover lost or damaged files.
316
317 This package installs scripts for updating older versions of the
318 bacula database.
319
320 %description updatedb -l pl
321 Bacula - przychodzi noc± i wysysa ¿ywotny ekstrakt z komputerów.
322
323 Bacula to zbiór programów umo¿liwiaj±cych administratorowi na
324 zarz±dzanie kopiami zapasowymi, odzyskiwaniem i weryfikacj± danych
325 w sieci komputerów ró¿nego rodzaju. W terminologii technicznej jest to
326 program do kopii zapasowych pracuj±cy w architekturze klient-serwer.
327 Bacula jest stosunkowo ³atwa w u¿yciu i wydajna, oferuj±c przy tym
328 wiele zaawansowanych mo¿liwo¶ci przy zarz±dzaniu no¶nikami,
329 u³atwiaj±cych znalezienie i odzyskanie utraconych lub uszkodzonych
330 plików.
331
332 Ten pakiet instaluje skrypty do uaktualniania starszych wersji bazy
333 danych Baculi.
334
335 %prep
336 %setup -q -a 1 -a 2
337 %patch0 -p1
338 sed -i -e 's#wx-config#wxgtk2-2.4-config#g' configure*
339 sed -i -e 's#-lreadline -ltermcap#-lreadline#g' configure*
340 sed -i -e 's#bindir=.*#bindir=%{_bindir}#g' \
341         src/cats/create_* src/cats/delete_* src/cats/drop_* \
342         src/cats/grant_* src/cats/make_* src/cats/update_*
343
344 %build
345 cp -f %{_datadir}/automake/config.sub autoconf
346 CPPFLAGS="-I%{_includedir}/ncurses -I%{_includedir}/readline"
347 %configure \
348         --with-scriptdir=%{_libexecdir}/%{name} \
349         --disable-gnome \
350         --disable-conio \
351         --enable-smartalloc \
352         --enable-wx-console \
353         --with-readline \
354         --with-tcp-wrappers \
355         --with-working-dir=%{_var}/lib/%{name} \
356         --with-dump-email="root@localhost" \
357         --with-job-email="root@localhost" \
358         --with-smtp-host=localhost \
359         --with-pid-dir=/var/run \
360         --with-subsys-dir=/var/lock/subsys \
361         --with-sqlite \
362         --enable-static-fd \
363         --with-dir-password="#FAKE#DIR#PASSWORD#PLD#" \
364         --with-fd-password="#FAKE#FD#PASSWORD#PLD#" \
365         --with-sd-password="#FAKE#SD#PASSWORD#PLD#"
366
367 %{__make}
368
369 %install
370 rm -rf $RPM_BUILD_ROOT
371
372 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,pam.d,security/console.apps,sysconfig}
373 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{rescue/tomsrtbt,updatedb}
374 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_mandir},%{_bindir}}
375
376 %{__make} install \
377         DESTDIR=$RPM_BUILD_ROOT
378
379 # static daemon
380 strip -R.comment -R.note src/filed/static-bacula-fd
381 install src/filed/static-bacula-fd $RPM_BUILD_ROOT%{_sysconfdir}/rescue/bacula-fd
382
383 install %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-dir
384 install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-fd
385 install %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-sd
386 install %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir
387 install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/bacula-dir
388 install %{SOURCE15} $RPM_BUILD_ROOT/etc/sysconfig/bacula-fd
389 install %{SOURCE16} $RPM_BUILD_ROOT/etc/sysconfig/bacula-sd
390
391 install scripts/bacula.png $RPM_BUILD_ROOT%{_pixmapsdir}/bacula.png
392
393 # install the rescue stuff, these are the rescue scripts
394 install rescue/linux/backup.etc.list $RPM_BUILD_ROOT%{_sysconfdir}/rescue
395 install rescue/linux/format_floppy $RPM_BUILD_ROOT%{_sysconfdir}/rescue
396 install rescue/linux/getdiskinfo $RPM_BUILD_ROOT%{_sysconfdir}/rescue
397 install rescue/linux/make_rescue_disk $RPM_BUILD_ROOT%{_sysconfdir}/rescue
398 install rescue/linux/restore_bacula $RPM_BUILD_ROOT%{_sysconfdir}/rescue
399 install rescue/linux/restore_etc $RPM_BUILD_ROOT%{_sysconfdir}/rescue
400 install rescue/linux/run_grub $RPM_BUILD_ROOT%{_sysconfdir}/rescue
401 install rescue/linux/run_lilo $RPM_BUILD_ROOT%{_sysconfdir}/rescue
402 install rescue/linux/sfdisk.bz2 $RPM_BUILD_ROOT%{_sysconfdir}/rescue
403
404 %ifarch %{ix86}
405 # this is the tom's root boot disk
406 install tomsrtbt-*/* $RPM_BUILD_ROOT%{_sysconfdir}/rescue/tomsrtbt
407 %endif
408
409 # install the updatedb scripts
410 install updatedb/* $RPM_BUILD_ROOT%{_sysconfdir}/updatedb
411
412 # manual
413 cp -a man1 man8 $RPM_BUILD_ROOT%{_mandir}
414
415 install -d html-manual
416 cp -a doc/html-manual/*.{html,jpg,gif,css,png} html-manual
417
418 # some file changes
419 rm -f $RPM_BUILD_ROOT%{_libexecdir}/%{name}/{gconsole,startmysql,stopmysql,bacula,bconsole,fd}
420 rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd
421 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/gnome*
422 touch $RPM_BUILD_ROOT%{_sysconfdir}/.pw.sed
423
424 cat << EOF > $RPM_BUILD_ROOT/etc/security/console.apps/bconsole
425 USER=root
426 PROGRAM=%{_sbindir}/bconsole
427 SESSION=true
428 EOF
429 install scripts/gnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bconsole
430 ln -s consolehelper $RPM_BUILD_ROOT%{_bindir}/bconsole
431
432 cat << EOF > $RPM_BUILD_ROOT/etc/security/console.apps/wx-console
433 USER=root
434 PROGRAM=%{_sbindir}/wx-console
435 SESSION=true
436 EOF
437 cp -p scripts/gnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/wx-console
438 ln -s consolehelper $RPM_BUILD_ROOT%{_bindir}/wx-console
439
440 %clean
441 rm -rf $RPM_BUILD_ROOT
442
443 %pre common
444 if [ -n "`getgid bacula`" ]; then
445         if [ "`getgid bacula`" != "136" ]; then
446                 echo "Error: group bacula doesn't have gid=136. Correct this before installing bacula." 1>&2
447                 exit 1
448         fi
449 else
450         /usr/sbin/groupadd -g 136 -r -f bacula
451 fi
452 if [ -n "`id -u bacula 2>/dev/null`" ]; then
453         if [ "`id -u bacula`" != "136" ]; then
454                 echo "Error: user bacula doesn't have uid=136. Correct this before installing bacula." 1>&2
455                 exit 1
456         fi
457 else
458         /usr/sbin/useradd -u 136 -r -d /var/lib/bacula -s /bin/false -c "Bacula User" -g bacula bacula 1>&2
459 fi
460
461 %postun common
462 if [ "$1" = "0" ]; then
463         %userremove bacula
464         %groupremove bacula
465 fi
466
467 %post dir
468 umask 077
469 [ -s %{_localstatedir}/bacula.db ] && \
470         DB_VER=`echo "select * from Version;" | \
471         %{_bindir}/sqlite %{_localstatedir}/bacula.db | tail -n 1 2>/dev/null`
472 if [ -z "$DB_VER" ]; then
473 # grant privileges and create tables
474         %{_libexecdir}/%{name}/grant_bacula_privileges > dev/null
475         %{_libexecdir}/%{name}/create_bacula_database > dev/null
476         %{_libexecdir}/%{name}/make_bacula_tables > dev/null
477 elif [ "$DB_VER" -lt "7" ]; then
478         echo "Backing up bacula tables"
479         echo ".dump" | sqlite %{_localstatedir}/bacula.db | bzip2 > %{_localstatedir}/bacula_backup.sql.bz2
480         type=sqlite
481         echo "Upgrading bacula tables"
482         if [ "$DB_VER" -lt "6" ]; then
483                 if [ "$DB_VER" -lt "5" ]; then
484                         %{_libexecdir}/%{name}/update_${type}_tables_4_to_5
485                 fi
486                 %{_libexecdir}/%{name}/update_${type}_tables_5_to_6
487         fi
488         %{_libexecdir}/%{name}/update_bacula_tables
489         echo "If bacula works correctly you can remove the backup file %{_localstatedir}/bacula_backup.sql.bz2"
490 fi
491 chown -R bacula:bacula %{_localstatedir}
492 chmod -R u+rX,go-rwx %{_localstatedir}/*
493
494 /sbin/chkconfig --add bacula-dir
495 if [ -f /var/lock/subsys/bacula-dir ]; then
496         /etc/rc.d/init.d/bacula-dir restart 1>&2
497 else
498         echo "Run \"/etc/rc.d/init.d/bacula-dir start\" to start Bacula Director daemon."
499 fi
500
501 %preun dir
502 if [ "$1" = "0" ]; then
503         if [ -f /var/lock/subsys/bacula-dir ]; then
504                 /etc/rc.d/init.d/bacula-dir stop 1>&2
505         fi
506         /sbin/chkconfig --del bacula-dir
507 fi
508
509 %post fd
510 /sbin/chkconfig --add bacula-fd
511 if [ -f /var/lock/subsys/bacula-fd ]; then
512         /etc/rc.d/init.d/bacula-fd restart 1>&2
513 else
514         echo "Run \"/etc/rc.d/init.d/bacula-fd start\" to start Bacula File daemon."
515 fi
516
517 %preun fd
518 if [ "$1" = "0" ]; then
519         if [ -f /var/lock/subsys/bacula-fd ]; then
520                 /etc/rc.d/init.d/bacula-fd stop 1>&2
521         fi
522         /sbin/chkconfig --del bacula-fd
523 fi
524
525 %post sd
526 /sbin/chkconfig --add bacula-sd
527 if [ -f /var/lock/subsys/bacula-sd ]; then
528         /etc/rc.d/init.d/bacula-sd restart 1>&2
529 else
530         echo "Run \"/etc/rc.d/init.d/bacula-sd start\" to start Bacula Storage daemon."
531 fi
532
533 %preun sd
534 if [ "$1" = "0" ]; then
535         if [ -f /var/lock/subsys/bacula-sd ]; then
536                 /etc/rc.d/init.d/bacula-sd stop 1>&2
537         fi
538         /sbin/chkconfig --del bacula-sd
539 fi
540
541 %pre console
542 if [ -e %{_sysconfdir}/console.conf -a ! -e %{_sysconfdir}/bconsole.conf ]; then
543         mv %{_sysconfdir}/console.conf %{_sysconfdir}/bconsole.conf
544 fi
545
546 %post updatedb
547 echo "The database update scripts were installed to %{_sysconfdir}/updatedb"
548
549 %post rescue
550 # link our current installed conf file to the rescue directory
551 ln -sf %{_sysconfdir}/bacula-fd.conf %{_sysconfdir}/rescue/bacula-fd.conf
552
553 # run getdiskinfo
554 echo "Creating rescue files for this system..."
555 cd %{_sysconfdir}/rescue
556 ./getdiskinfo
557
558 %preun rescue
559 # remove the files created after the initial rpm installation
560 if [ "$1" = "0" ]; then
561         rm -f %{_sysconfdir}/rescue/bacula-fd.conf
562         rm -f %{_sysconfdir}/rescue/partition.*
563         rm -f %{_sysconfdir}/rescue/format.*
564         rm -f %{_sysconfdir}/rescue/mount_drives
565         rm -f %{_sysconfdir}/rescue/start_network
566         rm -f %{_sysconfdir}/rescue/sfdisk
567         rm -rf %{_sysconfdir}/rescue/diskinfo/*
568 fi
569
570 %files common
571 %defattr(644,root,root,755)
572 %dir %{_sysconfdir}
573 %attr(755,root,root) %{_sbindir}/btraceback
574 %attr(755,root,root) %{_sbindir}/bsmtp
575 %dir %{_libexecdir}/%{name}
576 %{_libexecdir}/%{name}/btraceback.gdb
577 %attr(770,root,bacula) %dir %{_localstatedir}
578
579 %files dir
580 %defattr(644,root,root,755)
581 %doc ChangeLog CheckList ReleaseNotes kernstodo
582 %doc doc/*.pdf html-manual examples
583 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/bacula-dir.conf
584 %ghost %{_sysconfdir}/.pw.sed
585 %attr(640,root,root) %config(noreplace) /etc/logrotate.d/bacula-dir
586 %attr(754,root,root) /etc/rc.d/init.d/bacula-dir
587 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/bacula-dir
588 %attr(755,root,root) %{_sbindir}/bacula-dir
589 %attr(755,root,root) %{_sbindir}/dbcheck
590 %{_mandir}/man8/bacula-dir.8*
591 %{_mandir}/man1/dbcheck.1*
592 %{_libexecdir}/%{name}/query.sql
593 %defattr(755,root,root)
594 %{_libexecdir}/%{name}/create_sqlite_database
595 %{_libexecdir}/%{name}/drop_sqlite_database
596 %{_libexecdir}/%{name}/drop_sqlite_tables
597 %{_libexecdir}/%{name}/grant_sqlite_privileges
598 %{_libexecdir}/%{name}/make_sqlite_tables
599 %{_libexecdir}/%{name}/update_sqlite_tables*
600 %{_libexecdir}/%{name}/create_bacula_database
601 %{_libexecdir}/%{name}/drop_bacula_database
602 %{_libexecdir}/%{name}/drop_bacula_tables
603 %{_libexecdir}/%{name}/grant_bacula_privileges
604 %{_libexecdir}/%{name}/make_bacula_tables
605 %{_libexecdir}/%{name}/update_bacula_tables
606 %{_libexecdir}/%{name}/make_catalog_backup
607 %{_libexecdir}/%{name}/delete_catalog_backup
608
609 %files fd
610 %defattr(644,root,root,755)
611 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/bacula-fd.conf
612 %attr(754,root,root) /etc/rc.d/init.d/bacula-fd
613 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/bacula-fd
614 %attr(755,root,root) %{_sbindir}/bacula-fd
615 %{_mandir}/man8/bacula-fd.8*
616
617 %files sd
618 %defattr(644,root,root,755)
619 %dir %{_sysconfdir}
620 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/bacula-sd.conf
621 %attr(754,root,root) /etc/rc.d/init.d/bacula-sd
622 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/bacula-sd
623 %attr(755,root,root) %{_sbindir}/bacula-sd
624 %attr(755,root,root) %{_sbindir}/bcopy
625 %attr(755,root,root) %{_sbindir}/bextract
626 %attr(755,root,root) %{_sbindir}/bls
627 %attr(755,root,root) %{_sbindir}/bscan
628 %attr(755,root,root) %{_sbindir}/btape
629 %{_libexecdir}/%{name}/mtx-changer
630 %{_mandir}/man8/bacula-sd.8*
631 %{_mandir}/man1/bcopy.1*
632 %{_mandir}/man1/bextract.1*
633 %{_mandir}/man1/bls.1*
634 %{_mandir}/man1/bscan.1*
635 %{_mandir}/man1/btape.1*
636
637 %files console
638 %defattr(644,root,root,755)
639 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/bconsole.conf
640 %attr(755,root,root) %{_sbindir}/bconsole
641 %config(noreplace) /etc/security/console.apps/bconsole
642 %config(noreplace) /etc/pam.d/bconsole
643 %verify(link) %{_bindir}/bconsole
644 %{_mandir}/man1/bconsole.1*
645
646 %files console-wx
647 %defattr(644,root,root,755)
648 %{_pixmapsdir}/%{name}.png
649 %attr(600,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/wx-console.conf
650 %attr(755,root,root) %{_sbindir}/wx-console
651 %config(noreplace) /etc/security/console.apps/wx-console
652 %config(noreplace) %verify(not md5 size mtime) /etc/pam.d/wx-console
653 %verify(link) %{_bindir}/wx-console
654 %{_mandir}/man1/wx-console.1*
655
656 %files rescue
657 %defattr(644,root,root,755)
658 %dir %{_sysconfdir}/rescue
659 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/tomsrtbt
660 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/backup.etc.list
661 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/bacula-fd
662 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/format_floppy
663 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/getdiskinfo
664 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/make_rescue_disk
665 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/restore_bacula
666 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/restore_etc
667 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/run_grub
668 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/run_lilo
669 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/rescue/sfdisk.bz2
670
671 %files updatedb
672 %defattr(644,root,root,755)
673 %{_sysconfdir}/updatedb
This page took 0.092222 seconds and 4 git commands to generate.