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