]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/mandrake/bacula.spec.in
Add SuSE 10.2 build target.
[bacula/bacula] / bacula / platforms / mandrake / bacula.spec.in
1 # Bacula RPM spec file
2 # Copyright (C) 2000-2006 Kern Sibbald
3
4 # Platform Build Configuration
5
6 # basic defines for every build
7 %define _version @VERSION@
8 %define _release 1
9 %define depkgs_version 04Jan07
10 %define _rescuever 2.0.0
11 %define docs_version @VERSION@
12
13 # any patches for this release
14 # be sure to check the setup section for patch macros
15
16
17 #--------------------------------------------------------------------------
18 # it should not be necessary to change anything below here for a release
19 # except for patch macros in the setup section
20 #--------------------------------------------------------------------------
21
22 # third party packagers
23 %define _packager D. Scott Barninger <barninger@fairfieldcomputers.com>
24 %{?contrib_packager:%define _packager %{contrib_packager}}
25
26 Summary: Bacula - The Network Backup Solution
27 Name: bacula
28 Version: %{_version}
29 Release: %{_release}
30 Group: System Environment/Daemons
31 License: GPL v2
32 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
33 Source1: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
34 Source2: Release_Notes-%{version}-%{release}.tar.gz
35 Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
36 Source4: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
37 BuildRoot: %{_tmppath}/%{name}-root
38 URL: http://www.bacula.org/
39 Vendor: The Bacula Team
40 Packager: %{_packager}
41
42 # define the basic package description
43 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
44 %define blurb2 Bacula is a set of computer programs that permit you (or the system
45 %define blurb3 administrator) to manage backup, recovery, and verification of computer
46 %define blurb4 data across a network of computers of different kinds. In technical terms,
47 %define blurb5 it is a network client/server based backup program. Bacula is relatively
48 %define blurb6 easy to use and efficient, while offering many advanced storage management
49 %define blurb7 features that make it easy to find and recover lost or damaged files.
50 %define blurb8 Bacula source code has been released under the GPL version 2 license.
51
52 # directory locations
53 %define sqlite_bindir /usr/lib/bacula/sqlite
54 %define working_dir /var/bacula
55 %define _docsrc ../%{name}-docs-%{docs_version}
56 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
57 %define depkgs ../depkgs
58 %define _mandir /usr/share/man
59
60 # NOTE these defines are used in some rather complex useradd and groupadd
61 # commands. If you change them examine the post scripts for consequences.
62 %define director_daemon_user bacula
63 %define storage_daemon_user bacula
64 %define file_daemon_user root
65 %define daemon_group bacula
66 # group that has write access to tape devices, usually disk on Linux
67 %define storage_daemon_group disk
68 %define user_file /etc/passwd
69 %define group_file /etc/group
70
71 # program locations
72 %define useradd /usr/sbin/useradd
73 %define groupadd /usr/sbin/groupadd
74 %define usermod /usr/sbin/usermod
75
76 # platform defines - set one below or define the build_xxx on the command line
77 # RedHat builds
78 %define rh7 0
79 %{?build_rh7:%define rh7 1}
80 %define rh8 0
81 %{?build_rh8:%define rh8 1}
82 %define rh9 0
83 %{?build_rh9:%define rh9 1}
84 # Fedora Core build
85 %define fc1 0
86 %{?build_fc1:%define fc1 1}
87 %define fc3 0
88 %{?build_fc3:%define fc3 1}
89 %define fc4 0
90 %{?build_fc4:%define fc4 1}
91 %define fc5 0
92 %{?build_fc5:%define fc5 1}
93 %define fc6 0
94 %{?build_fc6:%define fc6 1}
95 # Whitebox Enterprise build
96 %define wb3 0
97 %{?build_wb3:%define wb3 1}
98 # RedHat Enterprise builds
99 %define rhel3 0
100 %{?build_rhel3:%define rhel3 1}
101 %{?build_rhel3:%define wb3 1}
102 %define rhel4 0
103 %{?build_rhel4:%define rhel4 1}
104 %{?build_rhel4:%define fc3 1}
105 # CentOS build
106 %define centos3 0
107 %{?build_centos3:%define centos3 1}
108 %{?build_centos3:%define wb3 1}
109 %define centos4 0
110 %{?build_centos4:%define centos4 1}
111 %{?build_centos4:%define fc3 1}
112 # SuSE build
113 %define su9 0
114 %{?build_su9:%define su9 1}
115 %define su10 0
116 %{?build_su10:%define su10 1}
117 %define su102 0
118 %{?build_su102:%define su102 1}
119 # Mandrake builds
120 %define mdk 0
121 %{?build_mdk:%define mdk 1}
122 %define mdv 0
123 %{?build_mdv:%define mdv 1}
124 %{?build_mdv:%define mdk 1}
125
126 # client only build
127 %define client_only 0
128 %{?build_client_only:%define client_only 1}
129
130 # test for a platform definition
131 %if ! %{rh7} && ! %{rh8} && ! %{rh9} && ! %{fc1} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6} && ! %{wb3} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk}
132 %{error: You must specify a platform. Please examine the spec file.}
133 exit 1
134 %endif
135
136 # database defines
137 # set for database support desired or define the build_xxx on the command line
138 %define mysql 0
139 %{?build_mysql:%define mysql 1}
140 # if using mysql 4.x define this and mysql above
141 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
142 %define mysql4 0
143 %{?build_mysql4:%define mysql4 1}
144 %{?build_mysql4:%define mysql 1}
145 # if using mysql 5.x define this and mysql above
146 # currently: SuSE 10.1 and Fedora Core 5
147 %define mysql5 0
148 %{?build_mysql5:%define mysql5 1}
149 %{?build_mysql5:%define mysql 1}
150 %define sqlite 0
151 %{?build_sqlite:%define sqlite 1}
152 %define postgresql 0
153 %{?build_postgresql:%define postgresql 1}
154
155 # test for a database definition
156 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
157 %{error: You must specify database support. Please examine the spec file.}
158 exit 1
159 %endif
160
161 %if %{mysql}
162 %define db_backend mysql
163 %endif
164 %if %{sqlite}
165 %define db_backend sqlite
166 %endif
167 %if %{postgresql}
168 %define db_backend postgresql
169 %endif
170
171 # 64 bit support
172 %define x86_64 0
173 %{?build_x86_64:%define x86_64 1}
174
175 # check what distribution we are
176 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4}
177 %define _dist %(grep Red /etc/redhat-release)
178 %endif
179 %if %{fc1} || %{fc4} || %{fc5} || %{fc6}
180 %define _dist %(grep Fedora /etc/redhat-release)
181 %endif
182 %if %{centos4} || %{centos3}
183 %define _dist %(grep CentOS /etc/redhat-release)
184 %endif
185 %if %{fc3} && ! %{rhel4} && ! %{centos4}
186 %define _dist %(grep Fedora /etc/redhat-release)
187 %endif
188 %if %{wb3} && ! %{rhel3} && ! %{centos3}
189 %define _dist %(grep White /etc/whitebox-release)
190 %endif
191 %if %{su9} || %{su10} || %{su102}
192 %define _dist %(grep -i SuSE /etc/SuSE-release)
193 %endif
194 %if %{mdk}
195 %define _dist %(grep Mand /etc/mandrake-release)
196 %endif
197 Distribution: %{_dist}
198
199 # Should we build gconsole, possible only if gtk= >= 2.4 available.
200 # leaving all the BuildRequires and Requires in place below for now.
201
202 %define gconsole 1
203 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{su9}
204 %define gconsole 0
205 %endif
206 %if %{mdk} && ! %{mdv}
207 %define gconsole 0
208 %endif
209
210 # specifically disallow gconsole if desired
211 %{?nobuild_gconsole:%define gconsole 0}
212
213 # Should we build wxconsole, only wxWidgets >=2.6 is supported
214 # currently only SuSE 10 and FC4/FC5
215 %define wxconsole 0
216 %{?build_wxconsole:%define wxconsole 1}
217
218 # should we turn on python support
219 %define python 0
220 %{?build_python:%define python 1}
221
222 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
223 %if %{mdk}
224 %define manpage_ext bz2
225 %else
226 %define manpage_ext gz
227 %endif
228
229 # for client only build
230 %if %{client_only}
231 %define mysql 0
232 %define mysql4 0
233 %define mysql5 0
234 %define postgresql 0
235 %define sqlite 0
236 %define gconsole 0
237 %define wxconsole 0
238 %endif
239
240 %{expand: %%define gccver %(rpm -q --queryformat %%{version} gcc)}
241 %{expand: %%define gccrel %(rpm -q --queryformat %%{release} gcc)}
242
243 BuildRequires: gcc, gcc-c++, make, autoconf
244 BuildRequires: ncurses-devel, perl
245 BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, libxml2-devel, zlib-devel
246 BuildRequires: openssl-devel
247 %if %{python}
248 BuildRequires: python, python-devel
249 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
250 %endif
251 %if %{gconsole}
252 BuildRequires: pkgconfig, pango-devel, atk-devel
253 %endif
254 %if %{rh7}
255 BuildRequires: libtermcap-devel
256 BuildRequires: glibc-devel >= 2.2
257 %endif
258 %if %{su9}
259 BuildRequires: termcap
260 BuildRequires: glibc-devel >= 2.3
261 %endif
262 %if %{su9} && %{gconsole}
263 BuildRequires: libgnome >= 2.0
264 BuildRequires: gtk2-devel >= 2.0
265 BuildRequires: libgnomeui-devel >= 2.0
266 BuildRequires: ORBit2-devel
267 BuildRequires: libart_lgpl-devel >= 2.0
268 BuildRequires: libbonobo-devel >= 2.0
269 BuildRequires: libbonoboui-devel >= 2.0
270 BuildRequires: bonobo-activation-devel
271 BuildRequires: gconf2-devel
272 BuildRequires: linc-devel
273 BuildRequires: freetype2-devel
274 %endif
275 %if %{su10}
276 BuildRequires: termcap
277 BuildRequires: glibc-devel >= 2.3
278 %endif
279 %if %{su10} && %{gconsole}
280 BuildRequires: libgnome >= 2.12
281 BuildRequires: gtk2-devel >= 2.8
282 BuildRequires: libgnomeui-devel >= 2.12
283 BuildRequires: ORBit2-devel
284 BuildRequires: libart_lgpl-devel >= 2.3
285 BuildRequires: libbonobo-devel >= 2.10
286 BuildRequires: libbonoboui-devel >= 2.10
287 BuildRequires: bonobo-activation-devel
288 BuildRequires: gconf2-devel
289 BuildRequires: freetype2-devel
290 BuildRequires: cairo-devel
291 BuildRequires: fontconfig-devel >= 2.3
292 BuildRequires: gnome-vfs2-devel >= 2.12
293 BuildRequires: libpng-devel
294 %endif
295 %if %{su102}
296 BuildRequires: termcap
297 BuildRequires: glibc-devel >= 2.5
298 %endif
299 %if %{su102} && %{gconsole}
300 BuildRequires: libgnome >= 2.16
301 BuildRequires: gtk2-devel >= 2.10
302 BuildRequires: libgnomeui-devel >= 2.16
303 BuildRequires: ORBit2-devel
304 BuildRequires: libart_lgpl-devel >= 2.3
305 BuildRequires: libbonobo-devel >= 2.16
306 BuildRequires: libbonoboui-devel >= 2.16
307 BuildRequires: bonobo-activation-devel
308 BuildRequires: gconf2-devel
309 BuildRequires: freetype2-devel
310 BuildRequires: cairo-devel
311 BuildRequires: fontconfig-devel >= 2.4
312 BuildRequires: gnome-vfs2-devel >= 2.16
313 BuildRequires: libpng-devel
314 %endif
315 %if %{mdk}
316 BuildRequires: libtermcap-devel
317 BuildRequires: libstdc++-static-devel
318 BuildRequires: glibc-static-devel
319 BuildRequires: glibc-devel >= 2.3
320 %endif
321 %if %{mdk} && !%{mdv} && %{gconsole}
322 BuildRequires: gtk2-devel >= 2.0
323 BuildRequires: libgnomeui2-devel >= 2.0
324 BuildRequires: libORBit2-devel
325 BuildRequires: libart_lgpl-devel >= 2.0
326 BuildRequires: libbonobo2_0-devel
327 BuildRequires: libbonoboui2_0-devel
328 BuildRequires: libbonobo-activation-devel
329 BuildRequires: libGConf2-devel
330 BuildRequires: freetype2-devel
331 %endif
332 %if %{mdv} && %{gconsole}
333 BuildRequires: gtk2-devel >= 2.8
334 BuildRequires: libgnomeui2-devel >= 2.10
335 BuildRequires: libORBit2-devel
336 BuildRequires: libart_lgpl-devel >= 2.3
337 BuildRequires: libbonobo2_0-devel
338 BuildRequires: libbonoboui2_0-devel
339 BuildRequires: libbonobo-activation-devel
340 BuildRequires: libGConf2-devel
341 BuildRequires: freetype2-devel
342 %endif
343 %if %{fc3}
344 BuildRequires: libtermcap-devel
345 BuildRequires: glibc-devel >= 2.3
346 %endif
347 %if %{fc3} && %{gconsole}
348 BuildRequires: gtk2-devel >= 2.4
349 BuildRequires: libgnomeui-devel >= 2.8
350 BuildRequires: ORBit2-devel
351 BuildRequires: libart_lgpl-devel >= 2.3
352 BuildRequires: libbonobo-devel >= 2.8
353 BuildRequires: libbonoboui-devel >= 2.8
354 BuildRequires: bonobo-activation-devel
355 BuildRequires: GConf2-devel
356 BuildRequires: freetype-devel
357 %endif
358 %if %{fc4}
359 BuildRequires: libtermcap-devel
360 BuildRequires: glibc-devel >= 2.3
361 %endif
362 %if %{fc4} && %{gconsole}
363 BuildRequires: gtk2-devel >= 2.6
364 BuildRequires: libgnomeui-devel >= 2.10
365 BuildRequires: ORBit2-devel
366 BuildRequires: libart_lgpl-devel >= 2.3
367 BuildRequires: libbonobo-devel >= 2.8
368 BuildRequires: libbonoboui-devel >= 2.8
369 BuildRequires: bonobo-activation-devel
370 BuildRequires: GConf2-devel
371 BuildRequires: freetype-devel
372 %endif
373 %if %{fc5}
374 BuildRequires: libtermcap-devel
375 BuildRequires: glibc-devel >= 2.4
376 %endif
377 %if %{fc5} && %{gconsole}
378 BuildRequires: gtk2-devel >= 2.8
379 BuildRequires: libgnomeui-devel >= 2.14
380 BuildRequires: ORBit2-devel
381 BuildRequires: libart_lgpl-devel >= 2.3
382 BuildRequires: libbonobo-devel >= 2.14
383 BuildRequires: libbonoboui-devel >= 2.14
384 BuildRequires: GConf2-devel
385 BuildRequires: freetype-devel
386 %endif
387 %if %{fc6}
388 BuildRequires: libtermcap-devel
389 BuildRequires: glibc-devel >= 2.5
390 %endif
391 %if %{fc6} && %{gconsole}
392 BuildRequires: gtk2-devel >= 2.10
393 BuildRequires: libgnomeui-devel >= 2.16
394 BuildRequires: ORBit2-devel
395 BuildRequires: libart_lgpl-devel >= 2.3
396 BuildRequires: libbonobo-devel >= 2.16
397 BuildRequires: libbonoboui-devel >= 2.16
398 BuildRequires: GConf2-devel
399 BuildRequires: freetype-devel
400 %endif
401 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6}
402 BuildRequires: libtermcap-devel
403 BuildRequires: glibc-devel >= 2.3
404 %endif
405 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6} && %{gconsole}
406 BuildRequires: gtk2-devel >= 2.0
407 BuildRequires: libgnomeui-devel >= 2.0
408 BuildRequires: ORBit2-devel
409 BuildRequires: libart_lgpl-devel >= 2.0
410 BuildRequires: libbonobo-devel >= 2.0
411 BuildRequires: libbonoboui-devel >= 2.0
412 BuildRequires: bonobo-activation-devel
413 BuildRequires: GConf2-devel
414 BuildRequires: linc-devel
415 BuildRequires: freetype-devel
416 %endif
417
418 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
419 BuildRequires: mysql-devel >= 3.23
420 %endif
421
422 %if %{mysql} && %{mysql4}
423 BuildRequires: mysql-devel >= 4.0
424 %endif
425
426 %if %{mysql} && %{mysql5}
427 BuildRequires: mysql-devel >= 5.0
428 %endif
429
430 %if %{postgresql} && %{wb3}
431 BuildRequires: rh-postgresql-devel >= 7
432 %endif
433
434 %if %{postgresql} && ! %{wb3}
435 BuildRequires: postgresql-devel >= 7
436 %endif
437
438 %if %{wxconsole}
439 BuildRequires: wxGTK-devel >= 2.6
440 %endif
441
442 %description
443 %{blurb}
444
445 %{blurb2}
446 %{blurb3}
447 %{blurb4}
448 %{blurb5}
449 %{blurb6}
450 %{blurb7}
451 %{blurb8}
452
453 %if %{mysql}
454 %package mysql
455 %endif
456 %if %{sqlite}
457 %package sqlite
458 %endif
459 %if %{postgresql}
460 %package postgresql
461 %endif
462
463 Summary: Bacula - The Network Backup Solution
464 Group: System Environment/Daemons
465 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
466 Conflicts: bacula-client
467 Obsoletes: bacula-rescue
468
469 %if %{su9} || %{su10} || %{su102}
470 Conflicts: bacula
471 %endif
472
473 Requires: ncurses, libstdc++, zlib, openssl, mtx
474
475 %if %{rh7}
476 Requires: glibc >= 2.2
477 Requires: libtermcap
478 %endif
479 %if %{su9} || %{su10}
480 Requires: glibc >= 2.3
481 Requires: termcap
482 %endif
483 %if %{su102}
484 Requires: glibc >= 2.5
485 Requires: termcap
486 %endif
487 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{fc5} && ! %{fc6}
488 Requires: glibc >= 2.3
489 Requires: libtermcap
490 %endif
491 %if %{fc5}
492 Requires: glibc >= 2.4
493 Requires: libtermcap
494 %endif
495 %if %{fc6}
496 Requires: glibc >= 2.5
497 Requires: libtermcap
498 %endif
499
500 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
501 Requires: mysql >= 3.23
502 Requires: mysql-server >= 3.23
503 %endif
504 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
505 Requires: mysql >= 4.0
506 Requires: mysql-server >= 4.0
507 %endif
508 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && %{mysql5}
509 Requires: mysql >= 5.0
510 Requires: mysql-server >= 5.0
511 %endif
512
513 %if %{mysql} && %{su9} && ! %{mysql4}
514 Requires: mysql >= 3.23
515 Requires: mysql-client >= 3.23
516 %endif
517 %if %{mysql} && %{su9} && %{mysql4}
518 Requires: mysql >= 4.0
519 Requires: mysql-client >= 4.0
520 %endif
521 %if %{mysql} && %{su10} && %{mysql4}
522 Requires: mysql >= 4.0
523 Requires: mysql-client >= 4.0
524 %endif
525 %if %{mysql} && %{su10} && %{mysql5}
526 Requires: mysql >= 5.0
527 Requires: mysql-client >= 5.0
528 %endif
529 %if %{mysql} && %{su102} && %{mysql5}
530 Requires: mysql >= 5.0
531 Requires: mysql-client >= 5.0
532 %endif
533
534 %if %{mysql} && %{mdk} && ! %{mysql4}
535 Requires: mysql >= 3.23
536 Requires: mysql-client >= 3.23
537 %endif
538 %if %{mysql} && %{mdk} && %{mysql4}
539 Requires: mysql >= 4.0
540 Requires: mysql-client >= 4.0
541 %endif
542
543 %if %{postgresql} && %{wb3}
544 Requires: rh-postgresql >= 7
545 Requires: rh-postgresql-server >= 7
546 %endif
547 %if %{postgresql} && ! %{wb3}
548 Requires: postgresql >= 7
549 Requires: postgresql-server >= 7
550 %endif
551
552 %if %{mysql}
553 %description mysql
554 %endif
555 %if %{sqlite}
556 %description sqlite
557 %endif
558 %if %{postgresql}
559 %description postgresql
560 %endif
561
562 %if %{python}
563 Requires: python >= %{pyver}
564 %endif
565
566 %{blurb}
567
568 %{blurb2}
569 %{blurb3}
570 %{blurb4}
571 %{blurb5}
572 %{blurb6}
573 %{blurb7}
574 %{blurb8}
575
576 %if %{mysql}
577 This build requires MySQL to be installed separately as the catalog database.
578 %endif
579 %if %{postgresql}
580 This build requires PostgreSQL to be installed separately as the catalog database.
581 %endif
582 %if %{sqlite}
583 This build incorporates sqlite as the catalog database, statically compiled.
584 %endif
585 %if %{python}
586 This build includes python scripting support.
587 %endif
588
589 %if ! %{client_only}
590 %package mtx
591 Summary: Bacula - The Network Backup Solution
592 Group: System Environment/Daemons
593 Provides: mtx
594
595 %description mtx
596 This is Bacula's version of mtx tape utilities for Linux distributions that
597 do not provide their own mtx package
598 %endif
599
600 %package client
601 Summary: Bacula - The Network Backup Solution
602 Group: System Environment/Daemons
603 Provides: bacula-fd
604 Conflicts: bacula-mysql
605 Conflicts: bacula-sqlite
606 Conflicts: bacula-postgresql
607 Obsoletes: bacula-rescue
608
609 %if %{su9} || %{su10} || %{su102}
610 Provides: bacula
611 %endif
612
613 Requires: libstdc++, zlib, openssl
614
615 %if %{rh7}
616 Requires: glibc >= 2.2
617 Requires: libtermcap
618 %endif
619 %if %{su9} || %{su10}
620 Requires: glibc >= 2.3
621 Requires: termcap
622 %endif
623 %if %{su102}
624 Requires: glibc >= 2.5
625 Requires: termcap
626 %endif
627 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{fc5} && ! %{fc6}
628 Requires: glibc >= 2.3
629 Requires: libtermcap
630 %endif
631 %if %{fc5}
632 Requires: glibc >= 2.4
633 Requires: libtermcap
634 %endif
635 %if %{fc6}
636 Requires: glibc >= 2.5
637 Requires: libtermcap
638 %endif
639
640 %if %{python}
641 Requires: python >= %{pyver}
642 %endif
643
644 %description client
645 %{blurb}
646
647 %{blurb2}
648 %{blurb3}
649 %{blurb4}
650 %{blurb5}
651 %{blurb6}
652 %{blurb7}
653 %{blurb8}
654
655 This is the File daemon (Client) only package. It includes the command line 
656 console program.
657 %if %{python}
658 This build includes python scripting support.
659 %endif
660
661 %if ! %{client_only}
662 %package updatedb
663
664 Summary: Bacula - The Network Backup Solution
665 Group: System Environment/Daemons
666
667 %description updatedb
668 %{blurb}
669
670 %{blurb2}
671 %{blurb3}
672 %{blurb4}
673 %{blurb5}
674 %{blurb6}
675 %{blurb7}
676 %{blurb8}
677
678 This package installs scripts for updating older versions of the bacula
679 database.
680 %endif
681
682 %if %{gconsole}
683 %package gconsole
684 Summary: Bacula - The Network Backup Solution
685 Group: System Environment/Daemons
686 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
687 %endif
688
689 %if %{gconsole} && %{su9}
690 Requires: gtk2 >= 2.0
691 Requires: libgnome >= 2.0
692 Requires: libgnomeui >= 2.0
693 Requires: glibc >= 2.3
694 Requires: ORBit2
695 Requires: libart_lgpl >= 2.0
696 Requires: libbonobo >= 2.0
697 Requires: libbonoboui >= 2.0
698 Requires: bonobo-activation
699 Requires: gconf2
700 Requires: linc
701 Requires: freetype2
702 %endif
703 %if %{gconsole} && %{su10}
704 Requires: gtk2 >= 2.8
705 Requires: libgnome >= 2.12
706 Requires: libgnomeui >= 2.12
707 Requires: glibc >= 2.3
708 Requires: ORBit2
709 Requires: libart_lgpl >= 2.3
710 Requires: libbonobo >= 2.10
711 Requires: libbonoboui >= 2.10
712 Requires: bonobo-activation
713 Requires: gconf2
714 Requires: freetype2
715 Requires: cairo
716 Requires: fontconfig >= 2.3
717 Requires: gnome-vfs2 >= 2.12
718 Requires: libpng
719 %endif
720 %if %{gconsole} && %{su102}
721 Requires: gtk2 >= 2.10
722 Requires: libgnome >= 2.16
723 Requires: libgnomeui >= 2.16
724 Requires: glibc >= 2.5
725 Requires: ORBit2
726 Requires: libart_lgpl >= 2.3
727 Requires: libbonobo >= 2.16
728 Requires: libbonoboui >= 2.16
729 Requires: bonobo-activation
730 Requires: gconf2
731 Requires: freetype2
732 Requires: cairo
733 Requires: fontconfig >= 2.4
734 Requires: gnome-vfs2 >= 2.16
735 Requires: libpng
736 %endif
737 %if %{gconsole} && %{mdk} && !%{mdv}
738 Requires: gtk2 >= 2.0
739 Requires: libgnomeui2
740 Requires: glibc >= 2.3
741 Requires: ORBit2
742 Requires: libart_lgpl >= 2.0
743 Requires: libbonobo >= 2.0
744 Requires: libbonoboui >= 2.0
745 Requires: GConf2
746 Requires: freetype2
747 %endif
748 %if %{gconsole} && %{mdv}
749 Requires: gtk2 >= 2.8
750 Requires: libgnomeui2
751 Requires: glibc >= 2.3
752 Requires: ORBit2
753 Requires: libart_lgpl >= 2.3
754 Requires: libbonobo >= 2.10
755 Requires: libbonoboui >= 2.10
756 Requires: GConf2
757 Requires: freetype2
758 %endif
759 %if %{gconsole} && %{fc3}  
760 Requires: gtk2 >= 2.4
761 Requires: libgnomeui >= 2.8
762 Requires: glibc >= 2.3
763 Requires: ORBit2
764 Requires: libart_lgpl >= 2.3
765 Requires: libbonobo >= 2.8
766 Requires: libbonoboui >= 2.8
767 Requires: bonobo-activation
768 Requires: GConf2
769 Requires: freetype
770 %endif
771 %if %{gconsole} && %{fc4}  
772 Requires: gtk2 >= 2.6
773 Requires: libgnomeui >= 2.10
774 Requires: glibc >= 2.3
775 Requires: ORBit2
776 Requires: libart_lgpl >= 2.3
777 Requires: libbonobo >= 2.8
778 Requires: libbonoboui >= 2.8
779 Requires: bonobo-activation
780 Requires: GConf2
781 Requires: freetype
782 %endif
783 %if %{gconsole} && %{fc5}  
784 Requires: gtk2 >= 2.8
785 Requires: libgnomeui >= 2.14
786 Requires: glibc >= 2.4
787 Requires: ORBit2
788 Requires: libart_lgpl >= 2.3
789 Requires: libbonobo >= 2.14
790 Requires: libbonoboui >= 2.14
791 Requires: GConf2
792 Requires: freetype
793 %endif
794 %if %{gconsole} && %{fc6}  
795 Requires: gtk2 >= 2.10
796 Requires: libgnomeui >= 2.16
797 Requires: glibc >= 2.5
798 Requires: ORBit2
799 Requires: libart_lgpl >= 2.3
800 Requires: libbonobo >= 2.16
801 Requires: libbonoboui >= 2.16
802 Requires: GConf2
803 Requires: freetype
804 %endif
805 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6}
806 Requires: gtk2 >= 2.0
807 Requires: libgnomeui >= 2.0
808 Requires: glibc >= 2.3
809 Requires: ORBit2
810 Requires: libart_lgpl >= 2.0
811 Requires: libbonobo >= 2.0
812 Requires: libbonoboui >= 2.0
813 Requires: bonobo-activation
814 Requires: GConf2
815 Requires: linc
816 Requires: freetype
817 %endif
818 %if %{gconsole} && %{su9}
819 Requires: xsu
820 %endif
821 %if %{gconsole} && %{su10}
822 Requires: xsu
823 %endif
824 %if %{gconsole} && %{su102}
825 Requires: xsu
826 %endif
827 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102}
828 Requires: usermode
829 %endif
830
831 %if %{gconsole}
832 %description gconsole
833 %{blurb}
834
835 %{blurb2}
836 %{blurb3}
837 %{blurb4}
838 %{blurb5}
839 %{blurb6}
840 %{blurb7}
841 %{blurb8}
842
843 This is the Gnome Console package. It is an add-on to the client or
844 server packages.
845 %endif
846
847 %if %{wxconsole}
848 %package wxconsole
849 Summary: Bacula - The Network Backup Solution
850 Group: System Environment/Daemons
851 Requires: wxGTK >= 2.6, libstdc++, openssl
852 %endif
853
854 %if %{wxconsole} && %{su10}
855 Requires: gtk2 >= 2.8
856 %endif
857
858 %if %{wxconsole} && %{su102}
859 Requires: gtk2 >= 2.10
860 %endif
861
862 %if %{wxconsole} && %{fc3}  
863 Requires: gtk2 >= 2.4
864 %endif
865
866 %if %{wxconsole} && %{fc4}  
867 Requires: gtk2 >= 2.6
868 %endif
869
870 %if %{wxconsole} && %{fc5}  
871 Requires: gtk2 >= 2.8
872 %endif
873
874 %if %{wxconsole} && %{fc6}  
875 Requires: gtk2 >= 2.10
876 %endif
877
878 %if %{wxconsole}
879 %description wxconsole
880 %{blurb}
881
882 %{blurb2}
883 %{blurb3}
884 %{blurb4}
885 %{blurb5}
886 %{blurb6}
887 %{blurb7}
888 %{blurb8}
889
890 This is the WXWindows Console package. It is an add-on to the client or
891 server packages.
892 %endif
893
894 %prep
895
896 %setup
897 %setup -T -D -b 1
898 %setup -T -D -b 2
899 %setup -T -D -b 3
900 %setup -T -D -b 4
901
902 %build
903
904 %if %{su9} || %{su10} || %{su102}
905 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
906 %endif
907
908 cwd=${PWD}
909 cd %{depkgs}
910 %if %{sqlite}
911 make sqlite
912 %endif
913 %if ! %{client_only}
914 make mtx
915 %endif
916 cd ${cwd}
917
918 # patches for the bundled sqlite scripts
919
920 # patch the make_sqlite_tables script for installation bindir
921 patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
922
923 # patch the create_sqlite_database script for installation bindir
924 # not necessary after 1.39.26 no longer references sqlite binary
925 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
926
927 # patch the make_catalog_backup script for installation bindir
928 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
929
930 # patch the update_sqlite_tables script for installation bindir
931 patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
932
933 # patch the bacula-dir init script to remove sqlite service
934 %if %{sqlite} && %{su9}
935 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
936 %endif
937 %if %{sqlite} && %{su10}
938 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
939 %endif
940 %if %{sqlite} && %{su102}
941 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
942 %endif
943
944 # 64 bit lib location hacks
945 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
946 # reported to be fixed to properly detect lib locations.
947 %if %{x86_64}
948 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
949 %endif
950 %if %{mysql} && %{x86_64}
951 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
952 %endif
953 %if %{python} && %{x86_64}
954 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
955 %endif
956
957 %configure \
958         --prefix=/usr \
959         --sbindir=/usr/sbin \
960         --sysconfdir=/etc/bacula \
961         --with-scriptdir=/etc/bacula \
962         --enable-smartalloc \
963         --enable-client-only \
964         %if %{mdk}
965         --disable-nls \
966         %endif
967         --enable-static-fd
968
969 make
970
971 %configure \
972         --prefix=/usr \
973         --sbindir=/usr/sbin \
974         --sysconfdir=/etc/bacula \
975         --with-scriptdir=/etc/bacula \
976         --enable-smartalloc \
977 %if %{gconsole}
978         --enable-gnome \
979 %endif
980 %if %{gconsole} && ! %{rh8}
981         --enable-tray-monitor \
982 %endif
983 %if %{mysql}
984         --with-mysql \
985 %endif
986 %if %{sqlite}
987         --with-sqlite=${cwd}/%{depkgs}/sqlite \
988 %endif
989 %if %{postgresql}
990         --with-postgresql \
991 %endif
992 %if %{wxconsole}
993         --enable-wx-console \
994 %endif
995 %if %{python}
996         --with-python \
997 %endif
998 %if %{client_only}
999         --enable-client-only \
1000 %endif
1001         --mandir=%{_mandir} \
1002         --with-working-dir=%{working_dir} \
1003         --with-pid-dir=/var/run \
1004         --with-subsys-dir=/var/lock/subsys \
1005         --with-dir-user=%{director_daemon_user} \
1006         --with-dir-group=%{daemon_group} \
1007         --with-sd-user=%{storage_daemon_user} \
1008         --with-sd-group=%{storage_daemon_group} \
1009         --with-fd-user=%{file_daemon_user} \
1010         --with-fd-group=%{daemon_group} \
1011         --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1012         --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1013         --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1014         --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1015         --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1016         --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1017         --with-openssl
1018
1019 make
1020
1021 %install
1022  
1023 cwd=${PWD}
1024 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1025 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1026 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1027 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1028 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1029 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1030 mkdir -p $RPM_BUILD_ROOT/etc/bacula/updatedb
1031
1032 %if %{gconsole} || %{wxconsole}
1033 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1034 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1035 %endif
1036
1037 %if %{gconsole} || %{wxconsole}
1038 %define usermode_iftrick 1
1039 %else
1040 %define usermode_iftrick 0
1041 %endif
1042
1043 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102}
1044 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1045 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1046 mkdir -p $RPM_BUILD_ROOT/usr/bin
1047 %endif
1048
1049 %if %{sqlite}
1050 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1051 %endif
1052
1053 make \
1054         prefix=$RPM_BUILD_ROOT/usr \
1055         sbindir=$RPM_BUILD_ROOT/usr/sbin \
1056         sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
1057         scriptdir=$RPM_BUILD_ROOT/etc/bacula \
1058         working_dir=$RPM_BUILD_ROOT%{working_dir} \
1059         mandir=$RPM_BUILD_ROOT%{_mandir} \
1060         install
1061
1062 %if ! %{client_only}
1063 cd %{depkgs}
1064 make \
1065         prefix=$RPM_BUILD_ROOT/usr \
1066         sbindir=$RPM_BUILD_ROOT/usr/sbin \
1067         sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
1068         working_dir=$RPM_BUILD_ROOT%{working_dir} \
1069         mandir=$RPM_BUILD_ROOT%{_mandir} \
1070         mtx-install
1071 cd ${cwd}
1072 %endif
1073
1074 # make install in manpages installs _everything_ shotgun style
1075 # so now delete what we will not be packaging
1076 %if ! %{wxconsole}
1077 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-wxconsole.1.gz
1078 %endif
1079 %if ! %{gconsole}
1080 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-console-gnome.1.gz
1081 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.gz
1082 %endif
1083 %if %{client_only}
1084 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.gz
1085 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.gz
1086 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.gz
1087 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.gz
1088 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.gz
1089 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.gz
1090 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.gz
1091 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.gz
1092 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.gz
1093 %endif
1094
1095 # fixme - make installs the mysql scripts for sqlite build
1096 %if %{sqlite}
1097 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
1098 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
1099 rm -f $RPM_BUILD_ROOT/etc/bacula/grant_mysql_privileges
1100 %endif
1101
1102 # fixme - make installs the mysql scripts for postgresql build
1103 %if %{postgresql}
1104 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
1105 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
1106 %endif
1107
1108 # fixme - make installs gconsole script for build without gconsole
1109 %if ! %{gconsole}
1110 rm -f $RPM_BUILD_ROOT/etc/bacula/gconsole
1111 %endif
1112
1113 rm -f $RPM_BUILD_ROOT/usr/sbin/static-bacula-fd
1114
1115 # install the init scripts
1116 %if %{su9} || %{su10} || %{su102}
1117 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1118 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1119 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1120 %endif
1121 %if %{mdk}
1122 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1123 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1124 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1125 %endif
1126 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk}
1127 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1128 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1129 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1130 %endif
1131 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1132 %if %{client_only}
1133 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1134 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1135 %endif
1136
1137 # install the menu stuff
1138 %if %{gconsole} && %{su9}
1139 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1140 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1141 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1142 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1143 %endif
1144 %if %{gconsole} && %{su10}
1145 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1146 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1147 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1148 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1149 %endif
1150 %if %{gconsole} && %{su102}
1151 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1152 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1153 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1154 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1155 %endif
1156 %if %{wxconsole} && %{su10}
1157 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1158 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1159 %endif
1160 %if %{wxconsole} && %{su102}
1161 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1162 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1163 %endif
1164 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{mdk}
1165 %define iftrick 1
1166 %else
1167 %define iftrick 0
1168 %endif
1169 %if %{gconsole} && %{iftrick}
1170 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1171 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1172 cp -p scripts/gnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/gnome-console
1173 cp -p scripts/gnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/gnome-console
1174 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/gnome-console
1175 %endif
1176 %if %{gconsole} && ! %{rh8}
1177 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1178 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1179 %endif
1180 %if %{wxconsole} && %{iftrick}
1181 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1182 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1183 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/wxconsole
1184 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/wxconsole
1185 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/wxconsole
1186 %endif
1187
1188 # install sqlite
1189 %if %{sqlite}
1190 cp -p %{depkgs}/sqlite/sqlite $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite
1191 cp -p %{depkgs}/sqlite/sqlite.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite.h
1192 cp -p %{depkgs}/sqlite/libsqlite.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite.a
1193 %endif
1194
1195 # install the logrotate file
1196 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1197
1198 # install the updatedb scripts
1199 cp -p updatedb/* $RPM_BUILD_ROOT/etc/bacula/updatedb/
1200
1201 # install the logwatch scripts
1202 %if ! %{client_only}
1203 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1204 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1205 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1206 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1207 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1208 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1209 %endif
1210
1211 # install the rescue files
1212 mkdir $RPM_BUILD_ROOT/etc/bacula/rescue
1213 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT/etc/bacula/rescue/
1214 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT/etc/bacula/rescue/
1215 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT/etc/bacula/rescue/
1216 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT/etc/bacula/rescue/
1217 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT/etc/bacula/rescue/
1218 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT/etc/bacula/rescue/
1219 touch $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/rpm_release
1220 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/bacula/bin/bacula-fd
1221 rm -f src/filed/static-bacula-fd
1222
1223 %if %{wxconsole}
1224 mv $RPM_BUILD_ROOT/usr/sbin/wx-console $RPM_BUILD_ROOT/usr/sbin/wxconsole
1225 mv $RPM_BUILD_ROOT/etc/bacula/wx-console.conf $RPM_BUILD_ROOT/etc/bacula/wxconsole.conf
1226 %endif
1227
1228 # now clean up permissions that are left broken by the install
1229 %if ! %{client_only}
1230 chmod o-r $RPM_BUILD_ROOT/etc/bacula/query.sql
1231 %endif
1232 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
1233 %if %{gconsole} && ! %{rh8}
1234 chmod 755 $RPM_BUILD_ROOT/usr/sbin/bacula-tray-monitor
1235 chmod 644 $RPM_BUILD_ROOT/etc/bacula/tray-monitor.conf
1236 %endif
1237
1238 # fix me - building enable-client-only installs files not included in bacula-client package
1239 %if %{client_only}
1240 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula
1241 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula-ctl-dir
1242 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula-ctl-sd
1243 rm -f $RPM_BUILD_ROOT/etc/bacula/disk-changer
1244 rm -f $RPM_BUILD_ROOT/etc/bacula/dvd-handler
1245 rm -f $RPM_BUILD_ROOT/etc/bacula/mtx-changer
1246 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
1247 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
1248 rm -rf $RPM_BUILD_ROOT/etc/bacula/updatedb
1249 %endif
1250
1251 %clean
1252 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1253 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
1254 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
1255 rm -rf $RPM_BUILD_DIR/depkgs
1256 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
1257
1258 %if %{mysql}
1259 # MySQL specific files
1260 %files mysql
1261 %defattr(-, root, root)
1262 %attr(-, root, %{daemon_group}) /etc/bacula/create_mysql_database
1263 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_database
1264 %attr(-, root, %{daemon_group}) /etc/bacula/make_mysql_tables
1265 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_tables
1266 %attr(-, root, %{daemon_group}) /etc/bacula/update_mysql_tables
1267 %attr(-, root, %{daemon_group}) /etc/bacula/grant_mysql_privileges
1268 %attr(-, root, %{daemon_group}) /etc/bacula/startmysql
1269 %attr(-, root, %{daemon_group}) /etc/bacula/stopmysql
1270 %endif
1271
1272 %if %{sqlite}
1273 %files sqlite
1274 %defattr(-,root,root)
1275 %attr(-, root, %{daemon_group}) /etc/bacula/create_sqlite_database
1276 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_database
1277 %attr(-, root, %{daemon_group}) /etc/bacula/grant_sqlite_privileges
1278 %attr(-, root, %{daemon_group}) /etc/bacula/make_sqlite_tables
1279 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_tables
1280 %attr(-, root, %{daemon_group}) /etc/bacula/update_sqlite_tables
1281 %{sqlite_bindir}/libsqlite.a
1282 %{sqlite_bindir}/sqlite.h
1283 %{sqlite_bindir}/sqlite
1284 %endif
1285
1286 %if %{postgresql}
1287 %files postgresql
1288 %defattr(-,root,root)
1289 %attr(-, root, %{daemon_group}) /etc/bacula/create_postgresql_database
1290 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_database
1291 %attr(-, root, %{daemon_group}) /etc/bacula/make_postgresql_tables
1292 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_tables
1293 %attr(-, root, %{daemon_group}) /etc/bacula/update_postgresql_tables
1294 %attr(-, root, %{daemon_group}) /etc/bacula/grant_postgresql_privileges
1295 %endif
1296
1297 # The rest is DB backend independent
1298 %if ! %{client_only}
1299 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1300 %attr(-, root, %{daemon_group}) /etc/bacula/bacula
1301 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1302 %attr(-, root, %{daemon_group}) /etc/bacula/create_bacula_database
1303 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_database
1304 %attr(-, root, %{daemon_group}) /etc/bacula/grant_bacula_privileges
1305 %attr(-, root, %{daemon_group}) /etc/bacula/make_bacula_tables
1306 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_tables
1307 %attr(-, root, %{daemon_group}) /etc/bacula/update_bacula_tables
1308 %attr(-, root, %{daemon_group}) /etc/bacula/make_catalog_backup
1309 %attr(-, root, %{daemon_group}) /etc/bacula/delete_catalog_backup
1310 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1311 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1312 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1313 %attr(-, root, %{daemon_group}) /etc/bacula/disk-changer
1314 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-dir
1315 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-fd
1316 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-sd
1317 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
1318 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
1319 %attr(-, root, %{storage_daemon_group}) /etc/bacula/dvd-handler
1320 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
1321 %attr(-, root, %{storage_daemon_group}) /etc/bacula/mtx-changer
1322
1323 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo 
1324 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1325
1326 /etc/logrotate.d/bacula
1327 /etc/log.d/scripts/services/bacula
1328 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-dir.conf
1329 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1330 %attr(-, root, %{storage_daemon_group}) %config(noreplace) /etc/bacula/bacula-sd.conf
1331 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1332 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
1333 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
1334 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/query.sql
1335
1336 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
1337
1338 /usr/sbin/bacula-dir
1339 /usr/sbin/bacula-fd
1340 /usr/sbin/bacula-sd
1341 /usr/sbin/bcopy
1342 /usr/sbin/bextract
1343 /usr/sbin/bls
1344 /usr/sbin/bscan
1345 /usr/sbin/btape
1346 /usr/sbin/btraceback
1347 /usr/sbin/bconsole
1348 /usr/sbin/dbcheck
1349 /usr/sbin/bsmtp
1350 /usr/sbin/bregex
1351 /usr/sbin/bwild
1352 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
1353 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1354 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1355 %{_mandir}/man8/bacula.8.%{manpage_ext}
1356 %{_mandir}/man8/bconsole.8.%{manpage_ext}
1357 %{_mandir}/man8/bcopy.8.%{manpage_ext}
1358 %{_mandir}/man8/bextract.8.%{manpage_ext}
1359 %{_mandir}/man8/bls.8.%{manpage_ext}
1360 %{_mandir}/man8/bscan.8.%{manpage_ext}
1361 %{_mandir}/man8/btape.8.%{manpage_ext}
1362 %{_mandir}/man8/btraceback.8.%{manpage_ext}
1363 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
1364 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
1365 %endif
1366
1367 %if %{mysql}
1368 %pre mysql
1369 # test for bacula database older than version 9
1370 # note: this ASSUMES no password has been set for bacula database
1371 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1372 %endif
1373
1374 %if %{sqlite}
1375 %pre sqlite
1376 # test for bacula database older than version 9
1377 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
1378         DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1379 %endif
1380
1381 %if %{postgresql}
1382 %pre postgresql
1383 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1384 %endif
1385
1386 %if ! %{client_only}
1387 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "9" ]; then
1388         echo "This bacula upgrade will update a bacula database from version 9 to 10."
1389         echo "You appear to be running database version $DB_VER. You must first update"
1390         echo "your database to version 9 and then install this upgrade. The alternative"
1391         echo "is to use /etc/bacula/drop_%{db_backend}_tables to delete all your your current"
1392         echo "catalog information, then do the upgrade. Information on updating a"
1393         echo "database older than version 9 can be found in the release notes."
1394         exit 1
1395 fi
1396 %endif
1397
1398 %if %{sqlite}
1399 fi
1400 %endif
1401
1402 %if ! %{client_only}
1403 # check for and copy /etc/bacula/console.conf to bconsole.conf
1404 if [ -s /etc/bacula/console.conf ];then
1405         cp -p /etc/bacula/console.conf /etc/bacula/bconsole.conf
1406 fi
1407
1408 # create the daemon users and groups
1409 # first create the groups if they don't exist
1410 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1411 if [ -z "$HAVE_BACULA" ]; then
1412         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1413         echo "The group %{daemon_group} has been added to %{group_file}."
1414         echo "See the manual chapter \"Running Bacula\" for details."
1415 fi
1416 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
1417 if [ -z "$HAVE_BACULA" ]; then
1418         %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
1419         echo "The group %{storage_daemon_group} has been added to %{group_file}."
1420         echo "See the manual chapter \"Running Bacula\" for details."
1421 fi
1422 # now create the users if they do not exist
1423 # we do not use the -g option allowing the primary group to be set to system default
1424 # this will be a unique group on redhat type systems or the group users on some systems
1425 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
1426 if [ -z "$HAVE_BACULA" ]; then
1427         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
1428         echo "The user %{storage_daemon_user} has been added to %{user_file}."
1429         echo "See the manual chapter \"Running Bacula\" for details."
1430 fi
1431 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
1432 if [ -z "$HAVE_BACULA" ]; then
1433         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
1434         echo "The user %{director_daemon_user} has been added to %{user_file}."
1435         echo "See the manual chapter \"Running Bacula\" for details."
1436 fi
1437 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1438 if [ -z "$HAVE_BACULA" ]; then
1439         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1440         echo "The user %{file_daemon_user} has been added to %{user_file}."
1441         echo "See the manual chapter \"Running Bacula\" for details."
1442 fi
1443 # now we add the supplementary groups, this is ok to call even if the users already exist
1444 # we only do this if the user is NOT root
1445 IS_ROOT=%{director_daemon_user}
1446 if [ "$IS_ROOT" != "root" ]; then
1447 %{usermod} -G %{daemon_group} %{director_daemon_user}
1448 fi
1449 IS_ROOT=%{storage_daemon_user}
1450 if [ "$IS_ROOT" != "root" ]; then
1451 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
1452 fi
1453 IS_ROOT=%{file_daemon_user}
1454 if [ "$IS_ROOT" != "root" ]; then
1455 %{usermod} -G %{daemon_group} %{file_daemon_user}
1456 fi
1457 %endif
1458
1459 %if %{mysql}
1460 %post mysql
1461 %endif
1462 %if %{sqlite}
1463 %post sqlite
1464 %endif
1465 %if %{postgresql}
1466 %post postgresql
1467 %endif
1468
1469 %if ! %{client_only}
1470 # add our links
1471 if [ "$1" -ge 1 ] ; then
1472 /sbin/chkconfig --add bacula-dir
1473 /sbin/chkconfig --add bacula-fd
1474 /sbin/chkconfig --add bacula-sd
1475 fi
1476 %endif
1477
1478 %if %{mysql}
1479 # test for an existing database
1480 # note: this ASSUMES no password has been set for bacula database
1481 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1482
1483 # grant privileges and create tables if they do not exist
1484 if [ -z "$DB_VER" ]; then
1485         echo "Hmm, doesn't look like you have an existing database."
1486         echo "Granting privileges for MySQL user bacula..."
1487         /etc/bacula/grant_mysql_privileges
1488         echo "Creating MySQL bacula database..."
1489         /etc/bacula/create_mysql_database
1490         echo "Creating bacula tables..."
1491         /etc/bacula/make_mysql_tables
1492
1493 # check to see if we need to upgrade a 1.38 or lower database
1494 elif [ "$DB_VER" -lt "10" ]; then
1495         echo "This release requires an upgrade to your bacula database."
1496         echo "Backing up your current database..."
1497         mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1498         echo "Upgrading bacula database ..."
1499         /etc/bacula/update_mysql_tables
1500         echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1501
1502 fi
1503 %endif
1504
1505 %if %{sqlite}
1506 # test for an existing database
1507 if [ -s %{working_dir}/bacula.db ]; then
1508         DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1509         # check to see if we need to upgrade a 1.38 or lower database
1510         if [ "$DB_VER" -lt "10" ] && [ "$DB_VER" -ge "9" ]; then
1511                 echo "This release requires an upgrade to your bacula database."
1512                 echo "Backing up your current database..."
1513                 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1514                 echo "Upgrading bacula database ..."
1515                 /etc/bacula/update_sqlite_tables
1516                 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1517         fi
1518 else
1519         # create the database and tables
1520         echo "Hmm, doesn't look like you have an existing database."
1521         echo "Creating SQLite database..."
1522         /etc/bacula/create_sqlite_database
1523         echo "Creating the SQLite tables..."
1524         /etc/bacula/make_sqlite_tables
1525 fi
1526 %endif
1527
1528 %if %{postgresql}
1529 # test for an existing database
1530 # note: this ASSUMES no password has been set for bacula database
1531 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1532
1533 # grant privileges and create tables if they do not exist
1534 if [ -z "$DB_VER" ]; then
1535         echo "Hmm, doesn't look like you have an existing database."
1536         echo "Creating PostgreSQL bacula database..."
1537         /etc/bacula/create_postgresql_database
1538         echo "Creating bacula tables..."
1539         /etc/bacula/make_postgresql_tables
1540         echo "Granting privileges for PostgreSQL user bacula..."
1541         /etc/bacula/grant_postgresql_privileges
1542
1543 # check to see if we need to upgrade a 1.38 or lower database
1544 elif [ "$DB_VER" -lt "10" ]; then
1545         echo "This release requires an upgrade to your bacula database."
1546         echo "Backing up your current database..."
1547         pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1548         echo "Upgrading bacula database ..."
1549         /etc/bacula/update_postgresql_tables
1550         echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1551         
1552 fi
1553 %endif
1554
1555 %if ! %{client_only}
1556 # generate passwords if needed
1557 if [ -d /etc/bacula ]; then
1558         cd /etc/bacula
1559         for file in *.conf; do
1560                 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
1561                         need_password=`grep $string $file 2>/dev/null`
1562                         if [ -n "$need_password" ]; then
1563                                 pass=`openssl rand -base64 33`
1564                                 sed "s-$string-$pass-g" $file > $file.new
1565                                 cp -f $file.new $file; rm -f $file.new
1566                         fi
1567                 done
1568         done
1569 fi
1570 %endif
1571
1572 %if %{mysql}
1573 %preun mysql
1574 %endif
1575 %if %{sqlite}
1576 %preun sqlite
1577 %endif
1578 %if %{postgresql}
1579 %preun postgresql
1580 %endif
1581
1582 %if ! %{client_only}
1583 # delete our links
1584 if [ $1 = 0 ]; then
1585 /sbin/chkconfig --del bacula-dir
1586 /sbin/chkconfig --del bacula-fd
1587 /sbin/chkconfig --del bacula-sd
1588 fi
1589 %endif
1590
1591
1592 %if ! %{client_only}
1593 %files mtx
1594 %defattr(-,root,root)
1595 %attr(-, root, %{storage_daemon_group}) /usr/sbin/loaderinfo
1596 %attr(-, root, %{storage_daemon_group}) /usr/sbin/mtx
1597 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsitape
1598 %attr(-, root, %{storage_daemon_group}) /usr/sbin/tapeinfo
1599 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
1600 %{_mandir}/man1/mtx.1.%{manpage_ext}
1601 %{_mandir}/man1/scsitape.1.%{manpage_ext}
1602 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
1603 %endif
1604
1605
1606 %files client
1607 %defattr(-,root,root)
1608 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1609 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1610 /etc/bacula/bacula-ctl-fd
1611 /etc/init.d/bacula-fd
1612 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1613
1614 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo 
1615 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1616
1617 /etc/logrotate.d/bacula
1618
1619 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1620 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1621
1622 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1623
1624 /usr/sbin/bacula-fd
1625 /usr/sbin/btraceback
1626 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1627 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1628 /usr/sbin/bconsole
1629 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
1630 %{_mandir}/man8/bacula.8.%{manpage_ext}
1631 %{_mandir}/man8/bconsole.8.%{manpage_ext}
1632 %{_mandir}/man8/btraceback.8.%{manpage_ext}
1633
1634
1635 %pre client
1636 # create the daemon group and user
1637 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1638 if [ -z "$HAVE_BACULA" ]; then
1639         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1640         echo "The group %{daemon_group} has been added to %{group_file}."
1641         echo "See the manual chapter \"Running Bacula\" for details."
1642 fi
1643 # we do not use the -g option allowing the primary group to be set to system default
1644 # this will be a unique group on redhat type systems or the group users on some systems
1645 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1646 if [ -z "$HAVE_BACULA" ]; then
1647         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1648         echo "The user %{file_daemon_user} has been added to %{user_file}."
1649         echo "See the manual chapter \"Running Bacula\" for details."
1650 fi
1651 # now we add the supplementary group, this is ok to call even if the user already exists
1652 # we only do this if the user is NOT root
1653 IS_ROOT=%{file_daemon_user}
1654 if [ "$IS_ROOT" != "root" ]; then
1655 %{usermod} -G %{daemon_group} %{file_daemon_user}
1656 fi
1657
1658 %post client
1659 # add our link
1660 if [ "$1" -ge 1 ] ; then
1661 /sbin/chkconfig --add bacula-fd
1662 fi
1663
1664 # generate passwords if needed
1665 if [ -d /etc/bacula ]; then
1666         cd /etc/bacula
1667         for file in *.conf; do
1668                 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
1669                         need_password=`grep $string $file 2>/dev/null`
1670                         if [ -n "$need_password" ]; then
1671                                 pass=`openssl rand -base64 33`
1672                                 sed "s-$string-$pass-g" $file > $file.new
1673                                 cp -f $file.new $file; rm -f $file.new
1674                         fi
1675                 done
1676         done
1677 fi
1678
1679 %preun client
1680 # delete our link
1681 if [ $1 = 0 ]; then
1682 /sbin/chkconfig --del bacula-fd
1683 fi
1684
1685 %if ! %{client_only}
1686 %files updatedb
1687 %defattr(-,root,%{daemon_group})
1688 /etc/bacula/updatedb/*
1689
1690 %pre updatedb
1691 # create the daemon group
1692 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1693 if [ -z "$HAVE_BACULA" ]; then
1694         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1695         echo "The group %{daemon_group} has been added to %{group_file}."
1696         echo "See the manual chapter \"Running Bacula\" for details."
1697 fi
1698
1699 %post updatedb
1700 echo "The database update scripts were installed to /etc/bacula/updatedb"
1701 %endif
1702
1703 %if %{gconsole}
1704 %files gconsole
1705 %defattr(-,root,root)
1706 /usr/sbin/gnome-console
1707 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1708 %attr(-, root, %{daemon_group}) /etc/bacula/gconsole
1709 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/gnome-console.conf
1710 /usr/share/pixmaps/bacula.png
1711 /usr/share/applications/bacula.desktop
1712 %{_mandir}/man1/bacula-console-gnome.1.%{manpage_ext}
1713 %endif
1714
1715 %if %{gconsole} && ! %{rh8}
1716 /usr/sbin/bacula-tray-monitor
1717 %config(noreplace) /etc/bacula/tray-monitor.conf
1718 /usr/share/pixmaps/bacula-tray-monitor.xpm
1719 /usr/share/applications/bacula-tray-monitor.desktop
1720 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1721 %endif
1722
1723 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102}
1724 # add the console helper files
1725 %config(noreplace,missingok) /etc/pam.d/gnome-console
1726 %config(noreplace,missingok) /etc/security/console.apps/gnome-console
1727 /usr/bin/gnome-console
1728 %endif
1729
1730 %if %{gconsole}
1731 %pre gconsole
1732 # create the daemon group
1733 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1734 if [ -z "$HAVE_BACULA" ]; then
1735         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1736         echo "The group %{daemon_group} has been added to %{group_file}."
1737         echo "See the manual chapter \"Running Bacula\" for details."
1738 fi
1739
1740 %post gconsole
1741 # generate passwords if needed
1742 if [ -d /etc/bacula ]; then
1743         cd /etc/bacula
1744         for file in *.conf; do
1745                 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
1746                         need_password=`grep $string $file 2>/dev/null`
1747                         if [ -n "$need_password" ]; then
1748                                 pass=`openssl rand -base64 33`
1749                                 sed "s-$string-$pass-g" $file > $file.new
1750                                 cp -f $file.new $file; rm -f $file.new
1751                         fi
1752                 done
1753         done
1754 fi
1755 %endif
1756
1757 %if %{wxconsole}
1758 %files wxconsole
1759 %defattr(-,root,root)
1760 /usr/sbin/wxconsole
1761 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1762 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/wxconsole.conf
1763 /usr/share/pixmaps/wxwin16x16.xpm
1764 /usr/share/applications/wxconsole.desktop
1765 %{_mandir}/man1/bacula-wxconsole.1.%{manpage_ext}
1766 %endif
1767
1768 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102}
1769 # add the console helper files
1770 %config(noreplace,missingok) /etc/pam.d/wxconsole
1771 %config(noreplace,missingok) /etc/security/console.apps/wxconsole
1772 /usr/bin/wxconsole
1773 %endif
1774
1775 %if %{wxconsole}
1776 %pre wxconsole
1777 # create the daemon group
1778 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1779 if [ -z "$HAVE_BACULA" ]; then
1780         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1781         echo "The group %{daemon_group} has been added to %{group_file}."
1782         echo "See the manual chapter \"Running Bacula\" for details."
1783 fi
1784
1785 %post wxconsole
1786 # generate passwords if needed
1787 if [ -d /etc/bacula ]; then
1788         cd /etc/bacula
1789         for file in *.conf; do
1790                 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
1791                         need_password=`grep $string $file 2>/dev/null`
1792                         if [ -n "$need_password" ]; then
1793                                 pass=`openssl rand -base64 33`
1794                                 sed "s-$string-$pass-g" $file > $file.new
1795                                 cp -f $file.new $file; rm -f $file.new
1796                         fi
1797                 done
1798         done
1799 fi
1800 %endif
1801
1802 %changelog
1803 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1804 - add SuSE 10.2 target
1805 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1806 - correct bug 752
1807 - set query.sql as config file
1808 - correct bug 754
1809 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1810 - 2.0.1 release
1811 - change determination of gcc version per patch from Marc Hennes
1812 - move BuildRequire for atk-devel to gnome only builds
1813 - add fc6 build tag
1814 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1815 - 2.0.0 release
1816 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1817 - 1.39.26 remove create_sqlite_database.in.patch
1818 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1819 - change ownership of working_dir on server packages to bacula.bacula so that
1820 - bacula-sd can create bootstrap files
1821 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1822 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
1823 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1824 - fix manpages file extension for mdk
1825 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1826 - bug 648 re-enable and update sqlite patches
1827 - 1.39.18 changes
1828 - updatedb 9 to 10
1829 - install man pages
1830 - lock out gconsole build for gtk+ < 2.4
1831 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1832 - move pango-devel BuildRequires into gconsole only build
1833 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1834 - add provides and conflicts for standard suse packages
1835 - add third party packager tag support
1836 - add build_client_only tag
1837 - remove bsmtp from client package
1838 - add bacula-ctl-fd to client package
1839 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1840 - fix directory creation when wxconsole and not gconsole
1841 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1842 - add check to buildrequires to make sure libstdc++ version matches gcc
1843 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1844 - add python build support
1845 - fix LDFLAGS declarations
1846 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1847 - add requires for standard compiler toolchain
1848 - move version and release tags up
1849 - move patches up
1850 - add docs_version tag
1851 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1852 - update rescuever to 1.8.6
1853 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1854 - update depkgs to 25Jun06
1855 - add mysql5 build tag
1856 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1857 - 1.38.10 bump rescue version
1858 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1859 - fix usermod statements
1860 - add fc5 target
1861 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1862 - add -g param back to useradd statements Bug 605
1863 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1864 - redundant code cleanup
1865 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1866 - add wxconsole package
1867 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1868 - 1.38.8 release
1869 - dependency update for Mandriva
1870 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1871 - 1.38.7 release
1872 - remove -n option from useradd scripts
1873 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1874 - 1.38.6 release
1875 - fix problem specifying more than one primary group for user bacula
1876 - add build switch to not build gconsole regardless of platform
1877 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1878 - add centos3 build tag
1879 - fix link error of static-fd on Mandrake with --disable-nls
1880 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1881 - add fc4 dependencies
1882 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1883 - add SuSE 10.0 build
1884 - remove specific permission in attrib macros
1885 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1886 - 1.38.5 release
1887 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
1888 - refix compat for _dist on SLES9 which seems to have been removed
1889 - added note regarding Aleksandar's use of specific permissions in attrib macros
1890 - need to review and add specific fc4 build currently using fc3 Requires
1891 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1892 - 1.38.2 release
1893 - Reorganize files and pre/post sections to remove repetitions
1894 - Always build separate mtx package
1895 - Fix file ownerships for /etc/bacula and Bacula's working dir
1896 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1897 - Disable GNOME on RH7
1898 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1899 - Red Hat and look alikes have mtx RPM, do not build/package our version
1900 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1901 - minor edit to _dist for SLES9 compatibility
1902 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1903 - 1.38.0 release
1904 - kern changed location of pdf files and html manual in docs package
1905 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1906 - 1.38.0 release
1907 - add docs (from prebuilt tarball) and rescue packages back in
1908 - remove dvd-freespace and dvd-writepart files, add dvd-handler
1909 - remove 3 of 4 sqlite script patches as not needed
1910 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1911 - changes for 1.38
1912 - remove docs and rescue sections (remove static fd)
1913 - add dvd-freespace and dvd-writepart files
1914 - update depkgs to 22Jun05
1915 - change database update to 8 to 9
1916 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1917 - minor cleanups before 1.38 changes
1918 - add popt and popt-devel build dependencies
1919 - add tetex and tetex-dvips dependencies for doc build
1920 - replace deprecated Copyright tag with License
1921 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1922 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
1923 - conflict with sqlite packages. remove readline dependency.
1924 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1925 - release 1.36.3 update docs
1926 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1927 - add centos4 build tag
1928 - add x86_64 build tag
1929 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1930 - add rhel4 build tag
1931 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
1932 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1933 - add rhel3 build tag
1934 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1935 - fix tray-monitor.conf for noreplace
1936 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1937 - fix distribution check for Fedora and Whitebox
1938 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1939 - add logwatch script
1940 - add dvd scripts
1941 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1942 - add build for Fedora Core 3 (linc now included in ORDit2)
1943 - add mysql4 define for Mandrake 10.1
1944 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1945 - fix {group_file} variable in post scripts
1946 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
1947 - add distribution checking and custom Distribution tag
1948 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1949 - ASSIGNMENT OF COPYRIGHT
1950 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and 
1951 - assigns unto Kern Sibbald, his successors, assigns and personal representatives, 
1952 - all right, title and interest in and to the copyright in this software RPM
1953 - spec file. D. Scott Barninger warrants good title to said copyright, that it is 
1954 - free of all liens, encumbrances or any known claims against said copyright.
1955 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1956 - bug 183 fixes
1957 - thanks to Daniel Widyono
1958 - update description for rescue package to describe cdrom creation
1959 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1960 - update depkgs to 29Oct04
1961 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1962 - add cdrom rescue to bacula-rescue package
1963 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1964 - misc fixes from 1.36.0 suse feedback
1965 - fix situation where sqlite database exists but sqlite has been removed.
1966 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1967 - remove tray-monitor from RH8 build
1968 - fix permissions on tray-monitor files
1969 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1970 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
1971 - change database update to 7 to 8 upgrade,
1972 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
1973 - build in 30Jul04, add freetype dependancy to gnome package.
1974 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1975 - add documentation to console for groupadd
1976 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1977 - add support for running daemons as root.bacula
1978 - correct for change in location of floppy rescue files in 1.35.2
1979 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
1980 - updated depgkgs to 30Jul04
1981 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1982 - really, really fix symlink creation for gconsole
1983 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1984 - fix symlink creation in gconsole post install
1985 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1986 - fixed error in gconsole post script
1987 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1988 - add check for gconsole symlink before trying to create it
1989 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1990 - fix some minor permissions issues on doc files that CVS won't let us fix
1991 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1992 - add pkgconfig to BuildRequires
1993 - clean up gnome1/2 menu entries for appropriate packages
1994 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1995 - tightened up doc distribution
1996 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1997 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
1998 - rpm's horrible bug that prevents nested conditional macros prevents me
1999 - from implementing these 2 separate approaches within the conditionals which
2000 - create the separate server packages.
2001 - the solution adopted is to remove the gnome-console files from the server packages
2002 - so bacula-gconsole is now an add on for both client and server packages.
2003 - this also now allows the server packages to be install on machines without
2004 - an X-server and we can still maintain a single spec file.
2005 - added tests to make sure we have defined platform and database macros.
2006 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2007 - corrected mysql prerequisites for suse
2008 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2009 - replaced all cp commands with cp -p
2010 - removed addition of a+x permissions on gnome-console
2011 - corrected permissions on init scripts
2012 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2013 - corrected creation of sqlite_bindir in install from !mysql to sqlite
2014 -
2015 - various cleanup patches from Michael K. Johnson:
2016 - corrected post install routines for nicer chkconfig
2017 - removed chmod changes in post routines and moved to install section
2018 - removed interactive nature of post routine for rescue package
2019 - added description of building rescue disks to the description of rescue package
2020 - added clean of build root to beginning of install
2021 - removed specifying attr in all file lists
2022 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2023 - added bconsole to client package
2024 - added gconsole package as add-on to client
2025 - removed spurious dependancies on updatedb package (!cut/paste)
2026 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2027 - added updatedb package
2028 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2029 - added postgresql package
2030 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2031 - corrected the if else logic in the dependancy sections
2032 - changes for 1.34 release
2033 - /etc/bacula/console is now /etc/bacula/bconsole
2034 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
2035 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
2036 - /usr/sbin/smtp is now /usr/sbin/bsmtp
2037 - added new /etc/bacula/drop_mysql_database
2038 - added new /etc/bacula/drop_sqlite_database
2039 - added new /etc/bacula/grant_sqlite_privileges
2040 - added new generic bacula database scripts in /etc/bacula
2041 - added pre-install sections to check for database versions older than 6
2042 - added check for /etc/bacula/console.conf and copy to bconsole.conf
2043 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2044 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
2045 - added testing for existing databases before executing any of the database creation scripts
2046 - added defines working_dir and sqlite_bindir in place of hard coded paths
2047 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2048 - added build configuration for SuSE.
2049 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
2050 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2051 - added patch for create_sqlite_database to fix the installed bindir
2052 - added execute of create_sqlite_database to post of sqlite package
2053 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2054 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
2055 - added bacula-fd as Requires for rescue package
2056 - added build tag for Fedora Core 1
2057 - cleaned up dependancies for all builds
2058 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2059 - removed rh_version from package names
2060 - added platform build configuration section to beginning of file
2061 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2062 - removed make_static_bacula script from rescue package install
2063 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2064 - Added define at top of file for depkgs version
2065 - Added rescue sub-package
2066 - Moved requires statements into proper sub-package locations
2067 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2068 - Corrected Requires for Gnome 1.4/2.0 builds
2069 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2070 - Added separate source declaration for depkgs
2071 - added patch for make_catalog_backup script
2072 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2073 - Misc changes to mysql/sqlite build and rh7/8 menu differences
2074 - Added rh_version to sub-package names
2075 - Added installed but missing file /etc/bacula/gconsole
2076 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
2077 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
2078 - Update spec for version 1.31 and combine client
2079 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2080 - Initial spec file