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