3 # Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
5 # Platform Build Configuration
7 # basic defines for every build
10 %define _rescuever 3.0.2
11 %define docs_version 3.0.2
12 %define depkgs_version 18Feb09
13 %define depkgs_qt_version 28Jul09
14 %define _packager Kern Sibbald <kern@sibbald.com>
17 %{?single_dir_install:%define single_dir 1}
19 # Installation Directory locations
21 %define _prefix /opt/bacula
22 %define _sbindir /opt/bacula/bin
23 %define _bindir /opt/bacula/bin
24 %define _subsysdir /opt/bacula/working
25 %define sqlite_bindir /opt/bacula/sqlite
26 %define _mandir /usr/share/man
27 %define sysconf_dir /opt/bacula/etc
28 %define script_dir /opt/bacula/scripts
29 %define working_dir /opt/bacula/working
30 %define pid_dir /opt/bacula/working
31 %define plugin_dir /opt/bacula/plugins
32 %define lib_dir /opt/bacula/lib
35 %define _sbindir %_prefix/sbin
36 %define _bindir %_prefix/bin
37 %define _subsysdir /var/lock/subsys
38 %define sqlite_bindir %_libdir/bacula/sqlite
39 %define _mandir %_prefix/share/man
40 %define sysconf_dir /etc/bacula
41 %define script_dir %_libdir/bacula
42 %define working_dir /var/lib/bacula
43 %define pid_dir /var/run
44 %define plugin_dir %_libdir/bacula/plugins
45 %define lib_dir %_libdir/bacula/lib
48 # Daemon user:group Don't change them unless you know what you are doing
49 %define director_daemon_user bacula
50 %define storage_daemon_user bacula
51 %define file_daemon_user root
52 %define daemon_group bacula
53 # group that has write access to tape devices, usually disk on Linux
54 %define storage_daemon_group disk
57 # probems with mandriva build:
58 # nothing provides libbonobo2_0-devel, nothing provides libbonoboui2_0-devel
60 # set Macros by opensuse_bs, see http://en.opensuse.org/Build_Service/cross_distribution_package_how_to
61 #openSUSE 11.1 %if 0%{?suse_version} == 1110
62 #openSUSE 11.0 %if 0%{?suse_version} == 1100
63 #openSUSE 10.3 %if 0%{?suse_version} == 1030
64 #openSUSE 10.2 %if 0%{?suse_version} == 1020
65 #SUSE Linux 10.1 %if 0%{?suse_version} == 1010
66 #SUSE Linux 10.0 %if 0%{?suse_version} == 1000
67 #SUSE Linux 9.3 %if 0%{?suse_version} == 930
68 #SLES 9 %if 0%{?sles_version} == 9 also set: %if 0%{?suse_version} == 910
69 #SLE 10 %if 0%{?sles_version} == 10 also set: %if 0%{?suse_version} == 1010
70 #SLE 11 %if 0%{?sles_version} == 11 also set: %if 0%{?suse_version} == 1110
71 #CentOS 5 %if 0%{?centos_version} == 501
72 #RHEL 4 %if 0%{?rhel_version} == 406
73 #RHEL 5 %if 0%{?rhel_version} == 501
74 #Fedora 6 with Extras %if 0%{?fedora_version} == 6
75 #Fedora 7 with Extras %if 0%{?fedora_version} == 7
76 #Fedora 8 with Extras %if 0%{?fedora_version} == 8
77 #Fedora 9 with Extras %if 0%{?fedora_version} == 9
78 #Fedora 10 with Extras %if 0%{?fedora_version} == 10
79 #Mandriva 2006 %if 0%{?mandriva_version} == 2006
80 #Mandriva 2007 %if 0%{?mandriva_version} == 2007
81 #Mandriva 2008 %if 0%{?mandriva_version} == 2008
85 # am I running in opensuse build service?
86 # TODO: seems to make problems
88 # choose database backend here
89 # postgres, mysql, sqlite
90 %define build_postgresql 1
92 # Build Service: Determine Distribution
95 %define build_x86_64 1
99 %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
100 BuildRequires: GConf2-devel
101 BuildRequires: freetype-devel
102 BuildRequires: libtermcap-devel
103 BuildRequires: shadow-utils
107 %if 0%{?mandriva_version} == 2007
109 %define _dist "Mandriva 2007"
113 %if 0%{?fedora_version} == 8
115 %define _dist "Fedora Core 8"
116 BuildRequires: redhat-release
119 %if 0%{?fedora_version} == 9
121 %define _dist "Fedora Core 9"
122 BuildRequires: redhat-release
126 %if 0%{?fedora_version} == 10
128 %define _dist "Fedora Core 10"
129 BuildRequires: PolicyKit-gnome
130 BuildRequires: fedora-release
133 %if 0%{?fedora_version} == 11
135 %define _dist "Fedora Core 11"
136 BuildRequires: PolicyKit-gnome
137 BuildRequires: fedora-release
140 %if 0%{?rhel_version} == 501
141 %define build_rhel5 1
142 %define _dist "Red Hat Enterprise Linux Server release 5"
143 BuildRequires: redhat-release
146 %if 0%{?rhel_version} == 406
147 %define build_rhel4 1
148 %define _dist "Red Hat Enterprise Linux Server release 4"
149 BuildRequires: redhat-release
153 %if 0%{?centos_version} == 501
154 %define build_centos5 1
155 %define _dist "CentOS 5"
156 BuildRequires: redhat-release
160 %if 0%{?suse_version} == 1020
161 %define build_su102 1
162 %define _dist "OpenSUSE 10.2"
163 BuildRequires: suse-release
167 %if 0%{?suse_version} == 1030
168 %define build_su103 1
169 %define _dist "OpenSUSE 10.3"
170 BuildRequires: suse-release
173 %if 0%{?suse_version} == 1100
174 %define build_su110 1
175 %define _dist "SUSE 11"
176 BuildRequires: suse-release
180 %if 0%{?suse_version} == 1110
181 %define build_su111 1
182 %define _dist "SUSE 11"
186 %if 0%{?sles_version} == 9
188 %define _dist "SLES 9"
192 %if 0%{?sles_version} == 10
194 %define _dist "SLE 10"
198 %if 0%{?sles_version} == 11
199 %define build_su111 1
200 %define _dist "SLES 11"
207 # any patches for this release
208 # be sure to check the setup section for patch macros
210 #--------------------------------------------------------------------------
211 # it should not be necessary to change anything below here for a release
212 # except for patch macros in the setup section
213 #--------------------------------------------------------------------------
215 %{?contrib_packager:%define _packager %{contrib_packager}}
217 Summary: Bacula - The Network Backup Solution
221 Group: System Environment/Daemons
223 BuildRoot: %{_tmppath}/%{name}-root
224 URL: http://www.bacula.org/
225 Vendor: The Bacula Team
226 Packager: %{_packager}
229 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
230 Source1: Release_Notes-%{version}-%{release}.tar.gz
231 Source2: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
232 Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
233 Source4: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
234 Source5: http://www.prdownloads.sourceforge.net/bacula/depkgs-qt-%{depkgs_qt_version}.tar.gz
235 Source6: bacula-2.2.7-postgresql.patch
237 # define the basic package description
238 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
239 %define blurb2 Bacula is a set of computer programs that permit you (or the system
240 %define blurb3 administrator) to manage backup, recovery, and verification of computer
241 %define blurb4 data across a network of computers of different kinds. In technical terms,
242 %define blurb5 it is a network client/server based backup program. Bacula is relatively
243 %define blurb6 easy to use and efficient, while offering many advanced storage management
244 %define blurb7 features that make it easy to find and recover lost or damaged files.
245 %define blurb8 Bacula source code has been released under the GPL version 2 license.
247 # Source directory locations
248 %define _docsrc ../%{name}-docs-%{docs_version}
249 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
250 %define depkgs ../depkgs
251 %define depkgs_qt ../depkgs-qt
253 %define user_file /etc/passwd
254 %define group_file /etc/group
257 %define useradd /usr/sbin/useradd
258 %define groupadd /usr/sbin/groupadd
259 %define usermod /usr/sbin/usermod
261 # platform defines - set one below or define the build_xxx on the command line
264 %{?build_rh7:%define rh7 1}
266 %{?build_rh8:%define rh8 1}
268 %{?build_rh9:%define rh9 1}
271 %{?build_fc1:%define fc1 1}
273 %{?build_fc3:%define fc3 1}
275 %{?build_fc4:%define fc4 1}
277 %{?build_fc5:%define fc5 1}
279 %{?build_fc6:%define fc6 1}
281 %{?build_fc7:%define fc7 1}
283 %{?build_fc8:%define fc8 1}
285 %{?build_fc9:%define fc9 1}
286 # Whitebox Enterprise build
288 %{?build_wb3:%define wb3 1}
289 # RedHat Enterprise builds
291 %{?build_rhel3:%define rhel3 1}
292 %{?build_rhel3:%define wb3 1}
294 %{?build_rhel4:%define rhel4 1}
295 %{?build_rhel4:%define fc3 1}
297 %{?build_rhel5:%define rhel5 1}
298 %{?build_rhel5:%define fc6 1}
301 %{?build_centos3:%define centos3 1}
302 %{?build_centos3:%define wb3 1}
304 %{?build_centos4:%define centos4 1}
305 %{?build_centos4:%define fc3 1}
307 %{?build_centos5:%define centos5 1}
308 %{?build_centos5:%define fc6 1}
311 %{?build_sl3:%define sl3 1}
312 %{?build_sl3:%define wb3 1}
314 %{?build_sl4:%define sl4 1}
315 %{?build_sl4:%define fc3 1}
317 %{?build_sl5:%define sl5 1}
318 %{?build_sl5:%define fc6 1}
321 %{?build_su9:%define su9 1}
323 %{?build_su10:%define su10 1}
325 %{?build_su102:%define su102 1}
327 %{?build_su103:%define su103 1}
329 %{?build_su110:%define su110 1}
331 %{?build_su111:%define su111 1}
334 %{?build_mdk:%define mdk 1}
336 %{?build_mdv:%define mdv 1}
337 %{?build_mdv:%define mdk 1}
340 %define client_only 0
341 %{?build_client_only:%define client_only 1}
343 # test for a platform definition
344 %if !%{rh7} && !%{rh8} && !%{rh9} && !%{fc1} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && !%{wb3} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk}
345 %{error: You must specify a platform. Please examine the spec file.}
350 # set for database support desired or define the build_xxx on the command line
352 %{?build_mysql:%define mysql 1}
353 # if using mysql 4.x define this and mysql above
354 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
356 %{?build_mysql4:%define mysql4 1}
357 %{?build_mysql4:%define mysql 1}
358 # if using mysql 5.x define this and mysql above
359 # currently: SuSE 10.1 and Fedora Core 5
361 %{?build_mysql5:%define mysql5 1}
362 %{?build_mysql5:%define mysql 1}
364 %{?build_sqlite:%define sqlite 1}
366 %{?build_postgresql:%define postgresql 1}
368 # test for a database definition
369 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
370 %{error: You must specify database support. Please examine the spec file.}
375 %define db_backend mysql
378 %define db_backend sqlite3
381 %define db_backend postgresql
386 %{?build_x86_64:%define x86_64 1}
388 # check what distribution we are
389 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
390 %define _dist %(grep Red /etc/redhat-release)
392 %if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8} || %{fc9}
393 %define _dist %(grep Fedora /etc/redhat-release)
395 %if %{centos5} || %{centos4} || %{centos3}
396 %define _dist %(grep CentOS /etc/redhat-release)
398 %if %{sl5} ||%{sl4} || %{sl3}
399 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
401 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
402 %define _dist %(grep Fedora /etc/redhat-release)
404 %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
405 %define _dist %(grep Fedora /etc/redhat-release)
407 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
408 %define _dist %(grep White /etc/whitebox-release)
410 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
411 %define _dist %(grep -i SuSE /etc/SuSE-release)
414 %define _dist %(grep Mand /etc/mandrake-release)
416 %{?DISTNAME:%define _dist %{DISTNAME}}
417 Distribution: %{_dist}
419 # Should we build gconsole, possible only if gtk= >= 2.4 available.
420 # leaving all the BuildRequires and Requires in place below for now.
421 # su10, fc3 and fc4 now nobuild, tray monitor fails to build as of 2.2.1
422 # release as it needs 2.10
425 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
428 %if %{mdk} && ! %{mdv}
432 # specifically disallow gconsole if desired
433 %{?nobuild_gconsole:%define gconsole 0}
435 # specifically disallow rescue files
437 %{?build_rescue:%define rescue 1}
439 # Should we build wxconsole, only wxWidgets >=2.6 is supported
440 # SuSE 10 and FC4 and newer
442 %{?build_wxconsole:%define wxconsole 1}
444 # Should we build bat
447 %{?build_bat:%define bat 1}
449 # should we turn on python support
451 %{?build_python:%define python 1}
453 # specifically disallow build of mtx package if desired
455 %{?nobuild_mtx:%define mtx 0}
457 # do we need to patch for old postgresql version?
459 %{?build_old_pgsql:%define old_pgsql 1}
461 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
463 %define manpage_ext bz2
465 %define manpage_ext gz
468 # for client only build
479 BuildRequires: gcc, gcc-c++, make, autoconf
480 BuildRequires: ncurses-devel, perl
481 BuildRequires: libstdc++-devel, zlib-devel
482 BuildRequires: openssl-devel
483 BuildRequires: libacl-devel
484 BuildRequires: pkgconfig
486 BuildRequires: libxml2-devel
489 BuildRequires: python, python-devel
490 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
493 BuildRequires: pkgconfig, pango-devel, atk-devel
497 BuildRequires: libtermcap-devel
498 BuildRequires: glibc-devel >= 2.2
499 BuildRequires: libxml-devel
502 BuildRequires: termcap
503 BuildRequires: glibc-devel >= 2.3
505 %if %{su9} && %{gconsole}
506 BuildRequires: libgnome >= 2.0
507 BuildRequires: gtk2-devel >= 2.0
508 BuildRequires: libgnomeui-devel >= 2.0
509 BuildRequires: ORBit2-devel
510 BuildRequires: libart_lgpl-devel >= 2.0
511 BuildRequires: libbonobo-devel >= 2.0
512 BuildRequires: libbonoboui-devel >= 2.0
513 BuildRequires: bonobo-activation-devel
514 BuildRequires: gconf2-devel
515 BuildRequires: linc-devel
516 BuildRequires: freetype2-devel
519 BuildRequires: termcap
520 BuildRequires: glibc-devel >= 2.3
522 %if %{su10} && %{gconsole}
523 BuildRequires: libgnome >= 2.12
524 BuildRequires: gtk2-devel >= 2.8
525 BuildRequires: libgnomeui-devel >= 2.12
526 BuildRequires: ORBit2-devel
527 BuildRequires: libart_lgpl-devel >= 2.3
528 BuildRequires: libbonobo-devel >= 2.10
529 BuildRequires: libbonoboui-devel >= 2.10
530 BuildRequires: bonobo-activation-devel
531 BuildRequires: gconf2-devel
532 BuildRequires: freetype2-devel
533 BuildRequires: cairo-devel
534 BuildRequires: fontconfig-devel >= 2.3
535 BuildRequires: gnome-vfs2-devel >= 2.12
536 BuildRequires: libpng-devel
539 BuildRequires: termcap
540 BuildRequires: glibc-devel >= 2.5
542 %if %{su102} && %{gconsole}
543 BuildRequires: libgnome >= 2.16
544 BuildRequires: gtk2-devel >= 2.10
545 BuildRequires: libgnomeui-devel >= 2.16
546 BuildRequires: ORBit2-devel
547 BuildRequires: libart_lgpl-devel >= 2.3
548 BuildRequires: libbonobo-devel >= 2.16
549 BuildRequires: libbonoboui-devel >= 2.16
550 BuildRequires: bonobo-activation-devel
551 BuildRequires: gconf2-devel
552 BuildRequires: freetype2-devel
553 BuildRequires: cairo-devel
554 BuildRequires: fontconfig-devel >= 2.4
555 BuildRequires: gnome-vfs2-devel >= 2.16
556 BuildRequires: libpng-devel
559 BuildRequires: termcap
560 BuildRequires: glibc-devel >= 2.6
562 %if %{su103} && %{gconsole}
563 BuildRequires: libgnome >= 2.20
564 BuildRequires: gtk2-devel >= 2.12
565 BuildRequires: libgnomeui-devel >= 2.20
566 BuildRequires: ORBit2-devel
567 BuildRequires: libart_lgpl-devel >= 2.3
568 BuildRequires: libbonobo-devel >= 2.20
569 BuildRequires: libbonoboui-devel >= 2.20
570 BuildRequires: bonobo-activation-devel
571 BuildRequires: gconf2-devel
572 BuildRequires: freetype2-devel
573 BuildRequires: cairo-devel
574 BuildRequires: fontconfig-devel >= 2.4
575 BuildRequires: gnome-vfs2-devel >= 2.20
576 BuildRequires: libpng-devel
579 BuildRequires: termcap
580 BuildRequires: glibc-devel >= 2.8
582 %if %{su110} && %{gconsole}
583 BuildRequires: libgnome >= 2.22
584 BuildRequires: gtk2-devel >= 2.12
585 BuildRequires: libgnomeui-devel >= 2.22
586 BuildRequires: ORBit2-devel
587 BuildRequires: libart_lgpl-devel >= 2.3
588 BuildRequires: libbonobo-devel >= 2.22
589 BuildRequires: libbonoboui-devel >= 2.22
590 BuildRequires: bonobo-activation-devel
591 BuildRequires: gconf2-devel
592 BuildRequires: freetype2-devel
593 BuildRequires: cairo-devel
594 BuildRequires: fontconfig-devel >= 2.4
595 BuildRequires: gnome-vfs2-devel >= 2.22
596 BuildRequires: libpng-devel
599 BuildRequires: termcap
600 BuildRequires: glibc-devel >= 2.9
602 %if %{su111} && %{gconsole}
603 BuildRequires: libgnome >= 2.24
604 BuildRequires: gtk2-devel >= 2.14
605 BuildRequires: libgnomeui-devel >= 2.24
606 BuildRequires: ORBit2-devel
607 BuildRequires: libart_lgpl-devel >= 2.3
608 BuildRequires: libbonobo-devel >= 2.24
609 BuildRequires: libbonoboui-devel >= 2.24
610 BuildRequires: bonobo-activation-devel
611 BuildRequires: gconf2-devel
612 BuildRequires: freetype2-devel
613 BuildRequires: cairo-devel
614 BuildRequires: fontconfig-devel >= 2.6
615 BuildRequires: gnome-vfs2-devel >= 2.24
616 BuildRequires: libpng-devel
619 BuildRequires: libtermcap-devel
620 BuildRequires: libstdc++-static-devel
621 BuildRequires: glibc-static-devel
622 BuildRequires: glibc-devel >= 2.3
624 %if %{mdk} && !%{mdv} && %{gconsole}
625 BuildRequires: gtk2-devel >= 2.0
626 BuildRequires: libgnomeui2-devel >= 2.0
627 BuildRequires: libORBit2-devel
628 BuildRequires: libart_lgpl-devel >= 2.0
629 BuildRequires: libbonobo2_0-devel
630 BuildRequires: libbonoboui2_0-devel
631 BuildRequires: libbonobo-activation-devel
632 BuildRequires: libGConf2-devel
633 BuildRequires: freetype2-devel
635 %if %{mdv} && %{gconsole}
636 BuildRequires: gtk2-devel >= 2.8
637 BuildRequires: libgnomeui2-devel >= 2.10
638 BuildRequires: libORBit2-devel
639 BuildRequires: libart_lgpl-devel >= 2.3
640 BuildRequires: libbonobo2_0-devel
641 BuildRequires: libbonoboui2_0-devel
642 BuildRequires: libbonobo-activation-devel
643 BuildRequires: libGConf2-devel
644 BuildRequires: freetype2-devel
647 BuildRequires: libtermcap-devel
648 BuildRequires: glibc-devel >= 2.3
650 %if %{fc3} && %{gconsole}
651 BuildRequires: gtk2-devel >= 2.4
652 BuildRequires: libgnomeui-devel >= 2.8
653 BuildRequires: ORBit2-devel
654 BuildRequires: libart_lgpl-devel >= 2.3
655 BuildRequires: libbonobo-devel >= 2.8
656 BuildRequires: libbonoboui-devel >= 2.8
657 BuildRequires: bonobo-activation-devel
658 BuildRequires: GConf2-devel
659 BuildRequires: freetype-devel
662 BuildRequires: libtermcap-devel
663 BuildRequires: glibc-devel >= 2.3
665 %if %{fc4} && %{gconsole}
666 BuildRequires: gtk2-devel >= 2.6
667 BuildRequires: libgnomeui-devel >= 2.10
668 BuildRequires: ORBit2-devel
669 BuildRequires: libart_lgpl-devel >= 2.3
670 BuildRequires: libbonobo-devel >= 2.8
671 BuildRequires: libbonoboui-devel >= 2.8
672 BuildRequires: bonobo-activation-devel
673 BuildRequires: GConf2-devel
674 BuildRequires: freetype-devel
677 BuildRequires: libtermcap-devel
678 BuildRequires: glibc-devel >= 2.4
680 %if %{fc5} && %{gconsole}
681 BuildRequires: gtk2-devel >= 2.8
682 BuildRequires: libgnomeui-devel >= 2.14
683 BuildRequires: ORBit2-devel
684 BuildRequires: libart_lgpl-devel >= 2.3
685 BuildRequires: libbonobo-devel >= 2.14
686 BuildRequires: libbonoboui-devel >= 2.14
687 BuildRequires: GConf2-devel
688 BuildRequires: freetype-devel
691 BuildRequires: libtermcap-devel
692 BuildRequires: glibc-devel >= 2.5
694 %if %{fc6} && %{gconsole}
695 BuildRequires: gtk2-devel >= 2.10
696 BuildRequires: libgnomeui-devel >= 2.16
697 BuildRequires: ORBit2-devel
698 BuildRequires: libart_lgpl-devel >= 2.3
699 BuildRequires: libbonobo-devel >= 2.16
700 BuildRequires: libbonoboui-devel >= 2.16
701 BuildRequires: GConf2-devel
702 BuildRequires: freetype-devel
705 BuildRequires: libtermcap-devel
706 BuildRequires: glibc-devel >= 2.5
708 %if %{fc7} && %{gconsole}
709 BuildRequires: gtk2-devel >= 2.10
710 BuildRequires: libgnomeui-devel >= 2.18
711 BuildRequires: ORBit2-devel
712 BuildRequires: libart_lgpl-devel >= 2.3
713 BuildRequires: libbonobo-devel >= 2.18
714 BuildRequires: libbonoboui-devel >= 2.18
715 BuildRequires: GConf2-devel
716 BuildRequires: freetype-devel
719 BuildRequires: libtermcap-devel
720 BuildRequires: glibc-devel >= 2.7
722 %if %{fc8} && %{gconsole}
723 BuildRequires: gtk2-devel >= 2.12
724 BuildRequires: libgnomeui-devel >= 2.20
725 BuildRequires: ORBit2-devel
726 BuildRequires: libart_lgpl-devel >= 2.3
727 BuildRequires: libbonobo-devel >= 2.20
728 BuildRequires: libbonoboui-devel >= 2.20
729 BuildRequires: GConf2-devel
730 BuildRequires: freetype-devel
733 BuildRequires: glibc-devel >= 2.8
734 BuildRequires: zlib-static
736 %if %{fc9} && %{gconsole}
737 BuildRequires: gtk2-devel >= 2.12
738 BuildRequires: libgnomeui-devel >= 2.22
739 BuildRequires: ORBit2-devel
740 BuildRequires: libart_lgpl-devel >= 2.3
741 BuildRequires: libbonobo-devel >= 2.22
742 BuildRequires: libbonoboui-devel >= 2.22
743 BuildRequires: GConf2-devel
744 BuildRequires: freetype-devel
746 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
747 BuildRequires: libtermcap-devel
748 BuildRequires: glibc-devel >= 2.3
750 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && %{gconsole}
751 BuildRequires: gtk2-devel >= 2.0
752 BuildRequires: libgnomeui-devel >= 2.0
753 BuildRequires: ORBit2-devel
754 BuildRequires: libart_lgpl-devel >= 2.0
755 BuildRequires: libbonobo-devel >= 2.0
756 BuildRequires: libbonoboui-devel >= 2.0
757 BuildRequires: bonobo-activation-devel
758 BuildRequires: GConf2-devel
759 BuildRequires: linc-devel
760 BuildRequires: freetype-devel
763 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
764 BuildRequires: mysql-devel >= 3.23
767 %if %{mysql} && %{mysql4}
768 BuildRequires: mysql-devel >= 4.0
771 %if %{mysql} && %{mysql5}
772 BuildRequires: mysql-devel >= 5.0
775 %if %{postgresql} && %{wb3}
776 BuildRequires: rh-postgresql-devel >= 7
779 %if %{postgresql} && ! %{wb3}
780 BuildRequires: postgresql-devel >= 7
784 BuildRequires: wxGTK-devel >= 2.6
808 Summary: Bacula - The Network Backup Solution
809 Group: System Environment/Daemons
810 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
811 Conflicts: bacula-client
813 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
817 Requires: ncurses, libstdc++, zlib, openssl
820 Requires: glibc >= 2.2
823 %if %{su9} || %{su10}
824 Requires: glibc >= 2.3
828 Requires: glibc >= 2.5
832 Requires: glibc >= 2.6
836 Requires: glibc >= 2.8
840 Requires: glibc >= 2.9
843 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
844 Requires: glibc >= 2.3
848 Requires: glibc >= 2.4
852 Requires: glibc >= 2.5
856 Requires: glibc >= 2.7
860 Requires: glibc >= 2.8
863 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
864 Requires: mysql >= 3.23
865 Requires: mysql-server >= 3.23
867 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
868 Requires: mysql >= 4.0
869 Requires: mysql-server >= 4.0
871 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk} && %{mysql5}
872 Requires: mysql >= 5.0
873 Requires: mysql-server >= 5.0
876 %if %{mysql} && %{su9} && ! %{mysql4}
877 Requires: mysql >= 3.23
878 Requires: mysql-client >= 3.23
880 %if %{mysql} && %{su9} && %{mysql4}
881 Requires: mysql >= 4.0
882 Requires: mysql-client >= 4.0
884 %if %{mysql} && %{su10} && %{mysql4}
885 Requires: mysql >= 4.0
886 Requires: mysql-client >= 4.0
888 %if %{mysql} && %{su10} && %{mysql5}
889 Requires: mysql >= 5.0
890 Requires: mysql-client >= 5.0
892 %if %{mysql} && %{su102} && %{mysql5}
893 Requires: mysql >= 5.0
894 Requires: mysql-client >= 5.0
896 %if %{mysql} && %{su103} && %{mysql5}
897 Requires: mysql >= 5.0
898 Requires: mysql-client >= 5.0
900 %if %{mysql} && %{su110} && %{mysql5}
901 Requires: mysql >= 5.0
902 Requires: mysql-client >= 5.0
904 %if %{mysql} && %{su111} && %{mysql5}
905 Requires: mysql >= 5.0
906 Requires: mysql-client >= 5.0
909 %if %{mysql} && %{mdk} && ! %{mysql4}
910 Requires: mysql >= 3.23
911 Requires: mysql-client >= 3.23
913 %if %{mysql} && %{mdk} && %{mysql4}
914 Requires: mysql >= 4.0
915 Requires: mysql-client >= 4.0
918 %if %{postgresql} && %{wb3}
919 Requires: rh-postgresql >= 7
920 Requires: rh-postgresql-server >= 7
922 %if %{postgresql} && ! %{wb3}
923 Requires: postgresql >= 7
924 Requires: postgresql-server >= 7
934 %description postgresql
938 Requires: python >= %{pyver}
952 This build requires MySQL to be installed separately as the catalog database.
955 This build requires PostgreSQL to be installed separately as the catalog database.
958 This build incorporates sqlite3 as the catalog database, statically compiled.
961 This build includes python scripting support.
965 Summary: Bacula - The Network Backup Solution
966 Group: System Environment/Daemons
968 Conflicts: bacula-mysql
969 Conflicts: bacula-sqlite
970 Conflicts: bacula-postgresql
972 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
976 Requires: libstdc++, zlib, openssl
979 Requires: glibc >= 2.2
982 %if %{su9} || %{su10}
983 Requires: glibc >= 2.3
987 Requires: glibc >= 2.5
991 Requires: glibc >= 2.6
995 Requires: glibc >= 2.8
999 Requires: glibc >= 2.9
1002 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
1003 Requires: glibc >= 2.3
1004 Requires: libtermcap
1007 Requires: glibc >= 2.4
1008 Requires: libtermcap
1010 %if %{fc6} || %{fc7}
1011 Requires: glibc >= 2.5
1012 Requires: libtermcap
1015 Requires: glibc >= 2.7
1016 Requires: libtermcap
1019 Requires: glibc >= 2.8
1023 Requires: python >= %{pyver}
1037 This is the File daemon (Client) only package. It includes the command line
1040 This build includes python scripting support.
1043 %if ! %{client_only}
1046 Summary: Bacula - The Network Backup Solution
1047 Group: System Environment/Daemons
1049 %description updatedb
1060 This package installs scripts for updating older versions of the bacula
1066 Summary: Bacula - The Network Backup Solution
1067 Group: System Environment/Daemons
1068 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
1071 %if %{gconsole} && %{su9}
1072 Requires: gtk2 >= 2.0
1073 Requires: libgnome >= 2.0
1074 Requires: libgnomeui >= 2.0
1075 Requires: glibc >= 2.3
1077 Requires: libart_lgpl >= 2.0
1078 Requires: libbonobo >= 2.0
1079 Requires: libbonoboui >= 2.0
1080 Requires: bonobo-activation
1085 %if %{gconsole} && %{su10}
1086 Requires: gtk2 >= 2.8
1087 Requires: libgnome >= 2.12
1088 Requires: libgnomeui >= 2.12
1089 Requires: glibc >= 2.3
1091 Requires: libart_lgpl >= 2.3
1092 Requires: libbonobo >= 2.10
1093 Requires: libbonoboui >= 2.10
1094 Requires: bonobo-activation
1098 Requires: fontconfig >= 2.3
1099 Requires: gnome-vfs2 >= 2.12
1102 %if %{gconsole} && %{su102}
1103 Requires: gtk2 >= 2.10
1104 Requires: libgnome >= 2.16
1105 Requires: libgnomeui >= 2.16
1106 Requires: glibc >= 2.5
1108 Requires: libart_lgpl >= 2.3
1109 Requires: libbonobo >= 2.16
1110 Requires: libbonoboui >= 2.16
1111 Requires: bonobo-activation
1115 Requires: fontconfig >= 2.4
1116 Requires: gnome-vfs2 >= 2.16
1119 %if %{gconsole} && %{su103}
1120 Requires: gtk2 >= 2.12
1121 Requires: libgnome >= 2.20
1122 Requires: libgnomeui >= 2.20
1123 Requires: glibc >= 2.6
1125 Requires: libart_lgpl >= 2.3
1126 Requires: libbonobo >= 2.20
1127 Requires: libbonoboui >= 2.20
1128 Requires: bonobo-activation
1132 Requires: fontconfig >= 2.4
1133 Requires: gnome-vfs2 >= 2.20
1136 %if %{gconsole} && %{su110}
1137 Requires: gtk2 >= 2.12
1138 Requires: libgnome >= 2.22
1139 Requires: libgnomeui >= 2.22
1140 Requires: glibc >= 2.8
1142 Requires: libart_lgpl >= 2.3
1143 Requires: libbonobo >= 2.22
1144 Requires: libbonoboui >= 2.22
1145 Requires: bonobo-activation
1149 Requires: fontconfig >= 2.4
1150 Requires: gnome-vfs2 >= 2.22
1153 %if %{gconsole} && %{su111}
1154 Requires: gtk2 >= 2.14
1155 Requires: libgnome >= 2.24
1156 Requires: libgnomeui >= 2.24
1157 Requires: glibc >= 2.9
1159 Requires: libart_lgpl >= 2.3
1160 Requires: libbonobo >= 2.24
1161 Requires: libbonoboui >= 2.24
1162 Requires: bonobo-activation
1166 Requires: fontconfig >= 2.6
1167 Requires: gnome-vfs2 >= 2.24
1170 %if %{gconsole} && %{mdk} && !%{mdv}
1171 Requires: gtk2 >= 2.0
1172 Requires: libgnomeui2
1173 Requires: glibc >= 2.3
1175 Requires: libart_lgpl >= 2.0
1176 Requires: libbonobo >= 2.0
1177 Requires: libbonoboui >= 2.0
1181 %if %{gconsole} && %{mdv}
1182 Requires: gtk2 >= 2.8
1183 Requires: libgnomeui2
1184 Requires: glibc >= 2.3
1186 Requires: libart_lgpl >= 2.3
1187 Requires: libbonobo >= 2.10
1188 Requires: libbonoboui >= 2.10
1192 %if %{gconsole} && %{fc3}
1193 Requires: gtk2 >= 2.4
1194 Requires: libgnomeui >= 2.8
1195 Requires: glibc >= 2.3
1197 Requires: libart_lgpl >= 2.3
1198 Requires: libbonobo >= 2.8
1199 Requires: libbonoboui >= 2.8
1200 Requires: bonobo-activation
1204 %if %{gconsole} && %{fc4}
1205 Requires: gtk2 >= 2.6
1206 Requires: libgnomeui >= 2.10
1207 Requires: glibc >= 2.3
1209 Requires: libart_lgpl >= 2.3
1210 Requires: libbonobo >= 2.8
1211 Requires: libbonoboui >= 2.8
1212 Requires: bonobo-activation
1216 %if %{gconsole} && %{fc5}
1217 Requires: gtk2 >= 2.8
1218 Requires: libgnomeui >= 2.14
1219 Requires: glibc >= 2.4
1221 Requires: libart_lgpl >= 2.3
1222 Requires: libbonobo >= 2.14
1223 Requires: libbonoboui >= 2.14
1227 %if %{gconsole} && %{fc6}
1228 Requires: gtk2 >= 2.10
1229 Requires: libgnomeui >= 2.16
1230 Requires: glibc >= 2.5
1232 Requires: libart_lgpl >= 2.3
1233 Requires: libbonobo >= 2.16
1234 Requires: libbonoboui >= 2.16
1238 %if %{gconsole} && %{fc7}
1239 Requires: gtk2 >= 2.10
1240 Requires: libgnomeui >= 2.18
1241 Requires: glibc >= 2.5
1243 Requires: libart_lgpl >= 2.3
1244 Requires: libbonobo >= 2.18
1245 Requires: libbonoboui >= 2.18
1249 %if %{gconsole} && %{fc8}
1250 Requires: gtk2 >= 2.12
1251 Requires: libgnomeui >= 2.20
1252 Requires: glibc >= 2.7
1254 Requires: libart_lgpl >= 2.3
1255 Requires: libbonobo >= 2.20
1256 Requires: libbonoboui >= 2.20
1260 %if %{gconsole} && %{fc9}
1261 Requires: gtk2 >= 2.12
1262 Requires: libgnomeui >= 2.22
1263 Requires: glibc >= 2.8
1265 Requires: libart_lgpl >= 2.3
1266 Requires: libbonobo >= 2.22
1267 Requires: libbonoboui >= 2.22
1271 %if %{gconsole} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
1272 Requires: gtk2 >= 2.0
1273 Requires: libgnomeui >= 2.0
1274 Requires: glibc >= 2.3
1276 Requires: libart_lgpl >= 2.0
1277 Requires: libbonobo >= 2.0
1278 Requires: libbonoboui >= 2.0
1279 Requires: bonobo-activation
1284 %if %{gconsole} && %{su9}
1287 %if %{gconsole} && %{su10}
1290 %if %{gconsole} && %{su102}
1293 %if %{gconsole} && %{su103}
1296 %if %{gconsole} && %{su110}
1299 %if %{gconsole} && %{su111}
1302 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1307 %description gconsole
1318 This is the Gnome Console package. It is an add-on to the client or
1324 Summary: Bacula - The Network Backup Solution
1325 Group: System Environment/Daemons
1326 Requires: wxGTK >= 2.6, libstdc++, openssl
1329 %if %{wxconsole} && %{su10}
1330 Requires: gtk2 >= 2.8
1333 %if %{wxconsole} && %{su102}
1334 Requires: gtk2 >= 2.10
1337 %if %{wxconsole} && %{su103}
1338 Requires: gtk2 >= 2.12
1341 %if %{wxconsole} && %{su110}
1342 Requires: gtk2 >= 2.12
1345 %if %{wxconsole} && %{su111}
1346 Requires: gtk2 >= 2.14
1349 %if %{wxconsole} && %{fc3}
1350 Requires: gtk2 >= 2.4
1353 %if %{wxconsole} && %{fc4}
1354 Requires: gtk2 >= 2.6
1357 %if %{wxconsole} && %{fc5}
1358 Requires: gtk2 >= 2.8
1361 %if %{wxconsole} && %{fc6}
1362 Requires: gtk2 >= 2.10
1365 %if %{wxconsole} && %{fc7}
1366 Requires: gtk2 >= 2.10
1369 %if %{wxconsole} && %{fc8}
1370 Requires: gtk2 >= 2.12
1373 %if %{wxconsole} && %{fc9}
1374 Requires: gtk2 >= 2.12
1378 %description wxconsole
1389 This is the WXWindows Console package. It is an add-on to the client or
1395 Summary: Bacula - The Network Backup Solution
1396 Group: System Environment/Daemons
1399 %if %{bat} && %{su10}
1401 Requires: glibc >= 2.4
1402 Requires: fontconfig
1411 %if %{bat} && %{su102}
1413 Requires: glibc >= 2.5
1414 Requires: fontconfig
1423 %if %{bat} && %{su103}
1425 Requires: glibc >= 2.6
1426 Requires: fontconfig
1435 %if %{bat} && %{su110}
1437 Requires: glibc >= 2.8
1438 Requires: fontconfig
1447 %if %{bat} && %{su111}
1449 Requires: glibc >= 2.9
1450 Requires: fontconfig
1459 %if %{bat} && %{fc5}
1461 Requires: glibc >= 2.4
1462 Requires: fontconfig
1466 Requires: qt4 >= 4.2
1471 %if %{bat} && %{fc6}
1473 Requires: glibc >= 2.5
1474 Requires: fontconfig
1478 Requires: qt4 >= 4.2
1483 %if %{bat} && %{fc7}
1485 Requires: glibc >= 2.5
1486 Requires: fontconfig
1490 Requires: qt4 >= 4.2
1495 %if %{bat} && %{fc8}
1497 Requires: glibc >= 2.7
1498 Requires: fontconfig
1502 Requires: qt4 >= 4.2
1507 %if %{bat} && %{fc9}
1509 Requires: glibc >= 2.8
1510 Requires: fontconfig
1514 Requires: qt4 >= 4.3
1531 This is the Bacula Administration Tool (bat) graphical user interface package.
1532 It is an add-on to the client or server packages.
1535 # SuSE turns off stripping of binaries by default. In order to get
1536 # stripped packages we must generate debug package. RedHat and Mandriva
1537 # turn debug packages on by default but strip binaries regardless.
1538 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1554 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1555 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
1560 #export QTDIR=$(pkg-config --variable=prefix QtCore)
1561 #export QTINC=$(pkg-config --variable=includedir QtCore)
1562 #export QTLIB=$(pkg-config --variable=libdir QtCore)
1563 #export PATH=${QTDIR}/bin/:${PATH}
1569 export PATH=${qtdir}/qt4/bin:$PATH
1570 export QTDIR=${qtdir}/qt4/
1571 export QTINC=${qtdir}/qt4/include/
1572 export QTLIB=${qtdir}/qt4/lib/
1582 %if %{wb3} || %{old_pgsql}
1583 patch -p3 src/cats/postgresql.c < %SOURCE5
1586 # patches for the bundled sqlite scripts
1588 # patch the make_sqlite_tables script for installation bindir
1589 #patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
1590 patch src/cats/make_sqlite3_tables.in src/cats/make_sqlite3_tables.in.patch
1592 # patch the create_sqlite_database script for installation bindir
1593 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
1594 patch src/cats/create_sqlite3_database.in src/cats/create_sqlite3_database.in.patch
1596 # patch the make_catalog_backup script for installation bindir
1597 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
1599 # patch the update_sqlite_tables script for installation bindir
1600 #patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
1601 patch src/cats/update_sqlite3_tables.in src/cats/update_sqlite3_tables.in.patch
1603 # patch the bacula-dir init script to remove sqlite service
1604 %if %{sqlite} && %{su9}
1605 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1607 %if %{sqlite} && %{su10}
1608 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1610 %if %{sqlite} && %{su102}
1611 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1613 %if %{sqlite} && %{su103}
1614 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1616 %if %{sqlite} && %{su110}
1617 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1619 %if %{sqlite} && %{su111}
1620 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1623 # 64 bit lib location hacks
1624 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
1625 # reported to be fixed to properly detect lib locations.
1627 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
1629 %if %{mysql} && %{x86_64}
1630 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
1632 %if %{python} && %{x86_64}
1633 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
1636 # Red Hat's 64 bit installation of QT4 appears to be broken so:
1638 %if %{rhel5} || %{centos5} || %{sl5}
1641 #%if %{bat} && %{qt_path} && %{x86_64}
1642 #export PATH=/usr/lib64/qt4/bin/:$PATH
1643 #export QTDIR=/usr/lib64/qt4/
1644 #export QTINC=/usr/lib64/qt4/include/
1645 #export QTLIB=/usr/lib64/qt4/
1648 # Main Bacula configuration
1650 --prefix=%{_prefix} \
1651 --sbindir=%{_sbindir} \
1652 --sysconfdir=%{sysconf_dir} \
1653 --mandir=%{_mandir} \
1654 --with-scriptdir=%{script_dir} \
1655 --with-working-dir=%{working_dir} \
1656 --with-plugindir=%{script_dir} \
1657 --with-pid-dir=%{pid_dir} \
1658 --with-subsys-dir=%{_subsysdir} \
1659 --enable-smartalloc \
1663 %if %{gconsole} && ! %{rh8}
1664 --enable-tray-monitor \
1670 --with-sqlite3=${cwd}/%{depkgs}/sqlite3 \
1676 --enable-bwx-console \
1686 --enable-client-only \
1688 %if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{fc3} || %{wb3}
1689 --disable-batch-insert \
1691 --with-dir-user=%{director_daemon_user} \
1692 --with-dir-group=%{daemon_group} \
1693 --with-sd-user=%{storage_daemon_user} \
1694 --with-sd-group=%{storage_daemon_group} \
1695 --with-fd-user=%{file_daemon_user} \
1696 --with-fd-group=%{daemon_group} \
1697 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1698 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1699 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1700 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1701 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1702 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1710 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1711 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1712 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1713 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1714 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1715 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1716 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1718 %if %{gconsole} || %{wxconsole} || %{bat}
1719 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1720 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1723 %if %{gconsole} || %{wxconsole} || %{bat}
1724 %define usermode_iftrick 1
1726 %define usermode_iftrick 0
1729 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1730 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1731 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1732 mkdir -p $RPM_BUILD_ROOT%{_sbindir}
1733 #mkdir -p $RPM_BUILD_ROOT%{_bindir}
1737 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1740 make DESTDIR=$RPM_BUILD_ROOT install
1743 # make install in manpages installs _everything_ shotgun style
1744 # so now delete what we will not be packaging
1746 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
1750 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bat.1.%{manpage_ext}
1754 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
1755 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1759 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.%{manpage_ext}
1760 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1761 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1762 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.%{manpage_ext}
1763 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.%{manpage_ext}
1764 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.%{manpage_ext}
1765 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.%{manpage_ext}
1766 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.%{manpage_ext}
1767 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.%{manpage_ext}
1770 # fixme - make installs the mysql scripts for sqlite build
1772 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1773 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1774 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1777 # fixme - make installs the mysql scripts for postgresql build
1779 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1780 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1783 # fixme - make installs gconsole script for build without gconsole
1785 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1788 rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd
1790 # install the init scripts
1791 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1792 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1793 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1794 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1797 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1798 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1799 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1801 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk}
1802 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1803 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1804 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1806 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1808 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1809 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1812 # install the menu stuff
1813 %if %{gconsole} && %{su9}
1814 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1815 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1816 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1817 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1819 %if %{gconsole} && %{su10}
1820 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1821 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1822 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1823 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1825 %if %{gconsole} && %{su102}
1826 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1827 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1828 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1829 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1831 %if %{gconsole} && %{su103}
1832 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1833 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1834 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1835 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1837 %if %{gconsole} && %{su110}
1838 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1839 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1840 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1841 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1843 %if %{gconsole} && %{su111}
1844 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1845 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1846 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1847 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1849 %if %{wxconsole} && %{su10}
1850 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1851 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1853 %if %{wxconsole} && %{su102}
1854 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1855 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1857 %if %{wxconsole} && %{su103}
1858 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1859 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1861 %if %{wxconsole} && %{su110}
1862 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1863 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1865 %if %{wxconsole} && %{su111}
1866 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1867 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1869 %if %{bat} && %{su102}
1870 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1871 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1873 %if %{bat} && %{su103}
1874 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1875 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1877 %if %{bat} && %{su110}
1878 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1879 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1881 %if %{bat} && %{su111}
1882 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1883 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1885 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{fc6} || %{fc7} || %{fc8} || %{fc9} || %{mdk}
1890 %if %{gconsole} && %{iftrick}
1891 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1892 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1893 cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console
1894 cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console
1895 ln -sf consolehelper $RPM_BUILD_ROOT%{_sbindir}/bgnome-console
1897 %if %{gconsole} && ! %{rh8}
1898 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1899 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1901 %if %{wxconsole} && %{iftrick}
1902 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1903 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1904 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bwx-console
1905 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console
1906 ln -sf consolehelper $RPM_BUILD_ROOT%{_sbindir}/bwx-console
1908 %if %{bat} && %{iftrick}
1909 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1910 cp -p scripts/bat.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1911 cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat
1912 cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat
1913 ln -sf consolehelper $RPM_BUILD_ROOT/%{_sbindir}/bat
1918 cp -p %{depkgs}/sqlite3/sqlite3 $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3
1919 cp -p %{depkgs}/sqlite3/sqlite3.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3.h
1920 cp -p %{depkgs}/sqlite3/libsqlite3.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite3.a
1923 # install the logrotate file
1924 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1926 # install the updatedb scripts
1927 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
1929 # install the logwatch scripts
1930 %if ! %{client_only}
1931 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1932 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1933 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1934 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1935 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1936 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1939 # remove the docs installed by make
1941 rm -rf $RPM_BUILD_ROOT/usr/share/doc
1944 # install docs for single dir installation
1946 mkdir $RPM_BUILD_ROOT%{_prefix}/doc
1947 cp COPYING $RPM_BUILD_ROOT%{_prefix}/doc/
1948 cp ChangeLog $RPM_BUILD_ROOT%{_prefix}/doc/
1949 cp ReleaseNotes $RPM_BUILD_ROOT%{_prefix}/doc/
1950 cp VERIFYING $RPM_BUILD_ROOT%{_prefix}/doc/
1951 cp LICENSE $RPM_BUILD_ROOT%{_prefix}/doc/
1952 cp kernstodo $RPM_BUILD_ROOT%{_prefix}/doc/
1953 cp -r %{_docsrc}/manuals/en/catalog/catalog $RPM_BUILD_ROOT%{_prefix}/doc/
1954 cp %{_docsrc}/manuals/en/catalog/catalog.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
1955 cp -r %{_docsrc}/manuals/en/concepts/concepts $RPM_BUILD_ROOT%{_prefix}/doc/
1956 cp %{_docsrc}/manuals/en/concepts/concepts.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
1957 cp -r %{_docsrc}/manuals/en/console/console $RPM_BUILD_ROOT%{_prefix}/doc/
1958 cp %{_docsrc}/manuals/en/console/console.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
1959 cp -r %{_docsrc}/manuals/en/developers/developers $RPM_BUILD_ROOT%{_prefix}/doc/
1960 cp %{_docsrc}/manuals/en/developers/developers.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
1961 cp -r %{_docsrc}/manuals/en/install/install $RPM_BUILD_ROOT%{_prefix}/doc/
1962 cp %{_docsrc}/manuals/en/install/install.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
1963 cp -r %{_docsrc}/manuals/en/problems/problems $RPM_BUILD_ROOT%{_prefix}/doc/
1964 cp %{_docsrc}/manuals/en/problems/problems.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
1965 cp -r %{_docsrc}/manuals/en/utility/utility $RPM_BUILD_ROOT%{_prefix}/doc/
1966 cp %{_docsrc}/manuals/en/utility/utility.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
1967 cp ../Release_Notes-%{version}-%{release}.txt $RPM_BUILD_ROOT%{_prefix}/doc/
1970 # now clean up permissions that are left broken by the install
1971 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
1972 %if %{gconsole} && ! %{rh8}
1973 chmod 755 $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor
1974 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
1977 # fix me - building enable-client-only installs files not included in bacula-client package
1979 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
1980 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
1981 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
1982 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
1983 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
1984 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
1985 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1986 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1987 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
1988 rm -f $RPM_BUILD_ROOT%{script_dir}/bconsole
1989 rm -f $RPM_BUILD_ROOT%{script_dir}/bpipe-fd.so
1990 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer.conf
1991 rm -f $RPM_BUILD_ROOT%{_sbindir}/bacula
1995 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1996 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
1997 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
1998 rm -rf $RPM_BUILD_DIR/depkgs
1999 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
2002 # MySQL specific files
2004 %defattr(-, root, root)
2005 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
2006 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
2007 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
2008 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
2009 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
2010 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
2011 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
2012 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
2017 %defattr(-,root,root)
2018 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite3_database
2019 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_database
2020 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite3_privileges
2021 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite3_tables
2022 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_tables
2023 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite3_tables
2024 %{sqlite_bindir}/libsqlite3.a
2025 %{sqlite_bindir}/sqlite3.h
2026 %{sqlite_bindir}/sqlite3
2031 %defattr(-,root,root)
2032 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
2033 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
2034 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
2035 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
2036 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
2037 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
2040 # The rest is DB backend independent
2041 %if ! %{client_only}
2042 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2043 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
2044 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
2045 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
2046 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
2047 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
2048 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
2049 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
2050 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
2051 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
2052 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
2053 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2054 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2055 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
2056 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
2057 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
2058 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
2059 %attr(-, root, %{daemon_group}) %{script_dir}/bpipe-fd.so
2060 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
2061 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
2062 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
2063 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
2064 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
2065 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer.conf
2067 /etc/logrotate.d/bacula
2068 /etc/log.d/scripts/services/bacula
2069 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
2070 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2071 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
2072 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2073 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
2074 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
2075 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
2077 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
2079 %{_sbindir}/bacula-dir
2080 %{_sbindir}/bacula-fd
2081 %{_sbindir}/bacula-sd
2084 %{_sbindir}/bextract
2088 %{_sbindir}/btraceback
2089 %{_sbindir}/bconsole
2094 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2095 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
2096 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
2097 %{_mandir}/man8/bacula.8.%{manpage_ext}
2098 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2099 %{_mandir}/man8/bcopy.8.%{manpage_ext}
2100 %{_mandir}/man8/bextract.8.%{manpage_ext}
2101 %{_mandir}/man8/bls.8.%{manpage_ext}
2102 %{_mandir}/man8/bscan.8.%{manpage_ext}
2103 %{_mandir}/man8/btape.8.%{manpage_ext}
2104 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2105 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
2106 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
2110 %if ! %{client_only} && ! %{single_dir}
2111 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2112 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2113 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2114 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2115 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2116 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2117 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2118 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2121 %if ! %{client_only} && %{single_dir}
2127 # test for bacula database older than version 10
2128 # note: this ASSUMES no password has been set for bacula database
2129 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2134 # are we upgrading from sqlite to sqlite3?
2135 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
2136 echo "This version of bacula-sqlite involves an upgrade to sqlite3."
2137 echo "Your catalog database file is not compatible with sqlite3, thus"
2138 echo "you will need to dump the data, delete the old file, and re-run"
2139 echo "this rpm upgrade."
2141 echo "Backing up your current database..."
2142 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db > %{working_dir}/bacula_backup.sql
2143 mv %{working_dir}/bacula.db %{working_dir}/bacula.db.old
2144 echo "Your catalog data has been saved in %{working_dir}/bacula_backup.sql and your"
2145 echo "catalog file has been renamed %{working_dir}/bacula.db.old."
2147 echo "Please re-run this rpm package upgrade."
2148 echo "After the upgrade is complete, restore your catalog"
2149 echo "with the following commands:"
2150 echo "%{script_dir}/drop_sqlite3_tables"
2151 echo "cd %{working_dir}"
2152 echo "%{sqlite_bindir}/sqlite3 $* bacula.db < bacula_backup.sql"
2153 echo "chown bacula.bacula bacula.db"
2156 # test for bacula database older than version 10 and sqlite3
2157 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite3 ];then
2158 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2163 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2166 %if ! %{client_only}
2167 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "10" ]; then
2168 echo "This bacula upgrade will update a bacula database from version 10 to 11."
2169 echo "You appear to be running database version $DB_VER. You must first update"
2170 echo "your database to version 10 and then install this upgrade. The alternative"
2171 echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
2172 echo "catalog information, then do the upgrade. Information on updating a"
2173 echo "database older than version 10 can be found in the release notes."
2182 %if ! %{client_only}
2183 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
2184 if [ -s %{sysconf_dir}/console.conf ];then
2185 cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
2188 # create the daemon users and groups
2189 # first create the groups if they don't exist
2190 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2191 if [ -z "$HAVE_BACULA" ]; then
2192 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2193 echo "The group %{daemon_group} has been added to %{group_file}."
2194 echo "See the manual chapter \"Running Bacula\" for details."
2196 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
2197 if [ -z "$HAVE_BACULA" ]; then
2198 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
2199 echo "The group %{storage_daemon_group} has been added to %{group_file}."
2200 echo "See the manual chapter \"Running Bacula\" for details."
2202 # now create the users if they do not exist
2203 # we do not use the -g option allowing the primary group to be set to system default
2204 # this will be a unique group on redhat type systems or the group users on some systems
2205 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
2206 if [ -z "$HAVE_BACULA" ]; then
2207 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
2208 echo "The user %{storage_daemon_user} has been added to %{user_file}."
2209 echo "See the manual chapter \"Running Bacula\" for details."
2211 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
2212 if [ -z "$HAVE_BACULA" ]; then
2213 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
2214 echo "The user %{director_daemon_user} has been added to %{user_file}."
2215 echo "See the manual chapter \"Running Bacula\" for details."
2217 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2218 if [ -z "$HAVE_BACULA" ]; then
2219 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2220 echo "The user %{file_daemon_user} has been added to %{user_file}."
2221 echo "See the manual chapter \"Running Bacula\" for details."
2223 # now we add the supplementary groups, this is ok to call even if the users already exist
2224 # we only do this if the user is NOT root
2225 IS_ROOT=%{director_daemon_user}
2226 if [ "$IS_ROOT" != "root" ]; then
2227 %{usermod} -G %{daemon_group} %{director_daemon_user}
2229 IS_ROOT=%{storage_daemon_user}
2230 if [ "$IS_ROOT" != "root" ]; then
2231 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
2233 IS_ROOT=%{file_daemon_user}
2234 if [ "$IS_ROOT" != "root" ]; then
2235 %{usermod} -G %{daemon_group} %{file_daemon_user}
2249 %if ! %{client_only}
2251 if [ "$1" -ge 1 ] ; then
2252 /sbin/chkconfig --add bacula-dir
2253 /sbin/chkconfig --add bacula-fd
2254 /sbin/chkconfig --add bacula-sd
2259 # test for an existing database
2260 # note: this ASSUMES no password has been set for bacula database
2261 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2263 # grant privileges and create tables if they do not exist
2264 if [ -z "$DB_VER" ]; then
2265 echo "Hmm, it doesn't look like you have an existing database."
2266 echo "Granting privileges for MySQL user bacula..."
2267 %{script_dir}/grant_mysql_privileges
2268 echo "Creating MySQL bacula database..."
2269 %{script_dir}/create_mysql_database
2270 echo "Creating bacula tables..."
2271 %{script_dir}/make_mysql_tables
2273 # check to see if we need to upgrade a 2.x database
2274 elif [ "$DB_VER" -lt "11" ]; then
2275 echo "This release requires an upgrade to your bacula database."
2276 echo "Backing up your current database..."
2277 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2278 echo "Upgrading bacula database ..."
2279 %{script_dir}/update_mysql_tables
2280 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2285 # test for an existing database
2286 if [ -f %{working_dir}/bacula.db ]; then
2287 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2288 # check to see if we need to upgrade a 2.x database
2289 if [ "$DB_VER" -lt "11" ] && [ "$DB_VER" -ge "10" ]; then
2290 echo "This release requires an upgrade to your bacula database."
2291 echo "Backing up your current database..."
2292 echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2293 echo "Upgrading bacula database ..."
2294 %{script_dir}/update_sqlite3_tables
2295 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2298 # create the database and tables
2299 echo "Hmm, it doesn't look like you have an existing database."
2300 echo "Creating SQLite database..."
2301 %{script_dir}/create_sqlite3_database
2302 echo "Creating the SQLite tables..."
2303 %{script_dir}/make_sqlite3_tables
2304 chown %{director_daemon_user}.%{daemon_group} %{working_dir}/bacula.db
2309 # test for an existing database
2310 # note: this ASSUMES no password has been set for bacula database
2311 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2313 # grant privileges and create tables if they do not exist
2314 if [ -z "$DB_VER" ]; then
2315 echo "Hmm, doesn't look like you have an existing database."
2316 echo "Creating PostgreSQL bacula database..."
2317 %{script_dir}/create_postgresql_database
2318 echo "Creating bacula tables..."
2319 %{script_dir}/make_postgresql_tables
2320 echo "Granting privileges for PostgreSQL user bacula..."
2321 %{script_dir}/grant_postgresql_privileges
2323 # check to see if we need to upgrade a 2.x database
2324 elif [ "$DB_VER" -lt "11" ]; then
2325 echo "This release requires an upgrade to your bacula database."
2326 echo "Backing up your current database..."
2327 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2328 echo "Upgrading bacula database ..."
2329 %{script_dir}/update_postgresql_tables
2330 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2335 %if ! %{client_only}
2336 # generate passwords if needed
2337 if [ -d %{sysconf_dir} ]; then
2339 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
2340 pass=`openssl rand -base64 33`
2341 for file in *.conf; do
2342 need_password=`grep ${string} $file 2>/dev/null`
2343 if [ -n "$need_password" ]; then
2344 sed "s@${string}@${pass}@g" $file > $file.new
2345 cp -f $file.new $file; rm -f $file.new
2349 # put actual hostname in conf file
2351 string="XXX_HOSTNAME_XXX"
2352 for file in *.conf; do
2353 need_host=`grep ${string} $file 2>/dev/null`
2354 if [ -n "$need_host" ]; then
2355 sed "s@${string}@${host}@g" $file >$file.new
2356 cp -f $file.new $file; rm -f $file.new
2373 %if ! %{client_only}
2376 /sbin/chkconfig --del bacula-dir
2377 /sbin/chkconfig --del bacula-fd
2378 /sbin/chkconfig --del bacula-sd
2396 %defattr(-,root,root)
2397 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2398 %{script_dir}/bacula-ctl-fd
2399 /etc/init.d/bacula-fd
2402 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2403 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2404 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2405 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2406 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2407 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2408 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2409 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2414 /etc/logrotate.d/bacula
2416 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2417 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2419 %attr(-, root, %{daemon_group}) %dir %{working_dir}
2421 %{_sbindir}/bacula-fd
2422 %{_sbindir}/btraceback
2423 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2424 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2425 %{_sbindir}/bconsole
2426 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2427 %{_mandir}/man8/bacula.8.%{manpage_ext}
2428 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2429 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2431 %{_libdir}/libbaccfg.*
2432 %{_libdir}/libbacfind.*
2433 %{_libdir}/libbacpy.*
2437 # create the daemon group and user
2438 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2439 if [ -z "$HAVE_BACULA" ]; then
2440 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2441 echo "The group %{daemon_group} has been added to %{group_file}."
2442 echo "See the manual chapter \"Running Bacula\" for details."
2444 # we do not use the -g option allowing the primary group to be set to system default
2445 # this will be a unique group on redhat type systems or the group users on some systems
2446 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2447 if [ -z "$HAVE_BACULA" ]; then
2448 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2449 echo "The user %{file_daemon_user} has been added to %{user_file}."
2450 echo "See the manual chapter \"Running Bacula\" for details."
2452 # now we add the supplementary group, this is ok to call even if the user already exists
2453 # we only do this if the user is NOT root
2454 IS_ROOT=%{file_daemon_user}
2455 if [ "$IS_ROOT" != "root" ]; then
2456 %{usermod} -G %{daemon_group} %{file_daemon_user}
2461 if [ "$1" -ge 1 ] ; then
2462 /sbin/chkconfig --add bacula-fd
2465 # generate passwords if needed
2466 if [ -d %{sysconf_dir} ]; then
2468 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
2469 pass=`openssl rand -base64 33`
2470 for file in *.conf; do
2471 need_password=`grep ${string} $file 2>/dev/null`
2472 if [ -n "$need_password" ]; then
2473 sed "s@${string}@${pass}@g" $file > $file.new
2474 cp -f $file.new $file; rm -f $file.new
2478 # put actual hostname in conf file
2480 string="XXX_HOSTNAME_XXX"
2481 for file in *.conf; do
2482 need_host=`grep ${string} $file 2>/dev/null`
2483 if [ -n "$need_host" ]; then
2484 sed "s@${string}@${host}@g" $file >$file.new
2485 cp -f $file.new $file; rm -f $file.new
2495 /sbin/chkconfig --del bacula-fd
2501 %if ! %{client_only}
2503 %defattr(-,root,%{daemon_group})
2504 %{script_dir}/updatedb/*
2507 # create the daemon group
2508 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2509 if [ -z "$HAVE_BACULA" ]; then
2510 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2511 echo "The group %{daemon_group} has been added to %{group_file}."
2512 echo "See the manual chapter \"Running Bacula\" for details."
2516 echo "The database update scripts were installed to %{script_dir}/updatedb"
2521 %defattr(-,root,root)
2522 %{_sbindir}/bgnome-console
2523 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2524 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
2525 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bgnome-console.conf
2526 /usr/share/pixmaps/bacula.png
2527 /usr/share/applications/bacula.desktop
2528 %{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
2531 %if %{gconsole} && ! %{rh8}
2532 %{_sbindir}/bacula-tray-monitor
2533 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
2534 /usr/share/pixmaps/bacula-tray-monitor.xpm
2535 /usr/share/applications/bacula-tray-monitor.desktop
2536 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
2539 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2540 # add the console helper files
2541 %config(noreplace,missingok) /etc/pam.d/bgnome-console
2542 %config(noreplace,missingok) /etc/security/console.apps/bgnome-console
2543 /usr/bin/bgnome-console
2548 # create the daemon group
2549 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2550 if [ -z "$HAVE_BACULA" ]; then
2551 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2552 echo "The group %{daemon_group} has been added to %{group_file}."
2553 echo "See the manual chapter \"Running Bacula\" for details."
2557 # generate passwords if needed
2558 if [ -d %{sysconf_dir} ]; then
2560 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
2561 pass=`openssl rand -base64 33`
2562 for file in *.conf; do
2563 need_password=`grep ${string} $file 2>/dev/null`
2564 if [ -n "$need_password" ]; then
2565 sed "s@${string}@${pass}@g" $file > $file.new
2566 cp -f $file.new $file; rm -f $file.new
2570 # put actual hostname in conf file
2572 string="XXX_HOSTNAME_XXX"
2573 for file in *.conf; do
2574 need_host=`grep ${string} $file 2>/dev/null`
2575 if [ -n "$need_host" ]; then
2576 sed "s@${string}@${host}@g" $file >$file.new
2577 cp -f $file.new $file; rm -f $file.new
2585 %defattr(-,root,root)
2586 %{_sbindir}/bwx-console
2587 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2588 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bwx-console.conf
2589 /usr/share/pixmaps/wxwin16x16.xpm
2590 /usr/share/applications/wxconsole.desktop
2591 %{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
2594 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2595 # add the console helper files
2596 %config(noreplace,missingok) /etc/pam.d/bwx-console
2597 %config(noreplace,missingok) /etc/security/console.apps/bwx-console
2598 /usr/bin/bwx-console
2603 # create the daemon group
2604 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2605 if [ -z "$HAVE_BACULA" ]; then
2606 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2607 echo "The group %{daemon_group} has been added to %{group_file}."
2608 echo "See the manual chapter \"Running Bacula\" for details."
2612 # generate passwords if needed
2613 if [ -d %{sysconf_dir} ]; then
2615 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
2616 pass=`openssl rand -base64 33`
2617 for file in *.conf; do
2618 need_password=`grep ${string} $file 2>/dev/null`
2619 if [ -n "$need_password" ]; then
2620 sed "s@${string}@${pass}@g" $file > $file.new
2621 cp -f $file.new $file; rm -f $file.new
2625 # put actual hostname in conf file
2627 string="XXX_HOSTNAME_XXX"
2628 for file in *.conf; do
2629 need_host=`grep ${string} $file 2>/dev/null`
2630 if [ -n "$need_host" ]; then
2631 sed "s@${string}@${host}@g" $file >$file.new
2632 cp -f $file.new $file; rm -f $file.new
2640 %defattr(-,root,root)
2642 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2643 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bat.conf
2644 /usr/share/pixmaps/bat_icon.png
2645 /usr/share/applications/bat.desktop
2646 %{_mandir}/man1/bat.1.%{manpage_ext}
2649 %if %{bat} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2650 # add the console helper files
2651 %config(noreplace,missingok) /etc/pam.d/bat
2652 %config(noreplace,missingok) /etc/security/console.apps/bat
2658 # create the daemon group
2659 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2660 if [ -z "$HAVE_BACULA" ]; then
2661 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2662 echo "The group %{daemon_group} has been added to %{group_file}."
2663 echo "See the manual chapter \"Running Bacula\" for details."
2667 # generate passwords if needed
2668 if [ -d %{sysconf_dir} ]; then
2670 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
2671 pass=`openssl rand -base64 33`
2672 for file in *.conf; do
2673 need_password=`grep ${string} $file 2>/dev/null`
2674 if [ -n "$need_password" ]; then
2675 sed "s@${string}@${pass}@g" $file > $file.new
2676 cp -f $file.new $file; rm -f $file.new
2680 # put actual hostname in conf file
2682 string="XXX_HOSTNAME_XXX"
2683 for file in *.conf; do
2684 need_host=`grep ${string} $file 2>/dev/null`
2685 if [ -n "$need_host" ]; then
2686 sed "s@${string}@${host}@g" $file >$file.new
2687 cp -f $file.new $file; rm -f $file.new
2694 * Sat Jun 20 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2695 - Fix bat install which is now handled by make and uses shared libs
2696 * Sat May 16 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2697 - fix libxml dependency for rh7 per Pasi Kärkkäinen <pasik@iki.fi>
2698 * Mon May 04 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2699 - Fix post ldconfig problem in client only build
2700 * Sun May 03 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2701 - remove more files installed by client-only build not needed by client package
2702 - remove libbacsql files from client package
2703 * Sat May 02 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2705 - update for new docs configuration
2706 * Sat Apr 25 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2707 - add switch to pass Distribution tag
2708 * Sun Apr 5 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2710 - database update version 10 to 11
2711 - make now installs docs so we rm from buildroot
2712 - add shared libs in %_libdir and other misc new files
2713 * Wed Dec 31 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2715 * Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2716 - set paths for QT using pkgconfig
2717 * Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2718 - release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
2719 * Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2720 - adjust /opt/bacula install
2721 - add build switch to supress rescue package
2722 * Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2723 - add support for install to /opt/bacula
2724 * Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2725 - remove libtermcap dependancy for FC9
2726 * Mon Aug 04 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2727 - fix bat dependencies
2728 * Sat Jun 28 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2730 * Sat May 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2732 * Sun Mar 30 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2733 - FHS compatibility changes
2734 * Sat Feb 16 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2735 - remove fix for false buffer overflow detection with glibc >= 2.7
2736 * Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2737 - fix for false buffer overflow detection with glibc >= 2.7
2738 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2740 - add debug package for SuSE
2741 * Sat Jan 12 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2742 - 2.2.8 beta release
2745 * Sun Dec 30 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2746 - fix typo on su103 client package requirements
2747 * Fri Dec 28 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2748 - add nobuild_mtx switch
2749 - add patch for postgresql.c for old postgresql versions
2750 * Sat Nov 17 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2752 * Sun Nov 11 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2753 - add new files required by rescue makefile
2754 * Sat Nov 10 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2755 - add su103 build target
2756 * Sun Nov 04 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2757 - fix dist defines for rhel5 and clones
2758 - fix rhel broken 64 bit QT4 paths
2759 - rh qt4 packages don't provide qt so fix that too
2760 * Mon Oct 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2761 - correct ownership when creating sqlite db file in post script
2762 * Sun Sep 16 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2763 - fix disable-batch-insert
2764 * Fri Sep 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2766 - turn off gconsole build for fc3, tray monitor fails to build
2767 - add new files for mtx package (09Sep07 depkgs update)
2768 * Sat Sep 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2769 - add --disable-batch-insert for older platforms
2770 - add build targets for rhel5 and clones
2771 * Mon Sep 03 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2773 - turn off gconsole build for su10 & fc4, tray monitor fails to build
2774 * Sat Jul 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2775 - 2.1.26 add make of qwt in depkgs for bat
2776 * Sat Jun 02 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2777 - upgrade Qt requirement for bat to 4.2
2778 * Sun May 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2779 - add fc7 build target
2780 * Sun Apr 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2782 - gnome-console now bgnome-console
2783 - wxconsole now bwx-console
2784 - add build option for bat
2785 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2786 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
2787 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
2788 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
2789 - adjust directory locations for FHS-compatibility
2790 sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
2791 working_dir (/var/lib/bacula) and pid_dir (/var/run)
2792 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2793 - add SuSE 10.2 target
2794 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2796 - set query.sql as config file
2798 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2800 - change determination of gcc version per patch from Marc Hennes
2801 - move BuildRequire for atk-devel to gnome only builds
2803 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2805 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2806 - 1.39.26 remove create_sqlite_database.in.patch
2807 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2808 - change ownership of working_dir on server packages to bacula.bacula so that
2809 - bacula-sd can create bootstrap files
2810 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2811 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
2812 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2813 - fix manpages file extension for mdk
2814 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2815 - bug 648 re-enable and update sqlite patches
2819 - lock out gconsole build for gtk+ < 2.4
2820 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2821 - move pango-devel BuildRequires into gconsole only build
2822 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2823 - add provides and conflicts for standard suse packages
2824 - add third party packager tag support
2825 - add build_client_only tag
2826 - remove bsmtp from client package
2827 - add bacula-ctl-fd to client package
2828 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2829 - fix directory creation when wxconsole and not gconsole
2830 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2831 - add check to buildrequires to make sure libstdc++ version matches gcc
2832 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2833 - add python build support
2834 - fix LDFLAGS declarations
2835 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2836 - add requires for standard compiler toolchain
2837 - move version and release tags up
2839 - add docs_version tag
2840 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2841 - update rescuever to 1.8.6
2842 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2843 - update depkgs to 25Jun06
2844 - add mysql5 build tag
2845 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2846 - 1.38.10 bump rescue version
2847 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2848 - fix usermod statements
2850 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2851 - add -g param back to useradd statements Bug 605
2852 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2853 - redundant code cleanup
2854 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2855 - add wxconsole package
2856 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2858 - dependency update for Mandriva
2859 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2861 - remove -n option from useradd scripts
2862 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2864 - fix problem specifying more than one primary group for user bacula
2865 - add build switch to not build gconsole regardless of platform
2866 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2867 - add centos3 build tag
2868 - fix link error of static-fd on Mandrake with --disable-nls
2869 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2870 - add fc4 dependencies
2871 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2872 - add SuSE 10.0 build
2873 - remove specific permission in attrib macros
2874 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2876 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
2877 - refix compat for _dist on SLES9 which seems to have been removed
2878 - added note regarding Aleksandar's use of specific permissions in attrib macros
2879 - need to review and add specific fc4 build currently using fc3 Requires
2880 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2882 - Reorganize files and pre/post sections to remove repetitions
2883 - Always build separate mtx package
2884 - Fix file ownerships for /etc/bacula and Bacula's working dir
2885 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2886 - Disable GNOME on RH7
2887 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2888 - Red Hat and look alikes have mtx RPM, do not build/package our version
2889 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2890 - minor edit to _dist for SLES9 compatibility
2891 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2893 - kern changed location of pdf files and html manual in docs package
2894 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2896 - add docs (from prebuilt tarball) and rescue packages back in
2897 - remove dvd-freespace and dvd-writepart files, add dvd-handler
2898 - remove 3 of 4 sqlite script patches as not needed
2899 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2901 - remove docs and rescue sections (remove static fd)
2902 - add dvd-freespace and dvd-writepart files
2903 - update depkgs to 22Jun05
2904 - change database update to 8 to 9
2905 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2906 - minor cleanups before 1.38 changes
2907 - add popt and popt-devel build dependencies
2908 - add tetex and tetex-dvips dependencies for doc build
2909 - replace deprecated Copyright tag with License
2910 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2911 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
2912 - conflict with sqlite packages. remove readline dependency.
2913 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2914 - release 1.36.3 update docs
2915 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2916 - add centos4 build tag
2917 - add x86_64 build tag
2918 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2919 - add rhel4 build tag
2920 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
2921 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2922 - add rhel3 build tag
2923 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2924 - fix tray-monitor.conf for noreplace
2925 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2926 - fix distribution check for Fedora and Whitebox
2927 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2928 - add logwatch script
2930 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2931 - add build for Fedora Core 3 (linc now included in ORDit2)
2932 - add mysql4 define for Mandrake 10.1
2933 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2934 - fix {group_file} variable in post scripts
2935 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
2936 - add distribution checking and custom Distribution tag
2937 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2938 - ASSIGNMENT OF COPYRIGHT
2939 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
2940 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
2941 - all right, title and interest in and to the copyright in this software RPM
2942 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
2943 - free of all liens, encumbrances or any known claims against said copyright.
2944 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2946 - thanks to Daniel Widyono
2947 - update description for rescue package to describe cdrom creation
2948 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2949 - update depkgs to 29Oct04
2950 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2951 - add cdrom rescue to bacula-rescue package
2952 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2953 - misc fixes from 1.36.0 suse feedback
2954 - fix situation where sqlite database exists but sqlite has been removed.
2955 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2956 - remove tray-monitor from RH8 build
2957 - fix permissions on tray-monitor files
2958 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2959 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
2960 - change database update to 7 to 8 upgrade,
2961 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
2962 - build in 30Jul04, add freetype dependancy to gnome package.
2963 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2964 - add documentation to console for groupadd
2965 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2966 - add support for running daemons as root.bacula
2967 - correct for change in location of floppy rescue files in 1.35.2
2968 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
2969 - updated depgkgs to 30Jul04
2970 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2971 - really, really fix symlink creation for gconsole
2972 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2973 - fix symlink creation in gconsole post install
2974 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2975 - fixed error in gconsole post script
2976 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2977 - add check for gconsole symlink before trying to create it
2978 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2979 - fix some minor permissions issues on doc files that CVS won't let us fix
2980 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2981 - add pkgconfig to BuildRequires
2982 - clean up gnome1/2 menu entries for appropriate packages
2983 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2984 - tightened up doc distribution
2985 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2986 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
2987 - rpm's horrible bug that prevents nested conditional macros prevents me
2988 - from implementing these 2 separate approaches within the conditionals which
2989 - create the separate server packages.
2990 - the solution adopted is to remove the gnome-console files from the server packages
2991 - so bacula-gconsole is now an add on for both client and server packages.
2992 - this also now allows the server packages to be install on machines without
2993 - an X-server and we can still maintain a single spec file.
2994 - added tests to make sure we have defined platform and database macros.
2995 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2996 - corrected mysql prerequisites for suse
2997 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2998 - replaced all cp commands with cp -p
2999 - removed addition of a+x permissions on gnome-console
3000 - corrected permissions on init scripts
3001 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3002 - corrected creation of sqlite_bindir in install from !mysql to sqlite
3003 - various cleanup patches from Michael K. Johnson:
3004 - corrected post install routines for nicer chkconfig
3005 - removed chmod changes in post routines and moved to install section
3006 - removed interactive nature of post routine for rescue package
3007 - added description of building rescue disks to the description of rescue package
3008 - added clean of build root to beginning of install
3009 - removed specifying attr in all file lists
3010 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3011 - added bconsole to client package
3012 - added gconsole package as add-on to client
3013 - removed spurious dependancies on updatedb package (!cut/paste)
3014 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3015 - added updatedb package
3016 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3017 - added postgresql package
3018 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3019 - corrected the if else logic in the dependancy sections
3020 - changes for 1.34 release
3021 - /etc/bacula/console is now /etc/bacula/bconsole
3022 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
3023 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
3024 - /usr/sbin/smtp is now /usr/sbin/bsmtp
3025 - added new /etc/bacula/drop_mysql_database
3026 - added new /etc/bacula/drop_sqlite_database
3027 - added new /etc/bacula/grant_sqlite_privileges
3028 - added new generic bacula database scripts in /etc/bacula
3029 - added pre-install sections to check for database versions older than 6
3030 - added check for /etc/bacula/console.conf and copy to bconsole.conf
3031 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3032 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
3033 - added testing for existing databases before executing any of the database creation scripts
3034 - added defines working_dir and sqlite_bindir in place of hard coded paths
3035 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3036 - added build configuration for SuSE.
3037 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
3038 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3039 - added patch for create_sqlite_database to fix the installed bindir
3040 - added execute of create_sqlite_database to post of sqlite package
3041 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3042 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
3043 - added bacula-fd as Requires for rescue package
3044 - added build tag for Fedora Core 1
3045 - cleaned up dependancies for all builds
3046 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3047 - removed rh_version from package names
3048 - added platform build configuration section to beginning of file
3049 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3050 - removed make_static_bacula script from rescue package install
3051 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3052 - Added define at top of file for depkgs version
3053 - Added rescue sub-package
3054 - Moved requires statements into proper sub-package locations
3055 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3056 - Corrected Requires for Gnome 1.4/2.0 builds
3057 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3058 - Added separate source declaration for depkgs
3059 - added patch for make_catalog_backup script
3060 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3061 - Misc changes to mysql/sqlite build and rh7/8 menu differences
3062 - Added rh_version to sub-package names
3063 - Added installed but missing file /etc/bacula/gconsole
3064 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
3065 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
3066 - Update spec for version 1.31 and combine client
3067 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>