3 # Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
5 # Platform Build Configuration
8 BuildRequires: libacl-devel
10 # probems with mandriva build:
12 # nothing provides libbonobo2_0-devel, nothing provides libbonoboui2_0-devel
14 # set Macros by opensuse_bs, see http://en.opensuse.org/Build_Service/cross_distribution_package_how_to
15 #openSUSE 11.1 %if 0%{?suse_version} == 1110
16 #openSUSE 11.0 %if 0%{?suse_version} == 1100
17 #openSUSE 10.3 %if 0%{?suse_version} == 1030
18 #openSUSE 10.2 %if 0%{?suse_version} == 1020
19 #SUSE Linux 10.1 %if 0%{?suse_version} == 1010
20 #SUSE Linux 10.0 %if 0%{?suse_version} == 1000
21 #SUSE Linux 9.3 %if 0%{?suse_version} == 930
22 #SLES 9 %if 0%{?sles_version} == 9 also set: %if 0%{?suse_version} == 910
23 #SLE 10 %if 0%{?sles_version} == 10 also set: %if 0%{?suse_version} == 1010
24 #SLE 11 %if 0%{?sles_version} == 11 also set: %if 0%{?suse_version} == 1110
25 #CentOS 5 %if 0%{?centos_version} == 501
26 #RHEL 4 %if 0%{?rhel_version} == 406
27 #RHEL 5 %if 0%{?rhel_version} == 501
28 #Fedora 6 with Extras %if 0%{?fedora_version} == 6
29 #Fedora 7 with Extras %if 0%{?fedora_version} == 7
30 #Fedora 8 with Extras %if 0%{?fedora_version} == 8
31 #Fedora 9 with Extras %if 0%{?fedora_version} == 9
32 #Fedora 10 with Extras %if 0%{?fedora_version} == 10
33 #Mandriva 2006 %if 0%{?mandriva_version} == 2006
34 #Mandriva 2007 %if 0%{?mandriva_version} == 2007
35 #Mandriva 2008 %if 0%{?mandriva_version} == 2008
39 # am I running in opensuse build service?
40 # TODO: seems to make problems
42 # choose database backend here
43 # postgres, mysql, sqlite
44 %define build_postgresql 1
46 # Build Service: Determine Distribution
49 %define build_x86_64 1
53 %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
54 BuildRequires: GConf2-devel
55 BuildRequires: freetype-devel
56 BuildRequires: libtermcap-devel
57 BuildRequires: shadow-utils
63 %if 0%{?mandriva_version} == 2007
65 %define _dist "Mandriva 2007"
69 %if 0%{?fedora_version} == 8
71 %define _dist "Fedora Core 8"
72 BuildRequires: redhat-release
75 %if 0%{?fedora_version} == 9
77 %define _dist "Fedora Core 9"
78 BuildRequires: redhat-release
82 %if 0%{?fedora_version} == 10
84 %define _dist "Fedora Core 10"
85 BuildRequires: PolicyKit-gnome
86 BuildRequires: fedora-release
89 %if 0%{?fedora_version} == 11
91 %define _dist "Fedora Core 11"
92 BuildRequires: PolicyKit-gnome
93 BuildRequires: fedora-release
99 %if 0%{?rhel_version} == 501
100 %define build_rhel5 1
101 %define _dist "Red Hat Enterprise Linux Server release 5"
102 BuildRequires: redhat-release
105 %if 0%{?rhel_version} == 406
106 %define build_rhel4 1
107 %define _dist "Red Hat Enterprise Linux Server release 4"
108 BuildRequires: redhat-release
112 %if 0%{?centos_version} == 501
113 %define build_centos5 1
114 %define _dist "CentOS 5"
115 BuildRequires: redhat-release
119 %if 0%{?suse_version} == 1020
120 %define build_su102 1
121 %define _dist "OpenSUSE 10.2"
122 BuildRequires: suse-release
126 %if 0%{?suse_version} == 1030
127 %define build_su103 1
128 %define _dist "OpenSUSE 10.3"
129 BuildRequires: suse-release
132 %if 0%{?suse_version} == 1100
133 %define build_su110 1
134 %define _dist "SUSE 11"
135 BuildRequires: suse-release
139 %if 0%{?suse_version} == 1110
140 %define build_su111 1
141 %define _dist "SUSE 11"
145 %if 0%{?sles_version} == 9
147 %define _dist "SLES 9"
151 %if 0%{?sles_version} == 10
153 %define _dist "SLE 10"
157 %if 0%{?sles_version} == 11
158 %define build_su111 1
159 %define _dist "SLES 11"
167 # basic defines for every build
168 %define _version @VERSION@
170 %define depkgs_version 18Feb09
171 %define _rescuever @VERSION@
172 %define docs_version @VERSION@
173 %define binname baculasystems
174 %define _prefix @prefix@
175 # third party packagers
176 %define _packager Bacula Systems SA
177 %{?contrib_packager:%define _packager %{contrib_packager}}
178 %define downloads http://www.prdownloads.sourceforge.net
179 %define url http://www.baculasystems.com
180 %define vendor The @BACULA@ Team
182 # any patches for this release
183 # be sure to check the setup section for patch macros
185 #--------------------------------------------------------------------------
186 # it should not be necessary to change anything below here for a release
187 # except for patch macros in the setup section
188 #--------------------------------------------------------------------------
190 Summary: Bacula - The Network Backup Solution
194 Group: System Environment/Daemons
196 Source0: %{downloads}/%{binname}/%{name}-%{version}.tar.gz
197 Source1: %{downloads}/%{binname}/depkgs-%{depkgs_version}.tar.gz
198 Source2: Release_Notes-%{version}-%{release}.tar.gz
199 Source3: %{downloads}/%{binname}/%{name}-docs-%{docs_version}.tar.gz
200 Source4: %{downloads}/%{binname}/%{name}-rescue-%{_rescuever}.tar.gz
201 Source5: bacula-2.2.7-postgresql.patch
202 BuildRoot: %{_tmppath}/%{name}-root
205 Packager: %{_packager}
208 # define the basic package description
209 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
210 %define blurb2 Bacula is a set of computer programs that permit you (or the system
211 %define blurb3 administrator) to manage backup, recovery, and verification of computer
212 %define blurb4 data across a network of computers of different kinds. In technical terms,
213 %define blurb5 it is a network client/server based backup program. Bacula is relatively
214 %define blurb6 easy to use and efficient, while offering many advanced storage management
215 %define blurb7 features that make it easy to find and recover lost or damaged files.
216 %define blurb8 Bacula source code has been released under the GPL version 2 license.
218 # source directory locations
219 %define _docsrc ../%{name}-docs-%{docs_version}
220 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
221 %define depkgs ../depkgs
223 # directory locations
224 %define _sbindir @sbindir@
225 %define _subsysdir @subsysdir@
226 %define sqlite_bindir %_libdir/bacula/sqlite
227 %define _mandir @mandir@
228 %define sysconf_dir @sysconfdir@
229 %define script_dir @scriptdir@
230 %define working_dir @working_dir@
231 %define pid_dir @piddir@
233 # NOTE these defines are used in some rather complex useradd and groupadd
234 # commands. If you change them examine the post scripts for consequences.
235 %define director_daemon_user bacula
236 %define storage_daemon_user bacula
237 %define file_daemon_user root
238 %define daemon_group bacula
239 # group that has write access to tape devices, usually disk on Linux
240 %define storage_daemon_group disk
241 %define user_file /etc/passwd
242 %define group_file /etc/group
245 %define useradd /usr/sbin/useradd
246 %define groupadd /usr/sbin/groupadd
247 %define usermod /usr/sbin/usermod
249 # platform defines - set one below or define the build_xxx on the command line
252 %{?build_rh7:%define rh7 1}
254 %{?build_rh8:%define rh8 1}
256 %{?build_rh9:%define rh9 1}
259 %{?build_fc1:%define fc1 1}
261 %{?build_fc3:%define fc3 1}
263 %{?build_fc4:%define fc4 1}
265 %{?build_fc5:%define fc5 1}
267 %{?build_fc6:%define fc6 1}
269 %{?build_fc7:%define fc7 1}
271 %{?build_fc8:%define fc8 1}
273 %{?build_fc9:%define fc9 1}
274 # Whitebox Enterprise build
276 %{?build_wb3:%define wb3 1}
277 # RedHat Enterprise builds
279 %{?build_rhel3:%define rhel3 1}
280 %{?build_rhel3:%define wb3 1}
282 %{?build_rhel4:%define rhel4 1}
283 %{?build_rhel4:%define fc3 1}
285 %{?build_rhel5:%define rhel5 1}
286 %{?build_rhel5:%define fc6 1}
289 %{?build_centos3:%define centos3 1}
290 %{?build_centos3:%define wb3 1}
292 %{?build_centos4:%define centos4 1}
293 %{?build_centos4:%define fc3 1}
295 %{?build_centos5:%define centos5 1}
296 %{?build_centos5:%define fc6 1}
299 %{?build_sl3:%define sl3 1}
300 %{?build_sl3:%define wb3 1}
302 %{?build_sl4:%define sl4 1}
303 %{?build_sl4:%define fc3 1}
305 %{?build_sl5:%define sl5 1}
306 %{?build_sl5:%define fc6 1}
309 %{?build_su9:%define su9 1}
311 %{?build_su10:%define su10 1}
313 %{?build_su102:%define su102 1}
315 %{?build_su103:%define su103 1}
317 %{?build_su110:%define su110 1}
319 %{?build_su111:%define su111 1}
322 %{?build_mdk:%define mdk 1}
324 %{?build_mdv:%define mdv 1}
325 %{?build_mdv:%define mdk 1}
328 %define client_only 0
329 %{?build_client_only:%define client_only 1}
331 # test for a platform definition
332 %if !%{rh7} && !%{rh8} && !%{rh9} && !%{fc1} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && !%{wb3} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk}
333 %{error: You must specify a platform. Please examine the spec file.}
338 # set for database support desired or define the build_xxx on the command line
340 %{?build_mysql:%define mysql 1}
341 # if using mysql 4.x define this and mysql above
342 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
344 %{?build_mysql4:%define mysql4 1}
345 %{?build_mysql4:%define mysql 1}
346 # if using mysql 5.x define this and mysql above
347 # currently: SuSE 10.1 and Fedora Core 5
349 %{?build_mysql5:%define mysql5 1}
350 %{?build_mysql5:%define mysql 1}
352 %{?build_sqlite:%define sqlite 1}
354 %{?build_postgresql:%define postgresql 1}
356 # test for a database definition
357 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
358 %{error: You must specify database support. Please examine the spec file.}
363 %define db_backend mysql
366 %define db_backend sqlite3
369 %define db_backend postgresql
374 %{?build_x86_64:%define x86_64 1}
376 # check what distribution we are
377 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
378 %define _dist %(grep Red /etc/redhat-release)
380 %if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8} || %{fc9}
381 %define _dist %(grep Fedora /etc/redhat-release)
383 %if %{centos5} || %{centos4} || %{centos3}
384 %define _dist %(grep CentOS /etc/redhat-release)
386 %if %{sl5} ||%{sl4} || %{sl3}
387 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
389 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
390 %define _dist %(grep Fedora /etc/redhat-release)
392 %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
393 %define _dist %(grep Fedora /etc/redhat-release)
395 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
396 %define _dist %(grep White /etc/whitebox-release)
398 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
399 %define _dist %(grep -i SuSE /etc/SuSE-release)
402 %define _dist %(grep Mand /etc/mandrake-release)
405 # opensuse build service start
406 %if 0%{?sles_version} == 9
407 %define _dist "SLES 9"
410 %if 0%{?sles_version} == 10
411 %define _dist "SLE 10"
415 %if 0%{?sles_version} == 11
416 %define _dist "SLE 11"
419 # opensuse build service end
421 %{?DISTNAME:%define _dist %{DISTNAME}}
422 Distribution: %{_dist}
424 # Should we build gconsole, possible only if gtk= >= 2.4 available.
425 # leaving all the BuildRequires and Requires in place below for now.
426 # su10, fc3 and fc4 now nobuild, tray monitor fails to build as of 2.2.1
427 # release as it needs 2.10
430 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
433 %if %{mdk} && ! %{mdv}
437 # specifically disallow gconsole if desired
438 %{?nobuild_gconsole:%define gconsole 0}
440 # specifically disallow rescue files if desired
442 %{?nobuild_rescue:%define rescue 0}
444 # Should we build wxconsole, only wxWidgets >=2.6 is supported
445 # SuSE 10 and FC4 and newer
447 %{?build_wxconsole:%define wxconsole 1}
449 # Should we build bat
452 %{?build_bat:%define bat 1}
454 # should we turn on python support
456 %{?build_python:%define python 1}
458 # specifically disallow build of mtx package if desired
460 %{?nobuild_mtx:%define mtx 0}
462 # do we need to patch for old postgresql version?
464 %{?build_old_pgsql:%define old_pgsql 1}
466 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
468 %define manpage_ext bz2
470 %define manpage_ext gz
473 # for client only build
484 BuildRequires: libattr-devel
485 BuildRequires: libacl-devel
486 BuildRequires: gcc, gcc-c++, make, autoconf
487 BuildRequires: ncurses-devel, perl
488 BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel
489 BuildRequires: openssl-devel
491 BuildRequires: python, python-devel
492 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
495 BuildRequires: pkgconfig, pango-devel, atk-devel
498 BuildRequires: pkgconfig
501 # Rh qt4 packages don't have a provide for, guess what, qt!
502 # still broken in fc8, ok in fc9
503 # so fix for broken rh
505 %if %{rhel5} || %{centos5} || %{sl5} || %{fc5} || %{fc6} || %{fc7} || %{fc8}
508 %if %{bat} && ! %{broken_rh}
509 BuildRequires: qt-devel >= 4.2
511 %if %{bat} && %{broken_rh}
512 BuildRequires: qt4-devel >= 4.2
516 BuildRequires: libtermcap-devel
517 BuildRequires: glibc-devel >= 2.2
520 BuildRequires: termcap
521 BuildRequires: glibc-devel >= 2.3
523 %if %{su9} && %{gconsole}
524 BuildRequires: libgnome >= 2.0
525 BuildRequires: gtk2-devel >= 2.0
526 BuildRequires: libgnomeui-devel >= 2.0
527 BuildRequires: ORBit2-devel
528 BuildRequires: libart_lgpl-devel >= 2.0
529 BuildRequires: libbonobo-devel >= 2.0
530 BuildRequires: libbonoboui-devel >= 2.0
531 BuildRequires: bonobo-activation-devel
532 BuildRequires: gconf2-devel
533 BuildRequires: linc-devel
534 BuildRequires: freetype2-devel
537 BuildRequires: termcap
538 BuildRequires: glibc-devel >= 2.3
540 %if %{su10} && %{gconsole}
541 BuildRequires: libgnome >= 2.12
542 BuildRequires: gtk2-devel >= 2.8
543 BuildRequires: libgnomeui-devel >= 2.12
544 BuildRequires: ORBit2-devel
545 BuildRequires: libart_lgpl-devel >= 2.3
546 BuildRequires: libbonobo-devel >= 2.10
547 BuildRequires: libbonoboui-devel >= 2.10
548 BuildRequires: bonobo-activation-devel
549 BuildRequires: gconf2-devel
550 BuildRequires: freetype2-devel
551 BuildRequires: cairo-devel
552 BuildRequires: fontconfig-devel >= 2.3
553 BuildRequires: gnome-vfs2-devel >= 2.12
554 BuildRequires: libpng-devel
557 BuildRequires: termcap
558 BuildRequires: glibc-devel >= 2.5
560 %if %{su102} && %{gconsole}
561 BuildRequires: libgnome >= 2.16
562 BuildRequires: gtk2-devel >= 2.10
563 BuildRequires: libgnomeui-devel >= 2.16
564 BuildRequires: ORBit2-devel
565 BuildRequires: libart_lgpl-devel >= 2.3
566 BuildRequires: libbonobo-devel >= 2.16
567 BuildRequires: libbonoboui-devel >= 2.16
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.16
574 BuildRequires: libpng-devel
577 BuildRequires: termcap
578 BuildRequires: glibc-devel >= 2.6
580 %if %{su103} && %{gconsole}
581 BuildRequires: libgnome >= 2.20
582 BuildRequires: gtk2-devel >= 2.12
583 BuildRequires: libgnomeui-devel >= 2.20
584 BuildRequires: ORBit2-devel
585 BuildRequires: libart_lgpl-devel >= 2.3
586 BuildRequires: libbonobo-devel >= 2.20
587 BuildRequires: libbonoboui-devel >= 2.20
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.20
594 BuildRequires: libpng-devel
597 BuildRequires: termcap
598 BuildRequires: glibc-devel >= 2.8
600 %if %{su110} && %{gconsole}
601 BuildRequires: libgnome >= 2.22
602 BuildRequires: gtk2-devel >= 2.12
603 BuildRequires: libgnomeui-devel >= 2.22
604 BuildRequires: ORBit2-devel
605 BuildRequires: libart_lgpl-devel >= 2.3
606 BuildRequires: libbonobo-devel >= 2.22
607 BuildRequires: libbonoboui-devel >= 2.22
608 BuildRequires: bonobo-activation-devel
609 BuildRequires: gconf2-devel
610 BuildRequires: freetype2-devel
611 BuildRequires: cairo-devel
612 BuildRequires: fontconfig-devel >= 2.4
613 BuildRequires: gnome-vfs2-devel >= 2.22
614 BuildRequires: libpng-devel
617 BuildRequires: termcap
618 BuildRequires: glibc-devel >= 2.9
620 %if %{su111} && %{gconsole}
621 BuildRequires: libgnome >= 2.24
622 BuildRequires: gtk2-devel >= 2.14
623 BuildRequires: libgnomeui-devel >= 2.24
624 BuildRequires: ORBit2-devel
625 BuildRequires: libart_lgpl-devel >= 2.3
626 BuildRequires: libbonobo-devel >= 2.24
627 BuildRequires: libbonoboui-devel >= 2.24
628 BuildRequires: bonobo-activation-devel
629 BuildRequires: gconf2-devel
630 BuildRequires: freetype2-devel
631 BuildRequires: cairo-devel
632 BuildRequires: fontconfig-devel >= 2.6
633 BuildRequires: gnome-vfs2-devel >= 2.24
634 BuildRequires: libpng-devel
637 BuildRequires: libtermcap-devel
638 BuildRequires: libstdc++-static-devel
639 BuildRequires: glibc-static-devel
640 BuildRequires: glibc-devel >= 2.3
642 %if %{mdk} && !%{mdv} && %{gconsole}
643 BuildRequires: gtk2-devel >= 2.0
644 BuildRequires: libgnomeui2-devel >= 2.0
645 BuildRequires: libORBit2-devel
646 BuildRequires: libart_lgpl-devel >= 2.0
647 BuildRequires: libbonobo2_0-devel
648 BuildRequires: libbonoboui2_0-devel
649 BuildRequires: libbonobo-activation-devel
650 BuildRequires: libGConf2-devel
651 BuildRequires: freetype2-devel
653 %if %{mdv} && %{gconsole}
654 BuildRequires: gtk2-devel >= 2.8
655 BuildRequires: libgnomeui2-devel >= 2.10
656 BuildRequires: libORBit2-devel
657 BuildRequires: libart_lgpl-devel >= 2.3
658 BuildRequires: libbonobo2_0-devel
659 BuildRequires: libbonoboui2_0-devel
660 BuildRequires: libbonobo-activation-devel
661 BuildRequires: libGConf2-devel
662 BuildRequires: freetype2-devel
665 BuildRequires: libtermcap-devel
666 BuildRequires: glibc-devel >= 2.3
668 %if %{fc3} && %{gconsole}
669 BuildRequires: gtk2-devel >= 2.4
670 BuildRequires: libgnomeui-devel >= 2.8
671 BuildRequires: ORBit2-devel
672 BuildRequires: libart_lgpl-devel >= 2.3
673 BuildRequires: libbonobo-devel >= 2.8
674 BuildRequires: libbonoboui-devel >= 2.8
675 BuildRequires: bonobo-activation-devel
676 BuildRequires: GConf2-devel
677 BuildRequires: freetype-devel
680 BuildRequires: libtermcap-devel
681 BuildRequires: glibc-devel >= 2.3
683 %if %{fc4} && %{gconsole}
684 BuildRequires: gtk2-devel >= 2.6
685 BuildRequires: libgnomeui-devel >= 2.10
686 BuildRequires: ORBit2-devel
687 BuildRequires: libart_lgpl-devel >= 2.3
688 BuildRequires: libbonobo-devel >= 2.8
689 BuildRequires: libbonoboui-devel >= 2.8
690 BuildRequires: bonobo-activation-devel
691 BuildRequires: GConf2-devel
692 BuildRequires: freetype-devel
695 BuildRequires: libtermcap-devel
696 BuildRequires: glibc-devel >= 2.4
698 %if %{fc5} && %{gconsole}
699 BuildRequires: gtk2-devel >= 2.8
700 BuildRequires: libgnomeui-devel >= 2.14
701 BuildRequires: ORBit2-devel
702 BuildRequires: libart_lgpl-devel >= 2.3
703 BuildRequires: libbonobo-devel >= 2.14
704 BuildRequires: libbonoboui-devel >= 2.14
705 BuildRequires: GConf2-devel
706 BuildRequires: freetype-devel
709 BuildRequires: libtermcap-devel
710 BuildRequires: glibc-devel >= 2.5
712 %if %{fc6} && %{gconsole}
713 BuildRequires: gtk2-devel >= 2.10
714 BuildRequires: libgnomeui-devel >= 2.16
715 BuildRequires: ORBit2-devel
716 BuildRequires: libart_lgpl-devel >= 2.3
717 BuildRequires: libbonobo-devel >= 2.16
718 BuildRequires: libbonoboui-devel >= 2.16
719 BuildRequires: GConf2-devel
720 BuildRequires: freetype-devel
723 BuildRequires: libtermcap-devel
724 BuildRequires: glibc-devel >= 2.5
726 %if %{fc7} && %{gconsole}
727 BuildRequires: gtk2-devel >= 2.10
728 BuildRequires: libgnomeui-devel >= 2.18
729 BuildRequires: ORBit2-devel
730 BuildRequires: libart_lgpl-devel >= 2.3
731 BuildRequires: libbonobo-devel >= 2.18
732 BuildRequires: libbonoboui-devel >= 2.18
733 BuildRequires: GConf2-devel
734 BuildRequires: freetype-devel
737 BuildRequires: libtermcap-devel
738 BuildRequires: glibc-devel >= 2.7
740 %if %{fc8} && %{gconsole}
741 BuildRequires: gtk2-devel >= 2.12
742 BuildRequires: libgnomeui-devel >= 2.20
743 BuildRequires: ORBit2-devel
744 BuildRequires: libart_lgpl-devel >= 2.3
745 BuildRequires: libbonobo-devel >= 2.20
746 BuildRequires: libbonoboui-devel >= 2.20
747 BuildRequires: GConf2-devel
748 BuildRequires: freetype-devel
751 BuildRequires: glibc-devel >= 2.8
752 BuildRequires: zlib-static
754 %if %{fc9} && %{gconsole}
755 BuildRequires: gtk2-devel >= 2.12
756 BuildRequires: libgnomeui-devel >= 2.22
757 BuildRequires: ORBit2-devel
758 BuildRequires: libart_lgpl-devel >= 2.3
759 BuildRequires: libbonobo-devel >= 2.22
760 BuildRequires: libbonoboui-devel >= 2.22
761 BuildRequires: GConf2-devel
762 BuildRequires: freetype-devel
764 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
765 BuildRequires: libtermcap-devel
766 BuildRequires: glibc-devel >= 2.3
768 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && %{gconsole}
769 BuildRequires: gtk2-devel >= 2.0
770 BuildRequires: libgnomeui-devel >= 2.0
771 BuildRequires: ORBit2-devel
772 BuildRequires: libart_lgpl-devel >= 2.0
773 BuildRequires: libbonobo-devel >= 2.0
774 BuildRequires: libbonoboui-devel >= 2.0
775 BuildRequires: bonobo-activation-devel
776 BuildRequires: GConf2-devel
777 BuildRequires: linc-devel
778 BuildRequires: freetype-devel
781 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
782 BuildRequires: mysql-devel >= 3.23
785 %if %{mysql} && %{mysql4}
786 BuildRequires: mysql-devel >= 4.0
789 %if %{mysql} && %{mysql5}
790 BuildRequires: mysql-devel >= 5.0
793 %if %{postgresql} && %{wb3}
794 BuildRequires: rh-postgresql-devel >= 7
797 %if %{postgresql} && ! %{wb3}
798 BuildRequires: postgresql-devel >= 7
802 BuildRequires: wxGTK-devel >= 2.6
826 Summary: Bacula - The Network Backup Solution
827 Group: System Environment/Daemons
828 Provides: %{binname}-dir, %{binname}-sd, %{binname}-fd, %{binname}-server
829 Conflicts: bacula-client
831 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
835 Requires: ncurses, libstdc++, zlib, openssl, mtx
838 Requires: glibc >= 2.2
841 %if %{su9} || %{su10}
842 Requires: glibc >= 2.3
846 Requires: glibc >= 2.5
850 Requires: glibc >= 2.6
854 Requires: glibc >= 2.8
858 Requires: glibc >= 2.9
861 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
862 Requires: glibc >= 2.3
866 Requires: glibc >= 2.4
870 Requires: glibc >= 2.5
874 Requires: glibc >= 2.7
878 Requires: glibc >= 2.8
881 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
882 Requires: mysql >= 3.23
883 Requires: mysql-server >= 3.23
885 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
886 Requires: mysql >= 4.0
887 Requires: mysql-server >= 4.0
889 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk} && %{mysql5}
890 Requires: mysql >= 5.0
891 Requires: mysql-server >= 5.0
894 %if %{mysql} && %{su9} && ! %{mysql4}
895 Requires: mysql >= 3.23
896 Requires: mysql-client >= 3.23
898 %if %{mysql} && %{su9} && %{mysql4}
899 Requires: mysql >= 4.0
900 Requires: mysql-client >= 4.0
902 %if %{mysql} && %{su10} && %{mysql4}
903 Requires: mysql >= 4.0
904 Requires: mysql-client >= 4.0
906 %if %{mysql} && %{su10} && %{mysql5}
907 Requires: mysql >= 5.0
908 Requires: mysql-client >= 5.0
910 %if %{mysql} && %{su102} && %{mysql5}
911 Requires: mysql >= 5.0
912 Requires: mysql-client >= 5.0
914 %if %{mysql} && %{su103} && %{mysql5}
915 Requires: mysql >= 5.0
916 Requires: mysql-client >= 5.0
918 %if %{mysql} && %{su110} && %{mysql5}
919 Requires: mysql >= 5.0
920 Requires: mysql-client >= 5.0
922 %if %{mysql} && %{su111} && %{mysql5}
923 Requires: mysql >= 5.0
924 Requires: mysql-client >= 5.0
927 %if %{mysql} && %{mdk} && ! %{mysql4}
928 Requires: mysql >= 3.23
929 Requires: mysql-client >= 3.23
931 %if %{mysql} && %{mdk} && %{mysql4}
932 Requires: mysql >= 4.0
933 Requires: mysql-client >= 4.0
936 %if %{postgresql} && %{wb3}
937 Requires: rh-postgresql >= 7
938 Requires: rh-postgresql-server >= 7
940 %if %{postgresql} && ! %{wb3}
941 Requires: postgresql >= 7
942 Requires: postgresql-server >= 7
952 %description postgresql
956 Requires: python >= %{pyver}
970 This build requires MySQL to be installed separately as the catalog database.
973 This build requires PostgreSQL to be installed separately as the catalog database.
976 This build incorporates sqlite3 as the catalog database, statically compiled.
979 This build includes python scripting support.
982 %if ! %{client_only} && %{mtx}
984 Summary: Bacula - The Network Backup Solution
985 Group: System Environment/Daemons
989 This is Bacula's version of mtx tape utilities for Linux distributions that
990 do not provide their own mtx package
994 Summary: Bacula - The Network Backup Solution
995 Group: System Environment/Daemons
996 Provides: %{binname}-fd
997 Conflicts: bacula-mysql
998 Conflicts: bacula-sqlite
999 Conflicts: bacula-postgresql
1001 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1005 Requires: libstdc++, zlib, openssl
1008 Requires: glibc >= 2.2
1009 Requires: libtermcap
1011 %if %{su9} || %{su10}
1012 Requires: glibc >= 2.3
1016 Requires: glibc >= 2.5
1020 Requires: glibc >= 2.6
1024 Requires: glibc >= 2.8
1028 Requires: glibc >= 2.9
1031 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
1032 Requires: glibc >= 2.3
1033 Requires: libtermcap
1036 Requires: glibc >= 2.4
1037 Requires: libtermcap
1039 %if %{fc6} || %{fc7}
1040 Requires: glibc >= 2.5
1041 Requires: libtermcap
1044 Requires: glibc >= 2.7
1045 Requires: libtermcap
1048 Requires: glibc >= 2.8
1052 Requires: python >= %{pyver}
1066 This is the File daemon (Client) only package. It includes the command line
1069 This build includes python scripting support.
1072 %if ! %{client_only}
1075 Summary: Bacula - The Network Backup Solution
1076 Group: System Environment/Daemons
1078 %description updatedb
1089 This package installs scripts for updating older versions of the bacula
1096 Summary: Bacula - The Network Backup Solution
1097 Group: System Environment/Daemons
1110 This package installs scripts for creating a rescue USB key.
1115 Summary: Bacula - The Network Backup Solution
1116 Group: System Environment/Daemons
1129 This package installs the Bacula pdf and html documentation.
1133 Summary: Bacula - The Network Backup Solution
1134 Group: System Environment/Daemons
1135 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
1138 %if %{gconsole} && %{su9}
1139 Requires: gtk2 >= 2.0
1140 Requires: libgnome >= 2.0
1141 Requires: libgnomeui >= 2.0
1142 Requires: glibc >= 2.3
1144 Requires: libart_lgpl >= 2.0
1145 Requires: libbonobo >= 2.0
1146 Requires: libbonoboui >= 2.0
1147 Requires: bonobo-activation
1152 %if %{gconsole} && %{su10}
1153 Requires: gtk2 >= 2.8
1154 Requires: libgnome >= 2.12
1155 Requires: libgnomeui >= 2.12
1156 Requires: glibc >= 2.3
1158 Requires: libart_lgpl >= 2.3
1159 Requires: libbonobo >= 2.10
1160 Requires: libbonoboui >= 2.10
1161 Requires: bonobo-activation
1165 Requires: fontconfig >= 2.3
1166 Requires: gnome-vfs2 >= 2.12
1169 %if %{gconsole} && %{su102}
1170 Requires: gtk2 >= 2.10
1171 Requires: libgnome >= 2.16
1172 Requires: libgnomeui >= 2.16
1173 Requires: glibc >= 2.5
1175 Requires: libart_lgpl >= 2.3
1176 Requires: libbonobo >= 2.16
1177 Requires: libbonoboui >= 2.16
1178 Requires: bonobo-activation
1182 Requires: fontconfig >= 2.4
1183 Requires: gnome-vfs2 >= 2.16
1186 %if %{gconsole} && %{su103}
1187 Requires: gtk2 >= 2.12
1188 Requires: libgnome >= 2.20
1189 Requires: libgnomeui >= 2.20
1190 Requires: glibc >= 2.6
1192 Requires: libart_lgpl >= 2.3
1193 Requires: libbonobo >= 2.20
1194 Requires: libbonoboui >= 2.20
1195 Requires: bonobo-activation
1199 Requires: fontconfig >= 2.4
1200 Requires: gnome-vfs2 >= 2.20
1203 %if %{gconsole} && %{su110}
1204 Requires: gtk2 >= 2.12
1205 Requires: libgnome >= 2.22
1206 Requires: libgnomeui >= 2.22
1207 Requires: glibc >= 2.8
1209 Requires: libart_lgpl >= 2.3
1210 Requires: libbonobo >= 2.22
1211 Requires: libbonoboui >= 2.22
1212 Requires: bonobo-activation
1216 Requires: fontconfig >= 2.4
1217 Requires: gnome-vfs2 >= 2.22
1220 %if %{gconsole} && %{su111}
1221 Requires: gtk2 >= 2.14
1222 Requires: libgnome >= 2.24
1223 Requires: libgnomeui >= 2.24
1224 Requires: glibc >= 2.9
1226 Requires: libart_lgpl >= 2.3
1227 Requires: libbonobo >= 2.24
1228 Requires: libbonoboui >= 2.24
1229 Requires: bonobo-activation
1233 Requires: fontconfig >= 2.6
1234 Requires: gnome-vfs2 >= 2.24
1237 %if %{gconsole} && %{mdk} && !%{mdv}
1238 Requires: gtk2 >= 2.0
1239 Requires: libgnomeui2
1240 Requires: glibc >= 2.3
1242 Requires: libart_lgpl >= 2.0
1243 Requires: libbonobo >= 2.0
1244 Requires: libbonoboui >= 2.0
1248 %if %{gconsole} && %{mdv}
1249 Requires: gtk2 >= 2.8
1250 Requires: libgnomeui2
1251 Requires: glibc >= 2.3
1253 Requires: libart_lgpl >= 2.3
1254 Requires: libbonobo >= 2.10
1255 Requires: libbonoboui >= 2.10
1259 %if %{gconsole} && %{fc3}
1260 Requires: gtk2 >= 2.4
1261 Requires: libgnomeui >= 2.8
1262 Requires: glibc >= 2.3
1264 Requires: libart_lgpl >= 2.3
1265 Requires: libbonobo >= 2.8
1266 Requires: libbonoboui >= 2.8
1267 Requires: bonobo-activation
1271 %if %{gconsole} && %{fc4}
1272 Requires: gtk2 >= 2.6
1273 Requires: libgnomeui >= 2.10
1274 Requires: glibc >= 2.3
1276 Requires: libart_lgpl >= 2.3
1277 Requires: libbonobo >= 2.8
1278 Requires: libbonoboui >= 2.8
1279 Requires: bonobo-activation
1283 %if %{gconsole} && %{fc5}
1284 Requires: gtk2 >= 2.8
1285 Requires: libgnomeui >= 2.14
1286 Requires: glibc >= 2.4
1288 Requires: libart_lgpl >= 2.3
1289 Requires: libbonobo >= 2.14
1290 Requires: libbonoboui >= 2.14
1294 %if %{gconsole} && %{fc6}
1295 Requires: gtk2 >= 2.10
1296 Requires: libgnomeui >= 2.16
1297 Requires: glibc >= 2.5
1299 Requires: libart_lgpl >= 2.3
1300 Requires: libbonobo >= 2.16
1301 Requires: libbonoboui >= 2.16
1305 %if %{gconsole} && %{fc7}
1306 Requires: gtk2 >= 2.10
1307 Requires: libgnomeui >= 2.18
1308 Requires: glibc >= 2.5
1310 Requires: libart_lgpl >= 2.3
1311 Requires: libbonobo >= 2.18
1312 Requires: libbonoboui >= 2.18
1316 %if %{gconsole} && %{fc8}
1317 Requires: gtk2 >= 2.12
1318 Requires: libgnomeui >= 2.20
1319 Requires: glibc >= 2.7
1321 Requires: libart_lgpl >= 2.3
1322 Requires: libbonobo >= 2.20
1323 Requires: libbonoboui >= 2.20
1327 %if %{gconsole} && %{fc9}
1328 Requires: gtk2 >= 2.12
1329 Requires: libgnomeui >= 2.22
1330 Requires: glibc >= 2.8
1332 Requires: libart_lgpl >= 2.3
1333 Requires: libbonobo >= 2.22
1334 Requires: libbonoboui >= 2.22
1338 %if %{gconsole} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
1339 Requires: gtk2 >= 2.0
1340 Requires: libgnomeui >= 2.0
1341 Requires: glibc >= 2.3
1343 Requires: libart_lgpl >= 2.0
1344 Requires: libbonobo >= 2.0
1345 Requires: libbonoboui >= 2.0
1346 Requires: bonobo-activation
1351 %if %{gconsole} && %{su9}
1354 %if %{gconsole} && %{su10}
1357 %if %{gconsole} && %{su102}
1360 %if %{gconsole} && %{su103}
1363 %if %{gconsole} && %{su110}
1366 %if %{gconsole} && %{su111}
1369 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1374 %description gconsole
1385 This is the Gnome Console package. It is an add-on to the client or
1391 Summary: Bacula - The Network Backup Solution
1392 Group: System Environment/Daemons
1393 Requires: wxGTK >= 2.6, libstdc++, openssl
1396 %if %{wxconsole} && %{su10}
1397 Requires: gtk2 >= 2.8
1400 %if %{wxconsole} && %{su102}
1401 Requires: gtk2 >= 2.10
1404 %if %{wxconsole} && %{su103}
1405 Requires: gtk2 >= 2.12
1408 %if %{wxconsole} && %{su110}
1409 Requires: gtk2 >= 2.12
1412 %if %{wxconsole} && %{su111}
1413 Requires: gtk2 >= 2.14
1416 %if %{wxconsole} && %{fc3}
1417 Requires: gtk2 >= 2.4
1420 %if %{wxconsole} && %{fc4}
1421 Requires: gtk2 >= 2.6
1424 %if %{wxconsole} && %{fc5}
1425 Requires: gtk2 >= 2.8
1428 %if %{wxconsole} && %{fc6}
1429 Requires: gtk2 >= 2.10
1432 %if %{wxconsole} && %{fc7}
1433 Requires: gtk2 >= 2.10
1436 %if %{wxconsole} && %{fc8}
1437 Requires: gtk2 >= 2.12
1440 %if %{wxconsole} && %{fc9}
1441 Requires: gtk2 >= 2.12
1445 %description wxconsole
1456 This is the WXWindows Console package. It is an add-on to the client or
1462 Summary: Bacula - The Network Backup Solution
1463 Group: System Environment/Daemons
1466 %if %{bat} && %{su10}
1468 Requires: glibc >= 2.4
1469 Requires: fontconfig
1478 %if %{bat} && %{su102}
1480 Requires: glibc >= 2.5
1481 Requires: fontconfig
1490 %if %{bat} && %{su103}
1492 Requires: glibc >= 2.6
1493 Requires: fontconfig
1502 %if %{bat} && %{su110}
1504 Requires: glibc >= 2.8
1505 Requires: fontconfig
1514 %if %{bat} && %{su111}
1516 Requires: glibc >= 2.9
1517 Requires: fontconfig
1526 %if %{bat} && %{fc5}
1528 Requires: glibc >= 2.4
1529 Requires: fontconfig
1533 Requires: qt4 >= 4.2
1538 %if %{bat} && %{fc6}
1540 Requires: glibc >= 2.5
1541 Requires: fontconfig
1545 Requires: qt4 >= 4.2
1550 %if %{bat} && %{fc7}
1552 Requires: glibc >= 2.5
1553 Requires: fontconfig
1557 Requires: qt4 >= 4.2
1562 %if %{bat} && %{fc8}
1564 Requires: glibc >= 2.7
1565 Requires: fontconfig
1569 Requires: qt4 >= 4.2
1574 %if %{bat} && %{fc9}
1576 Requires: glibc >= 2.8
1577 Requires: fontconfig
1581 Requires: qt4 >= 4.3
1598 This is the Bacula Administration Tool (bat) graphical user interface package.
1599 It is an add-on to the client or server packages.
1602 # SuSE turns off stripping of binaries by default. In order to get
1603 # stripped packages we must generate debug package. RedHat and Mandriva
1604 # turn debug packages on by default but strip binaries regardless.
1605 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1619 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1620 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
1624 export QTDIR=$(pkg-config --variable=prefix QtCore)
1625 export QTINC=$(pkg-config --variable=includedir QtCore)
1626 export QTLIB=$(pkg-config --variable=libdir QtCore)
1627 export PATH=${QTDIR}/bin/:${PATH}
1635 %if ! %{client_only} && %{mtx}
1643 %if %{wb3} || %{old_pgsql}
1644 patch -p3 src/cats/postgresql.c < %SOURCE5
1647 # patches for the bundled sqlite scripts
1649 # patch the make_sqlite_tables script for installation bindir
1650 #patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
1651 #patch src/cats/make_sqlite3_tables.in src/cats/make_sqlite3_tables.in.patch
1653 # patch the create_sqlite_database script for installation bindir
1654 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
1655 #patch src/cats/create_sqlite3_database.in src/cats/create_sqlite3_database.in.patch
1657 # patch the make_catalog_backup script for installation bindir
1658 #patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
1660 # patch the update_sqlite_tables script for installation bindir
1661 #patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
1662 #patch src/cats/update_sqlite3_tables.in src/cats/update_sqlite3_tables.in.patch
1664 # patch the bacula-dir init script to remove sqlite service
1665 %if %{sqlite} && %{su9}
1666 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1668 %if %{sqlite} && %{su10}
1669 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1671 %if %{sqlite} && %{su102}
1672 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1674 %if %{sqlite} && %{su103}
1675 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1677 %if %{sqlite} && %{su110}
1678 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1680 %if %{sqlite} && %{su111}
1681 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1684 # 64 bit lib location hacks
1685 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
1686 # reported to be fixed to properly detect lib locations.
1688 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
1690 %if %{mysql} && %{x86_64}
1691 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
1693 %if %{python} && %{x86_64}
1694 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
1697 # Red Hat's 64 bit installation of QT4 appears to be broken so:
1699 %if %{rhel5} || %{centos5} || %{sl5}
1702 %if %{bat} && %{qt_path} && %{x86_64}
1703 export PATH=/usr/lib64/qt4/bin/:$PATH
1704 export QTDIR=/usr/lib64/qt4/
1705 export QTINC=/usr/lib64/qt4/include/
1706 export QTLIB=/usr/lib64/qt4/
1710 echo "Doing rescue configure"
1712 --prefix=%{_prefix} \
1713 --sbindir=%{_sbindir} \
1714 --sysconfdir=%{sysconf_dir} \
1715 --with-scriptdir=%{script_dir} \
1716 --with-working-dir=%{working_dir} \
1717 --with-pid-dir=%{pid_dir} \
1718 --enable-smartalloc \
1719 --enable-client-only \
1723 --enable-static-fd \
1726 echo "Doing rescue make"
1730 echo "Doing full configure"
1732 --prefix=%{_prefix} \
1733 --sbindir=%{_sbindir} \
1734 --sysconfdir=%{sysconf_dir} \
1735 --with-scriptdir=%{script_dir} \
1736 --with-working-dir=%{working_dir} \
1737 --with-pid-dir=%{pid_dir} \
1738 --enable-smartalloc \
1743 %if %{gconsole} && ! %{rh8}
1744 --enable-tray-monitor \
1756 --enable-bwx-console \
1766 --enable-client-only \
1768 %if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{fc3} || %{wb3}
1769 --disable-batch-insert \
1771 --mandir=%{_mandir} \
1772 --with-subsys-dir=%{_subsysdir} \
1773 --with-dir-user=%{director_daemon_user} \
1774 --with-dir-group=%{daemon_group} \
1775 --with-sd-user=%{storage_daemon_user} \
1776 --with-sd-group=%{storage_daemon_group} \
1777 --with-fd-user=%{file_daemon_user} \
1778 --with-fd-group=%{daemon_group} \
1779 --with-basename="XXX_HOSTNAME_XXX" \
1780 --with-hostname="XXX_HOSTNAME_XXX" \
1781 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1782 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1783 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1784 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1785 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1786 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1789 echo "Doing Full make"
1792 echo "Doing Full install"
1796 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1797 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1798 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1799 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1800 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1801 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1802 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1804 %if %{gconsole} || %{wxconsole} || %{bat}
1805 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1806 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1809 %if %{gconsole} || %{wxconsole} || %{bat}
1810 %define usermode_iftrick 1
1812 %define usermode_iftrick 0
1815 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1816 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1817 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1818 mkdir -p $RPM_BUILD_ROOT%{_sbindir}
1822 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1826 prefix=$RPM_BUILD_ROOT%{_prefix} \
1827 sbindir=$RPM_BUILD_ROOT%{_sbindir} \
1828 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1829 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1830 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1831 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1832 mandir=$RPM_BUILD_ROOT%{_mandir} \
1835 %if ! %{client_only} && %{mtx}
1838 prefix=$RPM_BUILD_ROOT%{_prefix} \
1839 sbindir=$RPM_BUILD_ROOT%{_sbindir} \
1840 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1841 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1842 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1843 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1844 mandir=$RPM_BUILD_ROOT%{_mandir} \
1849 # make install in manpages installs _everything_ shotgun style
1850 # so now delete what we will not be packaging
1852 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
1855 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bat.1.%{manpage_ext}
1858 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
1859 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1862 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.%{manpage_ext}
1863 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1864 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1865 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.%{manpage_ext}
1866 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.%{manpage_ext}
1867 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.%{manpage_ext}
1868 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.%{manpage_ext}
1869 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.%{manpage_ext}
1870 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.%{manpage_ext}
1873 # fixme - make installs the mysql scripts for sqlite build
1875 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1876 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1877 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1880 # fixme - make installs the mysql scripts for postgresql build
1882 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1883 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1886 # fixme - make installs gconsole script for build without gconsole
1888 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1891 rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd
1893 # install the init scripts
1894 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1895 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1896 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1897 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1901 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1902 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1903 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1906 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk}
1907 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1908 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1909 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1912 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1915 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1916 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1919 # install the menu stuff
1920 %if %{gconsole} && %{su9}
1921 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1922 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1923 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1924 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1926 %if %{gconsole} && %{su10}
1927 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1928 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1929 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1930 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1932 %if %{gconsole} && %{su102}
1933 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1934 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1935 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1936 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1938 %if %{gconsole} && %{su103}
1939 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1940 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
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 %{gconsole} && %{su110}
1945 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1946 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1947 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1948 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1950 %if %{gconsole} && %{su111}
1951 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1952 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1953 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1954 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1956 %if %{wxconsole} && %{su10}
1957 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1958 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1960 %if %{wxconsole} && %{su102}
1961 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1962 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1964 %if %{wxconsole} && %{su103}
1965 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1966 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1968 %if %{wxconsole} && %{su110}
1969 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1970 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1972 %if %{wxconsole} && %{su111}
1973 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1974 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1976 %if %{bat} && %{su102}
1977 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1978 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1980 %if %{bat} && %{su103}
1981 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1982 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1984 %if %{bat} && %{su110}
1985 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1986 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1988 %if %{bat} && %{su111}
1989 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1990 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1992 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{fc6} || %{fc7} || %{fc8} || %{fc9} || %{mdk}
1997 %if %{gconsole} && %{iftrick}
1998 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1999 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
2000 cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console
2001 cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console
2002 #ln -sf consolehelper $RPM_BUILD_ROOT%{_sbindir}/bgnome-console
2004 %if %{gconsole} && ! %{rh8}
2005 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
2006 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
2008 %if %{wxconsole} && %{iftrick}
2009 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
2010 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
2011 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bwx-console
2012 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console
2013 #ln -sf consolehelper $RPM_BUILD_ROOT%{_sbindir}/bwx-console
2015 %if %{bat} && %{iftrick}
2016 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
2017 cp -p scripts/bat.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
2018 cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat
2019 cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat
2020 #ln -sf consolehelper $RPM_BUILD_ROOT/%{_sbindir}/bat
2025 cp -p %{depkgs}/sqlite3/sqlite3 $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3
2026 cp -p %{depkgs}/sqlite3/sqlite3.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3.h
2027 cp -p %{depkgs}/sqlite3/libsqlite3.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite3.a
2030 # install the logrotate file
2031 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
2033 # install the updatedb scripts
2034 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
2036 # install the logwatch scripts
2037 %if ! %{client_only}
2038 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
2039 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
2040 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
2041 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
2042 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
2043 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
2046 # install the rescue files
2048 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
2049 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
2050 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
2051 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/
2052 cp -p %{_rescuesrc}/freebsd/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd/
2053 cp -p %{_rescuesrc}/solaris/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/solaris/
2054 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT%{script_dir}/rescue/
2055 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT%{script_dir}/rescue/
2056 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT%{script_dir}/rescue/
2057 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT%{script_dir}/rescue/
2058 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT%{script_dir}/rescue/
2059 cp -pr %{_rescuesrc}/knoppix $RPM_BUILD_ROOT%{script_dir}/rescue/
2060 touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
2061 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
2062 rm -f src/filed/static-bacula-fd
2067 cp -p src/qt-console/bat $RPM_BUILD_ROOT%{_sbindir}/bat
2068 cp -p src/qt-console/bat.conf $RPM_BUILD_ROOT%{sysconf_dir}/bat.conf
2071 # now clean up permissions that are left broken by the install
2072 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
2073 %if %{gconsole} && ! %{rh8}
2074 chmod 755 $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor
2075 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
2078 # fix me - building enable-client-only installs files not included in bacula-client package
2080 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
2081 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
2082 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
2083 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
2084 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
2085 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
2086 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
2087 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
2088 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
2092 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
2093 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
2094 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
2095 rm -rf $RPM_BUILD_DIR/depkgs
2096 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
2099 # MySQL specific files
2101 %defattr(-, root, %{daemon_group})
2102 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
2103 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
2104 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
2105 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
2106 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
2107 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
2108 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
2109 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
2114 %defattr(-, root, %{daemon_group})
2115 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite3_database
2116 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_database
2117 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite3_privileges
2118 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite3_tables
2119 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_tables
2120 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite3_tables
2121 %{sqlite_bindir}/libsqlite3.a
2122 %{sqlite_bindir}/sqlite3.h
2123 %{sqlite_bindir}/sqlite3
2128 %defattr(-, root, %{daemon_group})
2129 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
2130 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
2131 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
2132 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
2133 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
2134 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
2137 # The rest is DB backend independent
2138 %if ! %{client_only}
2139 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2140 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
2141 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
2142 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
2143 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
2144 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
2145 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
2146 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
2147 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
2148 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
2149 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
2150 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2151 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2152 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
2153 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
2154 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
2155 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
2156 %attr(-, root, %{daemon_group}) %{script_dir}/bpipe-fd.so
2157 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
2158 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-sd
2159 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
2160 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
2161 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
2162 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer.conf
2165 /etc/logrotate.d/bacula
2166 /etc/log.d/scripts/services/bacula
2168 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2169 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
2170 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2171 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
2172 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2173 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
2174 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
2175 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
2177 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
2179 %attr(-, root, %{daemon_group}) %dir %{_sbindir}
2180 %attr(-, root, %{daemon_group}) %{_sbindir}/bacula-dir
2181 %attr(-, root, %{daemon_group}) %{_sbindir}/bacula-fd
2182 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/bacula-sd
2183 %attr(-, root, %{daemon_group}) %{_sbindir}/bcopy
2184 %attr(-, root, %{daemon_group}) %{_sbindir}/bextract
2185 %attr(-, root, %{daemon_group}) %{_sbindir}/bls
2186 %attr(-, root, %{daemon_group}) %{_sbindir}/bscan
2187 %attr(-, root, %{daemon_group}) %{_sbindir}/btape
2188 %attr(-, root, %{daemon_group}) %{_sbindir}/btraceback
2189 %attr(-, root, %{daemon_group}) %{_sbindir}/bconsole
2190 %attr(-, root, %{daemon_group}) %{_sbindir}/dbcheck
2191 %attr(-, root, %{daemon_group}) %{_sbindir}/bsmtp
2192 %attr(-, root, %{daemon_group}) %{_sbindir}/bregex
2193 %attr(-, root, %{daemon_group}) %{_sbindir}/bwild
2196 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2197 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
2198 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
2199 %{_mandir}/man8/bacula.8.%{manpage_ext}
2200 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2201 %{_mandir}/man8/bcopy.8.%{manpage_ext}
2202 %{_mandir}/man8/bextract.8.%{manpage_ext}
2203 %{_mandir}/man8/bls.8.%{manpage_ext}
2204 %{_mandir}/man8/bscan.8.%{manpage_ext}
2205 %{_mandir}/man8/btape.8.%{manpage_ext}
2206 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2207 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
2208 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
2212 %doc COPYING LICENSE ChangeLog ReleaseNotes VERIFYING kernstodo
2213 %doc ../Release_Notes-%{version}-%{release}.txt
2217 # test for bacula database older than version 9
2218 # note: this ASSUMES no password has been set for bacula database
2219 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2224 # are we upgrading from sqlite to sqlite3?
2225 if [ -f %{working_dir}/bacula.db ] && [ -f %{sqlite_bindir}/sqlite ];then
2226 echo "This version of bacula-sqlite involves an upgrade to sqlite3."
2227 echo "Your catalog database file is not compatible with sqlite3, thus"
2228 echo "you will need to dump the data, delete the old file, and re-run"
2229 echo "this rpm upgrade."
2231 echo "Backing up your current database..."
2232 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db > %{working_dir}/bacula_backup.sql
2233 mv %{working_dir}/bacula.db %{working_dir}/bacula.db.old
2234 echo "Your catalog data has been saved in %{working_dir}/bacula_backup.sql and your"
2235 echo "catalog file has been renamed %{working_dir}/bacula.db.old."
2237 echo "Please re-run this rpm package upgrade."
2238 echo "After the upgrade is complete, restore your catalog"
2239 echo "with the following commands:"
2240 echo "%{script_dir}/drop_sqlite3_tables"
2241 echo "cd %{working_dir}"
2242 echo "%{sqlite_bindir}/sqlite3 $* bacula.db < bacula_backup.sql"
2243 echo "chown bacula:bacula bacula.db"
2246 # test for bacula database older than version 9 and sqlite3
2247 if [ -f %{working_dir}/bacula.db ] && [ -f %{sqlite_bindir}/sqlite3 ];then
2248 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2253 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2256 %if ! %{client_only}
2257 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "10" ]; then
2258 echo "This bacula upgrade will update a bacula database from version 10 to 11."
2259 echo "You appear to be running database version $DB_VER. You must first update"
2260 echo "your database to version 10 and then install this upgrade. The alternative"
2261 echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
2262 echo "catalog information, then do the upgrade. Information on updating a"
2263 echo "database older than version 9 can be found in the release notes."
2272 %if ! %{client_only}
2273 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
2274 if [ -f %{sysconf_dir}/console.conf ];then
2275 cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
2278 # create the daemon users and groups
2279 # first create the groups if they don't exist
2280 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2281 if [ -z "$HAVE_BACULA" ]; then
2282 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2283 echo "The group %{daemon_group} has been added to %{group_file}."
2284 echo "See the manual chapter \"Running Bacula\" for details."
2286 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
2287 if [ -z "$HAVE_BACULA" ]; then
2288 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
2289 echo "The group %{storage_daemon_group} has been added to %{group_file}."
2290 echo "See the manual chapter \"Running Bacula\" for details."
2292 # now create the users if they do not exist
2293 # we do not use the -g option allowing the primary group to be set to system default
2294 # this will be a unique group on redhat type systems or the group users on some systems
2295 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
2296 if [ -z "$HAVE_BACULA" ]; then
2297 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
2298 echo "The user %{storage_daemon_user} has been added to %{user_file}."
2299 echo "See the manual chapter \"Running Bacula\" for details."
2301 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
2302 if [ -z "$HAVE_BACULA" ]; then
2303 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
2304 echo "The user %{director_daemon_user} has been added to %{user_file}."
2305 echo "See the manual chapter \"Running Bacula\" for details."
2307 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2308 if [ -z "$HAVE_BACULA" ]; then
2309 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2310 echo "The user %{file_daemon_user} has been added to %{user_file}."
2311 echo "See the manual chapter \"Running Bacula\" for details."
2313 # now we add the supplementary groups, this is ok to call even if the users already exist
2314 # we only do this if the user is NOT root
2315 IS_ROOT=%{director_daemon_user}
2316 if [ "$IS_ROOT" != "root" ]; then
2317 %{usermod} -G %{daemon_group} %{director_daemon_user}
2319 IS_ROOT=%{storage_daemon_user}
2320 if [ "$IS_ROOT" != "root" ]; then
2321 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
2323 IS_ROOT=%{file_daemon_user}
2324 if [ "$IS_ROOT" != "root" ]; then
2325 %{usermod} -G %{daemon_group} %{file_daemon_user}
2339 %if ! %{client_only}
2341 if [ "$1" -ge 1 ] ; then
2342 /sbin/chkconfig --add bacula-dir
2343 /sbin/chkconfig --add bacula-fd
2344 /sbin/chkconfig --add bacula-sd
2349 # test for an existing database
2350 # note: this ASSUMES no password has been set for bacula database
2351 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2353 # grant privileges and create tables if they do not exist
2354 if [ -z "$DB_VER" ]; then
2355 echo "Hmm, it doesn't look like you have an existing database."
2356 echo "Granting privileges for MySQL user bacula..."
2357 %{script_dir}/grant_mysql_privileges
2358 echo "Creating MySQL bacula database..."
2359 %{script_dir}/create_mysql_database
2360 echo "Creating bacula tables..."
2361 %{script_dir}/make_mysql_tables
2363 # check to see if we need to upgrade a 2.x or lower database
2364 elif [ "$DB_VER" -lt "11" ]; then
2365 echo "This release requires an upgrade to your bacula database."
2366 echo "Backing up your current database..."
2367 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2368 echo "Upgrading bacula database ..."
2369 %{script_dir}/update_mysql_tables
2370 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2376 # test for an existing database
2377 if [ -f %{working_dir}/bacula.db ]; then
2378 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2379 # check to see if we need to upgrade a 2.x or lower database
2380 if [ "$DB_VER" -lt "10" ] && [ "$DB_VER" -ge "10" ]; then
2381 echo "This release requires an upgrade to your bacula database."
2382 echo "Backing up your current database..."
2383 echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2384 echo "Upgrading bacula database ..."
2385 %{script_dir}/update_sqlite3_tables
2386 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2389 # create the database and tables
2390 echo "Hmm, it doesn't look like you have an existing database."
2391 echo "Creating SQLite database..."
2392 %{script_dir}/create_sqlite3_database
2393 echo "Creating the SQLite tables..."
2394 %{script_dir}/make_sqlite3_tables
2395 chown %{director_daemon_user}:%{daemon_group} %{working_dir}/bacula.db
2400 # test for an existing database
2401 # note: this ASSUMES no password has been set for bacula database
2402 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2404 # grant privileges and create tables if they do not exist
2405 if [ -z "$DB_VER" ]; then
2406 echo "Hmm, it doesn't look like you have an existing database."
2407 echo "Creating PostgreSQL bacula database..."
2408 %{script_dir}/create_postgresql_database
2409 echo "Creating bacula tables..."
2410 %{script_dir}/make_postgresql_tables
2411 echo "Granting privileges for PostgreSQL user bacula..."
2412 %{script_dir}/grant_postgresql_privileges
2414 # check to see if we need to upgrade a 2.x or lower database
2415 elif [ "$DB_VER" -lt "11" ]; then
2416 echo "This release requires an upgrade to your bacula database."
2417 echo "Backing up your current database..."
2418 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2419 echo "Upgrading bacula database ..."
2420 %{script_dir}/update_postgresql_tables
2421 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2426 %if ! %{client_only}
2427 # generate passwords if needed
2428 if [ -d %{sysconf_dir} ]; then
2430 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
2431 pass=`openssl rand -base64 33`
2432 for file in *.conf; do
2433 need_password=`grep ${string} $file 2>/dev/null`
2434 if [ -n "$need_password" ]; then
2435 sed "s@${string}@${pass}@g" $file > $file.new
2436 cp -f $file.new $file; rm -f $file.new
2440 # put actual hostname in conf file
2442 string="XXX_HOSTNAME_XXX"
2443 for file in *.conf; do
2444 need_host=`grep ${string} $file 2>/dev/null`
2445 if [ -n "$need_host" ]; then
2446 sed "s@${string}@${host}@g" $file >$file.new
2447 cp -f $file.new $file; rm -f $file.new
2465 %if ! %{client_only}
2468 /sbin/chkconfig --del bacula-dir
2469 /sbin/chkconfig --del bacula-fd
2470 /sbin/chkconfig --del bacula-sd
2475 %if ! %{client_only} && %{mtx}
2477 %defattr(-,root,root)
2478 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
2479 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
2480 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
2481 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
2482 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
2483 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
2484 %{_mandir}/man1/mtx.1.%{manpage_ext}
2485 %{_mandir}/man1/scsitape.1.%{manpage_ext}
2486 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
2487 %{_mandir}/man1/scsieject.1.%{manpage_ext}
2492 %defattr(-,root,root)
2493 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2494 %{script_dir}/bacula-ctl-fd
2495 /etc/init.d/bacula-fd
2498 %doc COPYING ChangeLog LICENSE ReleaseNotes VERIFYING kernstodo
2499 %doc ../Release_Notes-%{version}-%{release}.txt
2501 /etc/logrotate.d/bacula
2503 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2504 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2506 %attr(-, root, %{daemon_group}) %dir %{working_dir}
2508 %{_sbindir}/bacula-fd
2509 %{_sbindir}/btraceback
2510 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2511 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2512 %{_sbindir}/bconsole
2513 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2514 %{_mandir}/man8/bacula.8.%{manpage_ext}
2515 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2516 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2520 # create the daemon group and user
2521 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2522 if [ -z "$HAVE_BACULA" ]; then
2523 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2524 echo "The group %{daemon_group} has been added to %{group_file}."
2525 echo "See the manual chapter \"Running Bacula\" for details."
2527 # we do not use the -g option allowing the primary group to be set to system default
2528 # this will be a unique group on redhat type systems or the group users on some systems
2529 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2530 if [ -z "$HAVE_BACULA" ]; then
2531 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2532 echo "The user %{file_daemon_user} has been added to %{user_file}."
2533 echo "See the manual chapter \"Running Bacula\" for details."
2535 # now we add the supplementary group, this is ok to call even if the user already exists
2536 # we only do this if the user is NOT root
2537 IS_ROOT=%{file_daemon_user}
2538 if [ "$IS_ROOT" != "root" ]; then
2539 %{usermod} -G %{daemon_group} %{file_daemon_user}
2544 # generate passwords if needed
2545 if [ -d %{sysconf_dir} ]; then
2547 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
2548 pass=`openssl rand -base64 33`
2549 for file in *.conf; do
2550 need_password=`grep $string $file 2>/dev/null`
2551 if [ -n "$need_password" ]; then
2552 sed "s@${string}@${pass}@g" $file > $file.new
2553 cp -f $file.new $file; rm -f $file.new
2557 # put actual hostname in conf file
2559 string="XXX_HOSTNAME_XXX"
2560 for file in *.conf; do
2561 need_host=`grep $string $file 2>/dev/null`
2562 if [ -n "$need_host" ]; then
2563 sed "s@${string}@${host}@g" $file >$file.new
2564 cp -f $file.new $file; rm -f $file.new
2570 if [ "$1" -ge 1 ] ; then
2571 /sbin/chkconfig --off bacula-fd
2572 /sbin/chkconfig --add bacula-fd
2573 /sbin/chkconfig --on bacula-fd
2581 /sbin/chkconfig --del bacula-fd
2584 %if ! %{client_only}
2586 %defattr(-,root,%{daemon_group})
2587 %{script_dir}/updatedb/*
2590 # create the daemon group
2591 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2592 if [ -z "$HAVE_BACULA" ]; then
2593 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2594 echo "The group %{daemon_group} has been added to %{group_file}."
2595 echo "See the manual chapter \"Running Bacula\" for details."
2599 echo "The database update scripts were installed in %{script_dir}/updatedb"
2604 %defattr(-,root,root)
2605 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2609 %defattr(-,root,root)
2610 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
2614 %defattr(-, root, %{daemon_group})
2615 %{_sbindir}/bgnome-console
2616 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2617 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
2618 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bgnome-console.conf
2619 /usr/share/pixmaps/bacula.png
2620 /usr/share/applications/bacula.desktop
2621 %{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
2624 %if %{gconsole} && ! %{rh8}
2625 %{_sbindir}/bacula-tray-monitor
2626 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
2627 /usr/share/pixmaps/bacula-tray-monitor.xpm
2628 /usr/share/applications/bacula-tray-monitor.desktop
2629 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
2632 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2633 # add the console helper files
2634 %config(noreplace,missingok) /etc/pam.d/bgnome-console
2635 %config(noreplace,missingok) /etc/security/console.apps/bgnome-console
2636 %{_sbindir}/bgnome-console
2641 # create the daemon group
2642 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2643 if [ -z "$HAVE_BACULA" ]; then
2644 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2645 echo "The group %{daemon_group} has been added to %{group_file}."
2646 echo "See the manual chapter \"Running Bacula\" for details."
2650 # generate passwords if needed
2651 if [ -d %{sysconf_dir} ]; then
2653 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
2654 pass=`openssl rand -base64 33`
2655 for file in *.conf; do
2656 need_password=`grep $string $file 2>/dev/null`
2657 if [ -n "$need_password" ]; then
2658 sed "s@${string}@${pass}@g" $file > $file.new
2659 cp -f $file.new $file; rm -f $file.new
2663 # put actual hostname in conf file
2665 string="XXX_HOSTNAME_XXX"
2666 for file in *.conf; do
2667 need_host=`grep $string $file 2>/dev/null`
2668 if [ -n "$need_host" ]; then
2669 sed "s@${string}@${host}@g" $file >$file.new
2670 cp -f $file.new $file; rm -f $file.new
2680 %defattr(-, root, %{daemon_group})
2681 %defattr(-,root,root)
2682 %{_sbindir}/bwx-console
2683 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2684 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bwx-console.conf
2685 /usr/share/pixmaps/wxwin16x16.xpm
2686 /usr/share/applications/wxconsole.desktop
2687 %{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
2690 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2691 # add the console helper files
2692 %config(noreplace,missingok) /etc/pam.d/bwx-console
2693 %config(noreplace,missingok) /etc/security/console.apps/bwx-console
2694 %{_sbindir}/bwx-console
2699 # create the daemon group
2700 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2701 if [ -z "$HAVE_BACULA" ]; then
2702 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2703 echo "The group %{daemon_group} has been added to %{group_file}."
2704 echo "See the manual chapter \"Running Bacula\" for details."
2708 # generate passwords if needed
2709 if [ -d %{sysconf_dir} ]; then
2711 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
2712 pass=`openssl rand -base64 33`
2713 for file in *.conf; do
2714 need_password=`grep $string $file 2>/dev/null`
2715 if [ -n "$need_password" ]; then
2716 sed "s@${string}@${pass}@g" $file > $file.new
2717 cp -f $file.new $file; rm -f $file.new
2721 # put actual hostname in conf file
2723 string="XXX_HOSTNAME_XXX"
2724 for file in *.conf; do
2725 need_host=`grep $string $file 2>/dev/null`
2726 if [ -n "$need_host" ]; then
2727 sed "s@${string}@${host}@g" $file >$file.new
2728 cp -f $file.new $file; rm -f $file.new
2738 %defattr(-,root,%{daemon_group})
2740 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2741 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bat.conf
2742 /usr/share/pixmaps/bat_icon.png
2743 /usr/share/applications/bat.desktop
2744 %{_mandir}/man1/bat.1.%{manpage_ext}
2747 %if %{bat} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2748 # add the console helper files
2749 %config(noreplace,missingok) /etc/pam.d/bat
2750 %config(noreplace,missingok) /etc/security/console.apps/bat
2755 # create the daemon group
2756 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2757 if [ -z "$HAVE_BACULA" ]; then
2758 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2759 echo "The group %{daemon_group} has been added to %{group_file}."
2760 echo "See the manual chapter \"Running Bacula\" for details."
2764 # generate passwords if needed
2765 if [ -d %{sysconf_dir} ]; then
2767 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
2768 pass=`openssl rand -base64 33`
2769 for file in *.conf; do
2770 need_password=`grep $string $file 2>/dev/null`
2771 if [ -n "$need_password" ]; then
2772 sed "s@${string}@${pass}@g" $file > $file.new
2773 cp -f $file.new $file; rm -f $file.new
2777 # put actual hostname in conf file
2779 string="XXX_HOSTNAME_XXX"
2780 for file in *.conf; do
2781 need_host=`grep $string $file 2>/dev/null`
2782 if [ -n "$need_host" ]; then
2783 sed "s@${string}@${host}@g" $file >$file.new
2784 cp -f $file.new $file; rm -f $file.new
2793 * Sun Jul 19 2009 Kern Sibbald <kern@sibbald.com>
2794 - Merge in Scott's 3.0 changes
2795 * Sat Apr 25 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2796 - add switch to pass Distribution tag
2797 * Sun Apr 5 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2799 - database update version 10 to 11
2800 - make now installs docs so we rm from buildroot
2801 - add shared libs in %_libdir and other misc new files
2802 * Sun Jun 14 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2803 - some corrections to %if logic
2804 * Fri May 29 2009 Kern Sibbald <kern@sibbald.com>
2805 - Make bacula.spec.in more configurable
2806 - Split out rescue and docs
2807 * Wed Dec 31 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2809 * Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2810 - set paths for QT using pkgconfig
2811 * Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2812 - release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
2813 * Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2814 - adjust /opt/bacula install
2815 - add build switch to supress rescue package
2816 * Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2817 - add support for install to /opt/bacula
2818 * Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2819 - remove libtermcap dependancy for FC9
2820 * Mon Aug 04 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2821 - fix bat dependencies
2822 * Sat Jun 28 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2824 * Sat May 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2826 * Sun Mar 30 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2827 - FHS compatibility changes
2828 * Sat Feb 16 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2829 - remove fix for false buffer overflow detection with glibc >= 2.7
2830 * Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2831 - fix for false buffer overflow detection with glibc >= 2.7
2832 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2834 - add debug package for SuSE
2835 * Sat Jan 12 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2836 - 2.2.8 beta release
2839 * Sun Dec 30 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2840 - fix typo on su103 client package requirements
2841 * Fri Dec 28 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2842 - add nobuild_mtx switch
2843 - add patch for postgresql.c for old postgresql versions
2844 * Sat Nov 17 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2846 * Sun Nov 11 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2847 - add new files required by rescue makefile
2848 * Sat Nov 10 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2849 - add su103 build target
2850 * Sun Nov 04 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2851 - fix dist defines for rhel5 and clones
2852 - fix rhel broken 64 bit QT4 paths
2853 - rh qt4 packages don't provide qt so fix that too
2854 * Mon Oct 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2855 - correct ownership when creating sqlite db file in post script
2856 * Sun Sep 16 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2857 - fix disable-batch-insert
2858 * Fri Sep 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2860 - turn off gconsole build for fc3, tray monitor fails to build
2861 - add new files for mtx package (09Sep07 depkgs update)
2862 * Sat Sep 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2863 - add --disable-batch-insert for older platforms
2864 - add build targets for rhel5 and clones
2865 * Mon Sep 03 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2867 - turn off gconsole build for su10 & fc4, tray monitor fails to build
2868 * Sat Jul 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2869 - 2.1.26 add make of qwt in depkgs for bat
2870 * Sat Jun 02 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2871 - upgrade Qt requirement for bat to 4.2
2872 * Sun May 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2873 - add fc7 build target
2874 * Sun Apr 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2876 - gnome-console now bgnome-console
2877 - wxconsole now bwx-console
2878 - add build option for bat
2879 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2880 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
2881 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
2882 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
2883 - adjust directory locations for FHS-compatibility
2884 sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
2885 working_dir (/var/lib/bacula) and pid_dir (/var/run)
2886 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2887 - add SuSE 10.2 target
2888 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2890 - set query.sql as config file
2892 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2894 - change determination of gcc version per patch from Marc Hennes
2895 - move BuildRequire for atk-devel to gnome only builds
2897 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2899 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2900 - 1.39.26 remove create_sqlite_database.in.patch
2901 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2902 - change ownership of working_dir on server packages to bacula.bacula so that
2903 - bacula-sd can create bootstrap files
2904 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2905 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
2906 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2907 - fix manpages file extension for mdk
2908 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2909 - bug 648 re-enable and update sqlite patches
2913 - lock out gconsole build for gtk+ < 2.4
2914 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2915 - move pango-devel BuildRequires into gconsole only build
2916 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2917 - add provides and conflicts for standard suse packages
2918 - add third party packager tag support
2919 - add build_client_only tag
2920 - remove bsmtp from client package
2921 - add bacula-ctl-fd to client package
2922 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2923 - fix directory creation when wxconsole and not gconsole
2924 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2925 - add check to buildrequires to make sure libstdc++ version matches gcc
2926 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2927 - add python build support
2928 - fix LDFLAGS declarations
2929 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2930 - add requires for standard compiler toolchain
2931 - move version and release tags up
2933 - add docs_version tag
2934 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2935 - update rescuever to 1.8.6
2936 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2937 - update depkgs to 25Jun06
2938 - add mysql5 build tag
2939 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2940 - 1.38.10 bump rescue version
2941 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2942 - fix usermod statements
2944 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2945 - add -g param back to useradd statements Bug 605
2946 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2947 - redundant code cleanup
2948 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2949 - add wxconsole package
2950 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2952 - dependency update for Mandriva
2953 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2955 - remove -n option from useradd scripts
2956 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2958 - fix problem specifying more than one primary group for user bacula
2959 - add build switch to not build gconsole regardless of platform
2960 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2961 - add centos3 build tag
2962 - fix link error of static-fd on Mandrake with --disable-nls
2963 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2964 - add fc4 dependencies
2965 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2966 - add SuSE 10.0 build
2967 - remove specific permission in attrib macros
2968 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2970 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
2971 - refix compat for _dist on SLES9 which seems to have been removed
2972 - added note regarding Aleksandar's use of specific permissions in attrib macros
2973 - need to review and add specific fc4 build currently using fc3 Requires
2974 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2976 - Reorganize files and pre/post sections to remove repetitions
2977 - Always build separate mtx package
2978 - Fix file ownerships for /etc/bacula and Bacula's working dir
2979 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2980 - Disable GNOME on RH7
2981 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2982 - Red Hat and look alikes have mtx RPM, do not build/package our version
2983 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2984 - minor edit to _dist for SLES9 compatibility
2985 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2987 - kern changed location of pdf files and html manual in docs package
2988 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2990 - add docs (from prebuilt tarball) and rescue packages back in
2991 - remove dvd-freespace and dvd-writepart files, add dvd-handler
2992 - remove 3 of 4 sqlite script patches as not needed
2993 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2995 - remove docs and rescue sections (remove static fd)
2996 - add dvd-freespace and dvd-writepart files
2997 - update depkgs to 22Jun05
2998 - change database update to 8 to 9
2999 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3000 - minor cleanups before 1.38 changes
3001 - add popt and popt-devel build dependencies
3002 - add tetex and tetex-dvips dependencies for doc build
3003 - replace deprecated Copyright tag with License
3004 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3005 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
3006 - conflict with sqlite packages. remove readline dependency.
3007 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3008 - release 1.36.3 update docs
3009 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3010 - add centos4 build tag
3011 - add x86_64 build tag
3012 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3013 - add rhel4 build tag
3014 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
3015 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3016 - add rhel3 build tag
3017 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3018 - fix tray-monitor.conf for noreplace
3019 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3020 - fix distribution check for Fedora and Whitebox
3021 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3022 - add logwatch script
3024 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3025 - add build for Fedora Core 3 (linc now included in ORDit2)
3026 - add mysql4 define for Mandrake 10.1
3027 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
3028 - fix {group_file} variable in post scripts
3029 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
3030 - add distribution checking and custom Distribution tag
3031 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3032 - ASSIGNMENT OF COPYRIGHT
3033 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
3034 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
3035 - all right, title and interest in and to the copyright in this software RPM
3036 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
3037 - free of all liens, encumbrances or any known claims against said copyright.
3038 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3040 - thanks to Daniel Widyono
3041 - update description for rescue package to describe cdrom creation
3042 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3043 - update depkgs to 29Oct04
3044 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3045 - add cdrom rescue to bacula-rescue package
3046 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3047 - misc fixes from 1.36.0 suse feedback
3048 - fix situation where sqlite database exists but sqlite has been removed.
3049 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3050 - remove tray-monitor from RH8 build
3051 - fix permissions on tray-monitor files
3052 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3053 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
3054 - change database update to 7 to 8 upgrade,
3055 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
3056 - build in 30Jul04, add freetype dependancy to gnome package.
3057 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3058 - add documentation to console for groupadd
3059 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3060 - add support for running daemons as root.bacula
3061 - correct for change in location of floppy rescue files in 1.35.2
3062 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
3063 - updated depgkgs to 30Jul04
3064 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3065 - really, really fix symlink creation for gconsole
3066 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3067 - fix symlink creation in gconsole post install
3068 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3069 - fixed error in gconsole post script
3070 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3071 - add check for gconsole symlink before trying to create it
3072 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3073 - fix some minor permissions issues on doc files that CVS won't let us fix
3074 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3075 - add pkgconfig to BuildRequires
3076 - clean up gnome1/2 menu entries for appropriate packages
3077 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3078 - tightened up doc distribution
3079 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3080 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
3081 - rpm's horrible bug that prevents nested conditional macros prevents me
3082 - from implementing these 2 separate approaches within the conditionals which
3083 - create the separate server packages.
3084 - the solution adopted is to remove the gnome-console files from the server packages
3085 - so bacula-gconsole is now an add on for both client and server packages.
3086 - this also now allows the server packages to be install on machines without
3087 - an X-server and we can still maintain a single spec file.
3088 - added tests to make sure we have defined platform and database macros.
3089 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3090 - corrected mysql prerequisites for suse
3091 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3092 - replaced all cp commands with cp -p
3093 - removed addition of a+x permissions on gnome-console
3094 - corrected permissions on init scripts
3095 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3096 - corrected creation of sqlite_bindir in install from !mysql to sqlite
3098 - various cleanup patches from Michael K. Johnson:
3099 - corrected post install routines for nicer chkconfig
3100 - removed chmod changes in post routines and moved to install section
3101 - removed interactive nature of post routine for rescue package
3102 - added description of building rescue disks to the description of rescue package
3103 - added clean of build root to beginning of install
3104 - removed specifying attr in all file lists
3105 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3106 - added bconsole to client package
3107 - added gconsole package as add-on to client
3108 - removed spurious dependancies on updatedb package (!cut/paste)
3109 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3110 - added updatedb package
3111 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3112 - added postgresql package
3113 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3114 - corrected the if else logic in the dependancy sections
3115 - changes for 1.34 release
3116 - /etc/bacula/console is now /etc/bacula/bconsole
3117 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
3118 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
3119 - /usr/sbin/smtp is now /usr/sbin/bsmtp
3120 - added new /etc/bacula/drop_mysql_database
3121 - added new /etc/bacula/drop_sqlite_database
3122 - added new /etc/bacula/grant_sqlite_privileges
3123 - added new generic bacula database scripts in /etc/bacula
3124 - added pre-install sections to check for database versions older than 6
3125 - added check for /etc/bacula/console.conf and copy to bconsole.conf
3126 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3127 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
3128 - added testing for existing databases before executing any of the database creation scripts
3129 - added defines working_dir and sqlite_bindir in place of hard coded paths
3130 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3131 - added build configuration for SuSE.
3132 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
3133 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3134 - added patch for create_sqlite_database to fix the installed bindir
3135 - added execute of create_sqlite_database to post of sqlite package
3136 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3137 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
3138 - added bacula-fd as Requires for rescue package
3139 - added build tag for Fedora Core 1
3140 - cleaned up dependancies for all builds
3141 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3142 - removed rh_version from package names
3143 - added platform build configuration section to beginning of file
3144 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3145 - removed make_static_bacula script from rescue package install
3146 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3147 - Added define at top of file for depkgs version
3148 - Added rescue sub-package
3149 - Moved requires statements into proper sub-package locations
3150 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3151 - Corrected Requires for Gnome 1.4/2.0 builds
3152 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3153 - Added separate source declaration for depkgs
3154 - added patch for make_catalog_backup script
3155 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3156 - Misc changes to mysql/sqlite build and rh7/8 menu differences
3157 - Added rh_version to sub-package names
3158 - Added installed but missing file /etc/bacula/gconsole
3159 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
3160 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
3161 - Update spec for version 1.31 and combine client
3162 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>