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@
174 # any patches for this release
175 # be sure to check the setup section for patch macros
177 #--------------------------------------------------------------------------
178 # it should not be necessary to change anything below here for a release
179 # except for patch macros in the setup section
180 #--------------------------------------------------------------------------
183 %{?single_dir_install:%define single_dir 1}
185 %define _prefix /opt/bacula
190 # third party packagers
191 %define _packager D. Scott Barninger <barninger@fairfieldcomputers.com>
192 %{?contrib_packager:%define _packager %{contrib_packager}}
194 Summary: Bacula - The Network Backup Solution
198 Group: System Environment/Daemons
200 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
201 Source1: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
202 Source2: Release_Notes-%{version}-%{release}.tar.gz
203 Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
204 Source4: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
205 Source5: bacula-2.2.7-postgresql.patch
206 BuildRoot: %{_tmppath}/%{name}-root
207 URL: http://www.bacula.org/
208 Vendor: The Bacula Team
209 Packager: %{_packager}
212 # define the basic package description
213 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
214 %define blurb2 Bacula is a set of computer programs that permit you (or the system
215 %define blurb3 administrator) to manage backup, recovery, and verification of computer
216 %define blurb4 data across a network of computers of different kinds. In technical terms,
217 %define blurb5 it is a network client/server based backup program. Bacula is relatively
218 %define blurb6 easy to use and efficient, while offering many advanced storage management
219 %define blurb7 features that make it easy to find and recover lost or damaged files.
220 %define blurb8 Bacula source code has been released under the GPL version 2 license.
222 # source directory locations
223 %define _docsrc ../%{name}-docs-%{docs_version}
224 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
225 %define depkgs ../depkgs
227 # directory locations
229 %define _sbindir /opt/bacula
230 %define _subsysdir /opt/bacula/working
231 %define sqlite_bindir /opt/bacula/sqlite
232 %define _mandir /usr/share/man
233 %define sysconf_dir /opt/bacula
234 %define script_dir /opt/bacula/scripts
235 %define working_dir /opt/bacula/working
236 %define pid_dir /opt/bacula/working
238 %define _sbindir %_prefix/sbin
239 %define _subsysdir /var/lock/subsys
240 %define sqlite_bindir %_libdir/bacula/sqlite
241 %define _mandir %_prefix/share/man
242 %define sysconf_dir /etc/bacula
243 %define script_dir %_libdir/bacula
244 %define working_dir /var/lib/bacula
245 %define pid_dir /var/run
248 # NOTE these defines are used in some rather complex useradd and groupadd
249 # commands. If you change them examine the post scripts for consequences.
250 %define director_daemon_user bacula
251 %define storage_daemon_user bacula
252 %define file_daemon_user root
253 %define daemon_group bacula
254 # group that has write access to tape devices, usually disk on Linux
255 %define storage_daemon_group disk
256 %define user_file /etc/passwd
257 %define group_file /etc/group
260 %define useradd /usr/sbin/useradd
261 %define groupadd /usr/sbin/groupadd
262 %define usermod /usr/sbin/usermod
264 # platform defines - set one below or define the build_xxx on the command line
267 %{?build_rh7:%define rh7 1}
269 %{?build_rh8:%define rh8 1}
271 %{?build_rh9:%define rh9 1}
274 %{?build_fc1:%define fc1 1}
276 %{?build_fc3:%define fc3 1}
278 %{?build_fc4:%define fc4 1}
280 %{?build_fc5:%define fc5 1}
282 %{?build_fc6:%define fc6 1}
284 %{?build_fc7:%define fc7 1}
286 %{?build_fc8:%define fc8 1}
288 %{?build_fc9:%define fc9 1}
289 # Whitebox Enterprise build
291 %{?build_wb3:%define wb3 1}
292 # RedHat Enterprise builds
294 %{?build_rhel3:%define rhel3 1}
295 %{?build_rhel3:%define wb3 1}
297 %{?build_rhel4:%define rhel4 1}
298 %{?build_rhel4:%define fc3 1}
300 %{?build_rhel5:%define rhel5 1}
301 %{?build_rhel5:%define fc6 1}
304 %{?build_centos3:%define centos3 1}
305 %{?build_centos3:%define wb3 1}
307 %{?build_centos4:%define centos4 1}
308 %{?build_centos4:%define fc3 1}
310 %{?build_centos5:%define centos5 1}
311 %{?build_centos5:%define fc6 1}
314 %{?build_sl3:%define sl3 1}
315 %{?build_sl3:%define wb3 1}
317 %{?build_sl4:%define sl4 1}
318 %{?build_sl4:%define fc3 1}
320 %{?build_sl5:%define sl5 1}
321 %{?build_sl5:%define fc6 1}
324 %{?build_su9:%define su9 1}
326 %{?build_su10:%define su10 1}
328 %{?build_su102:%define su102 1}
330 %{?build_su103:%define su103 1}
332 %{?build_su110:%define su110 1}
334 %{?build_su111:%define su111 1}
337 %{?build_mdk:%define mdk 1}
339 %{?build_mdv:%define mdv 1}
340 %{?build_mdv:%define mdk 1}
343 %define client_only 0
344 %{?build_client_only:%define client_only 1}
346 # test for a platform definition
347 %if !%{rh7} && !%{rh8} && !%{rh9} && !%{fc1} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && !%{wb3} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk}
348 %{error: You must specify a platform. Please examine the spec file.}
353 # set for database support desired or define the build_xxx on the command line
355 %{?build_mysql:%define mysql 1}
356 # if using mysql 4.x define this and mysql above
357 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
359 %{?build_mysql4:%define mysql4 1}
360 %{?build_mysql4:%define mysql 1}
361 # if using mysql 5.x define this and mysql above
362 # currently: SuSE 10.1 and Fedora Core 5
364 %{?build_mysql5:%define mysql5 1}
365 %{?build_mysql5:%define mysql 1}
367 %{?build_sqlite:%define sqlite 1}
369 %{?build_postgresql:%define postgresql 1}
371 # test for a database definition
372 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
373 %{error: You must specify database support. Please examine the spec file.}
378 %define db_backend mysql
381 %define db_backend sqlite3
384 %define db_backend postgresql
389 %{?build_x86_64:%define x86_64 1}
391 # check what distribution we are
392 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
393 %define _dist %(grep Red /etc/redhat-release)
395 %if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8} || %{fc9}
396 %define _dist %(grep Fedora /etc/redhat-release)
398 %if %{centos5} || %{centos4} || %{centos3}
399 %define _dist %(grep CentOS /etc/redhat-release)
401 %if %{sl5} ||%{sl4} || %{sl3}
402 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
404 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
405 %define _dist %(grep Fedora /etc/redhat-release)
407 %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
408 %define _dist %(grep Fedora /etc/redhat-release)
410 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
411 %define _dist %(grep White /etc/whitebox-release)
413 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
414 %define _dist %(grep -i SuSE /etc/SuSE-release)
417 %define _dist %(grep Mand /etc/mandrake-release)
420 # opensuse build service start
421 %if 0%{?sles_version} == 9
422 %define _dist "SLES 9"
425 %if 0%{?sles_version} == 10
426 %define _dist "SLE 10"
430 %if 0%{?sles_version} == 11
431 %define _dist "SLE 11"
434 # opensuse build service end
436 %{?DISTNAME:%define _dist %{DISTNAME}}
437 Distribution: %{_dist}
439 # Should we build gconsole, possible only if gtk= >= 2.4 available.
440 # leaving all the BuildRequires and Requires in place below for now.
441 # su10, fc3 and fc4 now nobuild, tray monitor fails to build as of 2.2.1
442 # release as it needs 2.10
445 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
448 %if %{mdk} && ! %{mdv}
452 # specifically disallow gconsole if desired
453 %{?nobuild_gconsole:%define gconsole 0}
455 # specifically disallow rescue files
457 %{?build_rescue:%define rescue 1}
459 # Should we build wxconsole, only wxWidgets >=2.6 is supported
460 # SuSE 10 and FC4 and newer
462 %{?build_wxconsole:%define wxconsole 1}
464 # Should we build bat
467 %{?build_bat:%define bat 1}
469 # should we turn on python support
471 %{?build_python:%define python 1}
473 # specifically disallow build of mtx package if desired
475 %{?nobuild_mtx:%define mtx 0}
477 # do we need to patch for old postgresql version?
479 %{?build_old_pgsql:%define old_pgsql 1}
481 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
483 %define manpage_ext bz2
485 %define manpage_ext gz
488 # for client only build
499 BuildRequires: gcc, gcc-c++, make, autoconf
500 BuildRequires: ncurses-devel, perl
501 BuildRequires: libstdc++-devel, zlib-devel
502 BuildRequires: openssl-devel
504 BuildRequires: libxml2-devel
507 BuildRequires: python, python-devel
508 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
511 BuildRequires: pkgconfig, pango-devel, atk-devel
514 BuildRequires: pkgconfig
517 # Rh qt4 packages don't have a provide for, guess what, qt!
518 # still broken in fc8, ok in fc9
519 # so fix for broken rh
521 %if %{rhel5} || %{centos5} || %{sl5} || %{fc5} || %{fc6} || %{fc7} || %{fc8}
524 %if %{bat} && ! %{broken_rh}
525 BuildRequires: qt-devel >= 4.2
527 %if %{bat} && %{broken_rh}
528 BuildRequires: qt4-devel >= 4.2
532 BuildRequires: libtermcap-devel
533 BuildRequires: glibc-devel >= 2.2
534 BuildRequires: libxml-devel
537 BuildRequires: termcap
538 BuildRequires: glibc-devel >= 2.3
540 %if %{su9} && %{gconsole}
541 BuildRequires: libgnome >= 2.0
542 BuildRequires: gtk2-devel >= 2.0
543 BuildRequires: libgnomeui-devel >= 2.0
544 BuildRequires: ORBit2-devel
545 BuildRequires: libart_lgpl-devel >= 2.0
546 BuildRequires: libbonobo-devel >= 2.0
547 BuildRequires: libbonoboui-devel >= 2.0
548 BuildRequires: bonobo-activation-devel
549 BuildRequires: gconf2-devel
550 BuildRequires: linc-devel
551 BuildRequires: freetype2-devel
554 BuildRequires: termcap
555 BuildRequires: glibc-devel >= 2.3
557 %if %{su10} && %{gconsole}
558 BuildRequires: libgnome >= 2.12
559 BuildRequires: gtk2-devel >= 2.8
560 BuildRequires: libgnomeui-devel >= 2.12
561 BuildRequires: ORBit2-devel
562 BuildRequires: libart_lgpl-devel >= 2.3
563 BuildRequires: libbonobo-devel >= 2.10
564 BuildRequires: libbonoboui-devel >= 2.10
565 BuildRequires: bonobo-activation-devel
566 BuildRequires: gconf2-devel
567 BuildRequires: freetype2-devel
568 BuildRequires: cairo-devel
569 BuildRequires: fontconfig-devel >= 2.3
570 BuildRequires: gnome-vfs2-devel >= 2.12
571 BuildRequires: libpng-devel
574 BuildRequires: termcap
575 BuildRequires: glibc-devel >= 2.5
577 %if %{su102} && %{gconsole}
578 BuildRequires: libgnome >= 2.16
579 BuildRequires: gtk2-devel >= 2.10
580 BuildRequires: libgnomeui-devel >= 2.16
581 BuildRequires: ORBit2-devel
582 BuildRequires: libart_lgpl-devel >= 2.3
583 BuildRequires: libbonobo-devel >= 2.16
584 BuildRequires: libbonoboui-devel >= 2.16
585 BuildRequires: bonobo-activation-devel
586 BuildRequires: gconf2-devel
587 BuildRequires: freetype2-devel
588 BuildRequires: cairo-devel
589 BuildRequires: fontconfig-devel >= 2.4
590 BuildRequires: gnome-vfs2-devel >= 2.16
591 BuildRequires: libpng-devel
594 BuildRequires: termcap
595 BuildRequires: glibc-devel >= 2.6
597 %if %{su103} && %{gconsole}
598 BuildRequires: libgnome >= 2.20
599 BuildRequires: gtk2-devel >= 2.12
600 BuildRequires: libgnomeui-devel >= 2.20
601 BuildRequires: ORBit2-devel
602 BuildRequires: libart_lgpl-devel >= 2.3
603 BuildRequires: libbonobo-devel >= 2.20
604 BuildRequires: libbonoboui-devel >= 2.20
605 BuildRequires: bonobo-activation-devel
606 BuildRequires: gconf2-devel
607 BuildRequires: freetype2-devel
608 BuildRequires: cairo-devel
609 BuildRequires: fontconfig-devel >= 2.4
610 BuildRequires: gnome-vfs2-devel >= 2.20
611 BuildRequires: libpng-devel
614 BuildRequires: termcap
615 BuildRequires: glibc-devel >= 2.8
617 %if %{su110} && %{gconsole}
618 BuildRequires: libgnome >= 2.22
619 BuildRequires: gtk2-devel >= 2.12
620 BuildRequires: libgnomeui-devel >= 2.22
621 BuildRequires: ORBit2-devel
622 BuildRequires: libart_lgpl-devel >= 2.3
623 BuildRequires: libbonobo-devel >= 2.22
624 BuildRequires: libbonoboui-devel >= 2.22
625 BuildRequires: bonobo-activation-devel
626 BuildRequires: gconf2-devel
627 BuildRequires: freetype2-devel
628 BuildRequires: cairo-devel
629 BuildRequires: fontconfig-devel >= 2.4
630 BuildRequires: gnome-vfs2-devel >= 2.22
631 BuildRequires: libpng-devel
634 BuildRequires: termcap
635 BuildRequires: glibc-devel >= 2.9
637 %if %{su111} && %{gconsole}
638 BuildRequires: libgnome >= 2.24
639 BuildRequires: gtk2-devel >= 2.14
640 BuildRequires: libgnomeui-devel >= 2.24
641 BuildRequires: ORBit2-devel
642 BuildRequires: libart_lgpl-devel >= 2.3
643 BuildRequires: libbonobo-devel >= 2.24
644 BuildRequires: libbonoboui-devel >= 2.24
645 BuildRequires: bonobo-activation-devel
646 BuildRequires: gconf2-devel
647 BuildRequires: freetype2-devel
648 BuildRequires: cairo-devel
649 BuildRequires: fontconfig-devel >= 2.6
650 BuildRequires: gnome-vfs2-devel >= 2.24
651 BuildRequires: libpng-devel
654 BuildRequires: libtermcap-devel
655 BuildRequires: libstdc++-static-devel
656 BuildRequires: glibc-static-devel
657 BuildRequires: glibc-devel >= 2.3
659 %if %{mdk} && !%{mdv} && %{gconsole}
660 BuildRequires: gtk2-devel >= 2.0
661 BuildRequires: libgnomeui2-devel >= 2.0
662 BuildRequires: libORBit2-devel
663 BuildRequires: libart_lgpl-devel >= 2.0
664 BuildRequires: libbonobo2_0-devel
665 BuildRequires: libbonoboui2_0-devel
666 BuildRequires: libbonobo-activation-devel
667 BuildRequires: libGConf2-devel
668 BuildRequires: freetype2-devel
670 %if %{mdv} && %{gconsole}
671 BuildRequires: gtk2-devel >= 2.8
672 BuildRequires: libgnomeui2-devel >= 2.10
673 BuildRequires: libORBit2-devel
674 BuildRequires: libart_lgpl-devel >= 2.3
675 BuildRequires: libbonobo2_0-devel
676 BuildRequires: libbonoboui2_0-devel
677 BuildRequires: libbonobo-activation-devel
678 BuildRequires: libGConf2-devel
679 BuildRequires: freetype2-devel
682 BuildRequires: libtermcap-devel
683 BuildRequires: glibc-devel >= 2.3
685 %if %{fc3} && %{gconsole}
686 BuildRequires: gtk2-devel >= 2.4
687 BuildRequires: libgnomeui-devel >= 2.8
688 BuildRequires: ORBit2-devel
689 BuildRequires: libart_lgpl-devel >= 2.3
690 BuildRequires: libbonobo-devel >= 2.8
691 BuildRequires: libbonoboui-devel >= 2.8
692 BuildRequires: bonobo-activation-devel
693 BuildRequires: GConf2-devel
694 BuildRequires: freetype-devel
697 BuildRequires: libtermcap-devel
698 BuildRequires: glibc-devel >= 2.3
700 %if %{fc4} && %{gconsole}
701 BuildRequires: gtk2-devel >= 2.6
702 BuildRequires: libgnomeui-devel >= 2.10
703 BuildRequires: ORBit2-devel
704 BuildRequires: libart_lgpl-devel >= 2.3
705 BuildRequires: libbonobo-devel >= 2.8
706 BuildRequires: libbonoboui-devel >= 2.8
707 BuildRequires: bonobo-activation-devel
708 BuildRequires: GConf2-devel
709 BuildRequires: freetype-devel
712 BuildRequires: libtermcap-devel
713 BuildRequires: glibc-devel >= 2.4
715 %if %{fc5} && %{gconsole}
716 BuildRequires: gtk2-devel >= 2.8
717 BuildRequires: libgnomeui-devel >= 2.14
718 BuildRequires: ORBit2-devel
719 BuildRequires: libart_lgpl-devel >= 2.3
720 BuildRequires: libbonobo-devel >= 2.14
721 BuildRequires: libbonoboui-devel >= 2.14
722 BuildRequires: GConf2-devel
723 BuildRequires: freetype-devel
726 BuildRequires: libtermcap-devel
727 BuildRequires: glibc-devel >= 2.5
729 %if %{fc6} && %{gconsole}
730 BuildRequires: gtk2-devel >= 2.10
731 BuildRequires: libgnomeui-devel >= 2.16
732 BuildRequires: ORBit2-devel
733 BuildRequires: libart_lgpl-devel >= 2.3
734 BuildRequires: libbonobo-devel >= 2.16
735 BuildRequires: libbonoboui-devel >= 2.16
736 BuildRequires: GConf2-devel
737 BuildRequires: freetype-devel
740 BuildRequires: libtermcap-devel
741 BuildRequires: glibc-devel >= 2.5
743 %if %{fc7} && %{gconsole}
744 BuildRequires: gtk2-devel >= 2.10
745 BuildRequires: libgnomeui-devel >= 2.18
746 BuildRequires: ORBit2-devel
747 BuildRequires: libart_lgpl-devel >= 2.3
748 BuildRequires: libbonobo-devel >= 2.18
749 BuildRequires: libbonoboui-devel >= 2.18
750 BuildRequires: GConf2-devel
751 BuildRequires: freetype-devel
754 BuildRequires: libtermcap-devel
755 BuildRequires: glibc-devel >= 2.7
757 %if %{fc8} && %{gconsole}
758 BuildRequires: gtk2-devel >= 2.12
759 BuildRequires: libgnomeui-devel >= 2.20
760 BuildRequires: ORBit2-devel
761 BuildRequires: libart_lgpl-devel >= 2.3
762 BuildRequires: libbonobo-devel >= 2.20
763 BuildRequires: libbonoboui-devel >= 2.20
764 BuildRequires: GConf2-devel
765 BuildRequires: freetype-devel
768 BuildRequires: glibc-devel >= 2.8
769 BuildRequires: zlib-static
771 %if %{fc9} && %{gconsole}
772 BuildRequires: gtk2-devel >= 2.12
773 BuildRequires: libgnomeui-devel >= 2.22
774 BuildRequires: ORBit2-devel
775 BuildRequires: libart_lgpl-devel >= 2.3
776 BuildRequires: libbonobo-devel >= 2.22
777 BuildRequires: libbonoboui-devel >= 2.22
778 BuildRequires: GConf2-devel
779 BuildRequires: freetype-devel
781 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
782 BuildRequires: libtermcap-devel
783 BuildRequires: glibc-devel >= 2.3
785 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && %{gconsole}
786 BuildRequires: gtk2-devel >= 2.0
787 BuildRequires: libgnomeui-devel >= 2.0
788 BuildRequires: ORBit2-devel
789 BuildRequires: libart_lgpl-devel >= 2.0
790 BuildRequires: libbonobo-devel >= 2.0
791 BuildRequires: libbonoboui-devel >= 2.0
792 BuildRequires: bonobo-activation-devel
793 BuildRequires: GConf2-devel
794 BuildRequires: linc-devel
795 BuildRequires: freetype-devel
798 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
799 BuildRequires: mysql-devel >= 3.23
802 %if %{mysql} && %{mysql4}
803 BuildRequires: mysql-devel >= 4.0
806 %if %{mysql} && %{mysql5}
807 BuildRequires: mysql-devel >= 5.0
810 %if %{postgresql} && %{wb3}
811 BuildRequires: rh-postgresql-devel >= 7
814 %if %{postgresql} && ! %{wb3}
815 BuildRequires: postgresql-devel >= 7
819 BuildRequires: wxGTK-devel >= 2.6
843 Summary: Bacula - The Network Backup Solution
844 Group: System Environment/Daemons
845 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
846 Conflicts: bacula-client
847 Obsoletes: bacula-rescue
849 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
853 Requires: ncurses, libstdc++, zlib, openssl, mtx
856 Requires: glibc >= 2.2
859 %if %{su9} || %{su10}
860 Requires: glibc >= 2.3
864 Requires: glibc >= 2.5
868 Requires: glibc >= 2.6
872 Requires: glibc >= 2.8
876 Requires: glibc >= 2.9
879 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
880 Requires: glibc >= 2.3
884 Requires: glibc >= 2.4
888 Requires: glibc >= 2.5
892 Requires: glibc >= 2.7
896 Requires: glibc >= 2.8
899 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
900 Requires: mysql >= 3.23
901 Requires: mysql-server >= 3.23
903 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
904 Requires: mysql >= 4.0
905 Requires: mysql-server >= 4.0
907 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk} && %{mysql5}
908 Requires: mysql >= 5.0
909 Requires: mysql-server >= 5.0
912 %if %{mysql} && %{su9} && ! %{mysql4}
913 Requires: mysql >= 3.23
914 Requires: mysql-client >= 3.23
916 %if %{mysql} && %{su9} && %{mysql4}
917 Requires: mysql >= 4.0
918 Requires: mysql-client >= 4.0
920 %if %{mysql} && %{su10} && %{mysql4}
921 Requires: mysql >= 4.0
922 Requires: mysql-client >= 4.0
924 %if %{mysql} && %{su10} && %{mysql5}
925 Requires: mysql >= 5.0
926 Requires: mysql-client >= 5.0
928 %if %{mysql} && %{su102} && %{mysql5}
929 Requires: mysql >= 5.0
930 Requires: mysql-client >= 5.0
932 %if %{mysql} && %{su103} && %{mysql5}
933 Requires: mysql >= 5.0
934 Requires: mysql-client >= 5.0
936 %if %{mysql} && %{su110} && %{mysql5}
937 Requires: mysql >= 5.0
938 Requires: mysql-client >= 5.0
940 %if %{mysql} && %{su111} && %{mysql5}
941 Requires: mysql >= 5.0
942 Requires: mysql-client >= 5.0
945 %if %{mysql} && %{mdk} && ! %{mysql4}
946 Requires: mysql >= 3.23
947 Requires: mysql-client >= 3.23
949 %if %{mysql} && %{mdk} && %{mysql4}
950 Requires: mysql >= 4.0
951 Requires: mysql-client >= 4.0
954 %if %{postgresql} && %{wb3}
955 Requires: rh-postgresql >= 7
956 Requires: rh-postgresql-server >= 7
958 %if %{postgresql} && ! %{wb3}
959 Requires: postgresql >= 7
960 Requires: postgresql-server >= 7
970 %description postgresql
974 Requires: python >= %{pyver}
988 This build requires MySQL to be installed separately as the catalog database.
991 This build requires PostgreSQL to be installed separately as the catalog database.
994 This build incorporates sqlite3 as the catalog database, statically compiled.
997 This build includes python scripting support.
1000 %if ! %{client_only} && %{mtx}
1002 Summary: Bacula - The Network Backup Solution
1003 Group: System Environment/Daemons
1007 This is Bacula's version of mtx tape utilities for Linux distributions that
1008 do not provide their own mtx package
1012 Summary: Bacula - The Network Backup Solution
1013 Group: System Environment/Daemons
1015 Conflicts: bacula-mysql
1016 Conflicts: bacula-sqlite
1017 Conflicts: bacula-postgresql
1018 Obsoletes: bacula-rescue
1020 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1024 Requires: libstdc++, zlib, openssl
1027 Requires: glibc >= 2.2
1028 Requires: libtermcap
1030 %if %{su9} || %{su10}
1031 Requires: glibc >= 2.3
1035 Requires: glibc >= 2.5
1039 Requires: glibc >= 2.6
1043 Requires: glibc >= 2.8
1047 Requires: glibc >= 2.9
1050 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
1051 Requires: glibc >= 2.3
1052 Requires: libtermcap
1055 Requires: glibc >= 2.4
1056 Requires: libtermcap
1058 %if %{fc6} || %{fc7}
1059 Requires: glibc >= 2.5
1060 Requires: libtermcap
1063 Requires: glibc >= 2.7
1064 Requires: libtermcap
1067 Requires: glibc >= 2.8
1071 Requires: python >= %{pyver}
1085 This is the File daemon (Client) only package. It includes the command line
1088 This build includes python scripting support.
1091 %if ! %{client_only}
1094 Summary: Bacula - The Network Backup Solution
1095 Group: System Environment/Daemons
1097 %description updatedb
1108 This package installs scripts for updating older versions of the bacula
1114 Summary: Bacula - The Network Backup Solution
1115 Group: System Environment/Daemons
1116 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
1119 %if %{gconsole} && %{su9}
1120 Requires: gtk2 >= 2.0
1121 Requires: libgnome >= 2.0
1122 Requires: libgnomeui >= 2.0
1123 Requires: glibc >= 2.3
1125 Requires: libart_lgpl >= 2.0
1126 Requires: libbonobo >= 2.0
1127 Requires: libbonoboui >= 2.0
1128 Requires: bonobo-activation
1133 %if %{gconsole} && %{su10}
1134 Requires: gtk2 >= 2.8
1135 Requires: libgnome >= 2.12
1136 Requires: libgnomeui >= 2.12
1137 Requires: glibc >= 2.3
1139 Requires: libart_lgpl >= 2.3
1140 Requires: libbonobo >= 2.10
1141 Requires: libbonoboui >= 2.10
1142 Requires: bonobo-activation
1146 Requires: fontconfig >= 2.3
1147 Requires: gnome-vfs2 >= 2.12
1150 %if %{gconsole} && %{su102}
1151 Requires: gtk2 >= 2.10
1152 Requires: libgnome >= 2.16
1153 Requires: libgnomeui >= 2.16
1154 Requires: glibc >= 2.5
1156 Requires: libart_lgpl >= 2.3
1157 Requires: libbonobo >= 2.16
1158 Requires: libbonoboui >= 2.16
1159 Requires: bonobo-activation
1163 Requires: fontconfig >= 2.4
1164 Requires: gnome-vfs2 >= 2.16
1167 %if %{gconsole} && %{su103}
1168 Requires: gtk2 >= 2.12
1169 Requires: libgnome >= 2.20
1170 Requires: libgnomeui >= 2.20
1171 Requires: glibc >= 2.6
1173 Requires: libart_lgpl >= 2.3
1174 Requires: libbonobo >= 2.20
1175 Requires: libbonoboui >= 2.20
1176 Requires: bonobo-activation
1180 Requires: fontconfig >= 2.4
1181 Requires: gnome-vfs2 >= 2.20
1184 %if %{gconsole} && %{su110}
1185 Requires: gtk2 >= 2.12
1186 Requires: libgnome >= 2.22
1187 Requires: libgnomeui >= 2.22
1188 Requires: glibc >= 2.8
1190 Requires: libart_lgpl >= 2.3
1191 Requires: libbonobo >= 2.22
1192 Requires: libbonoboui >= 2.22
1193 Requires: bonobo-activation
1197 Requires: fontconfig >= 2.4
1198 Requires: gnome-vfs2 >= 2.22
1201 %if %{gconsole} && %{su111}
1202 Requires: gtk2 >= 2.14
1203 Requires: libgnome >= 2.24
1204 Requires: libgnomeui >= 2.24
1205 Requires: glibc >= 2.9
1207 Requires: libart_lgpl >= 2.3
1208 Requires: libbonobo >= 2.24
1209 Requires: libbonoboui >= 2.24
1210 Requires: bonobo-activation
1214 Requires: fontconfig >= 2.6
1215 Requires: gnome-vfs2 >= 2.24
1218 %if %{gconsole} && %{mdk} && !%{mdv}
1219 Requires: gtk2 >= 2.0
1220 Requires: libgnomeui2
1221 Requires: glibc >= 2.3
1223 Requires: libart_lgpl >= 2.0
1224 Requires: libbonobo >= 2.0
1225 Requires: libbonoboui >= 2.0
1229 %if %{gconsole} && %{mdv}
1230 Requires: gtk2 >= 2.8
1231 Requires: libgnomeui2
1232 Requires: glibc >= 2.3
1234 Requires: libart_lgpl >= 2.3
1235 Requires: libbonobo >= 2.10
1236 Requires: libbonoboui >= 2.10
1240 %if %{gconsole} && %{fc3}
1241 Requires: gtk2 >= 2.4
1242 Requires: libgnomeui >= 2.8
1243 Requires: glibc >= 2.3
1245 Requires: libart_lgpl >= 2.3
1246 Requires: libbonobo >= 2.8
1247 Requires: libbonoboui >= 2.8
1248 Requires: bonobo-activation
1252 %if %{gconsole} && %{fc4}
1253 Requires: gtk2 >= 2.6
1254 Requires: libgnomeui >= 2.10
1255 Requires: glibc >= 2.3
1257 Requires: libart_lgpl >= 2.3
1258 Requires: libbonobo >= 2.8
1259 Requires: libbonoboui >= 2.8
1260 Requires: bonobo-activation
1264 %if %{gconsole} && %{fc5}
1265 Requires: gtk2 >= 2.8
1266 Requires: libgnomeui >= 2.14
1267 Requires: glibc >= 2.4
1269 Requires: libart_lgpl >= 2.3
1270 Requires: libbonobo >= 2.14
1271 Requires: libbonoboui >= 2.14
1275 %if %{gconsole} && %{fc6}
1276 Requires: gtk2 >= 2.10
1277 Requires: libgnomeui >= 2.16
1278 Requires: glibc >= 2.5
1280 Requires: libart_lgpl >= 2.3
1281 Requires: libbonobo >= 2.16
1282 Requires: libbonoboui >= 2.16
1286 %if %{gconsole} && %{fc7}
1287 Requires: gtk2 >= 2.10
1288 Requires: libgnomeui >= 2.18
1289 Requires: glibc >= 2.5
1291 Requires: libart_lgpl >= 2.3
1292 Requires: libbonobo >= 2.18
1293 Requires: libbonoboui >= 2.18
1297 %if %{gconsole} && %{fc8}
1298 Requires: gtk2 >= 2.12
1299 Requires: libgnomeui >= 2.20
1300 Requires: glibc >= 2.7
1302 Requires: libart_lgpl >= 2.3
1303 Requires: libbonobo >= 2.20
1304 Requires: libbonoboui >= 2.20
1308 %if %{gconsole} && %{fc9}
1309 Requires: gtk2 >= 2.12
1310 Requires: libgnomeui >= 2.22
1311 Requires: glibc >= 2.8
1313 Requires: libart_lgpl >= 2.3
1314 Requires: libbonobo >= 2.22
1315 Requires: libbonoboui >= 2.22
1319 %if %{gconsole} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
1320 Requires: gtk2 >= 2.0
1321 Requires: libgnomeui >= 2.0
1322 Requires: glibc >= 2.3
1324 Requires: libart_lgpl >= 2.0
1325 Requires: libbonobo >= 2.0
1326 Requires: libbonoboui >= 2.0
1327 Requires: bonobo-activation
1332 %if %{gconsole} && %{su9}
1335 %if %{gconsole} && %{su10}
1338 %if %{gconsole} && %{su102}
1341 %if %{gconsole} && %{su103}
1344 %if %{gconsole} && %{su110}
1347 %if %{gconsole} && %{su111}
1350 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1355 %description gconsole
1366 This is the Gnome Console package. It is an add-on to the client or
1372 Summary: Bacula - The Network Backup Solution
1373 Group: System Environment/Daemons
1374 Requires: wxGTK >= 2.6, libstdc++, openssl
1377 %if %{wxconsole} && %{su10}
1378 Requires: gtk2 >= 2.8
1381 %if %{wxconsole} && %{su102}
1382 Requires: gtk2 >= 2.10
1385 %if %{wxconsole} && %{su103}
1386 Requires: gtk2 >= 2.12
1389 %if %{wxconsole} && %{su110}
1390 Requires: gtk2 >= 2.12
1393 %if %{wxconsole} && %{su111}
1394 Requires: gtk2 >= 2.14
1397 %if %{wxconsole} && %{fc3}
1398 Requires: gtk2 >= 2.4
1401 %if %{wxconsole} && %{fc4}
1402 Requires: gtk2 >= 2.6
1405 %if %{wxconsole} && %{fc5}
1406 Requires: gtk2 >= 2.8
1409 %if %{wxconsole} && %{fc6}
1410 Requires: gtk2 >= 2.10
1413 %if %{wxconsole} && %{fc7}
1414 Requires: gtk2 >= 2.10
1417 %if %{wxconsole} && %{fc8}
1418 Requires: gtk2 >= 2.12
1421 %if %{wxconsole} && %{fc9}
1422 Requires: gtk2 >= 2.12
1426 %description wxconsole
1437 This is the WXWindows Console package. It is an add-on to the client or
1443 Summary: Bacula - The Network Backup Solution
1444 Group: System Environment/Daemons
1447 %if %{bat} && %{su10}
1449 Requires: glibc >= 2.4
1450 Requires: fontconfig
1459 %if %{bat} && %{su102}
1461 Requires: glibc >= 2.5
1462 Requires: fontconfig
1471 %if %{bat} && %{su103}
1473 Requires: glibc >= 2.6
1474 Requires: fontconfig
1483 %if %{bat} && %{su110}
1485 Requires: glibc >= 2.8
1486 Requires: fontconfig
1495 %if %{bat} && %{su111}
1497 Requires: glibc >= 2.9
1498 Requires: fontconfig
1507 %if %{bat} && %{fc5}
1509 Requires: glibc >= 2.4
1510 Requires: fontconfig
1514 Requires: qt4 >= 4.2
1519 %if %{bat} && %{fc6}
1521 Requires: glibc >= 2.5
1522 Requires: fontconfig
1526 Requires: qt4 >= 4.2
1531 %if %{bat} && %{fc7}
1533 Requires: glibc >= 2.5
1534 Requires: fontconfig
1538 Requires: qt4 >= 4.2
1543 %if %{bat} && %{fc8}
1545 Requires: glibc >= 2.7
1546 Requires: fontconfig
1550 Requires: qt4 >= 4.2
1555 %if %{bat} && %{fc9}
1557 Requires: glibc >= 2.8
1558 Requires: fontconfig
1562 Requires: qt4 >= 4.3
1579 This is the Bacula Administration Tool package. It is an add-on to
1580 the client or server packages.
1583 # SuSE turns off stripping of binaries by default. In order to get
1584 # stripped packages we must generate debug package. RedHat and Mandriva
1585 # turn debug packages on by default but strip binaries regardless.
1586 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1600 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1601 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
1605 export QTDIR=$(pkg-config --variable=prefix QtCore)
1606 export QTINC=$(pkg-config --variable=includedir QtCore)
1607 export QTLIB=$(pkg-config --variable=libdir QtCore)
1608 export PATH=${QTDIR}/bin/:${PATH}
1616 %if ! %{client_only} && %{mtx}
1624 %if %{wb3} || %{old_pgsql}
1625 patch -p3 src/cats/postgresql.c < %SOURCE5
1628 # patches for the bundled sqlite scripts
1630 # patch the make_sqlite_tables script for installation bindir
1631 #patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
1632 patch src/cats/make_sqlite3_tables.in src/cats/make_sqlite3_tables.in.patch
1634 # patch the create_sqlite_database script for installation bindir
1635 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
1636 patch src/cats/create_sqlite3_database.in src/cats/create_sqlite3_database.in.patch
1638 # patch the make_catalog_backup script for installation bindir
1639 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
1641 # patch the update_sqlite_tables script for installation bindir
1642 #patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
1643 patch src/cats/update_sqlite3_tables.in src/cats/update_sqlite3_tables.in.patch
1645 # patch the bacula-dir init script to remove sqlite service
1646 %if %{sqlite} && %{su9}
1647 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1649 %if %{sqlite} && %{su10}
1650 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1652 %if %{sqlite} && %{su102}
1653 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1655 %if %{sqlite} && %{su103}
1656 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1658 %if %{sqlite} && %{su110}
1659 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1661 %if %{sqlite} && %{su111}
1662 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1665 # 64 bit lib location hacks
1666 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
1667 # reported to be fixed to properly detect lib locations.
1669 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
1671 %if %{mysql} && %{x86_64}
1672 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
1674 %if %{python} && %{x86_64}
1675 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
1678 # Red Hat's 64 bit installation of QT4 appears to be broken so:
1680 %if %{rhel5} || %{centos5} || %{sl5}
1683 %if %{bat} && %{qt_path} && %{x86_64}
1684 export PATH=/usr/lib64/qt4/bin/:$PATH
1685 export QTDIR=/usr/lib64/qt4/
1686 export QTINC=/usr/lib64/qt4/include/
1687 export QTLIB=/usr/lib64/qt4/
1692 --prefix=%{_prefix} \
1693 --sbindir=%{_sbindir} \
1694 --sysconfdir=%{sysconf_dir} \
1695 --with-scriptdir=%{script_dir} \
1696 --with-working-dir=%{working_dir} \
1697 --with-pid-dir=%{pid_dir} \
1698 --enable-smartalloc \
1699 --enable-client-only \
1709 --prefix=%{_prefix} \
1710 --sbindir=%{_sbindir} \
1711 --sysconfdir=%{sysconf_dir} \
1712 --with-scriptdir=%{script_dir} \
1713 --with-working-dir=%{working_dir} \
1714 --with-pid-dir=%{pid_dir} \
1715 --enable-smartalloc \
1719 %if %{gconsole} && ! %{rh8}
1720 --enable-tray-monitor \
1726 --with-sqlite3=${cwd}/%{depkgs}/sqlite3 \
1732 --enable-bwx-console \
1736 --with-qwt=${cwd}/%{depkgs}/qwt \
1742 --enable-client-only \
1744 %if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{fc3} || %{wb3}
1745 --disable-batch-insert \
1747 --mandir=%{_mandir} \
1748 --with-plugindir=%{script_dir} \
1749 --with-subsys-dir=%{_subsysdir} \
1750 --with-dir-user=%{director_daemon_user} \
1751 --with-dir-group=%{daemon_group} \
1752 --with-sd-user=%{storage_daemon_user} \
1753 --with-sd-group=%{storage_daemon_group} \
1754 --with-fd-user=%{file_daemon_user} \
1755 --with-fd-group=%{daemon_group} \
1756 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1757 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1758 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1759 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1760 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1761 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1769 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1770 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1771 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1772 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1773 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1774 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1775 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1777 %if %{gconsole} || %{wxconsole} || %{bat}
1778 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1779 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1782 %if %{gconsole} || %{wxconsole} || %{bat}
1783 %define usermode_iftrick 1
1785 %define usermode_iftrick 0
1788 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1789 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1790 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1791 mkdir -p $RPM_BUILD_ROOT/usr/bin
1795 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1798 make DESTDIR=$RPM_BUILD_ROOT install
1800 %if ! %{client_only} && %{mtx}
1803 prefix=$RPM_BUILD_ROOT%{_prefix} \
1804 sbindir=$RPM_BUILD_ROOT%{_sbindir} \
1805 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1806 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1807 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1808 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1809 mandir=$RPM_BUILD_ROOT%{_mandir} \
1814 # make install in manpages installs _everything_ shotgun style
1815 # so now delete what we will not be packaging
1817 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
1820 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bat.1.%{manpage_ext}
1823 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
1824 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1827 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.%{manpage_ext}
1828 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1829 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1830 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.%{manpage_ext}
1831 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.%{manpage_ext}
1832 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.%{manpage_ext}
1833 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.%{manpage_ext}
1834 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.%{manpage_ext}
1835 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.%{manpage_ext}
1838 # fixme - make installs the mysql scripts for sqlite build
1840 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1841 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1842 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1845 # fixme - make installs the mysql scripts for postgresql build
1847 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1848 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1851 # fixme - make installs gconsole script for build without gconsole
1853 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1856 rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd
1858 # install the init scripts
1859 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1860 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1861 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1862 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1865 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1866 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1867 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1869 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk}
1870 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1871 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1872 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1874 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1876 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1877 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1880 # install the menu stuff
1881 %if %{gconsole} && %{su9}
1882 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1883 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1884 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1885 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1887 %if %{gconsole} && %{su10}
1888 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1889 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1890 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1891 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1893 %if %{gconsole} && %{su102}
1894 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1895 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1896 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1897 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1899 %if %{gconsole} && %{su103}
1900 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1901 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1902 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1903 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1905 %if %{gconsole} && %{su110}
1906 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1907 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1908 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1909 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1911 %if %{gconsole} && %{su111}
1912 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1913 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1914 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1915 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1917 %if %{wxconsole} && %{su10}
1918 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1919 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1921 %if %{wxconsole} && %{su102}
1922 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1923 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1925 %if %{wxconsole} && %{su103}
1926 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1927 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1929 %if %{wxconsole} && %{su110}
1930 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1931 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1933 %if %{wxconsole} && %{su111}
1934 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1935 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1937 %if %{bat} && %{su102}
1938 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1939 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1941 %if %{bat} && %{su103}
1942 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1943 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1945 %if %{bat} && %{su110}
1946 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1947 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1949 %if %{bat} && %{su111}
1950 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1951 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1953 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{fc6} || %{fc7} || %{fc8} || %{fc9} || %{mdk}
1958 %if %{gconsole} && %{iftrick}
1959 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1960 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1961 cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console
1962 cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console
1963 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bgnome-console
1965 %if %{gconsole} && ! %{rh8}
1966 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1967 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1969 %if %{wxconsole} && %{iftrick}
1970 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1971 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1972 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bwx-console
1973 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console
1974 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bwx-console
1976 %if %{bat} && %{iftrick}
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.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1979 cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat
1980 cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat
1981 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bat
1986 cp -p %{depkgs}/sqlite3/sqlite3 $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3
1987 cp -p %{depkgs}/sqlite3/sqlite3.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3.h
1988 cp -p %{depkgs}/sqlite3/libsqlite3.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite3.a
1991 # install the logrotate file
1992 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1994 # install the updatedb scripts
1995 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
1997 # install the logwatch scripts
1998 %if ! %{client_only}
1999 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
2000 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
2001 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
2002 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
2003 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
2004 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
2007 # install the rescue files
2009 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
2010 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
2011 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
2012 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/
2013 cp -p %{_rescuesrc}/freebsd/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd/
2014 cp -p %{_rescuesrc}/solaris/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/solaris/
2015 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT%{script_dir}/rescue/
2016 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT%{script_dir}/rescue/
2017 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT%{script_dir}/rescue/
2018 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT%{script_dir}/rescue/
2019 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT%{script_dir}/rescue/
2020 cp -pr %{_rescuesrc}/knoppix $RPM_BUILD_ROOT%{script_dir}/rescue/
2021 touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
2022 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
2023 rm -f src/filed/static-bacula-fd
2026 # remove the docs installed by make
2028 rm -rf $RPM_BUILD_ROOT/usr/share/doc
2031 # install docs for single dir installation
2033 mkdir $RPM_BUILD_ROOT%{_prefix}/doc
2034 cp COPYING $RPM_BUILD_ROOT%{_prefix}/doc/
2035 cp ChangeLog $RPM_BUILD_ROOT%{_prefix}/doc/
2036 cp ReleaseNotes $RPM_BUILD_ROOT%{_prefix}/doc/
2037 cp VERIFYING $RPM_BUILD_ROOT%{_prefix}/doc/
2038 cp LICENSE $RPM_BUILD_ROOT%{_prefix}/doc/
2039 cp kernstodo $RPM_BUILD_ROOT%{_prefix}/doc/
2040 cp -r %{_docsrc}/manuals/en/catalog/catalog $RPM_BUILD_ROOT%{_prefix}/doc/
2041 cp %{_docsrc}/manuals/en/catalog/catalog.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2042 cp -r %{_docsrc}/manuals/en/concepts/concepts $RPM_BUILD_ROOT%{_prefix}/doc/
2043 cp %{_docsrc}/manuals/en/concepts/concepts.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2044 cp -r %{_docsrc}/manuals/en/console/console $RPM_BUILD_ROOT%{_prefix}/doc/
2045 cp %{_docsrc}/manuals/en/console/console.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2046 cp -r %{_docsrc}/manuals/en/developers/developers $RPM_BUILD_ROOT%{_prefix}/doc/
2047 cp %{_docsrc}/manuals/en/developers/developers.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2048 cp -r %{_docsrc}/manuals/en/install/install $RPM_BUILD_ROOT%{_prefix}/doc/
2049 cp %{_docsrc}/manuals/en/install/install.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2050 cp -r %{_docsrc}/manuals/en/problems/problems $RPM_BUILD_ROOT%{_prefix}/doc/
2051 cp %{_docsrc}/manuals/en/problems/problems.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2052 cp -r %{_docsrc}/manuals/en/utility/utility $RPM_BUILD_ROOT%{_prefix}/doc/
2053 cp %{_docsrc}/manuals/en/utility/utility.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2054 cp ../Release_Notes-%{version}-%{release}.txt $RPM_BUILD_ROOT%{_prefix}/doc/
2057 # now clean up permissions that are left broken by the install
2058 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
2059 %if %{gconsole} && ! %{rh8}
2060 chmod 755 $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor
2061 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
2064 # fix me - building enable-client-only installs files not included in bacula-client package
2066 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
2067 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
2068 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
2069 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
2070 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
2071 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
2072 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
2073 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
2074 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
2075 rm -f $RPM_BUILD_ROOT%{script_dir}/bconsole
2076 rm -f $RPM_BUILD_ROOT%{script_dir}/bpipe-fd.so
2077 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer.conf
2078 rm -f $RPM_BUILD_ROOT%{_sbindir}/bacula
2082 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
2083 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
2084 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
2085 rm -rf $RPM_BUILD_DIR/depkgs
2086 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
2089 # MySQL specific files
2091 %defattr(-, root, root)
2092 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
2093 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
2094 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
2095 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
2096 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
2097 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
2098 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
2099 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
2104 %defattr(-,root,root)
2105 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite3_database
2106 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_database
2107 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite3_privileges
2108 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite3_tables
2109 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_tables
2110 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite3_tables
2111 %{sqlite_bindir}/libsqlite3.a
2112 %{sqlite_bindir}/sqlite3.h
2113 %{sqlite_bindir}/sqlite3
2118 %defattr(-,root,root)
2119 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
2120 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
2121 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
2122 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
2123 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
2124 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
2127 # The rest is DB backend independent
2128 %if ! %{client_only}
2129 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2130 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
2131 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
2132 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
2133 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
2134 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
2135 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
2136 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
2137 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
2138 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
2139 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
2140 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2141 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2142 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
2143 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
2144 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
2145 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
2146 %attr(-, root, %{daemon_group}) %{script_dir}/bpipe-fd.so
2147 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
2148 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
2149 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
2150 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
2151 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
2152 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer.conf
2154 /etc/logrotate.d/bacula
2155 /etc/log.d/scripts/services/bacula
2156 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
2157 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2158 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
2159 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2160 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
2161 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
2162 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
2164 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
2166 %{_sbindir}/bacula-dir
2167 %{_sbindir}/bacula-fd
2168 %{_sbindir}/bacula-sd
2171 %{_sbindir}/bextract
2175 %{_sbindir}/btraceback
2176 %{_sbindir}/bconsole
2181 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2182 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
2183 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
2184 %{_mandir}/man8/bacula.8.%{manpage_ext}
2185 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2186 %{_mandir}/man8/bcopy.8.%{manpage_ext}
2187 %{_mandir}/man8/bextract.8.%{manpage_ext}
2188 %{_mandir}/man8/bls.8.%{manpage_ext}
2189 %{_mandir}/man8/bscan.8.%{manpage_ext}
2190 %{_mandir}/man8/btape.8.%{manpage_ext}
2191 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2192 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
2193 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
2198 %if ! %{client_only} && %{rescue}
2199 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2202 %if ! %{client_only} && ! %{single_dir}
2203 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2204 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2205 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2206 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2207 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2208 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2209 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2210 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2213 %if ! %{client_only} && %{single_dir}
2219 # test for bacula database older than version 10
2220 # note: this ASSUMES no password has been set for bacula database
2221 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2226 # are we upgrading from sqlite to sqlite3?
2227 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
2228 echo "This version of bacula-sqlite involves an upgrade to sqlite3."
2229 echo "Your catalog database file is not compatible with sqlite3, thus"
2230 echo "you will need to dump the data, delete the old file, and re-run"
2231 echo "this rpm upgrade."
2233 echo "Backing up your current database..."
2234 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db > %{working_dir}/bacula_backup.sql
2235 mv %{working_dir}/bacula.db %{working_dir}/bacula.db.old
2236 echo "Your catalog data has been saved in %{working_dir}/bacula_backup.sql and your"
2237 echo "catalog file has been renamed %{working_dir}/bacula.db.old."
2239 echo "Please re-run this rpm package upgrade."
2240 echo "After the upgrade is complete, restore your catalog"
2241 echo "with the following commands:"
2242 echo "%{script_dir}/drop_sqlite3_tables"
2243 echo "cd %{working_dir}"
2244 echo "%{sqlite_bindir}/sqlite3 $* bacula.db < bacula_backup.sql"
2245 echo "chown bacula.bacula bacula.db"
2248 # test for bacula database older than version 10 and sqlite3
2249 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite3 ];then
2250 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2255 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2258 %if ! %{client_only}
2259 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "10" ]; then
2260 echo "This bacula upgrade will update a bacula database from version 10 to 11."
2261 echo "You appear to be running database version $DB_VER. You must first update"
2262 echo "your database to version 10 and then install this upgrade. The alternative"
2263 echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
2264 echo "catalog information, then do the upgrade. Information on updating a"
2265 echo "database older than version 10 can be found in the release notes."
2274 %if ! %{client_only}
2275 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
2276 if [ -s %{sysconf_dir}/console.conf ];then
2277 cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
2280 # create the daemon users and groups
2281 # first create the groups if they don't exist
2282 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2283 if [ -z "$HAVE_BACULA" ]; then
2284 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2285 echo "The group %{daemon_group} has been added to %{group_file}."
2286 echo "See the manual chapter \"Running Bacula\" for details."
2288 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
2289 if [ -z "$HAVE_BACULA" ]; then
2290 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
2291 echo "The group %{storage_daemon_group} has been added to %{group_file}."
2292 echo "See the manual chapter \"Running Bacula\" for details."
2294 # now create the users if they do not exist
2295 # we do not use the -g option allowing the primary group to be set to system default
2296 # this will be a unique group on redhat type systems or the group users on some systems
2297 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
2298 if [ -z "$HAVE_BACULA" ]; then
2299 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
2300 echo "The user %{storage_daemon_user} has been added to %{user_file}."
2301 echo "See the manual chapter \"Running Bacula\" for details."
2303 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
2304 if [ -z "$HAVE_BACULA" ]; then
2305 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
2306 echo "The user %{director_daemon_user} has been added to %{user_file}."
2307 echo "See the manual chapter \"Running Bacula\" for details."
2309 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2310 if [ -z "$HAVE_BACULA" ]; then
2311 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2312 echo "The user %{file_daemon_user} has been added to %{user_file}."
2313 echo "See the manual chapter \"Running Bacula\" for details."
2315 # now we add the supplementary groups, this is ok to call even if the users already exist
2316 # we only do this if the user is NOT root
2317 IS_ROOT=%{director_daemon_user}
2318 if [ "$IS_ROOT" != "root" ]; then
2319 %{usermod} -G %{daemon_group} %{director_daemon_user}
2321 IS_ROOT=%{storage_daemon_user}
2322 if [ "$IS_ROOT" != "root" ]; then
2323 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
2325 IS_ROOT=%{file_daemon_user}
2326 if [ "$IS_ROOT" != "root" ]; then
2327 %{usermod} -G %{daemon_group} %{file_daemon_user}
2341 %if ! %{client_only}
2343 if [ "$1" -ge 1 ] ; then
2344 /sbin/chkconfig --add bacula-dir
2345 /sbin/chkconfig --add bacula-fd
2346 /sbin/chkconfig --add bacula-sd
2351 # test for an existing database
2352 # note: this ASSUMES no password has been set for bacula database
2353 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2355 # grant privileges and create tables if they do not exist
2356 if [ -z "$DB_VER" ]; then
2357 echo "Hmm, doesn't look like you have an existing database."
2358 echo "Granting privileges for MySQL user bacula..."
2359 %{script_dir}/grant_mysql_privileges
2360 echo "Creating MySQL bacula database..."
2361 %{script_dir}/create_mysql_database
2362 echo "Creating bacula tables..."
2363 %{script_dir}/make_mysql_tables
2365 # check to see if we need to upgrade a 2.x database
2366 elif [ "$DB_VER" -lt "11" ]; then
2367 echo "This release requires an upgrade to your bacula database."
2368 echo "Backing up your current database..."
2369 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2370 echo "Upgrading bacula database ..."
2371 %{script_dir}/update_mysql_tables
2372 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2378 # test for an existing database
2379 if [ -s %{working_dir}/bacula.db ]; then
2380 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2381 # check to see if we need to upgrade a 2.x database
2382 if [ "$DB_VER" -lt "11" ] && [ "$DB_VER" -ge "10" ]; then
2383 echo "This release requires an upgrade to your bacula database."
2384 echo "Backing up your current database..."
2385 echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2386 echo "Upgrading bacula database ..."
2387 %{script_dir}/update_sqlite3_tables
2388 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2391 # create the database and tables
2392 echo "Hmm, doesn't look like you have an existing database."
2393 echo "Creating SQLite database..."
2394 %{script_dir}/create_sqlite3_database
2395 chown %{director_daemon_user}.%{daemon_group} %{working_dir}/bacula.db
2396 echo "Creating the SQLite tables..."
2397 %{script_dir}/make_sqlite3_tables
2402 # test for an existing database
2403 # note: this ASSUMES no password has been set for bacula database
2404 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2406 # grant privileges and create tables if they do not exist
2407 if [ -z "$DB_VER" ]; then
2408 echo "Hmm, doesn't look like you have an existing database."
2409 echo "Creating PostgreSQL bacula database..."
2410 %{script_dir}/create_postgresql_database
2411 echo "Creating bacula tables..."
2412 %{script_dir}/make_postgresql_tables
2413 echo "Granting privileges for PostgreSQL user bacula..."
2414 %{script_dir}/grant_postgresql_privileges
2416 # check to see if we need to upgrade a 2.x database
2417 elif [ "$DB_VER" -lt "11" ]; then
2418 echo "This release requires an upgrade to your bacula database."
2419 echo "Backing up your current database..."
2420 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2421 echo "Upgrading bacula database ..."
2422 %{script_dir}/update_postgresql_tables
2423 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2428 %if ! %{client_only}
2429 # generate passwords if needed
2430 if [ -d %{sysconf_dir} ]; then
2432 for file in *.conf; do
2433 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
2434 need_password=`grep $string $file 2>/dev/null`
2435 if [ -n "$need_password" ]; then
2436 pass=`openssl rand -base64 33`
2437 sed "s-$string-$pass-g" $file > $file.new
2438 cp -f $file.new $file; rm -f $file.new
2457 %if ! %{client_only}
2460 /sbin/chkconfig --del bacula-dir
2461 /sbin/chkconfig --del bacula-fd
2462 /sbin/chkconfig --del bacula-sd
2477 %if ! %{client_only} && %{mtx}
2479 %defattr(-,root,root)
2480 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
2481 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
2482 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
2483 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
2484 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
2485 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
2486 %{_mandir}/man1/mtx.1.%{manpage_ext}
2487 %{_mandir}/man1/scsitape.1.%{manpage_ext}
2488 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
2489 %{_mandir}/man1/scsieject.1.%{manpage_ext}
2493 %defattr(-,root,root)
2494 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2495 %{script_dir}/bacula-ctl-fd
2496 /etc/init.d/bacula-fd
2498 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2502 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2503 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2504 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2505 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2506 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2507 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2508 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2509 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2514 /etc/logrotate.d/bacula
2516 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2517 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2519 %attr(-, root, %{daemon_group}) %dir %{working_dir}
2521 %{_sbindir}/bacula-fd
2522 %{_sbindir}/btraceback
2523 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2524 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2525 %{_sbindir}/bconsole
2526 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2527 %{_mandir}/man8/bacula.8.%{manpage_ext}
2528 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2529 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2531 %{_libdir}/libbaccfg.*
2532 %{_libdir}/libbacfind.*
2533 %{_libdir}/libbacpy.*
2537 # create the daemon group and user
2538 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2539 if [ -z "$HAVE_BACULA" ]; then
2540 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2541 echo "The group %{daemon_group} has been added to %{group_file}."
2542 echo "See the manual chapter \"Running Bacula\" for details."
2544 # we do not use the -g option allowing the primary group to be set to system default
2545 # this will be a unique group on redhat type systems or the group users on some systems
2546 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2547 if [ -z "$HAVE_BACULA" ]; then
2548 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2549 echo "The user %{file_daemon_user} has been added to %{user_file}."
2550 echo "See the manual chapter \"Running Bacula\" for details."
2552 # now we add the supplementary group, this is ok to call even if the user already exists
2553 # we only do this if the user is NOT root
2554 IS_ROOT=%{file_daemon_user}
2555 if [ "$IS_ROOT" != "root" ]; then
2556 %{usermod} -G %{daemon_group} %{file_daemon_user}
2561 if [ "$1" -ge 1 ] ; then
2562 /sbin/chkconfig --add bacula-fd
2565 # generate passwords if needed
2566 if [ -d %{sysconf_dir} ]; then
2568 for file in *.conf; do
2569 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
2570 need_password=`grep $string $file 2>/dev/null`
2571 if [ -n "$need_password" ]; then
2572 pass=`openssl rand -base64 33`
2573 sed "s-$string-$pass-g" $file > $file.new
2574 cp -f $file.new $file; rm -f $file.new
2585 /sbin/chkconfig --del bacula-fd
2591 %if ! %{client_only}
2593 %defattr(-,root,%{daemon_group})
2594 %{script_dir}/updatedb/*
2597 # create the daemon group
2598 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2599 if [ -z "$HAVE_BACULA" ]; then
2600 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2601 echo "The group %{daemon_group} has been added to %{group_file}."
2602 echo "See the manual chapter \"Running Bacula\" for details."
2606 echo "The database update scripts were installed to %{script_dir}/updatedb"
2611 %defattr(-,root,root)
2612 %{_sbindir}/bgnome-console
2613 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2614 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
2615 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bgnome-console.conf
2616 /usr/share/pixmaps/bacula.png
2617 /usr/share/applications/bacula.desktop
2618 %{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
2621 %if %{gconsole} && ! %{rh8}
2622 %{_sbindir}/bacula-tray-monitor
2623 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
2624 /usr/share/pixmaps/bacula-tray-monitor.xpm
2625 /usr/share/applications/bacula-tray-monitor.desktop
2626 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
2629 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2630 # add the console helper files
2631 %config(noreplace,missingok) /etc/pam.d/bgnome-console
2632 %config(noreplace,missingok) /etc/security/console.apps/bgnome-console
2633 /usr/bin/bgnome-console
2638 # create the daemon group
2639 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2640 if [ -z "$HAVE_BACULA" ]; then
2641 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2642 echo "The group %{daemon_group} has been added to %{group_file}."
2643 echo "See the manual chapter \"Running Bacula\" for details."
2647 # generate passwords if needed
2648 if [ -d %{sysconf_dir} ]; then
2650 for file in *.conf; do
2651 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
2652 need_password=`grep $string $file 2>/dev/null`
2653 if [ -n "$need_password" ]; then
2654 pass=`openssl rand -base64 33`
2655 sed "s-$string-$pass-g" $file > $file.new
2656 cp -f $file.new $file; rm -f $file.new
2665 %defattr(-,root,root)
2666 %{_sbindir}/bwx-console
2667 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2668 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bwx-console.conf
2669 /usr/share/pixmaps/wxwin16x16.xpm
2670 /usr/share/applications/wxconsole.desktop
2671 %{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
2674 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2675 # add the console helper files
2676 %config(noreplace,missingok) /etc/pam.d/bwx-console
2677 %config(noreplace,missingok) /etc/security/console.apps/bwx-console
2678 /usr/bin/bwx-console
2683 # create the daemon group
2684 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2685 if [ -z "$HAVE_BACULA" ]; then
2686 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2687 echo "The group %{daemon_group} has been added to %{group_file}."
2688 echo "See the manual chapter \"Running Bacula\" for details."
2692 # generate passwords if needed
2693 if [ -d %{sysconf_dir} ]; then
2695 for file in *.conf; do
2696 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
2697 need_password=`grep $string $file 2>/dev/null`
2698 if [ -n "$need_password" ]; then
2699 pass=`openssl rand -base64 33`
2700 sed "s-$string-$pass-g" $file > $file.new
2701 cp -f $file.new $file; rm -f $file.new
2710 %defattr(-,root,root)
2712 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2713 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bat.conf
2714 /usr/share/pixmaps/bat_icon.png
2715 /usr/share/applications/bat.desktop
2716 %{_mandir}/man1/bat.1.%{manpage_ext}
2719 %if %{bat} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2720 # add the console helper files
2721 %config(noreplace,missingok) /etc/pam.d/bat
2722 %config(noreplace,missingok) /etc/security/console.apps/bat
2728 # create the daemon group
2729 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2730 if [ -z "$HAVE_BACULA" ]; then
2731 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2732 echo "The group %{daemon_group} has been added to %{group_file}."
2733 echo "See the manual chapter \"Running Bacula\" for details."
2737 # generate passwords if needed
2738 if [ -d %{sysconf_dir} ]; then
2740 for file in *.conf; do
2741 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
2742 need_password=`grep $string $file 2>/dev/null`
2743 if [ -n "$need_password" ]; then
2744 pass=`openssl rand -base64 33`
2745 sed "s-$string-$pass-g" $file > $file.new
2746 cp -f $file.new $file; rm -f $file.new
2754 * Sat Jun 20 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2755 - Fix bat install which is now handled by make and uses shared libs
2756 * Sat May 16 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2757 - fix libxml dependency for rh7 per Pasi Kärkkäinen <pasik@iki.fi>
2758 * Mon May 04 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2759 - Fix post ldconfig problem in client only build
2760 * Sun May 03 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2761 - remove more files installed by client-only build not needed by client package
2762 - remove libbacsql files from client package
2763 * Sat May 02 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2765 - update for new docs configuration
2766 * Sat Apr 25 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2767 - add switch to pass Distribution tag
2768 * Sun Apr 5 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2770 - database update version 10 to 11
2771 - make now installs docs so we rm from buildroot
2772 - add shared libs in %_libdir and other misc new files
2773 * Wed Dec 31 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2775 * Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2776 - set paths for QT using pkgconfig
2777 * Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2778 - release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
2779 * Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2780 - adjust /opt/bacula install
2781 - add build switch to supress rescue package
2782 * Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2783 - add support for install to /opt/bacula
2784 * Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2785 - remove libtermcap dependancy for FC9
2786 * Mon Aug 04 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2787 - fix bat dependencies
2788 * Sat Jun 28 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2790 * Sat May 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2792 * Sun Mar 30 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2793 - FHS compatibility changes
2794 * Sat Feb 16 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2795 - remove fix for false buffer overflow detection with glibc >= 2.7
2796 * Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2797 - fix for false buffer overflow detection with glibc >= 2.7
2798 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2800 - add debug package for SuSE
2801 * Sat Jan 12 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2802 - 2.2.8 beta release
2805 * Sun Dec 30 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2806 - fix typo on su103 client package requirements
2807 * Fri Dec 28 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2808 - add nobuild_mtx switch
2809 - add patch for postgresql.c for old postgresql versions
2810 * Sat Nov 17 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2812 * Sun Nov 11 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2813 - add new files required by rescue makefile
2814 * Sat Nov 10 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2815 - add su103 build target
2816 * Sun Nov 04 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2817 - fix dist defines for rhel5 and clones
2818 - fix rhel broken 64 bit QT4 paths
2819 - rh qt4 packages don't provide qt so fix that too
2820 * Mon Oct 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2821 - correct ownership when creating sqlite db file in post script
2822 * Sun Sep 16 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2823 - fix disable-batch-insert
2824 * Fri Sep 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2826 - turn off gconsole build for fc3, tray monitor fails to build
2827 - add new files for mtx package (09Sep07 depkgs update)
2828 * Sat Sep 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2829 - add --disable-batch-insert for older platforms
2830 - add build targets for rhel5 and clones
2831 * Mon Sep 03 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2833 - turn off gconsole build for su10 & fc4, tray monitor fails to build
2834 * Sat Jul 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2835 - 2.1.26 add make of qwt in depkgs for bat
2836 * Sat Jun 02 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2837 - upgrade Qt requirement for bat to 4.2
2838 * Sun May 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2839 - add fc7 build target
2840 * Sun Apr 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2842 - gnome-console now bgnome-console
2843 - wxconsole now bwx-console
2844 - add build option for bat
2845 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2846 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
2847 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
2848 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
2849 - adjust directory locations for FHS-compatibility
2850 sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
2851 working_dir (/var/lib/bacula) and pid_dir (/var/run)
2852 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2853 - add SuSE 10.2 target
2854 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2856 - set query.sql as config file
2858 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2860 - change determination of gcc version per patch from Marc Hennes
2861 - move BuildRequire for atk-devel to gnome only builds
2863 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2865 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2866 - 1.39.26 remove create_sqlite_database.in.patch
2867 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2868 - change ownership of working_dir on server packages to bacula.bacula so that
2869 - bacula-sd can create bootstrap files
2870 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2871 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
2872 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2873 - fix manpages file extension for mdk
2874 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2875 - bug 648 re-enable and update sqlite patches
2879 - lock out gconsole build for gtk+ < 2.4
2880 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2881 - move pango-devel BuildRequires into gconsole only build
2882 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2883 - add provides and conflicts for standard suse packages
2884 - add third party packager tag support
2885 - add build_client_only tag
2886 - remove bsmtp from client package
2887 - add bacula-ctl-fd to client package
2888 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2889 - fix directory creation when wxconsole and not gconsole
2890 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2891 - add check to buildrequires to make sure libstdc++ version matches gcc
2892 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2893 - add python build support
2894 - fix LDFLAGS declarations
2895 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2896 - add requires for standard compiler toolchain
2897 - move version and release tags up
2899 - add docs_version tag
2900 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2901 - update rescuever to 1.8.6
2902 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2903 - update depkgs to 25Jun06
2904 - add mysql5 build tag
2905 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2906 - 1.38.10 bump rescue version
2907 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2908 - fix usermod statements
2910 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2911 - add -g param back to useradd statements Bug 605
2912 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2913 - redundant code cleanup
2914 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2915 - add wxconsole package
2916 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2918 - dependency update for Mandriva
2919 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2921 - remove -n option from useradd scripts
2922 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2924 - fix problem specifying more than one primary group for user bacula
2925 - add build switch to not build gconsole regardless of platform
2926 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2927 - add centos3 build tag
2928 - fix link error of static-fd on Mandrake with --disable-nls
2929 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2930 - add fc4 dependencies
2931 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2932 - add SuSE 10.0 build
2933 - remove specific permission in attrib macros
2934 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2936 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
2937 - refix compat for _dist on SLES9 which seems to have been removed
2938 - added note regarding Aleksandar's use of specific permissions in attrib macros
2939 - need to review and add specific fc4 build currently using fc3 Requires
2940 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2942 - Reorganize files and pre/post sections to remove repetitions
2943 - Always build separate mtx package
2944 - Fix file ownerships for /etc/bacula and Bacula's working dir
2945 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2946 - Disable GNOME on RH7
2947 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2948 - Red Hat and look alikes have mtx RPM, do not build/package our version
2949 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2950 - minor edit to _dist for SLES9 compatibility
2951 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2953 - kern changed location of pdf files and html manual in docs package
2954 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2956 - add docs (from prebuilt tarball) and rescue packages back in
2957 - remove dvd-freespace and dvd-writepart files, add dvd-handler
2958 - remove 3 of 4 sqlite script patches as not needed
2959 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2961 - remove docs and rescue sections (remove static fd)
2962 - add dvd-freespace and dvd-writepart files
2963 - update depkgs to 22Jun05
2964 - change database update to 8 to 9
2965 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2966 - minor cleanups before 1.38 changes
2967 - add popt and popt-devel build dependencies
2968 - add tetex and tetex-dvips dependencies for doc build
2969 - replace deprecated Copyright tag with License
2970 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2971 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
2972 - conflict with sqlite packages. remove readline dependency.
2973 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2974 - release 1.36.3 update docs
2975 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2976 - add centos4 build tag
2977 - add x86_64 build tag
2978 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2979 - add rhel4 build tag
2980 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
2981 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2982 - add rhel3 build tag
2983 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2984 - fix tray-monitor.conf for noreplace
2985 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2986 - fix distribution check for Fedora and Whitebox
2987 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2988 - add logwatch script
2990 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2991 - add build for Fedora Core 3 (linc now included in ORDit2)
2992 - add mysql4 define for Mandrake 10.1
2993 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2994 - fix {group_file} variable in post scripts
2995 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
2996 - add distribution checking and custom Distribution tag
2997 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2998 - ASSIGNMENT OF COPYRIGHT
2999 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
3000 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
3001 - all right, title and interest in and to the copyright in this software RPM
3002 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
3003 - free of all liens, encumbrances or any known claims against said copyright.
3004 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3006 - thanks to Daniel Widyono
3007 - update description for rescue package to describe cdrom creation
3008 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3009 - update depkgs to 29Oct04
3010 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3011 - add cdrom rescue to bacula-rescue package
3012 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3013 - misc fixes from 1.36.0 suse feedback
3014 - fix situation where sqlite database exists but sqlite has been removed.
3015 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3016 - remove tray-monitor from RH8 build
3017 - fix permissions on tray-monitor files
3018 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3019 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
3020 - change database update to 7 to 8 upgrade,
3021 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
3022 - build in 30Jul04, add freetype dependancy to gnome package.
3023 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3024 - add documentation to console for groupadd
3025 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3026 - add support for running daemons as root.bacula
3027 - correct for change in location of floppy rescue files in 1.35.2
3028 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
3029 - updated depgkgs to 30Jul04
3030 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3031 - really, really fix symlink creation for gconsole
3032 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3033 - fix symlink creation in gconsole post install
3034 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3035 - fixed error in gconsole post script
3036 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3037 - add check for gconsole symlink before trying to create it
3038 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3039 - fix some minor permissions issues on doc files that CVS won't let us fix
3040 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3041 - add pkgconfig to BuildRequires
3042 - clean up gnome1/2 menu entries for appropriate packages
3043 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3044 - tightened up doc distribution
3045 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3046 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
3047 - rpm's horrible bug that prevents nested conditional macros prevents me
3048 - from implementing these 2 separate approaches within the conditionals which
3049 - create the separate server packages.
3050 - the solution adopted is to remove the gnome-console files from the server packages
3051 - so bacula-gconsole is now an add on for both client and server packages.
3052 - this also now allows the server packages to be install on machines without
3053 - an X-server and we can still maintain a single spec file.
3054 - added tests to make sure we have defined platform and database macros.
3055 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3056 - corrected mysql prerequisites for suse
3057 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3058 - replaced all cp commands with cp -p
3059 - removed addition of a+x permissions on gnome-console
3060 - corrected permissions on init scripts
3061 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3062 - corrected creation of sqlite_bindir in install from !mysql to sqlite
3064 - various cleanup patches from Michael K. Johnson:
3065 - corrected post install routines for nicer chkconfig
3066 - removed chmod changes in post routines and moved to install section
3067 - removed interactive nature of post routine for rescue package
3068 - added description of building rescue disks to the description of rescue package
3069 - added clean of build root to beginning of install
3070 - removed specifying attr in all file lists
3071 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3072 - added bconsole to client package
3073 - added gconsole package as add-on to client
3074 - removed spurious dependancies on updatedb package (!cut/paste)
3075 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3076 - added updatedb package
3077 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3078 - added postgresql package
3079 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3080 - corrected the if else logic in the dependancy sections
3081 - changes for 1.34 release
3082 - /etc/bacula/console is now /etc/bacula/bconsole
3083 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
3084 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
3085 - /usr/sbin/smtp is now /usr/sbin/bsmtp
3086 - added new /etc/bacula/drop_mysql_database
3087 - added new /etc/bacula/drop_sqlite_database
3088 - added new /etc/bacula/grant_sqlite_privileges
3089 - added new generic bacula database scripts in /etc/bacula
3090 - added pre-install sections to check for database versions older than 6
3091 - added check for /etc/bacula/console.conf and copy to bconsole.conf
3092 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3093 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
3094 - added testing for existing databases before executing any of the database creation scripts
3095 - added defines working_dir and sqlite_bindir in place of hard coded paths
3096 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3097 - added build configuration for SuSE.
3098 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
3099 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3100 - added patch for create_sqlite_database to fix the installed bindir
3101 - added execute of create_sqlite_database to post of sqlite package
3102 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3103 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
3104 - added bacula-fd as Requires for rescue package
3105 - added build tag for Fedora Core 1
3106 - cleaned up dependancies for all builds
3107 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3108 - removed rh_version from package names
3109 - added platform build configuration section to beginning of file
3110 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3111 - removed make_static_bacula script from rescue package install
3112 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3113 - Added define at top of file for depkgs version
3114 - Added rescue sub-package
3115 - Moved requires statements into proper sub-package locations
3116 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3117 - Corrected Requires for Gnome 1.4/2.0 builds
3118 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3119 - Added separate source declaration for depkgs
3120 - added patch for make_catalog_backup script
3121 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3122 - Misc changes to mysql/sqlite build and rh7/8 menu differences
3123 - Added rh_version to sub-package names
3124 - Added installed but missing file /etc/bacula/gconsole
3125 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
3126 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
3127 - Update spec for version 1.31 and combine client
3128 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>