]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/redhat/bacula.spec.in
Tweak RedHat spec files
[bacula/bacula] / bacula / platforms / redhat / bacula.spec.in
1 # Bacula RPM spec file
2 #
3 # Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
4
5 # Platform Build Configuration
6
7
8 BuildRequires: libacl-devel
9
10 # probems with mandriva build: 
11
12 # nothing provides libbonobo2_0-devel, nothing provides libbonoboui2_0-devel
13
14 # set Macros by opensuse_bs, see http://en.opensuse.org/Build_Service/cross_distribution_package_how_to
15 #openSUSE 11.1   %if 0%{?suse_version} == 1110  
16 #openSUSE 11.0  %if 0%{?suse_version} == 1100   
17 #openSUSE 10.3  %if 0%{?suse_version} == 1030   
18 #openSUSE 10.2  %if 0%{?suse_version} == 1020   
19 #SUSE Linux 10.1        %if 0%{?suse_version} == 1010   
20 #SUSE Linux 10.0        %if 0%{?suse_version} == 1000   
21 #SUSE Linux 9.3         %if 0%{?suse_version} == 930    
22 #SLES 9         %if 0%{?sles_version} == 9      also set: %if 0%{?suse_version} == 910
23 #SLE 10         %if 0%{?sles_version} == 10     also set: %if 0%{?suse_version} == 1010
24 #SLE 11         %if 0%{?sles_version} == 11     also set: %if 0%{?suse_version} == 1110
25 #CentOS 5       %if 0%{?centos_version} == 501  
26 #RHEL 4         %if 0%{?rhel_version} == 406    
27 #RHEL 5         %if 0%{?rhel_version} == 501    
28 #Fedora 6 with Extras   %if 0%{?fedora_version} == 6    
29 #Fedora 7 with Extras   %if 0%{?fedora_version} == 7    
30 #Fedora 8 with Extras   %if 0%{?fedora_version} == 8    
31 #Fedora 9 with Extras   %if 0%{?fedora_version} == 9    
32 #Fedora 10 with Extras  %if 0%{?fedora_version} == 10   
33 #Mandriva 2006  %if 0%{?mandriva_version} == 2006       
34 #Mandriva 2007  %if 0%{?mandriva_version} == 2007       
35 #Mandriva 2008  %if 0%{?mandriva_version} == 2008       
36
37
38 %if 0%{?opensuse_bs}
39 # am I running in opensuse build service?
40 # TODO: seems to make problems
41
42 # choose database backend here
43 # postgres, mysql, sqlite
44 %define build_postgresql 1
45
46 # Build Service: Determine Distribution
47
48 %ifarch x86_64
49  %define build_x86_64 1
50 %endif
51
52
53 %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
54 BuildRequires: GConf2-devel
55 BuildRequires: freetype-devel
56 BuildRequires: libtermcap-devel
57 BuildRequires: shadow-utils
58 %endif
59
60
61
62
63 %if 0%{?mandriva_version} == 2007
64 %define build_mdv 1
65 %define _dist "Mandriva 2007"
66 # %define gconsole 0 
67 %endif
68
69 %if 0%{?fedora_version} == 8
70 %define build_fc8 1
71 %define _dist "Fedora Core 8"
72 BuildRequires: redhat-release
73 %endif
74
75 %if 0%{?fedora_version} == 9
76 %define build_fc9 1
77 %define _dist "Fedora Core 9"
78 BuildRequires: redhat-release
79 %endif
80
81
82 %if 0%{?fedora_version} == 10
83 %define build_fc9 1
84 %define _dist "Fedora Core 10"
85 BuildRequires: PolicyKit-gnome
86 BuildRequires: fedora-release
87 %endif
88
89 %if 0%{?fedora_version} == 11
90 %define build_fc9 1
91 %define _dist "Fedora Core 11"
92 BuildRequires: PolicyKit-gnome
93 BuildRequires: fedora-release
94 %endif
95
96
97
98
99 %if 0%{?rhel_version} == 501
100 %define build_rhel5 1
101 %define _dist "Red Hat Enterprise Linux Server release 5"
102 BuildRequires: redhat-release
103 %endif
104
105 %if 0%{?rhel_version} == 406
106 %define build_rhel4 1
107 %define _dist "Red Hat Enterprise Linux Server release 4"
108 BuildRequires: redhat-release
109 %endif
110
111
112 %if 0%{?centos_version} == 501
113 %define build_centos5 1
114 %define _dist "CentOS 5"
115 BuildRequires: redhat-release
116 %endif
117
118
119 %if 0%{?suse_version} == 1020
120 %define build_su102 1
121 %define _dist "OpenSUSE 10.2"
122 BuildRequires: suse-release
123 %endif
124
125
126 %if 0%{?suse_version} == 1030
127 %define build_su103 1
128 %define _dist "OpenSUSE 10.3"
129 BuildRequires: suse-release
130 %endif
131
132 %if 0%{?suse_version} == 1100
133 %define build_su110 1
134 %define _dist "SUSE 11"
135 BuildRequires: suse-release
136 %endif
137
138
139 %if 0%{?suse_version} == 1110
140 %define build_su111 1
141 %define _dist "SUSE 11"
142 %endif
143
144
145 %if 0%{?sles_version} == 9
146 %define build_su9 1
147 %define _dist "SLES 9"
148 %endif
149
150
151 %if 0%{?sles_version} == 10
152 %define build_su10 1
153 %define _dist "SLE 10"
154 %endif
155
156
157 %if 0%{?sles_version} == 11
158 %define build_su111 1
159 %define _dist "SLES 11"
160 %endif
161
162
163
164 %endif 
165 # opensuse-bs?
166
167 # basic defines for every build
168 %define _version @VERSION@
169 %define _release 1
170 %define depkgs_version 18Feb09
171 %define _rescuever @VERSION@
172 %define docs_version @VERSION@
173
174 # any patches for this release
175 # be sure to check the setup section for patch macros
176
177 #--------------------------------------------------------------------------
178 # it should not be necessary to change anything below here for a release
179 # except for patch macros in the setup section
180 #--------------------------------------------------------------------------
181
182 %define single_dir 0
183 %{?single_dir_install:%define single_dir 1}
184 %if %{single_dir}
185 %define _prefix /opt/bacula
186 %else
187 %define _prefix /usr
188 %endif
189
190 # third party packagers
191 %define _packager D. Scott Barninger <barninger@fairfieldcomputers.com>
192 %{?contrib_packager:%define _packager %{contrib_packager}}
193
194 Summary: Bacula - The Network Backup Solution
195 Name: bacula
196 Version: %{_version}
197 Release: %{_release}
198 Group: System Environment/Daemons
199 License: GPL v2
200 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
201 Source1: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
202 Source2: Release_Notes-%{version}-%{release}.tar.gz
203 Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
204 Source4: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
205 Source5: bacula-2.2.7-postgresql.patch
206 BuildRoot: %{_tmppath}/%{name}-root
207 URL: http://www.bacula.org/
208 Vendor: The Bacula Team
209 Packager: %{_packager}
210 Prefix: %{_prefix}
211
212 # define the basic package description
213 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
214 %define blurb2 Bacula is a set of computer programs that permit you (or the system
215 %define blurb3 administrator) to manage backup, recovery, and verification of computer
216 %define blurb4 data across a network of computers of different kinds. In technical terms,
217 %define blurb5 it is a network client/server based backup program. Bacula is relatively
218 %define blurb6 easy to use and efficient, while offering many advanced storage management
219 %define blurb7 features that make it easy to find and recover lost or damaged files.
220 %define blurb8 Bacula source code has been released under the GPL version 2 license.
221
222 # source directory locations
223 %define _docsrc ../%{name}-docs-%{docs_version}
224 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
225 %define depkgs ../depkgs
226
227 # directory locations
228 %if %{single_dir}
229 %define _sbindir /opt/bacula
230 %define _subsysdir /opt/bacula/working
231 %define sqlite_bindir /opt/bacula/sqlite
232 %define _mandir /usr/share/man
233 %define sysconf_dir /opt/bacula
234 %define script_dir /opt/bacula/scripts
235 %define working_dir /opt/bacula/working
236 %define pid_dir /opt/bacula/working
237 %else
238 %define _sbindir %_prefix/sbin
239 %define _subsysdir /var/lock/subsys
240 %define sqlite_bindir %_libdir/bacula/sqlite
241 %define _mandir %_prefix/share/man
242 %define sysconf_dir /etc/bacula
243 %define script_dir %_libdir/bacula
244 %define working_dir /var/lib/bacula
245 %define pid_dir /var/run
246 %endif
247
248 # NOTE these defines are used in some rather complex useradd and groupadd
249 # commands. If you change them examine the post scripts for consequences.
250 %define director_daemon_user bacula
251 %define storage_daemon_user bacula
252 %define file_daemon_user root
253 %define daemon_group bacula
254 # group that has write access to tape devices, usually disk on Linux
255 %define storage_daemon_group disk
256 %define user_file /etc/passwd
257 %define group_file /etc/group
258
259 # program locations
260 %define useradd /usr/sbin/useradd
261 %define groupadd /usr/sbin/groupadd
262 %define usermod /usr/sbin/usermod
263
264 # platform defines - set one below or define the build_xxx on the command line
265 # RedHat builds
266 %define rh7 0
267 %{?build_rh7:%define rh7 1}
268 %define rh8 0
269 %{?build_rh8:%define rh8 1}
270 %define rh9 0
271 %{?build_rh9:%define rh9 1}
272 # Fedora Core build
273 %define fc1 0
274 %{?build_fc1:%define fc1 1}
275 %define fc3 0
276 %{?build_fc3:%define fc3 1}
277 %define fc4 0
278 %{?build_fc4:%define fc4 1}
279 %define fc5 0
280 %{?build_fc5:%define fc5 1}
281 %define fc6 0
282 %{?build_fc6:%define fc6 1}
283 %define fc7 0
284 %{?build_fc7:%define fc7 1}
285 %define fc8 0
286 %{?build_fc8:%define fc8 1}
287 %define fc9 0
288 %{?build_fc9:%define fc9 1}
289 # Whitebox Enterprise build
290 %define wb3 0
291 %{?build_wb3:%define wb3 1}
292 # RedHat Enterprise builds
293 %define rhel3 0
294 %{?build_rhel3:%define rhel3 1}
295 %{?build_rhel3:%define wb3 1}
296 %define rhel4 0
297 %{?build_rhel4:%define rhel4 1}
298 %{?build_rhel4:%define fc3 1}
299 %define rhel5 0
300 %{?build_rhel5:%define rhel5 1}
301 %{?build_rhel5:%define fc6 1}
302 # CentOS build
303 %define centos3 0
304 %{?build_centos3:%define centos3 1}
305 %{?build_centos3:%define wb3 1}
306 %define centos4 0
307 %{?build_centos4:%define centos4 1}
308 %{?build_centos4:%define fc3 1}
309 %define centos5 0
310 %{?build_centos5:%define centos5 1}
311 %{?build_centos5:%define fc6 1}
312 # SL build
313 %define sl3 0
314 %{?build_sl3:%define sl3 1}
315 %{?build_sl3:%define wb3 1}
316 %define sl4 0
317 %{?build_sl4:%define sl4 1}
318 %{?build_sl4:%define fc3 1}
319 %define sl5 0
320 %{?build_sl5:%define sl5 1}
321 %{?build_sl5:%define fc6 1}
322 # SuSE build
323 %define su9 0
324 %{?build_su9:%define su9 1}
325 %define su10 0
326 %{?build_su10:%define su10 1}
327 %define su102 0
328 %{?build_su102:%define su102 1}
329 %define su103 0
330 %{?build_su103:%define su103 1}
331 %define su110 0
332 %{?build_su110:%define su110 1}
333 %define su111 0
334 %{?build_su111:%define su111 1}
335 # Mandrake builds
336 %define mdk 0
337 %{?build_mdk:%define mdk 1}
338 %define mdv 0
339 %{?build_mdv:%define mdv 1}
340 %{?build_mdv:%define mdk 1}
341
342 # client only build
343 %define client_only 0
344 %{?build_client_only:%define client_only 1}
345
346 # test for a platform definition
347 %if !%{rh7} && !%{rh8} && !%{rh9} && !%{fc1} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && !%{wb3} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk}
348 %{error: You must specify a platform. Please examine the spec file.}
349 exit 1
350 %endif
351
352 # database defines
353 # set for database support desired or define the build_xxx on the command line
354 %define mysql 0
355 %{?build_mysql:%define mysql 1}
356 # if using mysql 4.x define this and mysql above
357 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
358 %define mysql4 0
359 %{?build_mysql4:%define mysql4 1}
360 %{?build_mysql4:%define mysql 1}
361 # if using mysql 5.x define this and mysql above
362 # currently: SuSE 10.1 and Fedora Core 5
363 %define mysql5 0
364 %{?build_mysql5:%define mysql5 1}
365 %{?build_mysql5:%define mysql 1}
366 %define sqlite 0
367 %{?build_sqlite:%define sqlite 1}
368 %define postgresql 0
369 %{?build_postgresql:%define postgresql 1}
370
371 # test for a database definition
372 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
373 %{error: You must specify database support. Please examine the spec file.}
374 exit 1
375 %endif
376
377 %if %{mysql}
378 %define db_backend mysql
379 %endif
380 %if %{sqlite}
381 %define db_backend sqlite3
382 %endif
383 %if %{postgresql}
384 %define db_backend postgresql
385 %endif
386
387 # 64 bit support
388 %define x86_64 0
389 %{?build_x86_64:%define x86_64 1}
390
391 # check what distribution we are
392 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
393 %define _dist %(grep Red /etc/redhat-release)
394 %endif
395 %if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8} || %{fc9}
396 %define _dist %(grep Fedora /etc/redhat-release)
397 %endif
398 %if %{centos5} || %{centos4} || %{centos3}
399 %define _dist %(grep CentOS /etc/redhat-release)
400 %endif
401 %if %{sl5} ||%{sl4} || %{sl3}
402 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
403 %endif
404 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
405 %define _dist %(grep Fedora /etc/redhat-release)
406 %endif
407 %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
408 %define _dist %(grep Fedora /etc/redhat-release)
409 %endif
410 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
411 %define _dist %(grep White /etc/whitebox-release)
412 %endif
413 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
414 %define _dist %(grep -i SuSE /etc/SuSE-release)
415 %endif
416 %if %{mdk}
417 %define _dist %(grep Mand /etc/mandrake-release)
418 %endif
419
420 # opensuse build service start
421 %if 0%{?sles_version} == 9
422 %define _dist "SLES 9"
423 %endif
424
425 %if 0%{?sles_version} == 10
426 %define _dist "SLE 10"
427 %endif
428
429
430 %if 0%{?sles_version} == 11
431 %define _dist "SLE 11"
432 %endif
433
434 # opensuse build service end
435
436 %{?DISTNAME:%define _dist %{DISTNAME}}
437 Distribution: %{_dist}
438
439 # Should we build gconsole, possible only if gtk= >= 2.4 available.
440 # leaving all the BuildRequires and Requires in place below for now.
441 # su10, fc3 and fc4 now nobuild, tray monitor fails to build as of 2.2.1 
442 # release as it needs 2.10
443
444 %define gconsole 1
445 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
446 %define gconsole 0
447 %endif
448 %if %{mdk} && ! %{mdv}
449 %define gconsole 0
450 %endif
451
452 # specifically disallow gconsole if desired
453 %{?nobuild_gconsole:%define gconsole 0}
454
455 # specifically disallow rescue files
456 %define rescue 0
457 %{?build_rescue:%define rescue 1}
458
459 # Should we build wxconsole, only wxWidgets >=2.6 is supported
460 # SuSE 10 and FC4 and newer
461 %define wxconsole 0
462 %{?build_wxconsole:%define wxconsole 1}
463
464 # Should we build bat
465 # requires >= Qt-4.2
466 %define bat 0
467 %{?build_bat:%define bat 1}
468
469 # should we turn on python support
470 %define python 0
471 %{?build_python:%define python 1}
472
473 # specifically disallow build of mtx package if desired
474 %define mtx 1
475 %{?nobuild_mtx:%define mtx 0}
476
477 # do we need to patch for old postgresql version?
478 %define old_pgsql 0
479 %{?build_old_pgsql:%define old_pgsql 1}
480
481 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
482 %if %{mdk}
483 %define manpage_ext bz2
484 %else
485 %define manpage_ext gz
486 %endif
487
488 # for client only build
489 %if %{client_only}
490 %define mysql 0
491 %define mysql4 0
492 %define mysql5 0
493 %define postgresql 0
494 %define sqlite 0
495 %define gconsole 0
496 %define wxconsole 0
497 %endif
498
499 BuildRequires: gcc, gcc-c++, make, autoconf
500 BuildRequires: ncurses-devel, perl
501 BuildRequires: libstdc++-devel, zlib-devel
502 BuildRequires: openssl-devel
503 %if ! %{rh7}
504 BuildRequires: libxml2-devel
505 %endif
506 %if %{python}
507 BuildRequires: python, python-devel
508 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
509 %endif
510 %if %{gconsole}
511 BuildRequires: pkgconfig, pango-devel, atk-devel
512 %endif
513 %if %{bat}
514 BuildRequires: pkgconfig
515 %endif
516
517 # Rh qt4 packages don't have a provide for, guess what, qt!
518 # still broken in fc8, ok in fc9
519 # so fix for broken rh
520 %define broken_rh 0
521 %if %{rhel5} || %{centos5} || %{sl5} || %{fc5} || %{fc6} || %{fc7} || %{fc8}
522 %define broken_rh 1
523 %endif
524 %if %{bat} && ! %{broken_rh}
525 BuildRequires: qt-devel >= 4.2
526 %endif
527 %if %{bat} && %{broken_rh}
528 BuildRequires: qt4-devel >= 4.2
529 %endif
530
531 %if %{rh7}
532 BuildRequires: libtermcap-devel
533 BuildRequires: glibc-devel >= 2.2
534 BuildRequires: libxml-devel
535 %endif
536 %if %{su9}
537 BuildRequires: termcap
538 BuildRequires: glibc-devel >= 2.3
539 %endif
540 %if %{su9} && %{gconsole}
541 BuildRequires: libgnome >= 2.0
542 BuildRequires: gtk2-devel >= 2.0
543 BuildRequires: libgnomeui-devel >= 2.0
544 BuildRequires: ORBit2-devel
545 BuildRequires: libart_lgpl-devel >= 2.0
546 BuildRequires: libbonobo-devel >= 2.0
547 BuildRequires: libbonoboui-devel >= 2.0
548 BuildRequires: bonobo-activation-devel
549 BuildRequires: gconf2-devel
550 BuildRequires: linc-devel
551 BuildRequires: freetype2-devel
552 %endif
553 %if %{su10}
554 BuildRequires: termcap
555 BuildRequires: glibc-devel >= 2.3
556 %endif
557 %if %{su10} && %{gconsole}
558 BuildRequires: libgnome >= 2.12
559 BuildRequires: gtk2-devel >= 2.8
560 BuildRequires: libgnomeui-devel >= 2.12
561 BuildRequires: ORBit2-devel
562 BuildRequires: libart_lgpl-devel >= 2.3
563 BuildRequires: libbonobo-devel >= 2.10
564 BuildRequires: libbonoboui-devel >= 2.10
565 BuildRequires: bonobo-activation-devel
566 BuildRequires: gconf2-devel
567 BuildRequires: freetype2-devel
568 BuildRequires: cairo-devel
569 BuildRequires: fontconfig-devel >= 2.3
570 BuildRequires: gnome-vfs2-devel >= 2.12
571 BuildRequires: libpng-devel
572 %endif
573 %if %{su102}
574 BuildRequires: termcap
575 BuildRequires: glibc-devel >= 2.5
576 %endif
577 %if %{su102} && %{gconsole}
578 BuildRequires: libgnome >= 2.16
579 BuildRequires: gtk2-devel >= 2.10
580 BuildRequires: libgnomeui-devel >= 2.16
581 BuildRequires: ORBit2-devel
582 BuildRequires: libart_lgpl-devel >= 2.3
583 BuildRequires: libbonobo-devel >= 2.16
584 BuildRequires: libbonoboui-devel >= 2.16
585 BuildRequires: bonobo-activation-devel
586 BuildRequires: gconf2-devel
587 BuildRequires: freetype2-devel
588 BuildRequires: cairo-devel
589 BuildRequires: fontconfig-devel >= 2.4
590 BuildRequires: gnome-vfs2-devel >= 2.16
591 BuildRequires: libpng-devel
592 %endif
593 %if %{su103}
594 BuildRequires: termcap
595 BuildRequires: glibc-devel >= 2.6
596 %endif
597 %if %{su103} && %{gconsole}
598 BuildRequires: libgnome >= 2.20
599 BuildRequires: gtk2-devel >= 2.12
600 BuildRequires: libgnomeui-devel >= 2.20
601 BuildRequires: ORBit2-devel
602 BuildRequires: libart_lgpl-devel >= 2.3
603 BuildRequires: libbonobo-devel >= 2.20
604 BuildRequires: libbonoboui-devel >= 2.20
605 BuildRequires: bonobo-activation-devel
606 BuildRequires: gconf2-devel
607 BuildRequires: freetype2-devel
608 BuildRequires: cairo-devel
609 BuildRequires: fontconfig-devel >= 2.4
610 BuildRequires: gnome-vfs2-devel >= 2.20
611 BuildRequires: libpng-devel
612 %endif
613 %if %{su110}
614 BuildRequires: termcap
615 BuildRequires: glibc-devel >= 2.8
616 %endif
617 %if %{su110} && %{gconsole}
618 BuildRequires: libgnome >= 2.22
619 BuildRequires: gtk2-devel >= 2.12
620 BuildRequires: libgnomeui-devel >= 2.22
621 BuildRequires: ORBit2-devel
622 BuildRequires: libart_lgpl-devel >= 2.3
623 BuildRequires: libbonobo-devel >= 2.22
624 BuildRequires: libbonoboui-devel >= 2.22
625 BuildRequires: bonobo-activation-devel
626 BuildRequires: gconf2-devel
627 BuildRequires: freetype2-devel
628 BuildRequires: cairo-devel
629 BuildRequires: fontconfig-devel >= 2.4
630 BuildRequires: gnome-vfs2-devel >= 2.22
631 BuildRequires: libpng-devel
632 %endif
633 %if %{su111}
634 BuildRequires: termcap
635 BuildRequires: glibc-devel >= 2.9
636 %endif
637 %if %{su111} && %{gconsole}
638 BuildRequires: libgnome >= 2.24
639 BuildRequires: gtk2-devel >= 2.14
640 BuildRequires: libgnomeui-devel >= 2.24
641 BuildRequires: ORBit2-devel
642 BuildRequires: libart_lgpl-devel >= 2.3
643 BuildRequires: libbonobo-devel >= 2.24
644 BuildRequires: libbonoboui-devel >= 2.24
645 BuildRequires: bonobo-activation-devel
646 BuildRequires: gconf2-devel
647 BuildRequires: freetype2-devel
648 BuildRequires: cairo-devel
649 BuildRequires: fontconfig-devel >= 2.6
650 BuildRequires: gnome-vfs2-devel >= 2.24
651 BuildRequires: libpng-devel
652 %endif
653 %if %{mdk}
654 BuildRequires: libtermcap-devel
655 BuildRequires: libstdc++-static-devel
656 BuildRequires: glibc-static-devel
657 BuildRequires: glibc-devel >= 2.3
658 %endif
659 %if %{mdk} && !%{mdv} && %{gconsole}
660 BuildRequires: gtk2-devel >= 2.0
661 BuildRequires: libgnomeui2-devel >= 2.0
662 BuildRequires: libORBit2-devel
663 BuildRequires: libart_lgpl-devel >= 2.0
664 BuildRequires: libbonobo2_0-devel
665 BuildRequires: libbonoboui2_0-devel
666 BuildRequires: libbonobo-activation-devel
667 BuildRequires: libGConf2-devel
668 BuildRequires: freetype2-devel
669 %endif
670 %if %{mdv} && %{gconsole}
671 BuildRequires: gtk2-devel >= 2.8
672 BuildRequires: libgnomeui2-devel >= 2.10
673 BuildRequires: libORBit2-devel
674 BuildRequires: libart_lgpl-devel >= 2.3
675 BuildRequires: libbonobo2_0-devel
676 BuildRequires: libbonoboui2_0-devel
677 BuildRequires: libbonobo-activation-devel
678 BuildRequires: libGConf2-devel
679 BuildRequires: freetype2-devel
680 %endif
681 %if %{fc3}
682 BuildRequires: libtermcap-devel
683 BuildRequires: glibc-devel >= 2.3
684 %endif
685 %if %{fc3} && %{gconsole}
686 BuildRequires: gtk2-devel >= 2.4
687 BuildRequires: libgnomeui-devel >= 2.8
688 BuildRequires: ORBit2-devel
689 BuildRequires: libart_lgpl-devel >= 2.3
690 BuildRequires: libbonobo-devel >= 2.8
691 BuildRequires: libbonoboui-devel >= 2.8
692 BuildRequires: bonobo-activation-devel
693 BuildRequires: GConf2-devel
694 BuildRequires: freetype-devel
695 %endif
696 %if %{fc4}
697 BuildRequires: libtermcap-devel
698 BuildRequires: glibc-devel >= 2.3
699 %endif
700 %if %{fc4} && %{gconsole}
701 BuildRequires: gtk2-devel >= 2.6
702 BuildRequires: libgnomeui-devel >= 2.10
703 BuildRequires: ORBit2-devel
704 BuildRequires: libart_lgpl-devel >= 2.3
705 BuildRequires: libbonobo-devel >= 2.8
706 BuildRequires: libbonoboui-devel >= 2.8
707 BuildRequires: bonobo-activation-devel
708 BuildRequires: GConf2-devel
709 BuildRequires: freetype-devel
710 %endif
711 %if %{fc5}
712 BuildRequires: libtermcap-devel
713 BuildRequires: glibc-devel >= 2.4
714 %endif
715 %if %{fc5} && %{gconsole}
716 BuildRequires: gtk2-devel >= 2.8
717 BuildRequires: libgnomeui-devel >= 2.14
718 BuildRequires: ORBit2-devel
719 BuildRequires: libart_lgpl-devel >= 2.3
720 BuildRequires: libbonobo-devel >= 2.14
721 BuildRequires: libbonoboui-devel >= 2.14
722 BuildRequires: GConf2-devel
723 BuildRequires: freetype-devel
724 %endif
725 %if %{fc6}
726 BuildRequires: libtermcap-devel
727 BuildRequires: glibc-devel >= 2.5
728 %endif
729 %if %{fc6} && %{gconsole}
730 BuildRequires: gtk2-devel >= 2.10
731 BuildRequires: libgnomeui-devel >= 2.16
732 BuildRequires: ORBit2-devel
733 BuildRequires: libart_lgpl-devel >= 2.3
734 BuildRequires: libbonobo-devel >= 2.16
735 BuildRequires: libbonoboui-devel >= 2.16
736 BuildRequires: GConf2-devel
737 BuildRequires: freetype-devel
738 %endif
739 %if %{fc7}
740 BuildRequires: libtermcap-devel
741 BuildRequires: glibc-devel >= 2.5
742 %endif
743 %if %{fc7} && %{gconsole}
744 BuildRequires: gtk2-devel >= 2.10
745 BuildRequires: libgnomeui-devel >= 2.18
746 BuildRequires: ORBit2-devel
747 BuildRequires: libart_lgpl-devel >= 2.3
748 BuildRequires: libbonobo-devel >= 2.18
749 BuildRequires: libbonoboui-devel >= 2.18
750 BuildRequires: GConf2-devel
751 BuildRequires: freetype-devel
752 %endif
753 %if %{fc8}
754 BuildRequires: libtermcap-devel
755 BuildRequires: glibc-devel >= 2.7
756 %endif
757 %if %{fc8} && %{gconsole}
758 BuildRequires: gtk2-devel >= 2.12
759 BuildRequires: libgnomeui-devel >= 2.20
760 BuildRequires: ORBit2-devel
761 BuildRequires: libart_lgpl-devel >= 2.3
762 BuildRequires: libbonobo-devel >= 2.20
763 BuildRequires: libbonoboui-devel >= 2.20
764 BuildRequires: GConf2-devel
765 BuildRequires: freetype-devel
766 %endif
767 %if %{fc9}
768 BuildRequires: glibc-devel >= 2.8
769 BuildRequires: zlib-static
770 %endif
771 %if %{fc9} && %{gconsole}
772 BuildRequires: gtk2-devel >= 2.12
773 BuildRequires: libgnomeui-devel >= 2.22
774 BuildRequires: ORBit2-devel
775 BuildRequires: libart_lgpl-devel >= 2.3
776 BuildRequires: libbonobo-devel >= 2.22
777 BuildRequires: libbonoboui-devel >= 2.22
778 BuildRequires: GConf2-devel
779 BuildRequires: freetype-devel
780 %endif
781 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
782 BuildRequires: libtermcap-devel
783 BuildRequires: glibc-devel >= 2.3
784 %endif
785 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && %{gconsole}
786 BuildRequires: gtk2-devel >= 2.0
787 BuildRequires: libgnomeui-devel >= 2.0
788 BuildRequires: ORBit2-devel
789 BuildRequires: libart_lgpl-devel >= 2.0
790 BuildRequires: libbonobo-devel >= 2.0
791 BuildRequires: libbonoboui-devel >= 2.0
792 BuildRequires: bonobo-activation-devel
793 BuildRequires: GConf2-devel
794 BuildRequires: linc-devel
795 BuildRequires: freetype-devel
796 %endif
797
798 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
799 BuildRequires: mysql-devel >= 3.23
800 %endif
801
802 %if %{mysql} && %{mysql4}
803 BuildRequires: mysql-devel >= 4.0
804 %endif
805
806 %if %{mysql} && %{mysql5}
807 BuildRequires: mysql-devel >= 5.0
808 %endif
809
810 %if %{postgresql} && %{wb3}
811 BuildRequires: rh-postgresql-devel >= 7
812 %endif
813
814 %if %{postgresql} && ! %{wb3}
815 BuildRequires: postgresql-devel >= 7
816 %endif
817
818 %if %{wxconsole}
819 BuildRequires: wxGTK-devel >= 2.6
820 %endif
821
822 %description
823 %{blurb}
824
825 %{blurb2}
826 %{blurb3}
827 %{blurb4}
828 %{blurb5}
829 %{blurb6}
830 %{blurb7}
831 %{blurb8}
832
833 %if %{mysql}
834 %package mysql
835 %endif
836 %if %{sqlite}
837 %package sqlite
838 %endif
839 %if %{postgresql}
840 %package postgresql
841 %endif
842
843 Summary: Bacula - The Network Backup Solution
844 Group: System Environment/Daemons
845 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
846 Conflicts: bacula-client
847 Obsoletes: bacula-rescue
848
849 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
850 Conflicts: bacula
851 %endif
852
853 Requires: ncurses, libstdc++, zlib, openssl, mtx
854
855 %if %{rh7}
856 Requires: glibc >= 2.2
857 Requires: libtermcap
858 %endif
859 %if %{su9} || %{su10}
860 Requires: glibc >= 2.3
861 Requires: termcap
862 %endif
863 %if %{su102}
864 Requires: glibc >= 2.5
865 Requires: termcap
866 %endif
867 %if %{su103}
868 Requires: glibc >= 2.6
869 Requires: termcap
870 %endif
871 %if %{su110}
872 Requires: glibc >= 2.8
873 Requires: termcap
874 %endif
875 %if %{su111}
876 Requires: glibc >= 2.9
877 Requires: termcap
878 %endif
879 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
880 Requires: glibc >= 2.3
881 Requires: libtermcap
882 %endif
883 %if %{fc5}
884 Requires: glibc >= 2.4
885 Requires: libtermcap
886 %endif
887 %if %{fc6} || %{fc7}
888 Requires: glibc >= 2.5
889 Requires: libtermcap
890 %endif
891 %if %{fc8}
892 Requires: glibc >= 2.7
893 Requires: libtermcap
894 %endif
895 %if %{fc9}
896 Requires: glibc >= 2.8
897 %endif
898
899 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
900 Requires: mysql >= 3.23
901 Requires: mysql-server >= 3.23
902 %endif
903 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
904 Requires: mysql >= 4.0
905 Requires: mysql-server >= 4.0
906 %endif
907 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk} && %{mysql5}
908 Requires: mysql >= 5.0
909 Requires: mysql-server >= 5.0
910 %endif
911
912 %if %{mysql} && %{su9} && ! %{mysql4}
913 Requires: mysql >= 3.23
914 Requires: mysql-client >= 3.23
915 %endif
916 %if %{mysql} && %{su9} && %{mysql4}
917 Requires: mysql >= 4.0
918 Requires: mysql-client >= 4.0
919 %endif
920 %if %{mysql} && %{su10} && %{mysql4}
921 Requires: mysql >= 4.0
922 Requires: mysql-client >= 4.0
923 %endif
924 %if %{mysql} && %{su10} && %{mysql5}
925 Requires: mysql >= 5.0
926 Requires: mysql-client >= 5.0
927 %endif
928 %if %{mysql} && %{su102} && %{mysql5}
929 Requires: mysql >= 5.0
930 Requires: mysql-client >= 5.0
931 %endif
932 %if %{mysql} && %{su103} && %{mysql5}
933 Requires: mysql >= 5.0
934 Requires: mysql-client >= 5.0
935 %endif
936 %if %{mysql} && %{su110} && %{mysql5}
937 Requires: mysql >= 5.0
938 Requires: mysql-client >= 5.0
939 %endif
940 %if %{mysql} && %{su111} && %{mysql5}
941 Requires: mysql >= 5.0
942 Requires: mysql-client >= 5.0
943 %endif
944
945 %if %{mysql} && %{mdk} && ! %{mysql4}
946 Requires: mysql >= 3.23
947 Requires: mysql-client >= 3.23
948 %endif
949 %if %{mysql} && %{mdk} && %{mysql4}
950 Requires: mysql >= 4.0
951 Requires: mysql-client >= 4.0
952 %endif
953
954 %if %{postgresql} && %{wb3}
955 Requires: rh-postgresql >= 7
956 Requires: rh-postgresql-server >= 7
957 %endif
958 %if %{postgresql} && ! %{wb3}
959 Requires: postgresql >= 7
960 Requires: postgresql-server >= 7
961 %endif
962
963 %if %{mysql}
964 %description mysql
965 %endif
966 %if %{sqlite}
967 %description sqlite
968 %endif
969 %if %{postgresql}
970 %description postgresql
971 %endif
972
973 %if %{python}
974 Requires: python >= %{pyver}
975 %endif
976
977 %{blurb}
978
979 %{blurb2}
980 %{blurb3}
981 %{blurb4}
982 %{blurb5}
983 %{blurb6}
984 %{blurb7}
985 %{blurb8}
986
987 %if %{mysql}
988 This build requires MySQL to be installed separately as the catalog database.
989 %endif
990 %if %{postgresql}
991 This build requires PostgreSQL to be installed separately as the catalog database.
992 %endif
993 %if %{sqlite}
994 This build incorporates sqlite3 as the catalog database, statically compiled.
995 %endif
996 %if %{python}
997 This build includes python scripting support.
998 %endif
999
1000 %if ! %{client_only} && %{mtx}
1001 %package mtx
1002 Summary: Bacula - The Network Backup Solution
1003 Group: System Environment/Daemons
1004 Provides: mtx
1005
1006 %description mtx
1007 This is Bacula's version of mtx tape utilities for Linux distributions that
1008 do not provide their own mtx package
1009 %endif
1010
1011 %package client
1012 Summary: Bacula - The Network Backup Solution
1013 Group: System Environment/Daemons
1014 Provides: bacula-fd
1015 Conflicts: bacula-mysql
1016 Conflicts: bacula-sqlite
1017 Conflicts: bacula-postgresql
1018 Obsoletes: bacula-rescue
1019
1020 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1021 Provides: bacula
1022 %endif
1023
1024 Requires: libstdc++, zlib, openssl
1025
1026 %if %{rh7}
1027 Requires: glibc >= 2.2
1028 Requires: libtermcap
1029 %endif
1030 %if %{su9} || %{su10}
1031 Requires: glibc >= 2.3
1032 Requires: termcap
1033 %endif
1034 %if %{su102}
1035 Requires: glibc >= 2.5
1036 Requires: termcap
1037 %endif
1038 %if %{su103}
1039 Requires: glibc >= 2.6
1040 Requires: termcap
1041 %endif
1042 %if %{su110}
1043 Requires: glibc >= 2.8
1044 Requires: termcap
1045 %endif
1046 %if %{su111}
1047 Requires: glibc >= 2.9
1048 Requires: termcap
1049 %endif
1050 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
1051 Requires: glibc >= 2.3
1052 Requires: libtermcap
1053 %endif
1054 %if %{fc5}
1055 Requires: glibc >= 2.4
1056 Requires: libtermcap
1057 %endif
1058 %if %{fc6} || %{fc7}
1059 Requires: glibc >= 2.5
1060 Requires: libtermcap
1061 %endif
1062 %if %{fc8}
1063 Requires: glibc >= 2.7
1064 Requires: libtermcap
1065 %endif
1066 %if %{fc9}
1067 Requires: glibc >= 2.8
1068 %endif
1069
1070 %if %{python}
1071 Requires: python >= %{pyver}
1072 %endif
1073
1074 %description client
1075 %{blurb}
1076
1077 %{blurb2}
1078 %{blurb3}
1079 %{blurb4}
1080 %{blurb5}
1081 %{blurb6}
1082 %{blurb7}
1083 %{blurb8}
1084
1085 This is the File daemon (Client) only package. It includes the command line 
1086 console program.
1087 %if %{python}
1088 This build includes python scripting support.
1089 %endif
1090
1091 %if ! %{client_only}
1092 %package updatedb
1093
1094 Summary: Bacula - The Network Backup Solution
1095 Group: System Environment/Daemons
1096
1097 %description updatedb
1098 %{blurb}
1099
1100 %{blurb2}
1101 %{blurb3}
1102 %{blurb4}
1103 %{blurb5}
1104 %{blurb6}
1105 %{blurb7}
1106 %{blurb8}
1107
1108 This package installs scripts for updating older versions of the bacula
1109 database.
1110 %endif
1111
1112 %if %{gconsole}
1113 %package gconsole
1114 Summary: Bacula - The Network Backup Solution
1115 Group: System Environment/Daemons
1116 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
1117 %endif
1118
1119 %if %{gconsole} && %{su9}
1120 Requires: gtk2 >= 2.0
1121 Requires: libgnome >= 2.0
1122 Requires: libgnomeui >= 2.0
1123 Requires: glibc >= 2.3
1124 Requires: ORBit2
1125 Requires: libart_lgpl >= 2.0
1126 Requires: libbonobo >= 2.0
1127 Requires: libbonoboui >= 2.0
1128 Requires: bonobo-activation
1129 Requires: gconf2
1130 Requires: linc
1131 Requires: freetype2
1132 %endif
1133 %if %{gconsole} && %{su10}
1134 Requires: gtk2 >= 2.8
1135 Requires: libgnome >= 2.12
1136 Requires: libgnomeui >= 2.12
1137 Requires: glibc >= 2.3
1138 Requires: ORBit2
1139 Requires: libart_lgpl >= 2.3
1140 Requires: libbonobo >= 2.10
1141 Requires: libbonoboui >= 2.10
1142 Requires: bonobo-activation
1143 Requires: gconf2
1144 Requires: freetype2
1145 Requires: cairo
1146 Requires: fontconfig >= 2.3
1147 Requires: gnome-vfs2 >= 2.12
1148 Requires: libpng
1149 %endif
1150 %if %{gconsole} && %{su102}
1151 Requires: gtk2 >= 2.10
1152 Requires: libgnome >= 2.16
1153 Requires: libgnomeui >= 2.16
1154 Requires: glibc >= 2.5
1155 Requires: ORBit2
1156 Requires: libart_lgpl >= 2.3
1157 Requires: libbonobo >= 2.16
1158 Requires: libbonoboui >= 2.16
1159 Requires: bonobo-activation
1160 Requires: gconf2
1161 Requires: freetype2
1162 Requires: cairo
1163 Requires: fontconfig >= 2.4
1164 Requires: gnome-vfs2 >= 2.16
1165 Requires: libpng
1166 %endif
1167 %if %{gconsole} && %{su103}
1168 Requires: gtk2 >= 2.12
1169 Requires: libgnome >= 2.20
1170 Requires: libgnomeui >= 2.20
1171 Requires: glibc >= 2.6
1172 Requires: ORBit2
1173 Requires: libart_lgpl >= 2.3
1174 Requires: libbonobo >= 2.20
1175 Requires: libbonoboui >= 2.20
1176 Requires: bonobo-activation
1177 Requires: gconf2
1178 Requires: freetype2
1179 Requires: cairo
1180 Requires: fontconfig >= 2.4
1181 Requires: gnome-vfs2 >= 2.20
1182 Requires: libpng
1183 %endif
1184 %if %{gconsole} && %{su110}
1185 Requires: gtk2 >= 2.12
1186 Requires: libgnome >= 2.22
1187 Requires: libgnomeui >= 2.22
1188 Requires: glibc >= 2.8
1189 Requires: ORBit2
1190 Requires: libart_lgpl >= 2.3
1191 Requires: libbonobo >= 2.22
1192 Requires: libbonoboui >= 2.22
1193 Requires: bonobo-activation
1194 Requires: gconf2
1195 Requires: freetype2
1196 Requires: cairo
1197 Requires: fontconfig >= 2.4
1198 Requires: gnome-vfs2 >= 2.22
1199 Requires: libpng
1200 %endif
1201 %if %{gconsole} && %{su111}
1202 Requires: gtk2 >= 2.14
1203 Requires: libgnome >= 2.24
1204 Requires: libgnomeui >= 2.24
1205 Requires: glibc >= 2.9
1206 Requires: ORBit2
1207 Requires: libart_lgpl >= 2.3
1208 Requires: libbonobo >= 2.24
1209 Requires: libbonoboui >= 2.24
1210 Requires: bonobo-activation
1211 Requires: gconf2
1212 Requires: freetype2
1213 Requires: cairo
1214 Requires: fontconfig >= 2.6
1215 Requires: gnome-vfs2 >= 2.24
1216 Requires: libpng
1217 %endif
1218 %if %{gconsole} && %{mdk} && !%{mdv}
1219 Requires: gtk2 >= 2.0
1220 Requires: libgnomeui2
1221 Requires: glibc >= 2.3
1222 Requires: ORBit2
1223 Requires: libart_lgpl >= 2.0
1224 Requires: libbonobo >= 2.0
1225 Requires: libbonoboui >= 2.0
1226 Requires: GConf2
1227 Requires: freetype2
1228 %endif
1229 %if %{gconsole} && %{mdv}
1230 Requires: gtk2 >= 2.8
1231 Requires: libgnomeui2
1232 Requires: glibc >= 2.3
1233 Requires: ORBit2
1234 Requires: libart_lgpl >= 2.3
1235 Requires: libbonobo >= 2.10
1236 Requires: libbonoboui >= 2.10
1237 Requires: GConf2
1238 Requires: freetype2
1239 %endif
1240 %if %{gconsole} && %{fc3}  
1241 Requires: gtk2 >= 2.4
1242 Requires: libgnomeui >= 2.8
1243 Requires: glibc >= 2.3
1244 Requires: ORBit2
1245 Requires: libart_lgpl >= 2.3
1246 Requires: libbonobo >= 2.8
1247 Requires: libbonoboui >= 2.8
1248 Requires: bonobo-activation
1249 Requires: GConf2
1250 Requires: freetype
1251 %endif
1252 %if %{gconsole} && %{fc4}  
1253 Requires: gtk2 >= 2.6
1254 Requires: libgnomeui >= 2.10
1255 Requires: glibc >= 2.3
1256 Requires: ORBit2
1257 Requires: libart_lgpl >= 2.3
1258 Requires: libbonobo >= 2.8
1259 Requires: libbonoboui >= 2.8
1260 Requires: bonobo-activation
1261 Requires: GConf2
1262 Requires: freetype
1263 %endif
1264 %if %{gconsole} && %{fc5}  
1265 Requires: gtk2 >= 2.8
1266 Requires: libgnomeui >= 2.14
1267 Requires: glibc >= 2.4
1268 Requires: ORBit2
1269 Requires: libart_lgpl >= 2.3
1270 Requires: libbonobo >= 2.14
1271 Requires: libbonoboui >= 2.14
1272 Requires: GConf2
1273 Requires: freetype
1274 %endif
1275 %if %{gconsole} && %{fc6}  
1276 Requires: gtk2 >= 2.10
1277 Requires: libgnomeui >= 2.16
1278 Requires: glibc >= 2.5
1279 Requires: ORBit2
1280 Requires: libart_lgpl >= 2.3
1281 Requires: libbonobo >= 2.16
1282 Requires: libbonoboui >= 2.16
1283 Requires: GConf2
1284 Requires: freetype
1285 %endif
1286 %if %{gconsole} && %{fc7}  
1287 Requires: gtk2 >= 2.10
1288 Requires: libgnomeui >= 2.18
1289 Requires: glibc >= 2.5
1290 Requires: ORBit2
1291 Requires: libart_lgpl >= 2.3
1292 Requires: libbonobo >= 2.18
1293 Requires: libbonoboui >= 2.18
1294 Requires: GConf2
1295 Requires: freetype
1296 %endif
1297 %if %{gconsole} && %{fc8}  
1298 Requires: gtk2 >= 2.12
1299 Requires: libgnomeui >= 2.20
1300 Requires: glibc >= 2.7
1301 Requires: ORBit2
1302 Requires: libart_lgpl >= 2.3
1303 Requires: libbonobo >= 2.20
1304 Requires: libbonoboui >= 2.20
1305 Requires: GConf2
1306 Requires: freetype
1307 %endif
1308 %if %{gconsole} && %{fc9}  
1309 Requires: gtk2 >= 2.12
1310 Requires: libgnomeui >= 2.22
1311 Requires: glibc >= 2.8
1312 Requires: ORBit2
1313 Requires: libart_lgpl >= 2.3
1314 Requires: libbonobo >= 2.22
1315 Requires: libbonoboui >= 2.22
1316 Requires: GConf2
1317 Requires: freetype
1318 %endif
1319 %if %{gconsole} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
1320 Requires: gtk2 >= 2.0
1321 Requires: libgnomeui >= 2.0
1322 Requires: glibc >= 2.3
1323 Requires: ORBit2
1324 Requires: libart_lgpl >= 2.0
1325 Requires: libbonobo >= 2.0
1326 Requires: libbonoboui >= 2.0
1327 Requires: bonobo-activation
1328 Requires: GConf2
1329 Requires: linc
1330 Requires: freetype
1331 %endif
1332 %if %{gconsole} && %{su9}
1333 Requires: xsu
1334 %endif
1335 %if %{gconsole} && %{su10}
1336 Requires: xsu
1337 %endif
1338 %if %{gconsole} && %{su102}
1339 Requires: xsu
1340 %endif
1341 %if %{gconsole} && %{su103}
1342 Requires: xsu
1343 %endif
1344 %if %{gconsole} && %{su110}
1345 Requires: xsu
1346 %endif
1347 %if %{gconsole} && %{su111}
1348 Requires: xsu
1349 %endif
1350 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1351 Requires: usermode
1352 %endif
1353
1354 %if %{gconsole}
1355 %description gconsole
1356 %{blurb}
1357
1358 %{blurb2}
1359 %{blurb3}
1360 %{blurb4}
1361 %{blurb5}
1362 %{blurb6}
1363 %{blurb7}
1364 %{blurb8}
1365
1366 This is the Gnome Console package. It is an add-on to the client or
1367 server packages.
1368 %endif
1369
1370 %if %{wxconsole}
1371 %package wxconsole
1372 Summary: Bacula - The Network Backup Solution
1373 Group: System Environment/Daemons
1374 Requires: wxGTK >= 2.6, libstdc++, openssl
1375 %endif
1376
1377 %if %{wxconsole} && %{su10}
1378 Requires: gtk2 >= 2.8
1379 %endif
1380
1381 %if %{wxconsole} && %{su102}
1382 Requires: gtk2 >= 2.10
1383 %endif
1384
1385 %if %{wxconsole} && %{su103}
1386 Requires: gtk2 >= 2.12
1387 %endif
1388
1389 %if %{wxconsole} && %{su110}
1390 Requires: gtk2 >= 2.12
1391 %endif
1392
1393 %if %{wxconsole} && %{su111}
1394 Requires: gtk2 >= 2.14
1395 %endif
1396
1397 %if %{wxconsole} && %{fc3}  
1398 Requires: gtk2 >= 2.4
1399 %endif
1400
1401 %if %{wxconsole} && %{fc4}  
1402 Requires: gtk2 >= 2.6
1403 %endif
1404
1405 %if %{wxconsole} && %{fc5}  
1406 Requires: gtk2 >= 2.8
1407 %endif
1408
1409 %if %{wxconsole} && %{fc6}  
1410 Requires: gtk2 >= 2.10
1411 %endif
1412
1413 %if %{wxconsole} && %{fc7}  
1414 Requires: gtk2 >= 2.10
1415 %endif
1416
1417 %if %{wxconsole} && %{fc8}  
1418 Requires: gtk2 >= 2.12
1419 %endif
1420
1421 %if %{wxconsole} && %{fc9}  
1422 Requires: gtk2 >= 2.12
1423 %endif
1424
1425 %if %{wxconsole}
1426 %description wxconsole
1427 %{blurb}
1428
1429 %{blurb2}
1430 %{blurb3}
1431 %{blurb4}
1432 %{blurb5}
1433 %{blurb6}
1434 %{blurb7}
1435 %{blurb8}
1436
1437 This is the WXWindows Console package. It is an add-on to the client or
1438 server packages.
1439 %endif
1440
1441 %if %{bat}
1442 %package bat
1443 Summary: Bacula - The Network Backup Solution
1444 Group: System Environment/Daemons
1445 %endif
1446
1447 %if %{bat} && %{su10}
1448 Requires: openssl
1449 Requires: glibc >= 2.4
1450 Requires: fontconfig
1451 Requires: freetype2
1452 Requires: libgcc
1453 Requires: libpng
1454 Requires: qt >= 4.2
1455 Requires: libstdc++
1456 Requires: zlib
1457 %endif
1458
1459 %if %{bat} && %{su102}
1460 Requires: openssl
1461 Requires: glibc >= 2.5
1462 Requires: fontconfig
1463 Requires: freetype2
1464 Requires: libgcc
1465 Requires: libpng
1466 Requires: qt >= 4.2
1467 Requires: libstdc++
1468 Requires: zlib
1469 %endif
1470
1471 %if %{bat} && %{su103}
1472 Requires: openssl
1473 Requires: glibc >= 2.6
1474 Requires: fontconfig
1475 Requires: freetype2
1476 Requires: libgcc
1477 Requires: libpng
1478 Requires: qt >= 4.2
1479 Requires: libstdc++
1480 Requires: zlib
1481 %endif
1482
1483 %if %{bat} && %{su110}
1484 Requires: openssl
1485 Requires: glibc >= 2.8
1486 Requires: fontconfig
1487 Requires: freetype2
1488 Requires: libgcc
1489 Requires: libpng
1490 Requires: qt >= 4.2
1491 Requires: libstdc++
1492 Requires: zlib
1493 %endif
1494
1495 %if %{bat} && %{su111}
1496 Requires: openssl
1497 Requires: glibc >= 2.9
1498 Requires: fontconfig
1499 Requires: freetype2
1500 Requires: libgcc
1501 Requires: libpng
1502 Requires: qt >= 4.2
1503 Requires: libstdc++
1504 Requires: zlib
1505 %endif
1506
1507 %if %{bat} && %{fc5}
1508 Requires: openssl
1509 Requires: glibc >= 2.4
1510 Requires: fontconfig
1511 Requires: freetype
1512 Requires: libgcc
1513 Requires: libpng
1514 Requires: qt4 >= 4.2
1515 Requires: libstdc++
1516 Requires: zlib
1517 %endif
1518
1519 %if %{bat} && %{fc6}
1520 Requires: openssl
1521 Requires: glibc >= 2.5
1522 Requires: fontconfig
1523 Requires: freetype
1524 Requires: libgcc
1525 Requires: libpng
1526 Requires: qt4 >= 4.2
1527 Requires: libstdc++
1528 Requires: zlib
1529 %endif
1530
1531 %if %{bat} && %{fc7}
1532 Requires: openssl
1533 Requires: glibc >= 2.5
1534 Requires: fontconfig
1535 Requires: freetype
1536 Requires: libgcc
1537 Requires: libpng
1538 Requires: qt4 >= 4.2
1539 Requires: libstdc++
1540 Requires: zlib
1541 %endif
1542
1543 %if %{bat} && %{fc8}
1544 Requires: openssl
1545 Requires: glibc >= 2.7
1546 Requires: fontconfig
1547 Requires: freetype
1548 Requires: libgcc
1549 Requires: libpng
1550 Requires: qt4 >= 4.2
1551 Requires: libstdc++
1552 Requires: zlib
1553 %endif
1554
1555 %if %{bat} && %{fc9}
1556 Requires: openssl
1557 Requires: glibc >= 2.8
1558 Requires: fontconfig
1559 Requires: freetype
1560 Requires: libgcc
1561 Requires: libpng
1562 Requires: qt4 >= 4.3
1563 Requires: libstdc++
1564 Requires: zlib
1565 %endif
1566
1567 %if %{bat}
1568 %description bat
1569 %{blurb}
1570
1571 %{blurb2}
1572 %{blurb3}
1573 %{blurb4}
1574 %{blurb5}
1575 %{blurb6}
1576 %{blurb7}
1577 %{blurb8}
1578
1579 This is the Bacula Administration Tool package. It is an add-on to 
1580 the client or server packages.
1581 %endif
1582
1583 # SuSE turns off stripping of binaries by default. In order to get
1584 # stripped packages we must generate debug package. RedHat and Mandriva
1585 # turn debug packages on by default but strip binaries regardless.
1586 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1587 %debug_package
1588 %endif
1589
1590 %prep
1591
1592 %setup
1593 %setup -T -D -b 1
1594 %setup -T -D -b 2
1595 %setup -T -D -b 3
1596 %setup -T -D -b 4
1597
1598 %build
1599
1600 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1601 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
1602 %endif
1603
1604 %if %{bat}
1605 export QTDIR=$(pkg-config --variable=prefix QtCore)
1606 export QTINC=$(pkg-config --variable=includedir QtCore)
1607 export QTLIB=$(pkg-config --variable=libdir QtCore)
1608 export PATH=${QTDIR}/bin/:${PATH}
1609 %endif
1610
1611 cwd=${PWD}
1612 cd %{depkgs}
1613 %if %{sqlite}
1614 make sqlite3
1615 %endif
1616 %if ! %{client_only} && %{mtx}
1617 make mtx
1618 %endif
1619 %if %{bat}
1620 make qwt
1621 %endif
1622 cd ${cwd}
1623
1624 %if %{wb3} || %{old_pgsql}
1625 patch -p3 src/cats/postgresql.c < %SOURCE5
1626 %endif
1627
1628 # patches for the bundled sqlite scripts
1629
1630 # patch the make_sqlite_tables script for installation bindir
1631 #patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
1632 patch src/cats/make_sqlite3_tables.in src/cats/make_sqlite3_tables.in.patch
1633
1634 # patch the create_sqlite_database script for installation bindir
1635 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
1636 patch src/cats/create_sqlite3_database.in src/cats/create_sqlite3_database.in.patch
1637
1638 # patch the make_catalog_backup script for installation bindir
1639 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
1640
1641 # patch the update_sqlite_tables script for installation bindir
1642 #patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
1643 patch src/cats/update_sqlite3_tables.in src/cats/update_sqlite3_tables.in.patch
1644
1645 # patch the bacula-dir init script to remove sqlite service
1646 %if %{sqlite} && %{su9}
1647 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1648 %endif
1649 %if %{sqlite} && %{su10}
1650 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1651 %endif
1652 %if %{sqlite} && %{su102}
1653 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1654 %endif
1655 %if %{sqlite} && %{su103}
1656 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1657 %endif
1658 %if %{sqlite} && %{su110}
1659 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1660 %endif
1661 %if %{sqlite} && %{su111}
1662 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1663 %endif
1664
1665 # 64 bit lib location hacks
1666 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
1667 # reported to be fixed to properly detect lib locations.
1668 %if %{x86_64}
1669 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
1670 %endif
1671 %if %{mysql} && %{x86_64}
1672 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
1673 %endif
1674 %if %{python} && %{x86_64}
1675 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
1676 %endif
1677
1678 # Red Hat's 64 bit installation of QT4 appears to be broken so:
1679 %define qt_path 0
1680 %if %{rhel5} || %{centos5} || %{sl5}
1681 %define qt_path 1
1682 %endif
1683 %if %{bat} && %{qt_path} && %{x86_64}
1684 export PATH=/usr/lib64/qt4/bin/:$PATH
1685 export QTDIR=/usr/lib64/qt4/
1686 export QTINC=/usr/lib64/qt4/include/
1687 export QTLIB=/usr/lib64/qt4/
1688 %endif
1689
1690 %if %{rescue}
1691 %configure \
1692         --prefix=%{_prefix} \
1693         --sbindir=%{_sbindir} \
1694         --sysconfdir=%{sysconf_dir} \
1695         --with-scriptdir=%{script_dir} \
1696         --with-working-dir=%{working_dir} \
1697         --with-pid-dir=%{pid_dir} \
1698         --enable-smartalloc \
1699         --enable-client-only \
1700         %if %{mdk}
1701         --disable-nls \
1702         %endif
1703         --enable-static-fd
1704
1705 make
1706 %endif
1707
1708 %configure \
1709         --prefix=%{_prefix} \
1710         --sbindir=%{_sbindir} \
1711         --sysconfdir=%{sysconf_dir} \
1712         --with-scriptdir=%{script_dir} \
1713         --with-working-dir=%{working_dir} \
1714         --with-pid-dir=%{pid_dir} \
1715         --enable-smartalloc \
1716 %if %{gconsole}
1717         --enable-gnome \
1718 %endif
1719 %if %{gconsole} && ! %{rh8}
1720         --enable-tray-monitor \
1721 %endif
1722 %if %{mysql}
1723         --with-mysql \
1724 %endif
1725 %if %{sqlite}
1726         --with-sqlite3=${cwd}/%{depkgs}/sqlite3 \
1727 %endif
1728 %if %{postgresql}
1729         --with-postgresql \
1730 %endif
1731 %if %{wxconsole}
1732         --enable-bwx-console \
1733 %endif
1734 %if %{bat}
1735         --enable-bat \
1736         --with-qwt=${cwd}/%{depkgs}/qwt \
1737 %endif
1738 %if %{python}
1739         --with-python \
1740 %endif
1741 %if %{client_only}
1742         --enable-client-only \
1743 %endif
1744 %if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{fc3} || %{wb3} 
1745         --disable-batch-insert \
1746 %endif
1747         --mandir=%{_mandir} \
1748         --with-plugindir=%{script_dir} \
1749         --with-subsys-dir=%{_subsysdir} \
1750         --with-dir-user=%{director_daemon_user} \
1751         --with-dir-group=%{daemon_group} \
1752         --with-sd-user=%{storage_daemon_user} \
1753         --with-sd-group=%{storage_daemon_group} \
1754         --with-fd-user=%{file_daemon_user} \
1755         --with-fd-group=%{daemon_group} \
1756         --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1757         --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1758         --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1759         --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1760         --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1761         --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1762         --with-openssl
1763
1764 make
1765
1766 %install
1767  
1768 cwd=${PWD}
1769 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1770 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1771 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1772 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1773 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1774 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1775 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1776
1777 %if %{gconsole} || %{wxconsole} || %{bat}
1778 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1779 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1780 %endif
1781
1782 %if %{gconsole} || %{wxconsole} || %{bat}
1783 %define usermode_iftrick 1
1784 %else
1785 %define usermode_iftrick 0
1786 %endif
1787
1788 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1789 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1790 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1791 mkdir -p $RPM_BUILD_ROOT/usr/bin
1792 %endif
1793
1794 %if %{sqlite}
1795 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1796 %endif
1797
1798 make DESTDIR=$RPM_BUILD_ROOT install
1799
1800 %if ! %{client_only} && %{mtx}
1801 cd %{depkgs}
1802 make \
1803         prefix=$RPM_BUILD_ROOT%{_prefix} \
1804         sbindir=$RPM_BUILD_ROOT%{_sbindir} \
1805         sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1806         scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1807         working_dir=$RPM_BUILD_ROOT%{working_dir} \
1808         piddir=$RPM_BUILD_ROOT%{pid_dir} \
1809         mandir=$RPM_BUILD_ROOT%{_mandir} \
1810         mtx-install
1811 cd ${cwd}
1812 %endif
1813
1814 # make install in manpages installs _everything_ shotgun style
1815 # so now delete what we will not be packaging
1816 %if ! %{wxconsole}
1817 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
1818 %endif
1819 %if ! %{bat}
1820 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bat.1.%{manpage_ext}
1821 %endif
1822 %if ! %{gconsole}
1823 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
1824 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1825 %endif
1826 %if %{client_only}
1827 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.%{manpage_ext}
1828 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1829 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1830 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.%{manpage_ext}
1831 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.%{manpage_ext}
1832 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.%{manpage_ext}
1833 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.%{manpage_ext}
1834 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.%{manpage_ext}
1835 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.%{manpage_ext}
1836 %endif
1837
1838 # fixme - make installs the mysql scripts for sqlite build
1839 %if %{sqlite}
1840 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1841 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1842 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1843 %endif
1844
1845 # fixme - make installs the mysql scripts for postgresql build
1846 %if %{postgresql}
1847 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1848 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1849 %endif
1850
1851 # fixme - make installs gconsole script for build without gconsole
1852 %if ! %{gconsole}
1853 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1854 %endif
1855
1856 rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd
1857
1858 # install the init scripts
1859 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1860 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1861 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1862 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1863 %endif
1864 %if %{mdk}
1865 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1866 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1867 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1868 %endif
1869 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk}
1870 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1871 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1872 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1873 %endif
1874 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1875 %if %{client_only}
1876 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1877 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1878 %endif
1879
1880 # install the menu stuff
1881 %if %{gconsole} && %{su9}
1882 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1883 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1884 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1885 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1886 %endif
1887 %if %{gconsole} && %{su10}
1888 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1889 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1890 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1891 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1892 %endif
1893 %if %{gconsole} && %{su102}
1894 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1895 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1896 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1897 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1898 %endif
1899 %if %{gconsole} && %{su103}
1900 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1901 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1902 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1903 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1904 %endif
1905 %if %{gconsole} && %{su110}
1906 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1907 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1908 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1909 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1910 %endif
1911 %if %{gconsole} && %{su111}
1912 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1913 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1914 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1915 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1916 %endif
1917 %if %{wxconsole} && %{su10}
1918 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1919 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1920 %endif
1921 %if %{wxconsole} && %{su102}
1922 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1923 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1924 %endif
1925 %if %{wxconsole} && %{su103}
1926 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1927 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1928 %endif
1929 %if %{wxconsole} && %{su110}
1930 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1931 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1932 %endif
1933 %if %{wxconsole} && %{su111}
1934 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1935 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1936 %endif
1937 %if %{bat} && %{su102}
1938 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1939 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1940 %endif
1941 %if %{bat} && %{su103}
1942 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1943 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1944 %endif
1945 %if %{bat} && %{su110}
1946 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1947 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1948 %endif
1949 %if %{bat} && %{su111}
1950 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1951 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1952 %endif
1953 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{fc6} || %{fc7} || %{fc8} || %{fc9} || %{mdk}
1954 %define iftrick 1
1955 %else
1956 %define iftrick 0
1957 %endif
1958 %if %{gconsole} && %{iftrick}
1959 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1960 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1961 cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console
1962 cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console
1963 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bgnome-console
1964 %endif
1965 %if %{gconsole} && ! %{rh8}
1966 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1967 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1968 %endif
1969 %if %{wxconsole} && %{iftrick}
1970 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1971 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1972 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bwx-console
1973 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console
1974 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bwx-console
1975 %endif
1976 %if %{bat} && %{iftrick}
1977 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1978 cp -p scripts/bat.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1979 cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat
1980 cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat
1981 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bat
1982 %endif
1983
1984 # install sqlite
1985 %if %{sqlite}
1986 cp -p %{depkgs}/sqlite3/sqlite3 $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3
1987 cp -p %{depkgs}/sqlite3/sqlite3.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3.h
1988 cp -p %{depkgs}/sqlite3/libsqlite3.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite3.a
1989 %endif
1990
1991 # install the logrotate file
1992 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1993
1994 # install the updatedb scripts
1995 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
1996
1997 # install the logwatch scripts
1998 %if ! %{client_only}
1999 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
2000 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
2001 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
2002 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
2003 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
2004 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
2005 %endif
2006
2007 # install the rescue files
2008 %if %{rescue}
2009 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
2010 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
2011 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
2012 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/
2013 cp -p %{_rescuesrc}/freebsd/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd/
2014 cp -p %{_rescuesrc}/solaris/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/solaris/
2015 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT%{script_dir}/rescue/
2016 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT%{script_dir}/rescue/
2017 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT%{script_dir}/rescue/
2018 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT%{script_dir}/rescue/
2019 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT%{script_dir}/rescue/
2020 cp -pr %{_rescuesrc}/knoppix $RPM_BUILD_ROOT%{script_dir}/rescue/
2021 touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
2022 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
2023 rm -f src/filed/static-bacula-fd
2024 %endif
2025
2026 # remove the docs installed by make
2027 %if ! %{single_dir}
2028 rm -rf $RPM_BUILD_ROOT/usr/share/doc
2029 %endif
2030
2031 # install docs for single dir installation
2032 %if %{single_dir}
2033 mkdir $RPM_BUILD_ROOT%{_prefix}/doc
2034 cp COPYING $RPM_BUILD_ROOT%{_prefix}/doc/
2035 cp ChangeLog $RPM_BUILD_ROOT%{_prefix}/doc/
2036 cp ReleaseNotes $RPM_BUILD_ROOT%{_prefix}/doc/
2037 cp VERIFYING $RPM_BUILD_ROOT%{_prefix}/doc/
2038 cp LICENSE $RPM_BUILD_ROOT%{_prefix}/doc/
2039 cp kernstodo $RPM_BUILD_ROOT%{_prefix}/doc/
2040 cp -r %{_docsrc}/manuals/en/catalog/catalog $RPM_BUILD_ROOT%{_prefix}/doc/
2041 cp %{_docsrc}/manuals/en/catalog/catalog.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2042 cp -r %{_docsrc}/manuals/en/concepts/concepts $RPM_BUILD_ROOT%{_prefix}/doc/
2043 cp %{_docsrc}/manuals/en/concepts/concepts.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2044 cp -r %{_docsrc}/manuals/en/console/console $RPM_BUILD_ROOT%{_prefix}/doc/
2045 cp %{_docsrc}/manuals/en/console/console.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2046 cp -r %{_docsrc}/manuals/en/developers/developers $RPM_BUILD_ROOT%{_prefix}/doc/
2047 cp %{_docsrc}/manuals/en/developers/developers.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2048 cp -r %{_docsrc}/manuals/en/install/install $RPM_BUILD_ROOT%{_prefix}/doc/
2049 cp %{_docsrc}/manuals/en/install/install.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2050 cp -r %{_docsrc}/manuals/en/problems/problems $RPM_BUILD_ROOT%{_prefix}/doc/
2051 cp %{_docsrc}/manuals/en/problems/problems.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2052 cp -r %{_docsrc}/manuals/en/utility/utility $RPM_BUILD_ROOT%{_prefix}/doc/
2053 cp %{_docsrc}/manuals/en/utility/utility.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2054 cp ../Release_Notes-%{version}-%{release}.txt $RPM_BUILD_ROOT%{_prefix}/doc/
2055 %endif
2056
2057 # now clean up permissions that are left broken by the install
2058 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
2059 %if %{gconsole} && ! %{rh8}
2060 chmod 755 $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor
2061 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
2062 %endif
2063
2064 # fix me - building enable-client-only installs files not included in bacula-client package
2065 %if %{client_only}
2066 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
2067 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
2068 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
2069 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
2070 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
2071 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
2072 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
2073 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
2074 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
2075 rm -f $RPM_BUILD_ROOT%{script_dir}/bconsole
2076 rm -f $RPM_BUILD_ROOT%{script_dir}/bpipe-fd.so
2077 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer.conf
2078 rm -f $RPM_BUILD_ROOT%{_sbindir}/bacula
2079 %endif
2080
2081 %clean
2082 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
2083 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
2084 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
2085 rm -rf $RPM_BUILD_DIR/depkgs
2086 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
2087
2088 %if %{mysql}
2089 # MySQL specific files
2090 %files mysql
2091 %defattr(-, root, root)
2092 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
2093 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
2094 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
2095 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
2096 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
2097 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
2098 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
2099 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
2100 %endif
2101
2102 %if %{sqlite}
2103 %files sqlite
2104 %defattr(-,root,root)
2105 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite3_database
2106 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_database
2107 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite3_privileges
2108 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite3_tables
2109 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_tables
2110 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite3_tables
2111 %{sqlite_bindir}/libsqlite3.a
2112 %{sqlite_bindir}/sqlite3.h
2113 %{sqlite_bindir}/sqlite3
2114 %endif
2115
2116 %if %{postgresql}
2117 %files postgresql
2118 %defattr(-,root,root)
2119 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
2120 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
2121 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
2122 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
2123 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
2124 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
2125 %endif
2126
2127 # The rest is DB backend independent
2128 %if ! %{client_only}
2129 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2130 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
2131 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
2132 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
2133 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
2134 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
2135 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
2136 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
2137 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
2138 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
2139 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
2140 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2141 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2142 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
2143 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
2144 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
2145 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
2146 %attr(-, root, %{daemon_group}) %{script_dir}/bpipe-fd.so
2147 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
2148 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
2149 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
2150 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
2151 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
2152 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer.conf
2153
2154 /etc/logrotate.d/bacula
2155 /etc/log.d/scripts/services/bacula
2156 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
2157 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2158 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
2159 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2160 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
2161 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
2162 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
2163
2164 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
2165
2166 %{_sbindir}/bacula-dir
2167 %{_sbindir}/bacula-fd
2168 %{_sbindir}/bacula-sd
2169 %{_sbindir}/bacula
2170 %{_sbindir}/bcopy
2171 %{_sbindir}/bextract
2172 %{_sbindir}/bls
2173 %{_sbindir}/bscan
2174 %{_sbindir}/btape
2175 %{_sbindir}/btraceback
2176 %{_sbindir}/bconsole
2177 %{_sbindir}/dbcheck
2178 %{_sbindir}/bsmtp
2179 %{_sbindir}/bregex
2180 %{_sbindir}/bwild
2181 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2182 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
2183 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
2184 %{_mandir}/man8/bacula.8.%{manpage_ext}
2185 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2186 %{_mandir}/man8/bcopy.8.%{manpage_ext}
2187 %{_mandir}/man8/bextract.8.%{manpage_ext}
2188 %{_mandir}/man8/bls.8.%{manpage_ext}
2189 %{_mandir}/man8/bscan.8.%{manpage_ext}
2190 %{_mandir}/man8/btape.8.%{manpage_ext}
2191 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2192 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
2193 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
2194 %{_libdir}/libbac*
2195
2196 %endif
2197
2198 %if ! %{client_only} && %{rescue}
2199 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2200 %endif
2201
2202 %if ! %{client_only} && ! %{single_dir}
2203 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2204 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2205 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2206 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2207 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2208 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2209 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2210 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2211 %endif
2212
2213 %if ! %{client_only} && %{single_dir}
2214 %{_prefix}/doc
2215 %endif
2216
2217 %if %{mysql}
2218 %pre mysql
2219 # test for bacula database older than version 10
2220 # note: this ASSUMES no password has been set for bacula database
2221 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2222 %endif
2223
2224 %if %{sqlite}
2225 %pre sqlite
2226 # are we upgrading from sqlite to sqlite3?
2227 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
2228         echo "This version of bacula-sqlite involves an upgrade to sqlite3."
2229         echo "Your catalog database file is not compatible with sqlite3, thus"
2230         echo "you will need to dump the data, delete the old file, and re-run"
2231         echo "this rpm upgrade."
2232         echo ""
2233         echo "Backing up your current database..."
2234         echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db > %{working_dir}/bacula_backup.sql
2235         mv %{working_dir}/bacula.db %{working_dir}/bacula.db.old
2236         echo "Your catalog data has been saved in %{working_dir}/bacula_backup.sql and your"
2237         echo "catalog file has been renamed %{working_dir}/bacula.db.old."
2238         echo ""
2239         echo "Please re-run this rpm package upgrade."
2240         echo "After the upgrade is complete, restore your catalog"
2241         echo "with the following commands:"
2242         echo "%{script_dir}/drop_sqlite3_tables"
2243         echo "cd %{working_dir}"
2244         echo "%{sqlite_bindir}/sqlite3 $* bacula.db < bacula_backup.sql"
2245         echo "chown bacula.bacula bacula.db"
2246         exit 1
2247 fi
2248 # test for bacula database older than version 10 and sqlite3
2249 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite3 ];then
2250         DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2251 %endif
2252
2253 %if %{postgresql}
2254 %pre postgresql
2255 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2256 %endif
2257
2258 %if ! %{client_only}
2259 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "10" ]; then
2260         echo "This bacula upgrade will update a bacula database from version 10 to 11."
2261         echo "You appear to be running database version $DB_VER. You must first update"
2262         echo "your database to version 10 and then install this upgrade. The alternative"
2263         echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
2264         echo "catalog information, then do the upgrade. Information on updating a"
2265         echo "database older than version 10 can be found in the release notes."
2266         exit 1
2267 fi
2268 %endif
2269
2270 %if %{sqlite}
2271 fi
2272 %endif
2273
2274 %if ! %{client_only}
2275 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
2276 if [ -s %{sysconf_dir}/console.conf ];then
2277         cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
2278 fi
2279
2280 # create the daemon users and groups
2281 # first create the groups if they don't exist
2282 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2283 if [ -z "$HAVE_BACULA" ]; then
2284         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2285         echo "The group %{daemon_group} has been added to %{group_file}."
2286         echo "See the manual chapter \"Running Bacula\" for details."
2287 fi
2288 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
2289 if [ -z "$HAVE_BACULA" ]; then
2290         %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
2291         echo "The group %{storage_daemon_group} has been added to %{group_file}."
2292         echo "See the manual chapter \"Running Bacula\" for details."
2293 fi
2294 # now create the users if they do not exist
2295 # we do not use the -g option allowing the primary group to be set to system default
2296 # this will be a unique group on redhat type systems or the group users on some systems
2297 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
2298 if [ -z "$HAVE_BACULA" ]; then
2299         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
2300         echo "The user %{storage_daemon_user} has been added to %{user_file}."
2301         echo "See the manual chapter \"Running Bacula\" for details."
2302 fi
2303 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
2304 if [ -z "$HAVE_BACULA" ]; then
2305         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
2306         echo "The user %{director_daemon_user} has been added to %{user_file}."
2307         echo "See the manual chapter \"Running Bacula\" for details."
2308 fi
2309 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2310 if [ -z "$HAVE_BACULA" ]; then
2311         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2312         echo "The user %{file_daemon_user} has been added to %{user_file}."
2313         echo "See the manual chapter \"Running Bacula\" for details."
2314 fi
2315 # now we add the supplementary groups, this is ok to call even if the users already exist
2316 # we only do this if the user is NOT root
2317 IS_ROOT=%{director_daemon_user}
2318 if [ "$IS_ROOT" != "root" ]; then
2319 %{usermod} -G %{daemon_group} %{director_daemon_user}
2320 fi
2321 IS_ROOT=%{storage_daemon_user}
2322 if [ "$IS_ROOT" != "root" ]; then
2323 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
2324 fi
2325 IS_ROOT=%{file_daemon_user}
2326 if [ "$IS_ROOT" != "root" ]; then
2327 %{usermod} -G %{daemon_group} %{file_daemon_user}
2328 fi
2329 %endif
2330
2331 %if %{mysql}
2332 %post mysql
2333 %endif
2334 %if %{sqlite}
2335 %post sqlite
2336 %endif
2337 %if %{postgresql}
2338 %post postgresql
2339 %endif
2340
2341 %if ! %{client_only}
2342 # add our links
2343 if [ "$1" -ge 1 ] ; then
2344 /sbin/chkconfig --add bacula-dir
2345 /sbin/chkconfig --add bacula-fd
2346 /sbin/chkconfig --add bacula-sd
2347 fi
2348 %endif
2349
2350 %if %{mysql}
2351 # test for an existing database
2352 # note: this ASSUMES no password has been set for bacula database
2353 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2354
2355 # grant privileges and create tables if they do not exist
2356 if [ -z "$DB_VER" ]; then
2357         echo "Hmm, doesn't look like you have an existing database."
2358         echo "Granting privileges for MySQL user bacula..."
2359         %{script_dir}/grant_mysql_privileges
2360         echo "Creating MySQL bacula database..."
2361         %{script_dir}/create_mysql_database
2362         echo "Creating bacula tables..."
2363         %{script_dir}/make_mysql_tables
2364
2365 # check to see if we need to upgrade a 2.x database
2366 elif [ "$DB_VER" -lt "11" ]; then
2367         echo "This release requires an upgrade to your bacula database."
2368         echo "Backing up your current database..."
2369         mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2370         echo "Upgrading bacula database ..."
2371         %{script_dir}/update_mysql_tables
2372         echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2373
2374 fi
2375 %endif
2376
2377 %if %{sqlite}
2378 # test for an existing database
2379 if [ -s %{working_dir}/bacula.db ]; then
2380         DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2381         # check to see if we need to upgrade a 2.x database
2382         if [ "$DB_VER" -lt "11" ] && [ "$DB_VER" -ge "10" ]; then
2383                 echo "This release requires an upgrade to your bacula database."
2384                 echo "Backing up your current database..."
2385                 echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2386                 echo "Upgrading bacula database ..."
2387                 %{script_dir}/update_sqlite3_tables
2388                 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2389         fi
2390 else
2391         # create the database and tables
2392         echo "Hmm, doesn't look like you have an existing database."
2393         echo "Creating SQLite database..."
2394         %{script_dir}/create_sqlite3_database
2395         chown %{director_daemon_user}.%{daemon_group} %{working_dir}/bacula.db
2396         echo "Creating the SQLite tables..."
2397         %{script_dir}/make_sqlite3_tables
2398 fi
2399 %endif
2400
2401 %if %{postgresql}
2402 # test for an existing database
2403 # note: this ASSUMES no password has been set for bacula database
2404 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2405
2406 # grant privileges and create tables if they do not exist
2407 if [ -z "$DB_VER" ]; then
2408         echo "Hmm, doesn't look like you have an existing database."
2409         echo "Creating PostgreSQL bacula database..."
2410         %{script_dir}/create_postgresql_database
2411         echo "Creating bacula tables..."
2412         %{script_dir}/make_postgresql_tables
2413         echo "Granting privileges for PostgreSQL user bacula..."
2414         %{script_dir}/grant_postgresql_privileges
2415
2416 # check to see if we need to upgrade a 2.x database
2417 elif [ "$DB_VER" -lt "11" ]; then
2418         echo "This release requires an upgrade to your bacula database."
2419         echo "Backing up your current database..."
2420         pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2421         echo "Upgrading bacula database ..."
2422         %{script_dir}/update_postgresql_tables
2423         echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2424         
2425 fi
2426 %endif
2427
2428 %if ! %{client_only}
2429 # generate passwords if needed
2430 if [ -d %{sysconf_dir} ]; then
2431         cd %{sysconf_dir}
2432         for file in *.conf; do
2433                 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
2434                         need_password=`grep $string $file 2>/dev/null`
2435                         if [ -n "$need_password" ]; then
2436                                 pass=`openssl rand -base64 33`
2437                                 sed "s-$string-$pass-g" $file > $file.new
2438                                 cp -f $file.new $file; rm -f $file.new
2439                         fi
2440                 done
2441         done
2442 fi
2443 %endif
2444
2445 /sbin/ldconfig
2446
2447 %if %{mysql}
2448 %preun mysql
2449 %endif
2450 %if %{sqlite}
2451 %preun sqlite
2452 %endif
2453 %if %{postgresql}
2454 %preun postgresql
2455 %endif
2456
2457 %if ! %{client_only}
2458 # delete our links
2459 if [ $1 = 0 ]; then
2460   /sbin/chkconfig --del bacula-dir
2461   /sbin/chkconfig --del bacula-fd
2462   /sbin/chkconfig --del bacula-sd
2463 fi
2464 %endif
2465
2466 %if %{mysql}
2467 %postun mysql
2468 %endif
2469 %if %{sqlite}
2470 %endif
2471 %if %{postgresql}
2472 %postun postgresql
2473 %endif
2474
2475 /sbin/ldconfig
2476
2477 %if ! %{client_only} && %{mtx}
2478 %files mtx
2479 %defattr(-,root,root)
2480 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
2481 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
2482 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
2483 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
2484 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
2485 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
2486 %{_mandir}/man1/mtx.1.%{manpage_ext}
2487 %{_mandir}/man1/scsitape.1.%{manpage_ext}
2488 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
2489 %{_mandir}/man1/scsieject.1.%{manpage_ext}
2490 %endif
2491
2492 %files client
2493 %defattr(-,root,root)
2494 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2495 %{script_dir}/bacula-ctl-fd
2496 /etc/init.d/bacula-fd
2497 %if %{rescue}
2498 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2499 %endif
2500
2501 %if ! %{single_dir}
2502 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2503 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2504 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2505 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2506 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2507 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2508 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2509 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2510 %else
2511 %{_prefix}/doc
2512 %endif
2513
2514 /etc/logrotate.d/bacula
2515
2516 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2517 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2518
2519 %attr(-, root, %{daemon_group}) %dir %{working_dir}
2520
2521 %{_sbindir}/bacula-fd
2522 %{_sbindir}/btraceback
2523 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2524 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2525 %{_sbindir}/bconsole
2526 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2527 %{_mandir}/man8/bacula.8.%{manpage_ext}
2528 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2529 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2530 %{_libdir}/libbac.*
2531 %{_libdir}/libbaccfg.*
2532 %{_libdir}/libbacfind.*
2533 %{_libdir}/libbacpy.*
2534
2535
2536 %pre client
2537 # create the daemon group and user
2538 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2539 if [ -z "$HAVE_BACULA" ]; then
2540         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2541         echo "The group %{daemon_group} has been added to %{group_file}."
2542         echo "See the manual chapter \"Running Bacula\" for details."
2543 fi
2544 # we do not use the -g option allowing the primary group to be set to system default
2545 # this will be a unique group on redhat type systems or the group users on some systems
2546 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2547 if [ -z "$HAVE_BACULA" ]; then
2548         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2549         echo "The user %{file_daemon_user} has been added to %{user_file}."
2550         echo "See the manual chapter \"Running Bacula\" for details."
2551 fi
2552 # now we add the supplementary group, this is ok to call even if the user already exists
2553 # we only do this if the user is NOT root
2554 IS_ROOT=%{file_daemon_user}
2555 if [ "$IS_ROOT" != "root" ]; then
2556 %{usermod} -G %{daemon_group} %{file_daemon_user}
2557 fi
2558
2559 %post client
2560 # add our link
2561 if [ "$1" -ge 1 ] ; then
2562 /sbin/chkconfig --add bacula-fd
2563 fi
2564
2565 # generate passwords if needed
2566 if [ -d %{sysconf_dir} ]; then
2567         cd %{sysconf_dir}
2568         for file in *.conf; do
2569                 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
2570                         need_password=`grep $string $file 2>/dev/null`
2571                         if [ -n "$need_password" ]; then
2572                                 pass=`openssl rand -base64 33`
2573                                 sed "s-$string-$pass-g" $file > $file.new
2574                                 cp -f $file.new $file; rm -f $file.new
2575                         fi
2576                 done
2577         done
2578 fi
2579
2580 /sbin/ldconfig
2581
2582 %preun client
2583 # delete our link
2584 if [ $1 = 0 ]; then
2585 /sbin/chkconfig --del bacula-fd
2586 fi
2587
2588 %postun client
2589 /sbin/ldconfig
2590
2591 %if ! %{client_only}
2592 %files updatedb
2593 %defattr(-,root,%{daemon_group})
2594 %{script_dir}/updatedb/*
2595
2596 %pre updatedb
2597 # create the daemon group
2598 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2599 if [ -z "$HAVE_BACULA" ]; then
2600         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2601         echo "The group %{daemon_group} has been added to %{group_file}."
2602         echo "See the manual chapter \"Running Bacula\" for details."
2603 fi
2604
2605 %post updatedb
2606 echo "The database update scripts were installed to %{script_dir}/updatedb"
2607 %endif
2608
2609 %if %{gconsole}
2610 %files gconsole
2611 %defattr(-,root,root)
2612 %{_sbindir}/bgnome-console
2613 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2614 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
2615 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bgnome-console.conf
2616 /usr/share/pixmaps/bacula.png
2617 /usr/share/applications/bacula.desktop
2618 %{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
2619 %endif
2620
2621 %if %{gconsole} && ! %{rh8}
2622 %{_sbindir}/bacula-tray-monitor
2623 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
2624 /usr/share/pixmaps/bacula-tray-monitor.xpm
2625 /usr/share/applications/bacula-tray-monitor.desktop
2626 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
2627 %endif
2628
2629 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2630 # add the console helper files
2631 %config(noreplace,missingok) /etc/pam.d/bgnome-console
2632 %config(noreplace,missingok) /etc/security/console.apps/bgnome-console
2633 /usr/bin/bgnome-console
2634 %endif
2635
2636 %if %{gconsole}
2637 %pre gconsole
2638 # create the daemon group
2639 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2640 if [ -z "$HAVE_BACULA" ]; then
2641         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2642         echo "The group %{daemon_group} has been added to %{group_file}."
2643         echo "See the manual chapter \"Running Bacula\" for details."
2644 fi
2645
2646 %post gconsole
2647 # generate passwords if needed
2648 if [ -d %{sysconf_dir} ]; then
2649         cd %{sysconf_dir}
2650         for file in *.conf; do
2651                 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
2652                         need_password=`grep $string $file 2>/dev/null`
2653                         if [ -n "$need_password" ]; then
2654                                 pass=`openssl rand -base64 33`
2655                                 sed "s-$string-$pass-g" $file > $file.new
2656                                 cp -f $file.new $file; rm -f $file.new
2657                         fi
2658                 done
2659         done
2660 fi
2661 %endif
2662
2663 %if %{wxconsole}
2664 %files wxconsole
2665 %defattr(-,root,root)
2666 %{_sbindir}/bwx-console
2667 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2668 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bwx-console.conf
2669 /usr/share/pixmaps/wxwin16x16.xpm
2670 /usr/share/applications/wxconsole.desktop
2671 %{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
2672 %endif
2673
2674 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2675 # add the console helper files
2676 %config(noreplace,missingok) /etc/pam.d/bwx-console
2677 %config(noreplace,missingok) /etc/security/console.apps/bwx-console
2678 /usr/bin/bwx-console
2679 %endif
2680
2681 %if %{wxconsole}
2682 %pre wxconsole
2683 # create the daemon group
2684 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2685 if [ -z "$HAVE_BACULA" ]; then
2686         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2687         echo "The group %{daemon_group} has been added to %{group_file}."
2688         echo "See the manual chapter \"Running Bacula\" for details."
2689 fi
2690
2691 %post wxconsole
2692 # generate passwords if needed
2693 if [ -d %{sysconf_dir} ]; then
2694         cd %{sysconf_dir}
2695         for file in *.conf; do
2696                 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
2697                         need_password=`grep $string $file 2>/dev/null`
2698                         if [ -n "$need_password" ]; then
2699                                 pass=`openssl rand -base64 33`
2700                                 sed "s-$string-$pass-g" $file > $file.new
2701                                 cp -f $file.new $file; rm -f $file.new
2702                         fi
2703                 done
2704         done
2705 fi
2706 %endif
2707
2708 %if %{bat}
2709 %files bat
2710 %defattr(-,root,root)
2711 %{_sbindir}/bat
2712 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2713 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bat.conf
2714 /usr/share/pixmaps/bat_icon.png
2715 /usr/share/applications/bat.desktop
2716 %{_mandir}/man1/bat.1.%{manpage_ext}
2717 %endif
2718
2719 %if %{bat} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2720 # add the console helper files
2721 %config(noreplace,missingok) /etc/pam.d/bat
2722 %config(noreplace,missingok) /etc/security/console.apps/bat
2723 /usr/bin/bat
2724 %endif
2725
2726 %if %{bat}
2727 %pre bat
2728 # create the daemon group
2729 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2730 if [ -z "$HAVE_BACULA" ]; then
2731         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2732         echo "The group %{daemon_group} has been added to %{group_file}."
2733         echo "See the manual chapter \"Running Bacula\" for details."
2734 fi
2735
2736 %post bat
2737 # generate passwords if needed
2738 if [ -d %{sysconf_dir} ]; then
2739         cd %{sysconf_dir}
2740         for file in *.conf; do
2741                 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
2742                         need_password=`grep $string $file 2>/dev/null`
2743                         if [ -n "$need_password" ]; then
2744                                 pass=`openssl rand -base64 33`
2745                                 sed "s-$string-$pass-g" $file > $file.new
2746                                 cp -f $file.new $file; rm -f $file.new
2747                         fi
2748                 done
2749         done
2750 fi
2751 %endif
2752
2753 %changelog
2754 * Sat Jun 20 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2755 - Fix bat install which is now handled by make and uses shared libs
2756 * Sat May 16 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2757 - fix libxml dependency for rh7 per Pasi Kärkkäinen <pasik@iki.fi>
2758 * Mon May 04 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2759 - Fix post ldconfig problem in client only build
2760 * Sun May 03 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2761 - remove more files installed by client-only build not needed by client package
2762 - remove libbacsql files from client package
2763 * Sat May 02 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2764 - 3.0.1
2765 - update for new docs configuration
2766 * Sat Apr 25 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2767 - add switch to pass Distribution tag
2768 * Sun Apr 5 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2769 - 3.0.0 release
2770 - database update version 10 to 11
2771 - make now installs docs so we rm from buildroot
2772 - add shared libs in %_libdir and other misc new files
2773 * Wed Dec 31 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2774 - add su111 target
2775 * Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2776 - set paths for QT using pkgconfig
2777 * Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2778 - release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
2779 * Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2780 - adjust /opt/bacula install
2781 - add build switch to supress rescue package
2782 * Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2783 - add support for install to /opt/bacula
2784 * Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2785 - remove libtermcap dependancy for FC9
2786 * Mon Aug 04 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2787 - fix bat dependencies
2788 * Sat Jun 28 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2789 - add su110 target
2790 * Sat May 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2791 - add fc9 target
2792 * Sun Mar 30 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2793 - FHS compatibility changes
2794 * Sat Feb 16 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2795 - remove fix for false buffer overflow detection with glibc >= 2.7
2796 * Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2797 - fix for false buffer overflow detection with glibc >= 2.7
2798 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2799 - 2.2.8 release
2800 - add debug package for SuSE
2801 * Sat Jan 12 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2802 - 2.2.8 beta release  
2803 - fix bug 1037
2804 - add fc8 target
2805 * Sun Dec 30 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2806 - fix typo on su103 client package requirements
2807 * Fri Dec 28 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2808 - add nobuild_mtx switch
2809 - add patch for postgresql.c for old postgresql versions
2810 * Sat Nov 17 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2811 - switch to sqlite3
2812 * Sun Nov 11 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2813 - add new files required by rescue makefile
2814 * Sat Nov 10 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2815 - add su103 build target
2816 * Sun Nov 04 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2817 - fix dist defines for rhel5 and clones
2818 - fix rhel broken 64 bit QT4 paths
2819 - rh qt4 packages don't provide qt so fix that too
2820 * Mon Oct 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2821 - correct ownership when creating sqlite db file in post script
2822 * Sun Sep 16 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2823 - fix disable-batch-insert
2824 * Fri Sep 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2825 - 2.2.4 release
2826 - turn off gconsole build for fc3, tray monitor fails to build
2827 - add new files for mtx package (09Sep07 depkgs update)
2828 * Sat Sep 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2829 - add --disable-batch-insert for older platforms
2830 - add build targets for rhel5 and clones
2831 * Mon Sep 03 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2832 - 2.2.1 release
2833 - turn off gconsole build for su10 & fc4, tray monitor fails to build
2834 * Sat Jul 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2835 - 2.1.26 add make of qwt in depkgs for bat
2836 * Sat Jun 02 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2837 - upgrade Qt requirement for bat to 4.2
2838 * Sun May 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2839 - add fc7 build target
2840 * Sun Apr 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2841 - 2.1.8
2842 - gnome-console now bgnome-console
2843 - wxconsole now bwx-console
2844 - add build option for bat
2845 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2846 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
2847 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
2848 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
2849 - adjust directory locations for FHS-compatibility
2850   sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
2851   working_dir (/var/lib/bacula) and pid_dir (/var/run)
2852 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2853 - add SuSE 10.2 target
2854 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2855 - correct bug 752
2856 - set query.sql as config file
2857 - correct bug 754
2858 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2859 - 2.0.1 release
2860 - change determination of gcc version per patch from Marc Hennes
2861 - move BuildRequire for atk-devel to gnome only builds
2862 - add fc6 build tag
2863 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2864 - 2.0.0 release
2865 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2866 - 1.39.26 remove create_sqlite_database.in.patch
2867 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2868 - change ownership of working_dir on server packages to bacula.bacula so that
2869 - bacula-sd can create bootstrap files
2870 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2871 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
2872 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2873 - fix manpages file extension for mdk
2874 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2875 - bug 648 re-enable and update sqlite patches
2876 - 1.39.18 changes
2877 - updatedb 9 to 10
2878 - install man pages
2879 - lock out gconsole build for gtk+ < 2.4
2880 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2881 - move pango-devel BuildRequires into gconsole only build
2882 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2883 - add provides and conflicts for standard suse packages
2884 - add third party packager tag support
2885 - add build_client_only tag
2886 - remove bsmtp from client package
2887 - add bacula-ctl-fd to client package
2888 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2889 - fix directory creation when wxconsole and not gconsole
2890 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2891 - add check to buildrequires to make sure libstdc++ version matches gcc
2892 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2893 - add python build support
2894 - fix LDFLAGS declarations
2895 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2896 - add requires for standard compiler toolchain
2897 - move version and release tags up
2898 - move patches up
2899 - add docs_version tag
2900 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2901 - update rescuever to 1.8.6
2902 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2903 - update depkgs to 25Jun06
2904 - add mysql5 build tag
2905 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2906 - 1.38.10 bump rescue version
2907 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2908 - fix usermod statements
2909 - add fc5 target
2910 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2911 - add -g param back to useradd statements Bug 605
2912 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2913 - redundant code cleanup
2914 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2915 - add wxconsole package
2916 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2917 - 1.38.8 release
2918 - dependency update for Mandriva
2919 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2920 - 1.38.7 release
2921 - remove -n option from useradd scripts
2922 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2923 - 1.38.6 release
2924 - fix problem specifying more than one primary group for user bacula
2925 - add build switch to not build gconsole regardless of platform
2926 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2927 - add centos3 build tag
2928 - fix link error of static-fd on Mandrake with --disable-nls
2929 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2930 - add fc4 dependencies
2931 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2932 - add SuSE 10.0 build
2933 - remove specific permission in attrib macros
2934 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2935 - 1.38.5 release
2936 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
2937 - refix compat for _dist on SLES9 which seems to have been removed
2938 - added note regarding Aleksandar's use of specific permissions in attrib macros
2939 - need to review and add specific fc4 build currently using fc3 Requires
2940 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2941 - 1.38.2 release
2942 - Reorganize files and pre/post sections to remove repetitions
2943 - Always build separate mtx package
2944 - Fix file ownerships for /etc/bacula and Bacula's working dir
2945 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2946 - Disable GNOME on RH7
2947 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2948 - Red Hat and look alikes have mtx RPM, do not build/package our version
2949 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2950 - minor edit to _dist for SLES9 compatibility
2951 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2952 - 1.38.0 release
2953 - kern changed location of pdf files and html manual in docs package
2954 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2955 - 1.38.0 release
2956 - add docs (from prebuilt tarball) and rescue packages back in
2957 - remove dvd-freespace and dvd-writepart files, add dvd-handler
2958 - remove 3 of 4 sqlite script patches as not needed
2959 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2960 - changes for 1.38
2961 - remove docs and rescue sections (remove static fd)
2962 - add dvd-freespace and dvd-writepart files
2963 - update depkgs to 22Jun05
2964 - change database update to 8 to 9
2965 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2966 - minor cleanups before 1.38 changes
2967 - add popt and popt-devel build dependencies
2968 - add tetex and tetex-dvips dependencies for doc build
2969 - replace deprecated Copyright tag with License
2970 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2971 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
2972 - conflict with sqlite packages. remove readline dependency.
2973 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2974 - release 1.36.3 update docs
2975 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2976 - add centos4 build tag
2977 - add x86_64 build tag
2978 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2979 - add rhel4 build tag
2980 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
2981 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2982 - add rhel3 build tag
2983 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2984 - fix tray-monitor.conf for noreplace
2985 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2986 - fix distribution check for Fedora and Whitebox
2987 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2988 - add logwatch script
2989 - add dvd scripts
2990 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2991 - add build for Fedora Core 3 (linc now included in ORDit2)
2992 - add mysql4 define for Mandrake 10.1
2993 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2994 - fix {group_file} variable in post scripts
2995 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
2996 - add distribution checking and custom Distribution tag
2997 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2998 - ASSIGNMENT OF COPYRIGHT
2999 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and 
3000 - assigns unto Kern Sibbald, his successors, assigns and personal representatives, 
3001 - all right, title and interest in and to the copyright in this software RPM
3002 - spec file. D. Scott Barninger warrants good title to said copyright, that it is 
3003 - free of all liens, encumbrances or any known claims against said copyright.
3004 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3005 - bug 183 fixes
3006 - thanks to Daniel Widyono
3007 - update description for rescue package to describe cdrom creation
3008 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3009 - update depkgs to 29Oct04
3010 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3011 - add cdrom rescue to bacula-rescue package
3012 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3013 - misc fixes from 1.36.0 suse feedback
3014 - fix situation where sqlite database exists but sqlite has been removed.
3015 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3016 - remove tray-monitor from RH8 build
3017 - fix permissions on tray-monitor files
3018 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3019 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
3020 - change database update to 7 to 8 upgrade,
3021 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
3022 - build in 30Jul04, add freetype dependancy to gnome package.
3023 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3024 - add documentation to console for groupadd
3025 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3026 - add support for running daemons as root.bacula
3027 - correct for change in location of floppy rescue files in 1.35.2
3028 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
3029 - updated depgkgs to 30Jul04
3030 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3031 - really, really fix symlink creation for gconsole
3032 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3033 - fix symlink creation in gconsole post install
3034 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3035 - fixed error in gconsole post script
3036 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3037 - add check for gconsole symlink before trying to create it
3038 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3039 - fix some minor permissions issues on doc files that CVS won't let us fix
3040 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3041 - add pkgconfig to BuildRequires
3042 - clean up gnome1/2 menu entries for appropriate packages
3043 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3044 - tightened up doc distribution
3045 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3046 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
3047 - rpm's horrible bug that prevents nested conditional macros prevents me
3048 - from implementing these 2 separate approaches within the conditionals which
3049 - create the separate server packages.
3050 - the solution adopted is to remove the gnome-console files from the server packages
3051 - so bacula-gconsole is now an add on for both client and server packages.
3052 - this also now allows the server packages to be install on machines without
3053 - an X-server and we can still maintain a single spec file.
3054 - added tests to make sure we have defined platform and database macros.
3055 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3056 - corrected mysql prerequisites for suse
3057 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3058 - replaced all cp commands with cp -p
3059 - removed addition of a+x permissions on gnome-console
3060 - corrected permissions on init scripts
3061 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3062 - corrected creation of sqlite_bindir in install from !mysql to sqlite
3063 -
3064 - various cleanup patches from Michael K. Johnson:
3065 - corrected post install routines for nicer chkconfig
3066 - removed chmod changes in post routines and moved to install section
3067 - removed interactive nature of post routine for rescue package
3068 - added description of building rescue disks to the description of rescue package
3069 - added clean of build root to beginning of install
3070 - removed specifying attr in all file lists
3071 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3072 - added bconsole to client package
3073 - added gconsole package as add-on to client
3074 - removed spurious dependancies on updatedb package (!cut/paste)
3075 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3076 - added updatedb package
3077 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3078 - added postgresql package
3079 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3080 - corrected the if else logic in the dependancy sections
3081 - changes for 1.34 release
3082 - /etc/bacula/console is now /etc/bacula/bconsole
3083 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
3084 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
3085 - /usr/sbin/smtp is now /usr/sbin/bsmtp
3086 - added new /etc/bacula/drop_mysql_database
3087 - added new /etc/bacula/drop_sqlite_database
3088 - added new /etc/bacula/grant_sqlite_privileges
3089 - added new generic bacula database scripts in /etc/bacula
3090 - added pre-install sections to check for database versions older than 6
3091 - added check for /etc/bacula/console.conf and copy to bconsole.conf
3092 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3093 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
3094 - added testing for existing databases before executing any of the database creation scripts
3095 - added defines working_dir and sqlite_bindir in place of hard coded paths
3096 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3097 - added build configuration for SuSE.
3098 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
3099 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3100 - added patch for create_sqlite_database to fix the installed bindir
3101 - added execute of create_sqlite_database to post of sqlite package
3102 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3103 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
3104 - added bacula-fd as Requires for rescue package
3105 - added build tag for Fedora Core 1
3106 - cleaned up dependancies for all builds
3107 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3108 - removed rh_version from package names
3109 - added platform build configuration section to beginning of file
3110 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3111 - removed make_static_bacula script from rescue package install
3112 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3113 - Added define at top of file for depkgs version
3114 - Added rescue sub-package
3115 - Moved requires statements into proper sub-package locations
3116 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3117 - Corrected Requires for Gnome 1.4/2.0 builds
3118 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3119 - Added separate source declaration for depkgs
3120 - added patch for make_catalog_backup script
3121 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3122 - Misc changes to mysql/sqlite build and rh7/8 menu differences
3123 - Added rh_version to sub-package names
3124 - Added installed but missing file /etc/bacula/gconsole
3125 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
3126 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
3127 - Update spec for version 1.31 and combine client
3128 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3129 - Initial spec file