3 # Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
5 # Platform Build Configuration
7 # basic defines for every build
10 %define _rescuever 3.0.2
11 %define docs_version 3.0.2
12 %define depkgs_version 18Feb09
13 %define depkgs_qt_version 28Jul09
14 %define _packager D. Scott Barninger <barninger@fairfieldcomputers.com>
17 %{?single_dir_install:%define single_dir 1}
19 # Installation Directory locations
21 %define _prefix /opt/bacula
22 %define _sbindir /opt/bacula/bin
23 %define _subsysdir /opt/bacula/working
24 %define sqlite_bindir /opt/bacula/sqlite
25 %define _mandir /usr/share/man
26 %define sysconf_dir /opt/bacula/etc
27 %define script_dir /opt/bacula/scripts
28 %define working_dir /opt/bacula/working
29 %define pid_dir /opt/bacula/working
30 %define plugin_dir /opt/bacula/plugins
31 %define lib_dir /opt/bacula/lib
34 %define _sbindir %_prefix/sbin
35 %define _subsysdir /var/lock/subsys
36 %define sqlite_bindir %_libdir/bacula/sqlite
37 %define _mandir %_prefix/share/man
38 %define sysconf_dir /etc/bacula
39 %define script_dir %_libdir/bacula
40 %define working_dir /var/lib/bacula
41 %define pid_dir /var/run
42 %define plugin_dir %_libdir/bacula/plugins
43 %define lib_dir %_libdir/bacula/lib
46 # Daemon user:group Don't change them unless you know what you are doing
47 %define director_daemon_user bacula
48 %define storage_daemon_user bacula
49 %define file_daemon_user root
50 %define daemon_group bacula
51 # group that has write access to tape devices, usually disk on Linux
52 %define storage_daemon_group disk
55 # probems with mandriva build:
56 # nothing provides libbonobo2_0-devel, nothing provides libbonoboui2_0-devel
58 # set Macros by opensuse_bs, see http://en.opensuse.org/Build_Service/cross_distribution_package_how_to
59 #openSUSE 11.1 %if 0%{?suse_version} == 1110
60 #openSUSE 11.0 %if 0%{?suse_version} == 1100
61 #openSUSE 10.3 %if 0%{?suse_version} == 1030
62 #openSUSE 10.2 %if 0%{?suse_version} == 1020
63 #SUSE Linux 10.1 %if 0%{?suse_version} == 1010
64 #SUSE Linux 10.0 %if 0%{?suse_version} == 1000
65 #SUSE Linux 9.3 %if 0%{?suse_version} == 930
66 #SLES 9 %if 0%{?sles_version} == 9 also set: %if 0%{?suse_version} == 910
67 #SLE 10 %if 0%{?sles_version} == 10 also set: %if 0%{?suse_version} == 1010
68 #SLE 11 %if 0%{?sles_version} == 11 also set: %if 0%{?suse_version} == 1110
69 #CentOS 5 %if 0%{?centos_version} == 501
70 #RHEL 4 %if 0%{?rhel_version} == 406
71 #RHEL 5 %if 0%{?rhel_version} == 501
72 #Fedora 6 with Extras %if 0%{?fedora_version} == 6
73 #Fedora 7 with Extras %if 0%{?fedora_version} == 7
74 #Fedora 8 with Extras %if 0%{?fedora_version} == 8
75 #Fedora 9 with Extras %if 0%{?fedora_version} == 9
76 #Fedora 10 with Extras %if 0%{?fedora_version} == 10
77 #Mandriva 2006 %if 0%{?mandriva_version} == 2006
78 #Mandriva 2007 %if 0%{?mandriva_version} == 2007
79 #Mandriva 2008 %if 0%{?mandriva_version} == 2008
83 # am I running in opensuse build service?
84 # TODO: seems to make problems
86 # choose database backend here
87 # postgres, mysql, sqlite
88 %define build_postgresql 1
90 # Build Service: Determine Distribution
93 %define build_x86_64 1
97 %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
98 BuildRequires: GConf2-devel
99 BuildRequires: freetype-devel
100 BuildRequires: libtermcap-devel
101 BuildRequires: shadow-utils
105 %if 0%{?mandriva_version} == 2007
107 %define _dist "Mandriva 2007"
111 %if 0%{?fedora_version} == 8
113 %define _dist "Fedora Core 8"
114 BuildRequires: redhat-release
117 %if 0%{?fedora_version} == 9
119 %define _dist "Fedora Core 9"
120 BuildRequires: redhat-release
124 %if 0%{?fedora_version} == 10
126 %define _dist "Fedora Core 10"
127 BuildRequires: PolicyKit-gnome
128 BuildRequires: fedora-release
131 %if 0%{?fedora_version} == 11
133 %define _dist "Fedora Core 11"
134 BuildRequires: PolicyKit-gnome
135 BuildRequires: fedora-release
138 %if 0%{?rhel_version} == 501
139 %define build_rhel5 1
140 %define _dist "Red Hat Enterprise Linux Server release 5"
141 BuildRequires: redhat-release
144 %if 0%{?rhel_version} == 406
145 %define build_rhel4 1
146 %define _dist "Red Hat Enterprise Linux Server release 4"
147 BuildRequires: redhat-release
151 %if 0%{?centos_version} == 501
152 %define build_centos5 1
153 %define _dist "CentOS 5"
154 BuildRequires: redhat-release
158 %if 0%{?suse_version} == 1020
159 %define build_su102 1
160 %define _dist "OpenSUSE 10.2"
161 BuildRequires: suse-release
165 %if 0%{?suse_version} == 1030
166 %define build_su103 1
167 %define _dist "OpenSUSE 10.3"
168 BuildRequires: suse-release
171 %if 0%{?suse_version} == 1100
172 %define build_su110 1
173 %define _dist "SUSE 11"
174 BuildRequires: suse-release
178 %if 0%{?suse_version} == 1110
179 %define build_su111 1
180 %define _dist "SUSE 11"
184 %if 0%{?sles_version} == 9
186 %define _dist "SLES 9"
190 %if 0%{?sles_version} == 10
192 %define _dist "SLE 10"
196 %if 0%{?sles_version} == 11
197 %define build_su111 1
198 %define _dist "SLES 11"
205 # any patches for this release
206 # be sure to check the setup section for patch macros
208 #--------------------------------------------------------------------------
209 # it should not be necessary to change anything below here for a release
210 # except for patch macros in the setup section
211 #--------------------------------------------------------------------------
213 %{?contrib_packager:%define _packager %{contrib_packager}}
215 Summary: Bacula - The Network Backup Solution
219 Group: System Environment/Daemons
221 BuildRoot: %{_tmppath}/%{name}-root
222 URL: http://www.bacula.org/
223 Vendor: The Bacula Team
224 Packager: %{_packager}
227 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
228 Source1: Release_Notes-%{version}-%{release}.tar.gz
229 Source2: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
230 Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
231 Source4: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
232 Source5: http://www.prdownloads.sourceforge.net/bacula/depkgs-qt-%{depkgs_qt_version}.tar.gz
233 Source6: bacula-2.2.7-postgresql.patch
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.
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
251 %define user_file /etc/passwd
252 %define group_file /etc/group
255 %define useradd /usr/sbin/useradd
256 %define groupadd /usr/sbin/groupadd
257 %define usermod /usr/sbin/usermod
259 # platform defines - set one below or define the build_xxx on the command line
262 %{?build_rh7:%define rh7 1}
264 %{?build_rh8:%define rh8 1}
266 %{?build_rh9:%define rh9 1}
269 %{?build_fc1:%define fc1 1}
271 %{?build_fc3:%define fc3 1}
273 %{?build_fc4:%define fc4 1}
275 %{?build_fc5:%define fc5 1}
277 %{?build_fc6:%define fc6 1}
279 %{?build_fc7:%define fc7 1}
281 %{?build_fc8:%define fc8 1}
283 %{?build_fc9:%define fc9 1}
284 # Whitebox Enterprise build
286 %{?build_wb3:%define wb3 1}
287 # RedHat Enterprise builds
289 %{?build_rhel3:%define rhel3 1}
290 %{?build_rhel3:%define wb3 1}
292 %{?build_rhel4:%define rhel4 1}
293 %{?build_rhel4:%define fc3 1}
295 %{?build_rhel5:%define rhel5 1}
296 %{?build_rhel5:%define fc6 1}
299 %{?build_centos3:%define centos3 1}
300 %{?build_centos3:%define wb3 1}
302 %{?build_centos4:%define centos4 1}
303 %{?build_centos4:%define fc3 1}
305 %{?build_centos5:%define centos5 1}
306 %{?build_centos5:%define fc6 1}
309 %{?build_sl3:%define sl3 1}
310 %{?build_sl3:%define wb3 1}
312 %{?build_sl4:%define sl4 1}
313 %{?build_sl4:%define fc3 1}
315 %{?build_sl5:%define sl5 1}
316 %{?build_sl5:%define fc6 1}
319 %{?build_su9:%define su9 1}
321 %{?build_su10:%define su10 1}
323 %{?build_su102:%define su102 1}
325 %{?build_su103:%define su103 1}
327 %{?build_su110:%define su110 1}
329 %{?build_su111:%define su111 1}
332 %{?build_mdk:%define mdk 1}
334 %{?build_mdv:%define mdv 1}
335 %{?build_mdv:%define mdk 1}
338 %define client_only 0
339 %{?build_client_only:%define client_only 1}
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.}
348 # set for database support desired or define the build_xxx on the command line
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
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
359 %{?build_mysql5:%define mysql5 1}
360 %{?build_mysql5:%define mysql 1}
362 %{?build_sqlite:%define sqlite 1}
364 %{?build_postgresql:%define postgresql 1}
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.}
373 %define db_backend mysql
376 %define db_backend sqlite3
379 %define db_backend postgresql
384 %{?build_x86_64:%define x86_64 1}
386 # check what distribution we are
387 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
388 %define _dist %(grep Red /etc/redhat-release)
390 %if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8} || %{fc9}
391 %define _dist %(grep Fedora /etc/redhat-release)
393 %if %{centos5} || %{centos4} || %{centos3}
394 %define _dist %(grep CentOS /etc/redhat-release)
396 %if %{sl5} ||%{sl4} || %{sl3}
397 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
399 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
400 %define _dist %(grep Fedora /etc/redhat-release)
402 %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
403 %define _dist %(grep Fedora /etc/redhat-release)
405 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
406 %define _dist %(grep White /etc/whitebox-release)
408 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
409 %define _dist %(grep -i SuSE /etc/SuSE-release)
412 %define _dist %(grep Mand /etc/mandrake-release)
414 %{?DISTNAME:%define _dist %{DISTNAME}}
415 Distribution: %{_dist}
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
423 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
426 %if %{mdk} && ! %{mdv}
430 # specifically disallow gconsole if desired
431 %{?nobuild_gconsole:%define gconsole 0}
433 # specifically disallow rescue files
435 %{?build_rescue:%define rescue 1}
437 # Should we build wxconsole, only wxWidgets >=2.6 is supported
438 # SuSE 10 and FC4 and newer
440 %{?build_wxconsole:%define wxconsole 1}
442 # Should we build bat
445 %{?build_bat:%define bat 1}
447 # should we turn on python support
449 %{?build_python:%define python 1}
451 # specifically disallow build of mtx package if desired
453 %{?nobuild_mtx:%define mtx 0}
455 # do we need to patch for old postgresql version?
457 %{?build_old_pgsql:%define old_pgsql 1}
459 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
461 %define manpage_ext bz2
463 %define manpage_ext gz
466 # for client only build
477 BuildRequires: gcc, gcc-c++, make, autoconf
478 BuildRequires: ncurses-devel, perl
479 BuildRequires: libstdc++-devel, zlib-devel
480 BuildRequires: openssl-devel
481 BuildRequires: libacl-devel
482 BuildRequires: pkgconfig
484 BuildRequires: libxml2-devel
487 BuildRequires: python, python-devel
488 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
491 BuildRequires: pkgconfig, pango-devel, atk-devel
495 BuildRequires: libtermcap-devel
496 BuildRequires: glibc-devel >= 2.2
497 BuildRequires: libxml-devel
500 BuildRequires: termcap
501 BuildRequires: glibc-devel >= 2.3
503 %if %{su9} && %{gconsole}
504 BuildRequires: libgnome >= 2.0
505 BuildRequires: gtk2-devel >= 2.0
506 BuildRequires: libgnomeui-devel >= 2.0
507 BuildRequires: ORBit2-devel
508 BuildRequires: libart_lgpl-devel >= 2.0
509 BuildRequires: libbonobo-devel >= 2.0
510 BuildRequires: libbonoboui-devel >= 2.0
511 BuildRequires: bonobo-activation-devel
512 BuildRequires: gconf2-devel
513 BuildRequires: linc-devel
514 BuildRequires: freetype2-devel
517 BuildRequires: termcap
518 BuildRequires: glibc-devel >= 2.3
520 %if %{su10} && %{gconsole}
521 BuildRequires: libgnome >= 2.12
522 BuildRequires: gtk2-devel >= 2.8
523 BuildRequires: libgnomeui-devel >= 2.12
524 BuildRequires: ORBit2-devel
525 BuildRequires: libart_lgpl-devel >= 2.3
526 BuildRequires: libbonobo-devel >= 2.10
527 BuildRequires: libbonoboui-devel >= 2.10
528 BuildRequires: bonobo-activation-devel
529 BuildRequires: gconf2-devel
530 BuildRequires: freetype2-devel
531 BuildRequires: cairo-devel
532 BuildRequires: fontconfig-devel >= 2.3
533 BuildRequires: gnome-vfs2-devel >= 2.12
534 BuildRequires: libpng-devel
537 BuildRequires: termcap
538 BuildRequires: glibc-devel >= 2.5
540 %if %{su102} && %{gconsole}
541 BuildRequires: libgnome >= 2.16
542 BuildRequires: gtk2-devel >= 2.10
543 BuildRequires: libgnomeui-devel >= 2.16
544 BuildRequires: ORBit2-devel
545 BuildRequires: libart_lgpl-devel >= 2.3
546 BuildRequires: libbonobo-devel >= 2.16
547 BuildRequires: libbonoboui-devel >= 2.16
548 BuildRequires: bonobo-activation-devel
549 BuildRequires: gconf2-devel
550 BuildRequires: freetype2-devel
551 BuildRequires: cairo-devel
552 BuildRequires: fontconfig-devel >= 2.4
553 BuildRequires: gnome-vfs2-devel >= 2.16
554 BuildRequires: libpng-devel
557 BuildRequires: termcap
558 BuildRequires: glibc-devel >= 2.6
560 %if %{su103} && %{gconsole}
561 BuildRequires: libgnome >= 2.20
562 BuildRequires: gtk2-devel >= 2.12
563 BuildRequires: libgnomeui-devel >= 2.20
564 BuildRequires: ORBit2-devel
565 BuildRequires: libart_lgpl-devel >= 2.3
566 BuildRequires: libbonobo-devel >= 2.20
567 BuildRequires: libbonoboui-devel >= 2.20
568 BuildRequires: bonobo-activation-devel
569 BuildRequires: gconf2-devel
570 BuildRequires: freetype2-devel
571 BuildRequires: cairo-devel
572 BuildRequires: fontconfig-devel >= 2.4
573 BuildRequires: gnome-vfs2-devel >= 2.20
574 BuildRequires: libpng-devel
577 BuildRequires: termcap
578 BuildRequires: glibc-devel >= 2.8
580 %if %{su110} && %{gconsole}
581 BuildRequires: libgnome >= 2.22
582 BuildRequires: gtk2-devel >= 2.12
583 BuildRequires: libgnomeui-devel >= 2.22
584 BuildRequires: ORBit2-devel
585 BuildRequires: libart_lgpl-devel >= 2.3
586 BuildRequires: libbonobo-devel >= 2.22
587 BuildRequires: libbonoboui-devel >= 2.22
588 BuildRequires: bonobo-activation-devel
589 BuildRequires: gconf2-devel
590 BuildRequires: freetype2-devel
591 BuildRequires: cairo-devel
592 BuildRequires: fontconfig-devel >= 2.4
593 BuildRequires: gnome-vfs2-devel >= 2.22
594 BuildRequires: libpng-devel
597 BuildRequires: termcap
598 BuildRequires: glibc-devel >= 2.9
600 %if %{su111} && %{gconsole}
601 BuildRequires: libgnome >= 2.24
602 BuildRequires: gtk2-devel >= 2.14
603 BuildRequires: libgnomeui-devel >= 2.24
604 BuildRequires: ORBit2-devel
605 BuildRequires: libart_lgpl-devel >= 2.3
606 BuildRequires: libbonobo-devel >= 2.24
607 BuildRequires: libbonoboui-devel >= 2.24
608 BuildRequires: bonobo-activation-devel
609 BuildRequires: gconf2-devel
610 BuildRequires: freetype2-devel
611 BuildRequires: cairo-devel
612 BuildRequires: fontconfig-devel >= 2.6
613 BuildRequires: gnome-vfs2-devel >= 2.24
614 BuildRequires: libpng-devel
617 BuildRequires: libtermcap-devel
618 BuildRequires: libstdc++-static-devel
619 BuildRequires: glibc-static-devel
620 BuildRequires: glibc-devel >= 2.3
622 %if %{mdk} && !%{mdv} && %{gconsole}
623 BuildRequires: gtk2-devel >= 2.0
624 BuildRequires: libgnomeui2-devel >= 2.0
625 BuildRequires: libORBit2-devel
626 BuildRequires: libart_lgpl-devel >= 2.0
627 BuildRequires: libbonobo2_0-devel
628 BuildRequires: libbonoboui2_0-devel
629 BuildRequires: libbonobo-activation-devel
630 BuildRequires: libGConf2-devel
631 BuildRequires: freetype2-devel
633 %if %{mdv} && %{gconsole}
634 BuildRequires: gtk2-devel >= 2.8
635 BuildRequires: libgnomeui2-devel >= 2.10
636 BuildRequires: libORBit2-devel
637 BuildRequires: libart_lgpl-devel >= 2.3
638 BuildRequires: libbonobo2_0-devel
639 BuildRequires: libbonoboui2_0-devel
640 BuildRequires: libbonobo-activation-devel
641 BuildRequires: libGConf2-devel
642 BuildRequires: freetype2-devel
645 BuildRequires: libtermcap-devel
646 BuildRequires: glibc-devel >= 2.3
648 %if %{fc3} && %{gconsole}
649 BuildRequires: gtk2-devel >= 2.4
650 BuildRequires: libgnomeui-devel >= 2.8
651 BuildRequires: ORBit2-devel
652 BuildRequires: libart_lgpl-devel >= 2.3
653 BuildRequires: libbonobo-devel >= 2.8
654 BuildRequires: libbonoboui-devel >= 2.8
655 BuildRequires: bonobo-activation-devel
656 BuildRequires: GConf2-devel
657 BuildRequires: freetype-devel
660 BuildRequires: libtermcap-devel
661 BuildRequires: glibc-devel >= 2.3
663 %if %{fc4} && %{gconsole}
664 BuildRequires: gtk2-devel >= 2.6
665 BuildRequires: libgnomeui-devel >= 2.10
666 BuildRequires: ORBit2-devel
667 BuildRequires: libart_lgpl-devel >= 2.3
668 BuildRequires: libbonobo-devel >= 2.8
669 BuildRequires: libbonoboui-devel >= 2.8
670 BuildRequires: bonobo-activation-devel
671 BuildRequires: GConf2-devel
672 BuildRequires: freetype-devel
675 BuildRequires: libtermcap-devel
676 BuildRequires: glibc-devel >= 2.4
678 %if %{fc5} && %{gconsole}
679 BuildRequires: gtk2-devel >= 2.8
680 BuildRequires: libgnomeui-devel >= 2.14
681 BuildRequires: ORBit2-devel
682 BuildRequires: libart_lgpl-devel >= 2.3
683 BuildRequires: libbonobo-devel >= 2.14
684 BuildRequires: libbonoboui-devel >= 2.14
685 BuildRequires: GConf2-devel
686 BuildRequires: freetype-devel
689 BuildRequires: libtermcap-devel
690 BuildRequires: glibc-devel >= 2.5
692 %if %{fc6} && %{gconsole}
693 BuildRequires: gtk2-devel >= 2.10
694 BuildRequires: libgnomeui-devel >= 2.16
695 BuildRequires: ORBit2-devel
696 BuildRequires: libart_lgpl-devel >= 2.3
697 BuildRequires: libbonobo-devel >= 2.16
698 BuildRequires: libbonoboui-devel >= 2.16
699 BuildRequires: GConf2-devel
700 BuildRequires: freetype-devel
703 BuildRequires: libtermcap-devel
704 BuildRequires: glibc-devel >= 2.5
706 %if %{fc7} && %{gconsole}
707 BuildRequires: gtk2-devel >= 2.10
708 BuildRequires: libgnomeui-devel >= 2.18
709 BuildRequires: ORBit2-devel
710 BuildRequires: libart_lgpl-devel >= 2.3
711 BuildRequires: libbonobo-devel >= 2.18
712 BuildRequires: libbonoboui-devel >= 2.18
713 BuildRequires: GConf2-devel
714 BuildRequires: freetype-devel
717 BuildRequires: libtermcap-devel
718 BuildRequires: glibc-devel >= 2.7
720 %if %{fc8} && %{gconsole}
721 BuildRequires: gtk2-devel >= 2.12
722 BuildRequires: libgnomeui-devel >= 2.20
723 BuildRequires: ORBit2-devel
724 BuildRequires: libart_lgpl-devel >= 2.3
725 BuildRequires: libbonobo-devel >= 2.20
726 BuildRequires: libbonoboui-devel >= 2.20
727 BuildRequires: GConf2-devel
728 BuildRequires: freetype-devel
731 BuildRequires: glibc-devel >= 2.8
732 BuildRequires: zlib-static
734 %if %{fc9} && %{gconsole}
735 BuildRequires: gtk2-devel >= 2.12
736 BuildRequires: libgnomeui-devel >= 2.22
737 BuildRequires: ORBit2-devel
738 BuildRequires: libart_lgpl-devel >= 2.3
739 BuildRequires: libbonobo-devel >= 2.22
740 BuildRequires: libbonoboui-devel >= 2.22
741 BuildRequires: GConf2-devel
742 BuildRequires: freetype-devel
744 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
745 BuildRequires: libtermcap-devel
746 BuildRequires: glibc-devel >= 2.3
748 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && %{gconsole}
749 BuildRequires: gtk2-devel >= 2.0
750 BuildRequires: libgnomeui-devel >= 2.0
751 BuildRequires: ORBit2-devel
752 BuildRequires: libart_lgpl-devel >= 2.0
753 BuildRequires: libbonobo-devel >= 2.0
754 BuildRequires: libbonoboui-devel >= 2.0
755 BuildRequires: bonobo-activation-devel
756 BuildRequires: GConf2-devel
757 BuildRequires: linc-devel
758 BuildRequires: freetype-devel
761 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
762 BuildRequires: mysql-devel >= 3.23
765 %if %{mysql} && %{mysql4}
766 BuildRequires: mysql-devel >= 4.0
769 %if %{mysql} && %{mysql5}
770 BuildRequires: mysql-devel >= 5.0
773 %if %{postgresql} && %{wb3}
774 BuildRequires: rh-postgresql-devel >= 7
777 %if %{postgresql} && ! %{wb3}
778 BuildRequires: postgresql-devel >= 7
782 BuildRequires: wxGTK-devel >= 2.6
806 Summary: Bacula - The Network Backup Solution
807 Group: System Environment/Daemons
808 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
809 Conflicts: bacula-client
810 Obsoletes: bacula-rescue
812 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
816 Requires: ncurses, libstdc++, zlib, openssl
819 Requires: glibc >= 2.2
822 %if %{su9} || %{su10}
823 Requires: glibc >= 2.3
827 Requires: glibc >= 2.5
831 Requires: glibc >= 2.6
835 Requires: glibc >= 2.8
839 Requires: glibc >= 2.9
842 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
843 Requires: glibc >= 2.3
847 Requires: glibc >= 2.4
851 Requires: glibc >= 2.5
855 Requires: glibc >= 2.7
859 Requires: glibc >= 2.8
862 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
863 Requires: mysql >= 3.23
864 Requires: mysql-server >= 3.23
866 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
867 Requires: mysql >= 4.0
868 Requires: mysql-server >= 4.0
870 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk} && %{mysql5}
871 Requires: mysql >= 5.0
872 Requires: mysql-server >= 5.0
875 %if %{mysql} && %{su9} && ! %{mysql4}
876 Requires: mysql >= 3.23
877 Requires: mysql-client >= 3.23
879 %if %{mysql} && %{su9} && %{mysql4}
880 Requires: mysql >= 4.0
881 Requires: mysql-client >= 4.0
883 %if %{mysql} && %{su10} && %{mysql4}
884 Requires: mysql >= 4.0
885 Requires: mysql-client >= 4.0
887 %if %{mysql} && %{su10} && %{mysql5}
888 Requires: mysql >= 5.0
889 Requires: mysql-client >= 5.0
891 %if %{mysql} && %{su102} && %{mysql5}
892 Requires: mysql >= 5.0
893 Requires: mysql-client >= 5.0
895 %if %{mysql} && %{su103} && %{mysql5}
896 Requires: mysql >= 5.0
897 Requires: mysql-client >= 5.0
899 %if %{mysql} && %{su110} && %{mysql5}
900 Requires: mysql >= 5.0
901 Requires: mysql-client >= 5.0
903 %if %{mysql} && %{su111} && %{mysql5}
904 Requires: mysql >= 5.0
905 Requires: mysql-client >= 5.0
908 %if %{mysql} && %{mdk} && ! %{mysql4}
909 Requires: mysql >= 3.23
910 Requires: mysql-client >= 3.23
912 %if %{mysql} && %{mdk} && %{mysql4}
913 Requires: mysql >= 4.0
914 Requires: mysql-client >= 4.0
917 %if %{postgresql} && %{wb3}
918 Requires: rh-postgresql >= 7
919 Requires: rh-postgresql-server >= 7
921 %if %{postgresql} && ! %{wb3}
922 Requires: postgresql >= 7
923 Requires: postgresql-server >= 7
933 %description postgresql
937 Requires: python >= %{pyver}
951 This build requires MySQL to be installed separately as the catalog database.
954 This build requires PostgreSQL to be installed separately as the catalog database.
957 This build incorporates sqlite3 as the catalog database, statically compiled.
960 This build includes python scripting support.
963 %if ! %{client_only} && %{mtx}
965 Summary: Bacula - The Network Backup Solution
966 Group: System Environment/Daemons
970 This is Bacula's version of mtx tape utilities for Linux distributions that
971 do not provide their own mtx package
975 Summary: Bacula - The Network Backup Solution
976 Group: System Environment/Daemons
978 Conflicts: bacula-mysql
979 Conflicts: bacula-sqlite
980 Conflicts: bacula-postgresql
981 Obsoletes: bacula-rescue
983 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
987 Requires: libstdc++, zlib, openssl
990 Requires: glibc >= 2.2
993 %if %{su9} || %{su10}
994 Requires: glibc >= 2.3
998 Requires: glibc >= 2.5
1002 Requires: glibc >= 2.6
1006 Requires: glibc >= 2.8
1010 Requires: glibc >= 2.9
1013 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
1014 Requires: glibc >= 2.3
1015 Requires: libtermcap
1018 Requires: glibc >= 2.4
1019 Requires: libtermcap
1021 %if %{fc6} || %{fc7}
1022 Requires: glibc >= 2.5
1023 Requires: libtermcap
1026 Requires: glibc >= 2.7
1027 Requires: libtermcap
1030 Requires: glibc >= 2.8
1034 Requires: python >= %{pyver}
1048 This is the File daemon (Client) only package. It includes the command line
1051 This build includes python scripting support.
1054 %if ! %{client_only}
1057 Summary: Bacula - The Network Backup Solution
1058 Group: System Environment/Daemons
1060 %description updatedb
1071 This package installs scripts for updating older versions of the bacula
1077 Summary: Bacula - The Network Backup Solution
1078 Group: System Environment/Daemons
1079 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
1082 %if %{gconsole} && %{su9}
1083 Requires: gtk2 >= 2.0
1084 Requires: libgnome >= 2.0
1085 Requires: libgnomeui >= 2.0
1086 Requires: glibc >= 2.3
1088 Requires: libart_lgpl >= 2.0
1089 Requires: libbonobo >= 2.0
1090 Requires: libbonoboui >= 2.0
1091 Requires: bonobo-activation
1096 %if %{gconsole} && %{su10}
1097 Requires: gtk2 >= 2.8
1098 Requires: libgnome >= 2.12
1099 Requires: libgnomeui >= 2.12
1100 Requires: glibc >= 2.3
1102 Requires: libart_lgpl >= 2.3
1103 Requires: libbonobo >= 2.10
1104 Requires: libbonoboui >= 2.10
1105 Requires: bonobo-activation
1109 Requires: fontconfig >= 2.3
1110 Requires: gnome-vfs2 >= 2.12
1113 %if %{gconsole} && %{su102}
1114 Requires: gtk2 >= 2.10
1115 Requires: libgnome >= 2.16
1116 Requires: libgnomeui >= 2.16
1117 Requires: glibc >= 2.5
1119 Requires: libart_lgpl >= 2.3
1120 Requires: libbonobo >= 2.16
1121 Requires: libbonoboui >= 2.16
1122 Requires: bonobo-activation
1126 Requires: fontconfig >= 2.4
1127 Requires: gnome-vfs2 >= 2.16
1130 %if %{gconsole} && %{su103}
1131 Requires: gtk2 >= 2.12
1132 Requires: libgnome >= 2.20
1133 Requires: libgnomeui >= 2.20
1134 Requires: glibc >= 2.6
1136 Requires: libart_lgpl >= 2.3
1137 Requires: libbonobo >= 2.20
1138 Requires: libbonoboui >= 2.20
1139 Requires: bonobo-activation
1143 Requires: fontconfig >= 2.4
1144 Requires: gnome-vfs2 >= 2.20
1147 %if %{gconsole} && %{su110}
1148 Requires: gtk2 >= 2.12
1149 Requires: libgnome >= 2.22
1150 Requires: libgnomeui >= 2.22
1151 Requires: glibc >= 2.8
1153 Requires: libart_lgpl >= 2.3
1154 Requires: libbonobo >= 2.22
1155 Requires: libbonoboui >= 2.22
1156 Requires: bonobo-activation
1160 Requires: fontconfig >= 2.4
1161 Requires: gnome-vfs2 >= 2.22
1164 %if %{gconsole} && %{su111}
1165 Requires: gtk2 >= 2.14
1166 Requires: libgnome >= 2.24
1167 Requires: libgnomeui >= 2.24
1168 Requires: glibc >= 2.9
1170 Requires: libart_lgpl >= 2.3
1171 Requires: libbonobo >= 2.24
1172 Requires: libbonoboui >= 2.24
1173 Requires: bonobo-activation
1177 Requires: fontconfig >= 2.6
1178 Requires: gnome-vfs2 >= 2.24
1181 %if %{gconsole} && %{mdk} && !%{mdv}
1182 Requires: gtk2 >= 2.0
1183 Requires: libgnomeui2
1184 Requires: glibc >= 2.3
1186 Requires: libart_lgpl >= 2.0
1187 Requires: libbonobo >= 2.0
1188 Requires: libbonoboui >= 2.0
1192 %if %{gconsole} && %{mdv}
1193 Requires: gtk2 >= 2.8
1194 Requires: libgnomeui2
1195 Requires: glibc >= 2.3
1197 Requires: libart_lgpl >= 2.3
1198 Requires: libbonobo >= 2.10
1199 Requires: libbonoboui >= 2.10
1203 %if %{gconsole} && %{fc3}
1204 Requires: gtk2 >= 2.4
1205 Requires: libgnomeui >= 2.8
1206 Requires: glibc >= 2.3
1208 Requires: libart_lgpl >= 2.3
1209 Requires: libbonobo >= 2.8
1210 Requires: libbonoboui >= 2.8
1211 Requires: bonobo-activation
1215 %if %{gconsole} && %{fc4}
1216 Requires: gtk2 >= 2.6
1217 Requires: libgnomeui >= 2.10
1218 Requires: glibc >= 2.3
1220 Requires: libart_lgpl >= 2.3
1221 Requires: libbonobo >= 2.8
1222 Requires: libbonoboui >= 2.8
1223 Requires: bonobo-activation
1227 %if %{gconsole} && %{fc5}
1228 Requires: gtk2 >= 2.8
1229 Requires: libgnomeui >= 2.14
1230 Requires: glibc >= 2.4
1232 Requires: libart_lgpl >= 2.3
1233 Requires: libbonobo >= 2.14
1234 Requires: libbonoboui >= 2.14
1238 %if %{gconsole} && %{fc6}
1239 Requires: gtk2 >= 2.10
1240 Requires: libgnomeui >= 2.16
1241 Requires: glibc >= 2.5
1243 Requires: libart_lgpl >= 2.3
1244 Requires: libbonobo >= 2.16
1245 Requires: libbonoboui >= 2.16
1249 %if %{gconsole} && %{fc7}
1250 Requires: gtk2 >= 2.10
1251 Requires: libgnomeui >= 2.18
1252 Requires: glibc >= 2.5
1254 Requires: libart_lgpl >= 2.3
1255 Requires: libbonobo >= 2.18
1256 Requires: libbonoboui >= 2.18
1260 %if %{gconsole} && %{fc8}
1261 Requires: gtk2 >= 2.12
1262 Requires: libgnomeui >= 2.20
1263 Requires: glibc >= 2.7
1265 Requires: libart_lgpl >= 2.3
1266 Requires: libbonobo >= 2.20
1267 Requires: libbonoboui >= 2.20
1271 %if %{gconsole} && %{fc9}
1272 Requires: gtk2 >= 2.12
1273 Requires: libgnomeui >= 2.22
1274 Requires: glibc >= 2.8
1276 Requires: libart_lgpl >= 2.3
1277 Requires: libbonobo >= 2.22
1278 Requires: libbonoboui >= 2.22
1282 %if %{gconsole} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
1283 Requires: gtk2 >= 2.0
1284 Requires: libgnomeui >= 2.0
1285 Requires: glibc >= 2.3
1287 Requires: libart_lgpl >= 2.0
1288 Requires: libbonobo >= 2.0
1289 Requires: libbonoboui >= 2.0
1290 Requires: bonobo-activation
1295 %if %{gconsole} && %{su9}
1298 %if %{gconsole} && %{su10}
1301 %if %{gconsole} && %{su102}
1304 %if %{gconsole} && %{su103}
1307 %if %{gconsole} && %{su110}
1310 %if %{gconsole} && %{su111}
1313 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1318 %description gconsole
1329 This is the Gnome Console package. It is an add-on to the client or
1335 Summary: Bacula - The Network Backup Solution
1336 Group: System Environment/Daemons
1337 Requires: wxGTK >= 2.6, libstdc++, openssl
1340 %if %{wxconsole} && %{su10}
1341 Requires: gtk2 >= 2.8
1344 %if %{wxconsole} && %{su102}
1345 Requires: gtk2 >= 2.10
1348 %if %{wxconsole} && %{su103}
1349 Requires: gtk2 >= 2.12
1352 %if %{wxconsole} && %{su110}
1353 Requires: gtk2 >= 2.12
1356 %if %{wxconsole} && %{su111}
1357 Requires: gtk2 >= 2.14
1360 %if %{wxconsole} && %{fc3}
1361 Requires: gtk2 >= 2.4
1364 %if %{wxconsole} && %{fc4}
1365 Requires: gtk2 >= 2.6
1368 %if %{wxconsole} && %{fc5}
1369 Requires: gtk2 >= 2.8
1372 %if %{wxconsole} && %{fc6}
1373 Requires: gtk2 >= 2.10
1376 %if %{wxconsole} && %{fc7}
1377 Requires: gtk2 >= 2.10
1380 %if %{wxconsole} && %{fc8}
1381 Requires: gtk2 >= 2.12
1384 %if %{wxconsole} && %{fc9}
1385 Requires: gtk2 >= 2.12
1389 %description wxconsole
1400 This is the WXWindows Console package. It is an add-on to the client or
1406 Summary: Bacula - The Network Backup Solution
1407 Group: System Environment/Daemons
1410 %if %{bat} && %{su10}
1412 Requires: glibc >= 2.4
1413 Requires: fontconfig
1422 %if %{bat} && %{su102}
1424 Requires: glibc >= 2.5
1425 Requires: fontconfig
1434 %if %{bat} && %{su103}
1436 Requires: glibc >= 2.6
1437 Requires: fontconfig
1446 %if %{bat} && %{su110}
1448 Requires: glibc >= 2.8
1449 Requires: fontconfig
1458 %if %{bat} && %{su111}
1460 Requires: glibc >= 2.9
1461 Requires: fontconfig
1470 %if %{bat} && %{fc5}
1472 Requires: glibc >= 2.4
1473 Requires: fontconfig
1477 Requires: qt4 >= 4.2
1482 %if %{bat} && %{fc6}
1484 Requires: glibc >= 2.5
1485 Requires: fontconfig
1489 Requires: qt4 >= 4.2
1494 %if %{bat} && %{fc7}
1496 Requires: glibc >= 2.5
1497 Requires: fontconfig
1501 Requires: qt4 >= 4.2
1506 %if %{bat} && %{fc8}
1508 Requires: glibc >= 2.7
1509 Requires: fontconfig
1513 Requires: qt4 >= 4.2
1518 %if %{bat} && %{fc9}
1520 Requires: glibc >= 2.8
1521 Requires: fontconfig
1525 Requires: qt4 >= 4.3
1542 This is the Bacula Administration Tool package. It is an add-on to
1543 the client or server packages.
1546 # SuSE turns off stripping of binaries by default. In order to get
1547 # stripped packages we must generate debug package. RedHat and Mandriva
1548 # turn debug packages on by default but strip binaries regardless.
1549 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1565 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1566 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
1571 #export QTDIR=$(pkg-config --variable=prefix QtCore)
1572 #export QTINC=$(pkg-config --variable=includedir QtCore)
1573 #export QTLIB=$(pkg-config --variable=libdir QtCore)
1574 #export PATH=${QTDIR}/bin/:${PATH}
1580 export PATH=${qtdir}/qt4/bin:$PATH
1581 export QTDIR=${qtdir}/qt4/
1582 export QTINC=${qtdir}/qt4/include/
1583 export QTLIB=${qtdir}/qt4/lib/
1591 %if ! %{client_only} && %{mtx}
1596 %if %{wb3} || %{old_pgsql}
1597 patch -p3 src/cats/postgresql.c < %SOURCE5
1600 # patches for the bundled sqlite scripts
1602 # patch the make_sqlite_tables script for installation bindir
1603 #patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
1604 patch src/cats/make_sqlite3_tables.in src/cats/make_sqlite3_tables.in.patch
1606 # patch the create_sqlite_database script for installation bindir
1607 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
1608 patch src/cats/create_sqlite3_database.in src/cats/create_sqlite3_database.in.patch
1610 # patch the make_catalog_backup script for installation bindir
1611 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
1613 # patch the update_sqlite_tables script for installation bindir
1614 #patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
1615 patch src/cats/update_sqlite3_tables.in src/cats/update_sqlite3_tables.in.patch
1617 # patch the bacula-dir init script to remove sqlite service
1618 %if %{sqlite} && %{su9}
1619 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1621 %if %{sqlite} && %{su10}
1622 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1624 %if %{sqlite} && %{su102}
1625 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1627 %if %{sqlite} && %{su103}
1628 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1630 %if %{sqlite} && %{su110}
1631 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1633 %if %{sqlite} && %{su111}
1634 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1637 # 64 bit lib location hacks
1638 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
1639 # reported to be fixed to properly detect lib locations.
1641 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
1643 %if %{mysql} && %{x86_64}
1644 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
1646 %if %{python} && %{x86_64}
1647 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
1650 # Red Hat's 64 bit installation of QT4 appears to be broken so:
1652 %if %{rhel5} || %{centos5} || %{sl5}
1655 #%if %{bat} && %{qt_path} && %{x86_64}
1656 #export PATH=/usr/lib64/qt4/bin/:$PATH
1657 #export QTDIR=/usr/lib64/qt4/
1658 #export QTINC=/usr/lib64/qt4/include/
1659 #export QTLIB=/usr/lib64/qt4/
1664 --prefix=%{_prefix} \
1665 --sbindir=%{_sbindir} \
1666 --sysconfdir=%{sysconf_dir} \
1667 --with-scriptdir=%{script_dir} \
1668 --with-working-dir=%{working_dir} \
1669 --with-pid-dir=%{pid_dir} \
1670 --enable-smartalloc \
1671 --enable-client-only \
1675 --enable-static-fd \
1682 # Main Bacula configuration
1684 --prefix=%{_prefix} \
1685 --sbindir=%{_sbindir} \
1686 --sysconfdir=%{sysconf_dir} \
1687 --mandir=%{_mandir} \
1688 --with-scriptdir=%{script_dir} \
1689 --with-working-dir=%{working_dir} \
1690 --with-plugindir=%{script_dir} \
1691 --with-pid-dir=%{pid_dir} \
1692 --with-subsys-dir=%{_subsysdir} \
1693 --enable-smartalloc \
1697 %if %{gconsole} && ! %{rh8}
1698 --enable-tray-monitor \
1704 --with-sqlite3=${cwd}/%{depkgs}/sqlite3 \
1710 --enable-bwx-console \
1720 --enable-client-only \
1722 %if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{fc3} || %{wb3}
1723 --disable-batch-insert \
1725 --with-dir-user=%{director_daemon_user} \
1726 --with-dir-group=%{daemon_group} \
1727 --with-sd-user=%{storage_daemon_user} \
1728 --with-sd-group=%{storage_daemon_group} \
1729 --with-fd-user=%{file_daemon_user} \
1730 --with-fd-group=%{daemon_group} \
1731 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1732 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1733 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1734 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1735 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1736 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1744 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1745 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1746 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1747 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1748 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1749 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1750 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1752 %if %{gconsole} || %{wxconsole} || %{bat}
1753 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1754 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1757 %if %{gconsole} || %{wxconsole} || %{bat}
1758 %define usermode_iftrick 1
1760 %define usermode_iftrick 0
1763 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1764 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1765 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1766 mkdir -p $RPM_BUILD_ROOT/usr/bin
1770 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1773 make DESTDIR=$RPM_BUILD_ROOT install
1775 %if ! %{client_only} && %{mtx}
1778 prefix=$RPM_BUILD_ROOT%{_prefix} \
1779 sbindir=$RPM_BUILD_ROOT%{_sbindir} \
1780 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1781 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1782 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1783 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1784 mandir=$RPM_BUILD_ROOT%{_mandir} \
1789 # make install in manpages installs _everything_ shotgun style
1790 # so now delete what we will not be packaging
1792 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
1795 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bat.1.%{manpage_ext}
1798 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
1799 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1802 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.%{manpage_ext}
1803 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1804 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1805 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.%{manpage_ext}
1806 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.%{manpage_ext}
1807 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.%{manpage_ext}
1808 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.%{manpage_ext}
1809 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.%{manpage_ext}
1810 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.%{manpage_ext}
1813 # fixme - make installs the mysql scripts for sqlite build
1815 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1816 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1817 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1820 # fixme - make installs the mysql scripts for postgresql build
1822 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1823 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1826 # fixme - make installs gconsole script for build without gconsole
1828 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1831 rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd
1833 # install the init scripts
1834 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1835 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1836 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1837 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1840 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1841 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1842 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1844 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk}
1845 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1846 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1847 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1849 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1851 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1852 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1855 # install the menu stuff
1856 %if %{gconsole} && %{su9}
1857 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1858 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1859 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1860 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1862 %if %{gconsole} && %{su10}
1863 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1864 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1865 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1866 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1868 %if %{gconsole} && %{su102}
1869 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1870 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1871 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1872 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1874 %if %{gconsole} && %{su103}
1875 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1876 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1877 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1878 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1880 %if %{gconsole} && %{su110}
1881 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1882 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1883 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1884 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1886 %if %{gconsole} && %{su111}
1887 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1888 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1889 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1890 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1892 %if %{wxconsole} && %{su10}
1893 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1894 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1896 %if %{wxconsole} && %{su102}
1897 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1898 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1900 %if %{wxconsole} && %{su103}
1901 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1902 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1904 %if %{wxconsole} && %{su110}
1905 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1906 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1908 %if %{wxconsole} && %{su111}
1909 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1910 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1912 %if %{bat} && %{su102}
1913 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1914 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1916 %if %{bat} && %{su103}
1917 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1918 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1920 %if %{bat} && %{su110}
1921 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1922 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1924 %if %{bat} && %{su111}
1925 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1926 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1928 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{fc6} || %{fc7} || %{fc8} || %{fc9} || %{mdk}
1933 %if %{gconsole} && %{iftrick}
1934 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1935 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1936 cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console
1937 cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console
1938 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bgnome-console
1940 %if %{gconsole} && ! %{rh8}
1941 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1942 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1944 %if %{wxconsole} && %{iftrick}
1945 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1946 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1947 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bwx-console
1948 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console
1949 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bwx-console
1951 %if %{bat} && %{iftrick}
1952 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1953 cp -p scripts/bat.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1954 cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat
1955 cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat
1956 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bat
1961 cp -p %{depkgs}/sqlite3/sqlite3 $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3
1962 cp -p %{depkgs}/sqlite3/sqlite3.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3.h
1963 cp -p %{depkgs}/sqlite3/libsqlite3.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite3.a
1966 # install the logrotate file
1967 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1969 # install the updatedb scripts
1970 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
1972 # install the logwatch scripts
1973 %if ! %{client_only}
1974 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1975 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1976 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1977 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1978 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1979 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1982 # install the rescue files
1984 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
1985 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
1986 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
1987 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/
1988 cp -p %{_rescuesrc}/freebsd/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd/
1989 cp -p %{_rescuesrc}/solaris/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/solaris/
1990 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT%{script_dir}/rescue/
1991 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT%{script_dir}/rescue/
1992 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT%{script_dir}/rescue/
1993 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT%{script_dir}/rescue/
1994 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT%{script_dir}/rescue/
1995 cp -pr %{_rescuesrc}/knoppix $RPM_BUILD_ROOT%{script_dir}/rescue/
1996 touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
1997 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
1998 rm -f src/filed/static-bacula-fd
2001 # remove the docs installed by make
2003 rm -rf $RPM_BUILD_ROOT/usr/share/doc
2006 # install docs for single dir installation
2008 mkdir $RPM_BUILD_ROOT%{_prefix}/doc
2009 cp COPYING $RPM_BUILD_ROOT%{_prefix}/doc/
2010 cp ChangeLog $RPM_BUILD_ROOT%{_prefix}/doc/
2011 cp ReleaseNotes $RPM_BUILD_ROOT%{_prefix}/doc/
2012 cp VERIFYING $RPM_BUILD_ROOT%{_prefix}/doc/
2013 cp LICENSE $RPM_BUILD_ROOT%{_prefix}/doc/
2014 cp kernstodo $RPM_BUILD_ROOT%{_prefix}/doc/
2015 cp -r %{_docsrc}/manuals/en/catalog/catalog $RPM_BUILD_ROOT%{_prefix}/doc/
2016 cp %{_docsrc}/manuals/en/catalog/catalog.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2017 cp -r %{_docsrc}/manuals/en/concepts/concepts $RPM_BUILD_ROOT%{_prefix}/doc/
2018 cp %{_docsrc}/manuals/en/concepts/concepts.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2019 cp -r %{_docsrc}/manuals/en/console/console $RPM_BUILD_ROOT%{_prefix}/doc/
2020 cp %{_docsrc}/manuals/en/console/console.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2021 cp -r %{_docsrc}/manuals/en/developers/developers $RPM_BUILD_ROOT%{_prefix}/doc/
2022 cp %{_docsrc}/manuals/en/developers/developers.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2023 cp -r %{_docsrc}/manuals/en/install/install $RPM_BUILD_ROOT%{_prefix}/doc/
2024 cp %{_docsrc}/manuals/en/install/install.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2025 cp -r %{_docsrc}/manuals/en/problems/problems $RPM_BUILD_ROOT%{_prefix}/doc/
2026 cp %{_docsrc}/manuals/en/problems/problems.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2027 cp -r %{_docsrc}/manuals/en/utility/utility $RPM_BUILD_ROOT%{_prefix}/doc/
2028 cp %{_docsrc}/manuals/en/utility/utility.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2029 cp ../Release_Notes-%{version}-%{release}.txt $RPM_BUILD_ROOT%{_prefix}/doc/
2032 # now clean up permissions that are left broken by the install
2033 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
2034 %if %{gconsole} && ! %{rh8}
2035 chmod 755 $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor
2036 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
2039 # fix me - building enable-client-only installs files not included in bacula-client package
2041 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
2042 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
2043 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
2044 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
2045 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
2046 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
2047 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
2048 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
2049 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
2050 rm -f $RPM_BUILD_ROOT%{script_dir}/bconsole
2051 rm -f $RPM_BUILD_ROOT%{script_dir}/bpipe-fd.so
2052 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer.conf
2053 rm -f $RPM_BUILD_ROOT%{_sbindir}/bacula
2057 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
2058 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
2059 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
2060 rm -rf $RPM_BUILD_DIR/depkgs
2061 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
2064 # MySQL specific files
2066 %defattr(-, root, root)
2067 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
2068 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
2069 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
2070 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
2071 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
2072 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
2073 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
2074 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
2079 %defattr(-,root,root)
2080 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite3_database
2081 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_database
2082 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite3_privileges
2083 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite3_tables
2084 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_tables
2085 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite3_tables
2086 %{sqlite_bindir}/libsqlite3.a
2087 %{sqlite_bindir}/sqlite3.h
2088 %{sqlite_bindir}/sqlite3
2093 %defattr(-,root,root)
2094 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
2095 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
2096 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
2097 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
2098 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
2099 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
2102 # The rest is DB backend independent
2103 %if ! %{client_only}
2104 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2105 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
2106 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
2107 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
2108 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
2109 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
2110 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
2111 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
2112 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
2113 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
2114 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
2115 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2116 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2117 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
2118 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
2119 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
2120 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
2121 %attr(-, root, %{daemon_group}) %{script_dir}/bpipe-fd.so
2122 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
2123 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
2124 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
2125 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
2126 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
2127 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer.conf
2129 /etc/logrotate.d/bacula
2130 /etc/log.d/scripts/services/bacula
2131 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
2132 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2133 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
2134 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2135 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
2136 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
2137 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
2139 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
2141 %{_sbindir}/bacula-dir
2142 %{_sbindir}/bacula-fd
2143 %{_sbindir}/bacula-sd
2146 %{_sbindir}/bextract
2150 %{_sbindir}/btraceback
2151 %{_sbindir}/bconsole
2156 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2157 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
2158 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
2159 %{_mandir}/man8/bacula.8.%{manpage_ext}
2160 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2161 %{_mandir}/man8/bcopy.8.%{manpage_ext}
2162 %{_mandir}/man8/bextract.8.%{manpage_ext}
2163 %{_mandir}/man8/bls.8.%{manpage_ext}
2164 %{_mandir}/man8/bscan.8.%{manpage_ext}
2165 %{_mandir}/man8/btape.8.%{manpage_ext}
2166 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2167 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
2168 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
2172 %if ! %{client_only} && %{rescue}
2173 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2176 %if ! %{client_only} && ! %{single_dir}
2177 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2178 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2179 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2180 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2181 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2182 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2183 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2184 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2187 %if ! %{client_only} && %{single_dir}
2193 # test for bacula database older than version 10
2194 # note: this ASSUMES no password has been set for bacula database
2195 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2200 # are we upgrading from sqlite to sqlite3?
2201 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
2202 echo "This version of bacula-sqlite involves an upgrade to sqlite3."
2203 echo "Your catalog database file is not compatible with sqlite3, thus"
2204 echo "you will need to dump the data, delete the old file, and re-run"
2205 echo "this rpm upgrade."
2207 echo "Backing up your current database..."
2208 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db > %{working_dir}/bacula_backup.sql
2209 mv %{working_dir}/bacula.db %{working_dir}/bacula.db.old
2210 echo "Your catalog data has been saved in %{working_dir}/bacula_backup.sql and your"
2211 echo "catalog file has been renamed %{working_dir}/bacula.db.old."
2213 echo "Please re-run this rpm package upgrade."
2214 echo "After the upgrade is complete, restore your catalog"
2215 echo "with the following commands:"
2216 echo "%{script_dir}/drop_sqlite3_tables"
2217 echo "cd %{working_dir}"
2218 echo "%{sqlite_bindir}/sqlite3 $* bacula.db < bacula_backup.sql"
2219 echo "chown bacula.bacula bacula.db"
2222 # test for bacula database older than version 10 and sqlite3
2223 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite3 ];then
2224 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2229 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2232 %if ! %{client_only}
2233 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "10" ]; then
2234 echo "This bacula upgrade will update a bacula database from version 10 to 11."
2235 echo "You appear to be running database version $DB_VER. You must first update"
2236 echo "your database to version 10 and then install this upgrade. The alternative"
2237 echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
2238 echo "catalog information, then do the upgrade. Information on updating a"
2239 echo "database older than version 10 can be found in the release notes."
2248 %if ! %{client_only}
2249 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
2250 if [ -s %{sysconf_dir}/console.conf ];then
2251 cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
2254 # create the daemon users and groups
2255 # first create the groups if they don't exist
2256 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2257 if [ -z "$HAVE_BACULA" ]; then
2258 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2259 echo "The group %{daemon_group} has been added to %{group_file}."
2260 echo "See the manual chapter \"Running Bacula\" for details."
2262 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
2263 if [ -z "$HAVE_BACULA" ]; then
2264 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
2265 echo "The group %{storage_daemon_group} has been added to %{group_file}."
2266 echo "See the manual chapter \"Running Bacula\" for details."
2268 # now create the users if they do not exist
2269 # we do not use the -g option allowing the primary group to be set to system default
2270 # this will be a unique group on redhat type systems or the group users on some systems
2271 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
2272 if [ -z "$HAVE_BACULA" ]; then
2273 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
2274 echo "The user %{storage_daemon_user} has been added to %{user_file}."
2275 echo "See the manual chapter \"Running Bacula\" for details."
2277 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
2278 if [ -z "$HAVE_BACULA" ]; then
2279 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
2280 echo "The user %{director_daemon_user} has been added to %{user_file}."
2281 echo "See the manual chapter \"Running Bacula\" for details."
2283 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2284 if [ -z "$HAVE_BACULA" ]; then
2285 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2286 echo "The user %{file_daemon_user} has been added to %{user_file}."
2287 echo "See the manual chapter \"Running Bacula\" for details."
2289 # now we add the supplementary groups, this is ok to call even if the users already exist
2290 # we only do this if the user is NOT root
2291 IS_ROOT=%{director_daemon_user}
2292 if [ "$IS_ROOT" != "root" ]; then
2293 %{usermod} -G %{daemon_group} %{director_daemon_user}
2295 IS_ROOT=%{storage_daemon_user}
2296 if [ "$IS_ROOT" != "root" ]; then
2297 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
2299 IS_ROOT=%{file_daemon_user}
2300 if [ "$IS_ROOT" != "root" ]; then
2301 %{usermod} -G %{daemon_group} %{file_daemon_user}
2315 %if ! %{client_only}
2317 if [ "$1" -ge 1 ] ; then
2318 /sbin/chkconfig --add bacula-dir
2319 /sbin/chkconfig --add bacula-fd
2320 /sbin/chkconfig --add bacula-sd
2325 # test for an existing database
2326 # note: this ASSUMES no password has been set for bacula database
2327 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2329 # grant privileges and create tables if they do not exist
2330 if [ -z "$DB_VER" ]; then
2331 echo "Hmm, doesn't look like you have an existing database."
2332 echo "Granting privileges for MySQL user bacula..."
2333 %{script_dir}/grant_mysql_privileges
2334 echo "Creating MySQL bacula database..."
2335 %{script_dir}/create_mysql_database
2336 echo "Creating bacula tables..."
2337 %{script_dir}/make_mysql_tables
2339 # check to see if we need to upgrade a 2.x database
2340 elif [ "$DB_VER" -lt "11" ]; then
2341 echo "This release requires an upgrade to your bacula database."
2342 echo "Backing up your current database..."
2343 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2344 echo "Upgrading bacula database ..."
2345 %{script_dir}/update_mysql_tables
2346 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2352 # test for an existing database
2353 if [ -s %{working_dir}/bacula.db ]; then
2354 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2355 # check to see if we need to upgrade a 2.x database
2356 if [ "$DB_VER" -lt "11" ] && [ "$DB_VER" -ge "10" ]; then
2357 echo "This release requires an upgrade to your bacula database."
2358 echo "Backing up your current database..."
2359 echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2360 echo "Upgrading bacula database ..."
2361 %{script_dir}/update_sqlite3_tables
2362 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2365 # create the database and tables
2366 echo "Hmm, doesn't look like you have an existing database."
2367 echo "Creating SQLite database..."
2368 %{script_dir}/create_sqlite3_database
2369 chown %{director_daemon_user}.%{daemon_group} %{working_dir}/bacula.db
2370 echo "Creating the SQLite tables..."
2371 %{script_dir}/make_sqlite3_tables
2376 # test for an existing database
2377 # note: this ASSUMES no password has been set for bacula database
2378 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2380 # grant privileges and create tables if they do not exist
2381 if [ -z "$DB_VER" ]; then
2382 echo "Hmm, doesn't look like you have an existing database."
2383 echo "Creating PostgreSQL bacula database..."
2384 %{script_dir}/create_postgresql_database
2385 echo "Creating bacula tables..."
2386 %{script_dir}/make_postgresql_tables
2387 echo "Granting privileges for PostgreSQL user bacula..."
2388 %{script_dir}/grant_postgresql_privileges
2390 # check to see if we need to upgrade a 2.x database
2391 elif [ "$DB_VER" -lt "11" ]; then
2392 echo "This release requires an upgrade to your bacula database."
2393 echo "Backing up your current database..."
2394 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2395 echo "Upgrading bacula database ..."
2396 %{script_dir}/update_postgresql_tables
2397 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2402 %if ! %{client_only}
2403 # generate passwords if needed
2404 if [ -d %{sysconf_dir} ]; then
2406 for file in *.conf; do
2407 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2408 need_password=`grep $string $file 2>/dev/null`
2409 if [ -n "$need_password" ]; then
2410 pass=`openssl rand -base64 33`
2411 sed "s-$string-$pass-g" $file > $file.new
2412 cp -f $file.new $file; rm -f $file.new
2430 %if ! %{client_only}
2433 /sbin/chkconfig --del bacula-dir
2434 /sbin/chkconfig --del bacula-fd
2435 /sbin/chkconfig --del bacula-sd
2453 %if ! %{client_only} && %{mtx}
2455 %defattr(-,root,root)
2456 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
2457 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
2458 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
2459 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
2460 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
2461 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
2462 %{_mandir}/man1/mtx.1.%{manpage_ext}
2463 %{_mandir}/man1/scsitape.1.%{manpage_ext}
2464 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
2465 %{_mandir}/man1/scsieject.1.%{manpage_ext}
2469 %defattr(-,root,root)
2470 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2471 %{script_dir}/bacula-ctl-fd
2472 /etc/init.d/bacula-fd
2474 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2478 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2479 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2480 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2481 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2482 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2483 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2484 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2485 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2490 /etc/logrotate.d/bacula
2492 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2493 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2495 %attr(-, root, %{daemon_group}) %dir %{working_dir}
2497 %{_sbindir}/bacula-fd
2498 %{_sbindir}/btraceback
2499 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2500 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2501 %{_sbindir}/bconsole
2502 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2503 %{_mandir}/man8/bacula.8.%{manpage_ext}
2504 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2505 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2507 %{_libdir}/libbaccfg.*
2508 %{_libdir}/libbacfind.*
2509 %{_libdir}/libbacpy.*
2513 # create the daemon group and user
2514 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2515 if [ -z "$HAVE_BACULA" ]; then
2516 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2517 echo "The group %{daemon_group} has been added to %{group_file}."
2518 echo "See the manual chapter \"Running Bacula\" for details."
2520 # we do not use the -g option allowing the primary group to be set to system default
2521 # this will be a unique group on redhat type systems or the group users on some systems
2522 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2523 if [ -z "$HAVE_BACULA" ]; then
2524 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2525 echo "The user %{file_daemon_user} has been added to %{user_file}."
2526 echo "See the manual chapter \"Running Bacula\" for details."
2528 # now we add the supplementary group, this is ok to call even if the user already exists
2529 # we only do this if the user is NOT root
2530 IS_ROOT=%{file_daemon_user}
2531 if [ "$IS_ROOT" != "root" ]; then
2532 %{usermod} -G %{daemon_group} %{file_daemon_user}
2537 if [ "$1" -ge 1 ] ; then
2538 /sbin/chkconfig --add bacula-fd
2541 # generate passwords if needed
2542 if [ -d %{sysconf_dir} ]; then
2544 for file in *.conf; do
2545 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2546 need_password=`grep $string $file 2>/dev/null`
2547 if [ -n "$need_password" ]; then
2548 pass=`openssl rand -base64 33`
2549 sed "s-$string-$pass-g" $file > $file.new
2550 cp -f $file.new $file; rm -f $file.new
2561 /sbin/chkconfig --del bacula-fd
2567 %if ! %{client_only}
2569 %defattr(-,root,%{daemon_group})
2570 %{script_dir}/updatedb/*
2573 # create the daemon group
2574 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2575 if [ -z "$HAVE_BACULA" ]; then
2576 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2577 echo "The group %{daemon_group} has been added to %{group_file}."
2578 echo "See the manual chapter \"Running Bacula\" for details."
2582 echo "The database update scripts were installed to %{script_dir}/updatedb"
2587 %defattr(-,root,root)
2588 %{_sbindir}/bgnome-console
2589 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2590 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
2591 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bgnome-console.conf
2592 /usr/share/pixmaps/bacula.png
2593 /usr/share/applications/bacula.desktop
2594 %{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
2597 %if %{gconsole} && ! %{rh8}
2598 %{_sbindir}/bacula-tray-monitor
2599 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
2600 /usr/share/pixmaps/bacula-tray-monitor.xpm
2601 /usr/share/applications/bacula-tray-monitor.desktop
2602 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
2605 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2606 # add the console helper files
2607 %config(noreplace,missingok) /etc/pam.d/bgnome-console
2608 %config(noreplace,missingok) /etc/security/console.apps/bgnome-console
2609 /usr/bin/bgnome-console
2614 # create the daemon group
2615 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2616 if [ -z "$HAVE_BACULA" ]; then
2617 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2618 echo "The group %{daemon_group} has been added to %{group_file}."
2619 echo "See the manual chapter \"Running Bacula\" for details."
2623 # generate passwords if needed
2624 if [ -d %{sysconf_dir} ]; then
2626 for file in *.conf; do
2627 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2628 need_password=`grep $string $file 2>/dev/null`
2629 if [ -n "$need_password" ]; then
2630 pass=`openssl rand -base64 33`
2631 sed "s-$string-$pass-g" $file > $file.new
2632 cp -f $file.new $file; rm -f $file.new
2641 %defattr(-,root,root)
2642 %{_sbindir}/bwx-console
2643 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2644 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bwx-console.conf
2645 /usr/share/pixmaps/wxwin16x16.xpm
2646 /usr/share/applications/wxconsole.desktop
2647 %{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
2650 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2651 # add the console helper files
2652 %config(noreplace,missingok) /etc/pam.d/bwx-console
2653 %config(noreplace,missingok) /etc/security/console.apps/bwx-console
2654 /usr/bin/bwx-console
2659 # create the daemon group
2660 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2661 if [ -z "$HAVE_BACULA" ]; then
2662 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2663 echo "The group %{daemon_group} has been added to %{group_file}."
2664 echo "See the manual chapter \"Running Bacula\" for details."
2668 # generate passwords if needed
2669 if [ -d %{sysconf_dir} ]; then
2671 for file in *.conf; do
2672 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2673 need_password=`grep $string $file 2>/dev/null`
2674 if [ -n "$need_password" ]; then
2675 pass=`openssl rand -base64 33`
2676 sed "s-$string-$pass-g" $file > $file.new
2677 cp -f $file.new $file; rm -f $file.new
2686 %defattr(-,root,root)
2688 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2689 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bat.conf
2690 /usr/share/pixmaps/bat_icon.png
2691 /usr/share/applications/bat.desktop
2692 %{_mandir}/man1/bat.1.%{manpage_ext}
2695 %if %{bat} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2696 # add the console helper files
2697 %config(noreplace,missingok) /etc/pam.d/bat
2698 %config(noreplace,missingok) /etc/security/console.apps/bat
2704 # create the daemon group
2705 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2706 if [ -z "$HAVE_BACULA" ]; then
2707 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2708 echo "The group %{daemon_group} has been added to %{group_file}."
2709 echo "See the manual chapter \"Running Bacula\" for details."
2713 # generate passwords if needed
2714 if [ -d %{sysconf_dir} ]; then
2716 for file in *.conf; do
2717 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2718 need_password=`grep $string $file 2>/dev/null`
2719 if [ -n "$need_password" ]; then
2720 pass=`openssl rand -base64 33`
2721 sed "s-$string-$pass-g" $file > $file.new
2722 cp -f $file.new $file; rm -f $file.new
2730 * Sat Jun 20 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2731 - Fix bat install which is now handled by make and uses shared libs
2732 * Sat May 16 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2733 - fix libxml dependency for rh7 per Pasi Kärkkäinen <pasik@iki.fi>
2734 * Mon May 04 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2735 - Fix post ldconfig problem in client only build
2736 * Sun May 03 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2737 - remove more files installed by client-only build not needed by client package
2738 - remove libbacsql files from client package
2739 * Sat May 02 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2741 - update for new docs configuration
2742 * Sat Apr 25 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2743 - add switch to pass Distribution tag
2744 * Sun Apr 5 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2746 - database update version 10 to 11
2747 - make now installs docs so we rm from buildroot
2748 - add shared libs in %_libdir and other misc new files
2749 * Wed Dec 31 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2751 * Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2752 - set paths for QT using pkgconfig
2753 * Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2754 - release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
2755 * Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2756 - adjust /opt/bacula install
2757 - add build switch to supress rescue package
2758 * Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2759 - add support for install to /opt/bacula
2760 * Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2761 - remove libtermcap dependancy for FC9
2762 * Mon Aug 04 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2763 - fix bat dependencies
2764 * Sat Jun 28 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2766 * Sat May 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2768 * Sun Mar 30 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2769 - FHS compatibility changes
2770 * Sat Feb 16 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2771 - remove fix for false buffer overflow detection with glibc >= 2.7
2772 * Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2773 - fix for false buffer overflow detection with glibc >= 2.7
2774 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2776 - add debug package for SuSE
2777 * Sat Jan 12 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2778 - 2.2.8 beta release
2781 * Sun Dec 30 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2782 - fix typo on su103 client package requirements
2783 * Fri Dec 28 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2784 - add nobuild_mtx switch
2785 - add patch for postgresql.c for old postgresql versions
2786 * Sat Nov 17 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2788 * Sun Nov 11 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2789 - add new files required by rescue makefile
2790 * Sat Nov 10 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2791 - add su103 build target
2792 * Sun Nov 04 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2793 - fix dist defines for rhel5 and clones
2794 - fix rhel broken 64 bit QT4 paths
2795 - rh qt4 packages don't provide qt so fix that too
2796 * Mon Oct 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2797 - correct ownership when creating sqlite db file in post script
2798 * Sun Sep 16 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2799 - fix disable-batch-insert
2800 * Fri Sep 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2802 - turn off gconsole build for fc3, tray monitor fails to build
2803 - add new files for mtx package (09Sep07 depkgs update)
2804 * Sat Sep 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2805 - add --disable-batch-insert for older platforms
2806 - add build targets for rhel5 and clones
2807 * Mon Sep 03 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2809 - turn off gconsole build for su10 & fc4, tray monitor fails to build
2810 * Sat Jul 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2811 - 2.1.26 add make of qwt in depkgs for bat
2812 * Sat Jun 02 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2813 - upgrade Qt requirement for bat to 4.2
2814 * Sun May 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2815 - add fc7 build target
2816 * Sun Apr 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2818 - gnome-console now bgnome-console
2819 - wxconsole now bwx-console
2820 - add build option for bat
2821 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2822 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
2823 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
2824 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
2825 - adjust directory locations for FHS-compatibility
2826 sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
2827 working_dir (/var/lib/bacula) and pid_dir (/var/run)
2828 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2829 - add SuSE 10.2 target
2830 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2832 - set query.sql as config file
2834 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2836 - change determination of gcc version per patch from Marc Hennes
2837 - move BuildRequire for atk-devel to gnome only builds
2839 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2841 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2842 - 1.39.26 remove create_sqlite_database.in.patch
2843 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2844 - change ownership of working_dir on server packages to bacula.bacula so that
2845 - bacula-sd can create bootstrap files
2846 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2847 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
2848 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2849 - fix manpages file extension for mdk
2850 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2851 - bug 648 re-enable and update sqlite patches
2855 - lock out gconsole build for gtk+ < 2.4
2856 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2857 - move pango-devel BuildRequires into gconsole only build
2858 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2859 - add provides and conflicts for standard suse packages
2860 - add third party packager tag support
2861 - add build_client_only tag
2862 - remove bsmtp from client package
2863 - add bacula-ctl-fd to client package
2864 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2865 - fix directory creation when wxconsole and not gconsole
2866 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2867 - add check to buildrequires to make sure libstdc++ version matches gcc
2868 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2869 - add python build support
2870 - fix LDFLAGS declarations
2871 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2872 - add requires for standard compiler toolchain
2873 - move version and release tags up
2875 - add docs_version tag
2876 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2877 - update rescuever to 1.8.6
2878 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2879 - update depkgs to 25Jun06
2880 - add mysql5 build tag
2881 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2882 - 1.38.10 bump rescue version
2883 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2884 - fix usermod statements
2886 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2887 - add -g param back to useradd statements Bug 605
2888 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2889 - redundant code cleanup
2890 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2891 - add wxconsole package
2892 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2894 - dependency update for Mandriva
2895 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2897 - remove -n option from useradd scripts
2898 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2900 - fix problem specifying more than one primary group for user bacula
2901 - add build switch to not build gconsole regardless of platform
2902 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2903 - add centos3 build tag
2904 - fix link error of static-fd on Mandrake with --disable-nls
2905 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2906 - add fc4 dependencies
2907 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2908 - add SuSE 10.0 build
2909 - remove specific permission in attrib macros
2910 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2912 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
2913 - refix compat for _dist on SLES9 which seems to have been removed
2914 - added note regarding Aleksandar's use of specific permissions in attrib macros
2915 - need to review and add specific fc4 build currently using fc3 Requires
2916 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2918 - Reorganize files and pre/post sections to remove repetitions
2919 - Always build separate mtx package
2920 - Fix file ownerships for /etc/bacula and Bacula's working dir
2921 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2922 - Disable GNOME on RH7
2923 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2924 - Red Hat and look alikes have mtx RPM, do not build/package our version
2925 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2926 - minor edit to _dist for SLES9 compatibility
2927 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2929 - kern changed location of pdf files and html manual in docs package
2930 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2932 - add docs (from prebuilt tarball) and rescue packages back in
2933 - remove dvd-freespace and dvd-writepart files, add dvd-handler
2934 - remove 3 of 4 sqlite script patches as not needed
2935 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2937 - remove docs and rescue sections (remove static fd)
2938 - add dvd-freespace and dvd-writepart files
2939 - update depkgs to 22Jun05
2940 - change database update to 8 to 9
2941 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2942 - minor cleanups before 1.38 changes
2943 - add popt and popt-devel build dependencies
2944 - add tetex and tetex-dvips dependencies for doc build
2945 - replace deprecated Copyright tag with License
2946 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2947 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
2948 - conflict with sqlite packages. remove readline dependency.
2949 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2950 - release 1.36.3 update docs
2951 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2952 - add centos4 build tag
2953 - add x86_64 build tag
2954 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2955 - add rhel4 build tag
2956 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
2957 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2958 - add rhel3 build tag
2959 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2960 - fix tray-monitor.conf for noreplace
2961 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2962 - fix distribution check for Fedora and Whitebox
2963 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2964 - add logwatch script
2966 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2967 - add build for Fedora Core 3 (linc now included in ORDit2)
2968 - add mysql4 define for Mandrake 10.1
2969 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2970 - fix {group_file} variable in post scripts
2971 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
2972 - add distribution checking and custom Distribution tag
2973 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2974 - ASSIGNMENT OF COPYRIGHT
2975 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
2976 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
2977 - all right, title and interest in and to the copyright in this software RPM
2978 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
2979 - free of all liens, encumbrances or any known claims against said copyright.
2980 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2982 - thanks to Daniel Widyono
2983 - update description for rescue package to describe cdrom creation
2984 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2985 - update depkgs to 29Oct04
2986 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2987 - add cdrom rescue to bacula-rescue package
2988 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2989 - misc fixes from 1.36.0 suse feedback
2990 - fix situation where sqlite database exists but sqlite has been removed.
2991 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2992 - remove tray-monitor from RH8 build
2993 - fix permissions on tray-monitor files
2994 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2995 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
2996 - change database update to 7 to 8 upgrade,
2997 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
2998 - build in 30Jul04, add freetype dependancy to gnome package.
2999 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3000 - add documentation to console for groupadd
3001 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3002 - add support for running daemons as root.bacula
3003 - correct for change in location of floppy rescue files in 1.35.2
3004 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
3005 - updated depgkgs to 30Jul04
3006 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3007 - really, really fix symlink creation for gconsole
3008 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3009 - fix symlink creation in gconsole post install
3010 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3011 - fixed error in gconsole post script
3012 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3013 - add check for gconsole symlink before trying to create it
3014 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3015 - fix some minor permissions issues on doc files that CVS won't let us fix
3016 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3017 - add pkgconfig to BuildRequires
3018 - clean up gnome1/2 menu entries for appropriate packages
3019 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3020 - tightened up doc distribution
3021 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3022 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
3023 - rpm's horrible bug that prevents nested conditional macros prevents me
3024 - from implementing these 2 separate approaches within the conditionals which
3025 - create the separate server packages.
3026 - the solution adopted is to remove the gnome-console files from the server packages
3027 - so bacula-gconsole is now an add on for both client and server packages.
3028 - this also now allows the server packages to be install on machines without
3029 - an X-server and we can still maintain a single spec file.
3030 - added tests to make sure we have defined platform and database macros.
3031 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3032 - corrected mysql prerequisites for suse
3033 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3034 - replaced all cp commands with cp -p
3035 - removed addition of a+x permissions on gnome-console
3036 - corrected permissions on init scripts
3037 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3038 - corrected creation of sqlite_bindir in install from !mysql to sqlite
3040 - various cleanup patches from Michael K. Johnson:
3041 - corrected post install routines for nicer chkconfig
3042 - removed chmod changes in post routines and moved to install section
3043 - removed interactive nature of post routine for rescue package
3044 - added description of building rescue disks to the description of rescue package
3045 - added clean of build root to beginning of install
3046 - removed specifying attr in all file lists
3047 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3048 - added bconsole to client package
3049 - added gconsole package as add-on to client
3050 - removed spurious dependancies on updatedb package (!cut/paste)
3051 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3052 - added updatedb package
3053 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3054 - added postgresql package
3055 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3056 - corrected the if else logic in the dependancy sections
3057 - changes for 1.34 release
3058 - /etc/bacula/console is now /etc/bacula/bconsole
3059 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
3060 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
3061 - /usr/sbin/smtp is now /usr/sbin/bsmtp
3062 - added new /etc/bacula/drop_mysql_database
3063 - added new /etc/bacula/drop_sqlite_database
3064 - added new /etc/bacula/grant_sqlite_privileges
3065 - added new generic bacula database scripts in /etc/bacula
3066 - added pre-install sections to check for database versions older than 6
3067 - added check for /etc/bacula/console.conf and copy to bconsole.conf
3068 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3069 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
3070 - added testing for existing databases before executing any of the database creation scripts
3071 - added defines working_dir and sqlite_bindir in place of hard coded paths
3072 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3073 - added build configuration for SuSE.
3074 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
3075 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3076 - added patch for create_sqlite_database to fix the installed bindir
3077 - added execute of create_sqlite_database to post of sqlite package
3078 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3079 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
3080 - added bacula-fd as Requires for rescue package
3081 - added build tag for Fedora Core 1
3082 - cleaned up dependancies for all builds
3083 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3084 - removed rh_version from package names
3085 - added platform build configuration section to beginning of file
3086 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3087 - removed make_static_bacula script from rescue package install
3088 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3089 - Added define at top of file for depkgs version
3090 - Added rescue sub-package
3091 - Moved requires statements into proper sub-package locations
3092 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3093 - Corrected Requires for Gnome 1.4/2.0 builds
3094 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3095 - Added separate source declaration for depkgs
3096 - added patch for make_catalog_backup script
3097 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3098 - Misc changes to mysql/sqlite build and rh7/8 menu differences
3099 - Added rh_version to sub-package names
3100 - Added installed but missing file /etc/bacula/gconsole
3101 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
3102 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
3103 - Update spec for version 1.31 and combine client
3104 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>