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