3 # Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
5 # Platform Build Configuration
7 BuildRequires: libacl-devel
9 # probems with mandriva build:
10 # nothing provides libbonobo2_0-devel, nothing provides libbonoboui2_0-devel
12 # set Macros by opensuse_bs, see http://en.opensuse.org/Build_Service/cross_distribution_package_how_to
13 #openSUSE 11.1 %if 0%{?suse_version} == 1110
14 #openSUSE 11.0 %if 0%{?suse_version} == 1100
15 #openSUSE 10.3 %if 0%{?suse_version} == 1030
16 #openSUSE 10.2 %if 0%{?suse_version} == 1020
17 #SUSE Linux 10.1 %if 0%{?suse_version} == 1010
18 #SUSE Linux 10.0 %if 0%{?suse_version} == 1000
19 #SUSE Linux 9.3 %if 0%{?suse_version} == 930
20 #SLES 9 %if 0%{?sles_version} == 9 also set: %if 0%{?suse_version} == 910
21 #SLE 10 %if 0%{?sles_version} == 10 also set: %if 0%{?suse_version} == 1010
22 #SLE 11 %if 0%{?sles_version} == 11 also set: %if 0%{?suse_version} == 1110
23 #CentOS 5 %if 0%{?centos_version} == 501
24 #RHEL 4 %if 0%{?rhel_version} == 406
25 #RHEL 5 %if 0%{?rhel_version} == 501
26 #Fedora 6 with Extras %if 0%{?fedora_version} == 6
27 #Fedora 7 with Extras %if 0%{?fedora_version} == 7
28 #Fedora 8 with Extras %if 0%{?fedora_version} == 8
29 #Fedora 9 with Extras %if 0%{?fedora_version} == 9
30 #Fedora 10 with Extras %if 0%{?fedora_version} == 10
31 #Mandriva 2006 %if 0%{?mandriva_version} == 2006
32 #Mandriva 2007 %if 0%{?mandriva_version} == 2007
33 #Mandriva 2008 %if 0%{?mandriva_version} == 2008
37 # am I running in opensuse build service?
38 # TODO: seems to make problems
40 # choose database backend here
41 # postgres, mysql, sqlite
42 %define build_postgresql 1
44 # Build Service: Determine Distribution
47 %define build_x86_64 1
51 %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
52 BuildRequires: GConf2-devel
53 BuildRequires: freetype-devel
54 BuildRequires: libtermcap-devel
55 BuildRequires: shadow-utils
59 %if 0%{?mandriva_version} == 2007
61 %define _dist "Mandriva 2007"
65 %if 0%{?fedora_version} == 8
67 %define _dist "Fedora Core 8"
68 BuildRequires: redhat-release
71 %if 0%{?fedora_version} == 9
73 %define _dist "Fedora Core 9"
74 BuildRequires: redhat-release
78 %if 0%{?fedora_version} == 10
80 %define _dist "Fedora Core 10"
81 BuildRequires: PolicyKit-gnome
82 BuildRequires: fedora-release
85 %if 0%{?fedora_version} == 11
87 %define _dist "Fedora Core 11"
88 BuildRequires: PolicyKit-gnome
89 BuildRequires: fedora-release
92 %if 0%{?rhel_version} == 501
94 %define _dist "Red Hat Enterprise Linux Server release 5"
95 BuildRequires: redhat-release
98 %if 0%{?rhel_version} == 406
100 %define _dist "Red Hat Enterprise Linux Server release 4"
101 BuildRequires: redhat-release
105 %if 0%{?centos_version} == 501
106 %define build_centos5 1
107 %define _dist "CentOS 5"
108 BuildRequires: redhat-release
112 %if 0%{?suse_version} == 1020
113 %define build_su102 1
114 %define _dist "OpenSUSE 10.2"
115 BuildRequires: suse-release
119 %if 0%{?suse_version} == 1030
120 %define build_su103 1
121 %define _dist "OpenSUSE 10.3"
122 BuildRequires: suse-release
125 %if 0%{?suse_version} == 1100
126 %define build_su110 1
127 %define _dist "SUSE 11"
128 BuildRequires: suse-release
132 %if 0%{?suse_version} == 1110
133 %define build_su111 1
134 %define _dist "SUSE 11"
138 %if 0%{?sles_version} == 9
140 %define _dist "SLES 9"
144 %if 0%{?sles_version} == 10
146 %define _dist "SLE 10"
150 %if 0%{?sles_version} == 11
151 %define build_su111 1
152 %define _dist "SLES 11"
158 # basic defines for every build
159 %define _version 3.0.2
161 %define depkgs_version 18Feb09
162 %define depkgs_qt_version 28Jul09
163 %define _rescuever 3.0.2
164 %define docs_version 3.0.2
165 %define _packager D. Scott Barninger <barninger@fairfieldcomputers.com>
168 %{?single_dir_install:%define single_dir 1}
170 # Installation Directory locations
172 %define _prefix /opt/bacula
173 %define _sbindir /opt/bacula/bin
174 %define _subsysdir /opt/bacula/working
175 %define sqlite_bindir /opt/bacula/sqlite
176 %define _mandir /usr/share/man
177 %define sysconf_dir /opt/bacula/etc
178 %define script_dir /opt/bacula/scripts
179 %define working_dir /opt/bacula/working
180 %define pid_dir /opt/bacula/working
181 %define plugin_dir /opt/bacula/plugins
182 %define lib_dir /opt/bacula/lib
185 %define _sbindir %_prefix/sbin
186 %define _subsysdir /var/lock/subsys
187 %define sqlite_bindirf %_libdir/bacula/sqlite
188 %define _mandir %_prefix/share/man
189 %define sysconf_dir /etc/bacula
190 %define script_dir %_libdir/bacula
191 %define working_dir /var/lib/bacula
192 %define pid_dir /var/run
193 %define plugin_dir %_libdir/bacula/plugins
194 %define lib_dir %_libdir/bacula/lib
197 # Daemon user:group Don't change them unless you know what you are doing
198 %define director_daemon_user bacula
199 %define storage_daemon_user bacula
200 %define file_daemon_user root
201 %define daemon_group bacula
202 # group that has write access to tape devices, usually disk on Linux
203 %define storage_daemon_group disk
206 # any patches for this release
207 # be sure to check the setup section for patch macros
209 #--------------------------------------------------------------------------
210 # it should not be necessary to change anything below here for a release
211 # except for patch macros in the setup section
212 #--------------------------------------------------------------------------
214 %{?contrib_packager:%define _packager %{contrib_packager}}
216 Summary: Bacula - The Network Backup Solution
220 Group: System Environment/Daemons
222 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
223 Source1: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
224 Source2: Release_Notes-%{version}-%{release}.tar.gz
225 Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
226 Source4: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
227 Source5: bacula-2.2.7-postgresql.patch
228 Source6: depkgs-qt-%{depkgs_qt_version}.tar.gz
229 BuildRoot: %{_tmppath}/%{name}-root
230 URL: http://www.bacula.org/
231 Vendor: The Bacula Team
232 Packager: %{_packager}
235 # define the basic package description
236 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
237 %define blurb2 Bacula is a set of computer programs that permit you (or the system
238 %define blurb3 administrator) to manage backup, recovery, and verification of computer
239 %define blurb4 data across a network of computers of different kinds. In technical terms,
240 %define blurb5 it is a network client/server based backup program. Bacula is relatively
241 %define blurb6 easy to use and efficient, while offering many advanced storage management
242 %define blurb7 features that make it easy to find and recover lost or damaged files.
243 %define blurb8 Bacula source code has been released under the GPL version 2 license.
245 # Source directory locations
246 %define _docsrc ../%{name}-docs-%{docs_version}
247 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
248 %define depkgs ../depkgs
249 %define depkgs_qt ../depkgs-qt
251 %define user_file /etc/passwd
252 %define group_file /etc/group
255 %define useradd /usr/sbin/useradd
256 %define groupadd /usr/sbin/groupadd
257 %define usermod /usr/sbin/usermod
259 # platform defines - set one below or define the build_xxx on the command line
262 %{?build_rh7:%define rh7 1}
264 %{?build_rh8:%define rh8 1}
266 %{?build_rh9:%define rh9 1}
269 %{?build_fc1:%define fc1 1}
271 %{?build_fc3:%define fc3 1}
273 %{?build_fc4:%define fc4 1}
275 %{?build_fc5:%define fc5 1}
277 %{?build_fc6:%define fc6 1}
279 %{?build_fc7:%define fc7 1}
281 %{?build_fc8:%define fc8 1}
283 %{?build_fc9:%define fc9 1}
284 # Whitebox Enterprise build
286 %{?build_wb3:%define wb3 1}
287 # RedHat Enterprise builds
289 %{?build_rhel3:%define rhel3 1}
290 %{?build_rhel3:%define wb3 1}
292 %{?build_rhel4:%define rhel4 1}
293 %{?build_rhel4:%define fc3 1}
295 %{?build_rhel5:%define rhel5 1}
296 %{?build_rhel5:%define fc6 1}
299 %{?build_centos3:%define centos3 1}
300 %{?build_centos3:%define wb3 1}
302 %{?build_centos4:%define centos4 1}
303 %{?build_centos4:%define fc3 1}
305 %{?build_centos5:%define centos5 1}
306 %{?build_centos5:%define fc6 1}
309 %{?build_sl3:%define sl3 1}
310 %{?build_sl3:%define wb3 1}
312 %{?build_sl4:%define sl4 1}
313 %{?build_sl4:%define fc3 1}
315 %{?build_sl5:%define sl5 1}
316 %{?build_sl5:%define fc6 1}
319 %{?build_su9:%define su9 1}
321 %{?build_su10:%define su10 1}
323 %{?build_su102:%define su102 1}
325 %{?build_su103:%define su103 1}
327 %{?build_su110:%define su110 1}
329 %{?build_su111:%define su111 1}
332 %{?build_mdk:%define mdk 1}
334 %{?build_mdv:%define mdv 1}
335 %{?build_mdv:%define mdk 1}
338 %define client_only 0
339 %{?build_client_only:%define client_only 1}
341 # test for a platform definition
342 %if !%{rh7} && !%{rh8} && !%{rh9} && !%{fc1} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && !%{wb3} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk}
343 %{error: You must specify a platform. Please examine the spec file.}
348 # set for database support desired or define the build_xxx on the command line
350 %{?build_mysql:%define mysql 1}
351 # if using mysql 4.x define this and mysql above
352 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
354 %{?build_mysql4:%define mysql4 1}
355 %{?build_mysql4:%define mysql 1}
356 # if using mysql 5.x define this and mysql above
357 # currently: SuSE 10.1 and Fedora Core 5
359 %{?build_mysql5:%define mysql5 1}
360 %{?build_mysql5:%define mysql 1}
362 %{?build_sqlite:%define sqlite 1}
364 %{?build_postgresql:%define postgresql 1}
366 # test for a database definition
367 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
368 %{error: You must specify database support. Please examine the spec file.}
373 %define db_backend mysql
376 %define db_backend sqlite3
379 %define db_backend postgresql
384 %{?build_x86_64:%define x86_64 1}
386 # check what distribution we are
387 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
388 %define _dist %(grep Red /etc/redhat-release)
390 %if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8} || %{fc9}
391 %define _dist %(grep Fedora /etc/redhat-release)
393 %if %{centos5} || %{centos4} || %{centos3}
394 %define _dist %(grep CentOS /etc/redhat-release)
396 %if %{sl5} ||%{sl4} || %{sl3}
397 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
399 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
400 %define _dist %(grep Fedora /etc/redhat-release)
402 %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
403 %define _dist %(grep Fedora /etc/redhat-release)
405 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
406 %define _dist %(grep White /etc/whitebox-release)
408 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
409 %define _dist %(grep -i SuSE /etc/SuSE-release)
412 %define _dist %(grep Mand /etc/mandrake-release)
414 %{?DISTNAME:%define _dist %{DISTNAME}}
415 Distribution: %{_dist}
417 # Should we build gconsole, possible only if gtk= >= 2.4 available.
418 # leaving all the BuildRequires and Requires in place below for now.
419 # su10, fc3 and fc4 now nobuild, tray monitor fails to build as of 2.2.1
420 # release as it needs 2.10
423 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
426 %if %{mdk} && ! %{mdv}
430 # specifically disallow gconsole if desired
431 %{?nobuild_gconsole:%define gconsole 0}
433 # specifically disallow rescue files
435 %{?build_rescue:%define rescue 1}
437 # Should we build wxconsole, only wxWidgets >=2.6 is supported
438 # SuSE 10 and FC4 and newer
440 %{?build_wxconsole:%define wxconsole 1}
442 # Should we build bat
445 %{?build_bat:%define bat 1}
447 # should we turn on python support
449 %{?build_python:%define python 1}
451 # specifically disallow build of mtx package if desired
453 %{?nobuild_mtx:%define mtx 0}
455 # do we need to patch for old postgresql version?
457 %{?build_old_pgsql:%define old_pgsql 1}
459 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
461 %define manpage_ext bz2
463 %define manpage_ext gz
466 # for client only build
477 %{expand: %%define gccver %(rpm -q --queryformat %%{version} gcc)}
478 %{expand: %%define gccrel %(rpm -q --queryformat %%{release} gcc)}
480 BuildRequires: gcc, gcc-c++, make, autoconf
481 BuildRequires: ncurses-devel, perl
482 BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, zlib-devel
483 BuildRequires: openssl-devel
485 BuildRequires: libxml2-devel
488 BuildRequires: python, python-devel
489 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
492 BuildRequires: pkgconfig, pango-devel, atk-devel
495 BuildRequires: pkgconfig
498 # Rh qt4 packages don't have a provide for, guess what, qt!
499 # still broken in fc8, ok in fc9
500 # so fix for broken rh
502 %if %{rhel5} || %{centos5} || %{sl5} || %{fc5} || %{fc6} || %{fc7} || %{fc8}
505 %if %{bat} && ! %{broken_rh}
506 BuildRequires: qt-devel >= 4.2
508 %if %{bat} && %{broken_rh}
509 BuildRequires: qt4-devel >= 4.2
513 BuildRequires: libtermcap-devel
514 BuildRequires: glibc-devel >= 2.2
515 BuildRequires: libxml-devel
518 BuildRequires: termcap
519 BuildRequires: glibc-devel >= 2.3
521 %if %{su9} && %{gconsole}
522 BuildRequires: libgnome >= 2.0
523 BuildRequires: gtk2-devel >= 2.0
524 BuildRequires: libgnomeui-devel >= 2.0
525 BuildRequires: ORBit2-devel
526 BuildRequires: libart_lgpl-devel >= 2.0
527 BuildRequires: libbonobo-devel >= 2.0
528 BuildRequires: libbonoboui-devel >= 2.0
529 BuildRequires: bonobo-activation-devel
530 BuildRequires: gconf2-devel
531 BuildRequires: linc-devel
532 BuildRequires: freetype2-devel
535 BuildRequires: termcap
536 BuildRequires: glibc-devel >= 2.3
538 %if %{su10} && %{gconsole}
539 BuildRequires: libgnome >= 2.12
540 BuildRequires: gtk2-devel >= 2.8
541 BuildRequires: libgnomeui-devel >= 2.12
542 BuildRequires: ORBit2-devel
543 BuildRequires: libart_lgpl-devel >= 2.3
544 BuildRequires: libbonobo-devel >= 2.10
545 BuildRequires: libbonoboui-devel >= 2.10
546 BuildRequires: bonobo-activation-devel
547 BuildRequires: gconf2-devel
548 BuildRequires: freetype2-devel
549 BuildRequires: cairo-devel
550 BuildRequires: fontconfig-devel >= 2.3
551 BuildRequires: gnome-vfs2-devel >= 2.12
552 BuildRequires: libpng-devel
555 BuildRequires: termcap
556 BuildRequires: glibc-devel >= 2.5
558 %if %{su102} && %{gconsole}
559 BuildRequires: libgnome >= 2.16
560 BuildRequires: gtk2-devel >= 2.10
561 BuildRequires: libgnomeui-devel >= 2.16
562 BuildRequires: ORBit2-devel
563 BuildRequires: libart_lgpl-devel >= 2.3
564 BuildRequires: libbonobo-devel >= 2.16
565 BuildRequires: libbonoboui-devel >= 2.16
566 BuildRequires: bonobo-activation-devel
567 BuildRequires: gconf2-devel
568 BuildRequires: freetype2-devel
569 BuildRequires: cairo-devel
570 BuildRequires: fontconfig-devel >= 2.4
571 BuildRequires: gnome-vfs2-devel >= 2.16
572 BuildRequires: libpng-devel
575 BuildRequires: termcap
576 BuildRequires: glibc-devel >= 2.6
578 %if %{su103} && %{gconsole}
579 BuildRequires: libgnome >= 2.20
580 BuildRequires: gtk2-devel >= 2.12
581 BuildRequires: libgnomeui-devel >= 2.20
582 BuildRequires: ORBit2-devel
583 BuildRequires: libart_lgpl-devel >= 2.3
584 BuildRequires: libbonobo-devel >= 2.20
585 BuildRequires: libbonoboui-devel >= 2.20
586 BuildRequires: bonobo-activation-devel
587 BuildRequires: gconf2-devel
588 BuildRequires: freetype2-devel
589 BuildRequires: cairo-devel
590 BuildRequires: fontconfig-devel >= 2.4
591 BuildRequires: gnome-vfs2-devel >= 2.20
592 BuildRequires: libpng-devel
595 BuildRequires: termcap
596 BuildRequires: glibc-devel >= 2.8
598 %if %{su110} && %{gconsole}
599 BuildRequires: libgnome >= 2.22
600 BuildRequires: gtk2-devel >= 2.12
601 BuildRequires: libgnomeui-devel >= 2.22
602 BuildRequires: ORBit2-devel
603 BuildRequires: libart_lgpl-devel >= 2.3
604 BuildRequires: libbonobo-devel >= 2.22
605 BuildRequires: libbonoboui-devel >= 2.22
606 BuildRequires: bonobo-activation-devel
607 BuildRequires: gconf2-devel
608 BuildRequires: freetype2-devel
609 BuildRequires: cairo-devel
610 BuildRequires: fontconfig-devel >= 2.4
611 BuildRequires: gnome-vfs2-devel >= 2.22
612 BuildRequires: libpng-devel
615 BuildRequires: termcap
616 BuildRequires: glibc-devel >= 2.9
618 %if %{su111} && %{gconsole}
619 BuildRequires: libgnome >= 2.24
620 BuildRequires: gtk2-devel >= 2.14
621 BuildRequires: libgnomeui-devel >= 2.24
622 BuildRequires: ORBit2-devel
623 BuildRequires: libart_lgpl-devel >= 2.3
624 BuildRequires: libbonobo-devel >= 2.24
625 BuildRequires: libbonoboui-devel >= 2.24
626 BuildRequires: bonobo-activation-devel
627 BuildRequires: gconf2-devel
628 BuildRequires: freetype2-devel
629 BuildRequires: cairo-devel
630 BuildRequires: fontconfig-devel >= 2.6
631 BuildRequires: gnome-vfs2-devel >= 2.24
632 BuildRequires: libpng-devel
635 BuildRequires: libtermcap-devel
636 BuildRequires: libstdc++-static-devel
637 BuildRequires: glibc-static-devel
638 BuildRequires: glibc-devel >= 2.3
640 %if %{mdk} && !%{mdv} && %{gconsole}
641 BuildRequires: gtk2-devel >= 2.0
642 BuildRequires: libgnomeui2-devel >= 2.0
643 BuildRequires: libORBit2-devel
644 BuildRequires: libart_lgpl-devel >= 2.0
645 BuildRequires: libbonobo2_0-devel
646 BuildRequires: libbonoboui2_0-devel
647 BuildRequires: libbonobo-activation-devel
648 BuildRequires: libGConf2-devel
649 BuildRequires: freetype2-devel
651 %if %{mdv} && %{gconsole}
652 BuildRequires: gtk2-devel >= 2.8
653 BuildRequires: libgnomeui2-devel >= 2.10
654 BuildRequires: libORBit2-devel
655 BuildRequires: libart_lgpl-devel >= 2.3
656 BuildRequires: libbonobo2_0-devel
657 BuildRequires: libbonoboui2_0-devel
658 BuildRequires: libbonobo-activation-devel
659 BuildRequires: libGConf2-devel
660 BuildRequires: freetype2-devel
663 BuildRequires: libtermcap-devel
664 BuildRequires: glibc-devel >= 2.3
666 %if %{fc3} && %{gconsole}
667 BuildRequires: gtk2-devel >= 2.4
668 BuildRequires: libgnomeui-devel >= 2.8
669 BuildRequires: ORBit2-devel
670 BuildRequires: libart_lgpl-devel >= 2.3
671 BuildRequires: libbonobo-devel >= 2.8
672 BuildRequires: libbonoboui-devel >= 2.8
673 BuildRequires: bonobo-activation-devel
674 BuildRequires: GConf2-devel
675 BuildRequires: freetype-devel
678 BuildRequires: libtermcap-devel
679 BuildRequires: glibc-devel >= 2.3
681 %if %{fc4} && %{gconsole}
682 BuildRequires: gtk2-devel >= 2.6
683 BuildRequires: libgnomeui-devel >= 2.10
684 BuildRequires: ORBit2-devel
685 BuildRequires: libart_lgpl-devel >= 2.3
686 BuildRequires: libbonobo-devel >= 2.8
687 BuildRequires: libbonoboui-devel >= 2.8
688 BuildRequires: bonobo-activation-devel
689 BuildRequires: GConf2-devel
690 BuildRequires: freetype-devel
693 BuildRequires: libtermcap-devel
694 BuildRequires: glibc-devel >= 2.4
696 %if %{fc5} && %{gconsole}
697 BuildRequires: gtk2-devel >= 2.8
698 BuildRequires: libgnomeui-devel >= 2.14
699 BuildRequires: ORBit2-devel
700 BuildRequires: libart_lgpl-devel >= 2.3
701 BuildRequires: libbonobo-devel >= 2.14
702 BuildRequires: libbonoboui-devel >= 2.14
703 BuildRequires: GConf2-devel
704 BuildRequires: freetype-devel
707 BuildRequires: libtermcap-devel
708 BuildRequires: glibc-devel >= 2.5
710 %if %{fc6} && %{gconsole}
711 BuildRequires: gtk2-devel >= 2.10
712 BuildRequires: libgnomeui-devel >= 2.16
713 BuildRequires: ORBit2-devel
714 BuildRequires: libart_lgpl-devel >= 2.3
715 BuildRequires: libbonobo-devel >= 2.16
716 BuildRequires: libbonoboui-devel >= 2.16
717 BuildRequires: GConf2-devel
718 BuildRequires: freetype-devel
721 BuildRequires: libtermcap-devel
722 BuildRequires: glibc-devel >= 2.5
724 %if %{fc7} && %{gconsole}
725 BuildRequires: gtk2-devel >= 2.10
726 BuildRequires: libgnomeui-devel >= 2.18
727 BuildRequires: ORBit2-devel
728 BuildRequires: libart_lgpl-devel >= 2.3
729 BuildRequires: libbonobo-devel >= 2.18
730 BuildRequires: libbonoboui-devel >= 2.18
731 BuildRequires: GConf2-devel
732 BuildRequires: freetype-devel
735 BuildRequires: libtermcap-devel
736 BuildRequires: glibc-devel >= 2.7
738 %if %{fc8} && %{gconsole}
739 BuildRequires: gtk2-devel >= 2.12
740 BuildRequires: libgnomeui-devel >= 2.20
741 BuildRequires: ORBit2-devel
742 BuildRequires: libart_lgpl-devel >= 2.3
743 BuildRequires: libbonobo-devel >= 2.20
744 BuildRequires: libbonoboui-devel >= 2.20
745 BuildRequires: GConf2-devel
746 BuildRequires: freetype-devel
749 BuildRequires: glibc-devel >= 2.8
750 BuildRequires: zlib-static
752 %if %{fc9} && %{gconsole}
753 BuildRequires: gtk2-devel >= 2.12
754 BuildRequires: libgnomeui-devel >= 2.22
755 BuildRequires: ORBit2-devel
756 BuildRequires: libart_lgpl-devel >= 2.3
757 BuildRequires: libbonobo-devel >= 2.22
758 BuildRequires: libbonoboui-devel >= 2.22
759 BuildRequires: GConf2-devel
760 BuildRequires: freetype-devel
762 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
763 BuildRequires: libtermcap-devel
764 BuildRequires: glibc-devel >= 2.3
766 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && %{gconsole}
767 BuildRequires: gtk2-devel >= 2.0
768 BuildRequires: libgnomeui-devel >= 2.0
769 BuildRequires: ORBit2-devel
770 BuildRequires: libart_lgpl-devel >= 2.0
771 BuildRequires: libbonobo-devel >= 2.0
772 BuildRequires: libbonoboui-devel >= 2.0
773 BuildRequires: bonobo-activation-devel
774 BuildRequires: GConf2-devel
775 BuildRequires: linc-devel
776 BuildRequires: freetype-devel
779 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
780 BuildRequires: mysql-devel >= 3.23
783 %if %{mysql} && %{mysql4}
784 BuildRequires: mysql-devel >= 4.0
787 %if %{mysql} && %{mysql5}
788 BuildRequires: mysql-devel >= 5.0
791 %if %{postgresql} && %{wb3}
792 BuildRequires: rh-postgresql-devel >= 7
795 %if %{postgresql} && ! %{wb3}
796 BuildRequires: postgresql-devel >= 7
800 BuildRequires: wxGTK-devel >= 2.6
824 Summary: Bacula - The Network Backup Solution
825 Group: System Environment/Daemons
826 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
827 Conflicts: bacula-client
828 Obsoletes: bacula-rescue
830 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
834 Requires: ncurses, libstdc++, zlib, openssl
837 Requires: glibc >= 2.2
840 %if %{su9} || %{su10}
841 Requires: glibc >= 2.3
845 Requires: glibc >= 2.5
849 Requires: glibc >= 2.6
853 Requires: glibc >= 2.8
857 Requires: glibc >= 2.9
860 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
861 Requires: glibc >= 2.3
865 Requires: glibc >= 2.4
869 Requires: glibc >= 2.5
873 Requires: glibc >= 2.7
877 Requires: glibc >= 2.8
880 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
881 Requires: mysql >= 3.23
882 Requires: mysql-server >= 3.23
884 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
885 Requires: mysql >= 4.0
886 Requires: mysql-server >= 4.0
888 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk} && %{mysql5}
889 Requires: mysql >= 5.0
890 Requires: mysql-server >= 5.0
893 %if %{mysql} && %{su9} && ! %{mysql4}
894 Requires: mysql >= 3.23
895 Requires: mysql-client >= 3.23
897 %if %{mysql} && %{su9} && %{mysql4}
898 Requires: mysql >= 4.0
899 Requires: mysql-client >= 4.0
901 %if %{mysql} && %{su10} && %{mysql4}
902 Requires: mysql >= 4.0
903 Requires: mysql-client >= 4.0
905 %if %{mysql} && %{su10} && %{mysql5}
906 Requires: mysql >= 5.0
907 Requires: mysql-client >= 5.0
909 %if %{mysql} && %{su102} && %{mysql5}
910 Requires: mysql >= 5.0
911 Requires: mysql-client >= 5.0
913 %if %{mysql} && %{su103} && %{mysql5}
914 Requires: mysql >= 5.0
915 Requires: mysql-client >= 5.0
917 %if %{mysql} && %{su110} && %{mysql5}
918 Requires: mysql >= 5.0
919 Requires: mysql-client >= 5.0
921 %if %{mysql} && %{su111} && %{mysql5}
922 Requires: mysql >= 5.0
923 Requires: mysql-client >= 5.0
926 %if %{mysql} && %{mdk} && ! %{mysql4}
927 Requires: mysql >= 3.23
928 Requires: mysql-client >= 3.23
930 %if %{mysql} && %{mdk} && %{mysql4}
931 Requires: mysql >= 4.0
932 Requires: mysql-client >= 4.0
935 %if %{postgresql} && %{wb3}
936 Requires: rh-postgresql >= 7
937 Requires: rh-postgresql-server >= 7
939 %if %{postgresql} && ! %{wb3}
940 Requires: postgresql >= 7
941 Requires: postgresql-server >= 7
951 %description postgresql
955 Requires: python >= %{pyver}
969 This build requires MySQL to be installed separately as the catalog database.
972 This build requires PostgreSQL to be installed separately as the catalog database.
975 This build incorporates sqlite3 as the catalog database, statically compiled.
978 This build includes python scripting support.
981 %if ! %{client_only} && %{mtx}
983 Summary: Bacula - The Network Backup Solution
984 Group: System Environment/Daemons
988 This is Bacula's version of mtx tape utilities for Linux distributions that
989 do not provide their own mtx package
993 Summary: Bacula - The Network Backup Solution
994 Group: System Environment/Daemons
996 Conflicts: bacula-mysql
997 Conflicts: bacula-sqlite
998 Conflicts: bacula-postgresql
999 Obsoletes: bacula-rescue
1001 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1005 Requires: libstdc++, zlib, openssl
1008 Requires: glibc >= 2.2
1009 Requires: libtermcap
1011 %if %{su9} || %{su10}
1012 Requires: glibc >= 2.3
1016 Requires: glibc >= 2.5
1020 Requires: glibc >= 2.6
1024 Requires: glibc >= 2.8
1028 Requires: glibc >= 2.9
1031 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
1032 Requires: glibc >= 2.3
1033 Requires: libtermcap
1036 Requires: glibc >= 2.4
1037 Requires: libtermcap
1039 %if %{fc6} || %{fc7}
1040 Requires: glibc >= 2.5
1041 Requires: libtermcap
1044 Requires: glibc >= 2.7
1045 Requires: libtermcap
1048 Requires: glibc >= 2.8
1052 Requires: python >= %{pyver}
1066 This is the File daemon (Client) only package. It includes the command line
1069 This build includes python scripting support.
1072 %if ! %{client_only}
1075 Summary: Bacula - The Network Backup Solution
1076 Group: System Environment/Daemons
1078 %description updatedb
1089 This package installs scripts for updating older versions of the bacula
1095 Summary: Bacula - The Network Backup Solution
1096 Group: System Environment/Daemons
1097 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
1100 %if %{gconsole} && %{su9}
1101 Requires: gtk2 >= 2.0
1102 Requires: libgnome >= 2.0
1103 Requires: libgnomeui >= 2.0
1104 Requires: glibc >= 2.3
1106 Requires: libart_lgpl >= 2.0
1107 Requires: libbonobo >= 2.0
1108 Requires: libbonoboui >= 2.0
1109 Requires: bonobo-activation
1114 %if %{gconsole} && %{su10}
1115 Requires: gtk2 >= 2.8
1116 Requires: libgnome >= 2.12
1117 Requires: libgnomeui >= 2.12
1118 Requires: glibc >= 2.3
1120 Requires: libart_lgpl >= 2.3
1121 Requires: libbonobo >= 2.10
1122 Requires: libbonoboui >= 2.10
1123 Requires: bonobo-activation
1127 Requires: fontconfig >= 2.3
1128 Requires: gnome-vfs2 >= 2.12
1131 %if %{gconsole} && %{su102}
1132 Requires: gtk2 >= 2.10
1133 Requires: libgnome >= 2.16
1134 Requires: libgnomeui >= 2.16
1135 Requires: glibc >= 2.5
1137 Requires: libart_lgpl >= 2.3
1138 Requires: libbonobo >= 2.16
1139 Requires: libbonoboui >= 2.16
1140 Requires: bonobo-activation
1144 Requires: fontconfig >= 2.4
1145 Requires: gnome-vfs2 >= 2.16
1148 %if %{gconsole} && %{su103}
1149 Requires: gtk2 >= 2.12
1150 Requires: libgnome >= 2.20
1151 Requires: libgnomeui >= 2.20
1152 Requires: glibc >= 2.6
1154 Requires: libart_lgpl >= 2.3
1155 Requires: libbonobo >= 2.20
1156 Requires: libbonoboui >= 2.20
1157 Requires: bonobo-activation
1161 Requires: fontconfig >= 2.4
1162 Requires: gnome-vfs2 >= 2.20
1165 %if %{gconsole} && %{su110}
1166 Requires: gtk2 >= 2.12
1167 Requires: libgnome >= 2.22
1168 Requires: libgnomeui >= 2.22
1169 Requires: glibc >= 2.8
1171 Requires: libart_lgpl >= 2.3
1172 Requires: libbonobo >= 2.22
1173 Requires: libbonoboui >= 2.22
1174 Requires: bonobo-activation
1178 Requires: fontconfig >= 2.4
1179 Requires: gnome-vfs2 >= 2.22
1182 %if %{gconsole} && %{su111}
1183 Requires: gtk2 >= 2.14
1184 Requires: libgnome >= 2.24
1185 Requires: libgnomeui >= 2.24
1186 Requires: glibc >= 2.9
1188 Requires: libart_lgpl >= 2.3
1189 Requires: libbonobo >= 2.24
1190 Requires: libbonoboui >= 2.24
1191 Requires: bonobo-activation
1195 Requires: fontconfig >= 2.6
1196 Requires: gnome-vfs2 >= 2.24
1199 %if %{gconsole} && %{mdk} && !%{mdv}
1200 Requires: gtk2 >= 2.0
1201 Requires: libgnomeui2
1202 Requires: glibc >= 2.3
1204 Requires: libart_lgpl >= 2.0
1205 Requires: libbonobo >= 2.0
1206 Requires: libbonoboui >= 2.0
1210 %if %{gconsole} && %{mdv}
1211 Requires: gtk2 >= 2.8
1212 Requires: libgnomeui2
1213 Requires: glibc >= 2.3
1215 Requires: libart_lgpl >= 2.3
1216 Requires: libbonobo >= 2.10
1217 Requires: libbonoboui >= 2.10
1221 %if %{gconsole} && %{fc3}
1222 Requires: gtk2 >= 2.4
1223 Requires: libgnomeui >= 2.8
1224 Requires: glibc >= 2.3
1226 Requires: libart_lgpl >= 2.3
1227 Requires: libbonobo >= 2.8
1228 Requires: libbonoboui >= 2.8
1229 Requires: bonobo-activation
1233 %if %{gconsole} && %{fc4}
1234 Requires: gtk2 >= 2.6
1235 Requires: libgnomeui >= 2.10
1236 Requires: glibc >= 2.3
1238 Requires: libart_lgpl >= 2.3
1239 Requires: libbonobo >= 2.8
1240 Requires: libbonoboui >= 2.8
1241 Requires: bonobo-activation
1245 %if %{gconsole} && %{fc5}
1246 Requires: gtk2 >= 2.8
1247 Requires: libgnomeui >= 2.14
1248 Requires: glibc >= 2.4
1250 Requires: libart_lgpl >= 2.3
1251 Requires: libbonobo >= 2.14
1252 Requires: libbonoboui >= 2.14
1256 %if %{gconsole} && %{fc6}
1257 Requires: gtk2 >= 2.10
1258 Requires: libgnomeui >= 2.16
1259 Requires: glibc >= 2.5
1261 Requires: libart_lgpl >= 2.3
1262 Requires: libbonobo >= 2.16
1263 Requires: libbonoboui >= 2.16
1267 %if %{gconsole} && %{fc7}
1268 Requires: gtk2 >= 2.10
1269 Requires: libgnomeui >= 2.18
1270 Requires: glibc >= 2.5
1272 Requires: libart_lgpl >= 2.3
1273 Requires: libbonobo >= 2.18
1274 Requires: libbonoboui >= 2.18
1278 %if %{gconsole} && %{fc8}
1279 Requires: gtk2 >= 2.12
1280 Requires: libgnomeui >= 2.20
1281 Requires: glibc >= 2.7
1283 Requires: libart_lgpl >= 2.3
1284 Requires: libbonobo >= 2.20
1285 Requires: libbonoboui >= 2.20
1289 %if %{gconsole} && %{fc9}
1290 Requires: gtk2 >= 2.12
1291 Requires: libgnomeui >= 2.22
1292 Requires: glibc >= 2.8
1294 Requires: libart_lgpl >= 2.3
1295 Requires: libbonobo >= 2.22
1296 Requires: libbonoboui >= 2.22
1300 %if %{gconsole} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
1301 Requires: gtk2 >= 2.0
1302 Requires: libgnomeui >= 2.0
1303 Requires: glibc >= 2.3
1305 Requires: libart_lgpl >= 2.0
1306 Requires: libbonobo >= 2.0
1307 Requires: libbonoboui >= 2.0
1308 Requires: bonobo-activation
1313 %if %{gconsole} && %{su9}
1316 %if %{gconsole} && %{su10}
1319 %if %{gconsole} && %{su102}
1322 %if %{gconsole} && %{su103}
1325 %if %{gconsole} && %{su110}
1328 %if %{gconsole} && %{su111}
1331 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1336 %description gconsole
1347 This is the Gnome Console package. It is an add-on to the client or
1353 Summary: Bacula - The Network Backup Solution
1354 Group: System Environment/Daemons
1355 Requires: wxGTK >= 2.6, libstdc++, openssl
1358 %if %{wxconsole} && %{su10}
1359 Requires: gtk2 >= 2.8
1362 %if %{wxconsole} && %{su102}
1363 Requires: gtk2 >= 2.10
1366 %if %{wxconsole} && %{su103}
1367 Requires: gtk2 >= 2.12
1370 %if %{wxconsole} && %{su110}
1371 Requires: gtk2 >= 2.12
1374 %if %{wxconsole} && %{su111}
1375 Requires: gtk2 >= 2.14
1378 %if %{wxconsole} && %{fc3}
1379 Requires: gtk2 >= 2.4
1382 %if %{wxconsole} && %{fc4}
1383 Requires: gtk2 >= 2.6
1386 %if %{wxconsole} && %{fc5}
1387 Requires: gtk2 >= 2.8
1390 %if %{wxconsole} && %{fc6}
1391 Requires: gtk2 >= 2.10
1394 %if %{wxconsole} && %{fc7}
1395 Requires: gtk2 >= 2.10
1398 %if %{wxconsole} && %{fc8}
1399 Requires: gtk2 >= 2.12
1402 %if %{wxconsole} && %{fc9}
1403 Requires: gtk2 >= 2.12
1407 %description wxconsole
1418 This is the WXWindows Console package. It is an add-on to the client or
1424 Summary: Bacula - The Network Backup Solution
1425 Group: System Environment/Daemons
1428 %if %{bat} && %{su10}
1430 Requires: glibc >= 2.4
1431 Requires: fontconfig
1440 %if %{bat} && %{su102}
1442 Requires: glibc >= 2.5
1443 Requires: fontconfig
1452 %if %{bat} && %{su103}
1454 Requires: glibc >= 2.6
1455 Requires: fontconfig
1464 %if %{bat} && %{su110}
1466 Requires: glibc >= 2.8
1467 Requires: fontconfig
1476 %if %{bat} && %{su111}
1478 Requires: glibc >= 2.9
1479 Requires: fontconfig
1488 %if %{bat} && %{fc5}
1490 Requires: glibc >= 2.4
1491 Requires: fontconfig
1495 Requires: qt4 >= 4.2
1500 %if %{bat} && %{fc6}
1502 Requires: glibc >= 2.5
1503 Requires: fontconfig
1507 Requires: qt4 >= 4.2
1512 %if %{bat} && %{fc7}
1514 Requires: glibc >= 2.5
1515 Requires: fontconfig
1519 Requires: qt4 >= 4.2
1524 %if %{bat} && %{fc8}
1526 Requires: glibc >= 2.7
1527 Requires: fontconfig
1531 Requires: qt4 >= 4.2
1536 %if %{bat} && %{fc9}
1538 Requires: glibc >= 2.8
1539 Requires: fontconfig
1543 Requires: qt4 >= 4.3
1560 This is the Bacula Administration Tool package. It is an add-on to
1561 the client or server packages.
1564 # SuSE turns off stripping of binaries by default. In order to get
1565 # stripped packages we must generate debug package. RedHat and Mandriva
1566 # turn debug packages on by default but strip binaries regardless.
1567 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1583 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1584 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
1589 #export QTDIR=$(pkg-config --variable=prefix QtCore)
1590 #export QTINC=$(pkg-config --variable=includedir QtCore)
1591 #export QTLIB=$(pkg-config --variable=libdir QtCore)
1592 #export PATH=${QTDIR}/bin/:${PATH}
1598 export PATH=${qtdir}/qt4/bin:$PATH
1599 export QTDIR=${qtdir}/qt4/
1600 export QTINC=${qtdir}/qt4/include/
1601 export QTLIB=${qtdir}/qt4/lib/
1609 %if ! %{client_only} && %{mtx}
1614 %if %{wb3} || %{old_pgsql}
1615 patch -p3 src/cats/postgresql.c < %SOURCE5
1618 # patches for the bundled sqlite scripts
1620 # patch the make_sqlite_tables script for installation bindir
1621 #patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
1622 patch src/cats/make_sqlite3_tables.in src/cats/make_sqlite3_tables.in.patch
1624 # patch the create_sqlite_database script for installation bindir
1625 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
1626 patch src/cats/create_sqlite3_database.in src/cats/create_sqlite3_database.in.patch
1628 # patch the make_catalog_backup script for installation bindir
1629 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
1631 # patch the update_sqlite_tables script for installation bindir
1632 #patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
1633 patch src/cats/update_sqlite3_tables.in src/cats/update_sqlite3_tables.in.patch
1635 # patch the bacula-dir init script to remove sqlite service
1636 %if %{sqlite} && %{su9}
1637 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1639 %if %{sqlite} && %{su10}
1640 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1642 %if %{sqlite} && %{su102}
1643 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1645 %if %{sqlite} && %{su103}
1646 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1648 %if %{sqlite} && %{su110}
1649 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1651 %if %{sqlite} && %{su111}
1652 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1655 # 64 bit lib location hacks
1656 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
1657 # reported to be fixed to properly detect lib locations.
1659 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
1661 %if %{mysql} && %{x86_64}
1662 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
1664 %if %{python} && %{x86_64}
1665 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
1668 # Red Hat's 64 bit installation of QT4 appears to be broken so:
1670 %if %{rhel5} || %{centos5} || %{sl5}
1673 #%if %{bat} && %{qt_path} && %{x86_64}
1674 #export PATH=/usr/lib64/qt4/bin/:$PATH
1675 #export QTDIR=/usr/lib64/qt4/
1676 #export QTINC=/usr/lib64/qt4/include/
1677 #export QTLIB=/usr/lib64/qt4/
1682 --prefix=%{_prefix} \
1683 --sbindir=%{_sbindir} \
1684 --sysconfdir=%{sysconf_dir} \
1685 --with-scriptdir=%{script_dir} \
1686 --with-working-dir=%{working_dir} \
1687 --with-pid-dir=%{pid_dir} \
1688 --enable-smartalloc \
1689 --enable-client-only \
1693 --enable-static-fd \
1700 # Main Bacula configuration
1702 --prefix=%{_prefix} \
1703 --sbindir=%{_sbindir} \
1704 --sysconfdir=%{sysconf_dir} \
1705 --mandir=%{_mandir} \
1706 --with-scriptdir=%{script_dir} \
1707 --with-working-dir=%{working_dir} \
1708 --with-plugindir=%{script_dir} \
1709 --with-pid-dir=%{pid_dir} \
1710 --with-subsys-dir=%{_subsysdir} \
1711 --enable-smartalloc \
1715 %if %{gconsole} && ! %{rh8}
1716 --enable-tray-monitor \
1722 --with-sqlite3=${cwd}/%{depkgs}/sqlite3 \
1728 --enable-bwx-console \
1738 --enable-client-only \
1740 %if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{fc3} || %{wb3}
1741 --disable-batch-insert \
1743 --with-dir-user=%{director_daemon_user} \
1744 --with-dir-group=%{daemon_group} \
1745 --with-sd-user=%{storage_daemon_user} \
1746 --with-sd-group=%{storage_daemon_group} \
1747 --with-fd-user=%{file_daemon_user} \
1748 --with-fd-group=%{daemon_group} \
1749 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1750 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1751 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1752 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1753 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1754 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1762 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1763 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1764 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1765 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1766 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1767 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1768 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1770 %if %{gconsole} || %{wxconsole} || %{bat}
1771 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1772 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1775 %if %{gconsole} || %{wxconsole} || %{bat}
1776 %define usermode_iftrick 1
1778 %define usermode_iftrick 0
1781 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1782 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1783 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1784 mkdir -p $RPM_BUILD_ROOT/usr/bin
1788 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1791 make DESTDIR=$RPM_BUILD_ROOT install
1793 %if ! %{client_only} && %{mtx}
1796 prefix=$RPM_BUILD_ROOT%{_prefix} \
1797 sbindir=$RPM_BUILD_ROOT%{_sbindir} \
1798 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1799 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1800 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1801 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1802 mandir=$RPM_BUILD_ROOT%{_mandir} \
1807 # make install in manpages installs _everything_ shotgun style
1808 # so now delete what we will not be packaging
1810 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
1813 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bat.1.%{manpage_ext}
1816 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
1817 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1820 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.%{manpage_ext}
1821 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1822 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1823 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.%{manpage_ext}
1824 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.%{manpage_ext}
1825 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.%{manpage_ext}
1826 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.%{manpage_ext}
1827 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.%{manpage_ext}
1828 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.%{manpage_ext}
1831 # fixme - make installs the mysql scripts for sqlite build
1833 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1834 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1835 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1838 # fixme - make installs the mysql scripts for postgresql build
1840 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1841 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1844 # fixme - make installs gconsole script for build without gconsole
1846 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1849 rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd
1851 # install the init scripts
1852 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1853 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1854 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1855 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1858 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1859 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1860 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1862 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk}
1863 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1864 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1865 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1867 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1869 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1870 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1873 # install the menu stuff
1874 %if %{gconsole} && %{su9}
1875 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1876 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1877 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1878 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1880 %if %{gconsole} && %{su10}
1881 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1882 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1883 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1884 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1886 %if %{gconsole} && %{su102}
1887 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1888 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1889 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1890 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1892 %if %{gconsole} && %{su103}
1893 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1894 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1895 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1896 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1898 %if %{gconsole} && %{su110}
1899 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1900 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1901 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1902 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1904 %if %{gconsole} && %{su111}
1905 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1906 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1907 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1908 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1910 %if %{wxconsole} && %{su10}
1911 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1912 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1914 %if %{wxconsole} && %{su102}
1915 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1916 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1918 %if %{wxconsole} && %{su103}
1919 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1920 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1922 %if %{wxconsole} && %{su110}
1923 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1924 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1926 %if %{wxconsole} && %{su111}
1927 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1928 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1930 %if %{bat} && %{su102}
1931 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1932 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1934 %if %{bat} && %{su103}
1935 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1936 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1938 %if %{bat} && %{su110}
1939 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1940 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1942 %if %{bat} && %{su111}
1943 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1944 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1946 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{fc6} || %{fc7} || %{fc8} || %{fc9} || %{mdk}
1951 %if %{gconsole} && %{iftrick}
1952 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1953 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1954 cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console
1955 cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console
1956 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bgnome-console
1958 %if %{gconsole} && ! %{rh8}
1959 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1960 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1962 %if %{wxconsole} && %{iftrick}
1963 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1964 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1965 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bwx-console
1966 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console
1967 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bwx-console
1969 %if %{bat} && %{iftrick}
1970 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1971 cp -p scripts/bat.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1972 cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat
1973 cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat
1974 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bat
1979 cp -p %{depkgs}/sqlite3/sqlite3 $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3
1980 cp -p %{depkgs}/sqlite3/sqlite3.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3.h
1981 cp -p %{depkgs}/sqlite3/libsqlite3.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite3.a
1984 # install the logrotate file
1985 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1987 # install the updatedb scripts
1988 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
1990 # install the logwatch scripts
1991 %if ! %{client_only}
1992 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1993 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1994 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1995 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1996 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1997 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
2000 # install the rescue files
2002 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
2003 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
2004 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
2005 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/
2006 cp -p %{_rescuesrc}/freebsd/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd/
2007 cp -p %{_rescuesrc}/solaris/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/solaris/
2008 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT%{script_dir}/rescue/
2009 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT%{script_dir}/rescue/
2010 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT%{script_dir}/rescue/
2011 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT%{script_dir}/rescue/
2012 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT%{script_dir}/rescue/
2013 cp -pr %{_rescuesrc}/knoppix $RPM_BUILD_ROOT%{script_dir}/rescue/
2014 touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
2015 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
2016 rm -f src/filed/static-bacula-fd
2019 # remove the docs installed by make
2021 rm -rf $RPM_BUILD_ROOT/usr/share/doc
2024 # install docs for single dir installation
2026 mkdir $RPM_BUILD_ROOT%{_prefix}/doc
2027 cp COPYING $RPM_BUILD_ROOT%{_prefix}/doc/
2028 cp ChangeLog $RPM_BUILD_ROOT%{_prefix}/doc/
2029 cp ReleaseNotes $RPM_BUILD_ROOT%{_prefix}/doc/
2030 cp VERIFYING $RPM_BUILD_ROOT%{_prefix}/doc/
2031 cp LICENSE $RPM_BUILD_ROOT%{_prefix}/doc/
2032 cp kernstodo $RPM_BUILD_ROOT%{_prefix}/doc/
2033 cp -r %{_docsrc}/manuals/en/catalog/catalog $RPM_BUILD_ROOT%{_prefix}/doc/
2034 cp %{_docsrc}/manuals/en/catalog/catalog.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2035 cp -r %{_docsrc}/manuals/en/concepts/concepts $RPM_BUILD_ROOT%{_prefix}/doc/
2036 cp %{_docsrc}/manuals/en/concepts/concepts.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2037 cp -r %{_docsrc}/manuals/en/console/console $RPM_BUILD_ROOT%{_prefix}/doc/
2038 cp %{_docsrc}/manuals/en/console/console.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2039 cp -r %{_docsrc}/manuals/en/developers/developers $RPM_BUILD_ROOT%{_prefix}/doc/
2040 cp %{_docsrc}/manuals/en/developers/developers.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2041 cp -r %{_docsrc}/manuals/en/install/install $RPM_BUILD_ROOT%{_prefix}/doc/
2042 cp %{_docsrc}/manuals/en/install/install.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2043 cp -r %{_docsrc}/manuals/en/problems/problems $RPM_BUILD_ROOT%{_prefix}/doc/
2044 cp %{_docsrc}/manuals/en/problems/problems.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2045 cp -r %{_docsrc}/manuals/en/utility/utility $RPM_BUILD_ROOT%{_prefix}/doc/
2046 cp %{_docsrc}/manuals/en/utility/utility.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2047 cp ../Release_Notes-%{version}-%{release}.txt $RPM_BUILD_ROOT%{_prefix}/doc/
2050 # now clean up permissions that are left broken by the install
2051 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
2052 %if %{gconsole} && ! %{rh8}
2053 chmod 755 $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor
2054 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
2057 # fix me - building enable-client-only installs files not included in bacula-client package
2059 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
2060 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
2061 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
2062 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
2063 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
2064 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
2065 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
2066 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
2067 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
2068 rm -f $RPM_BUILD_ROOT%{script_dir}/bconsole
2069 rm -f $RPM_BUILD_ROOT%{script_dir}/bpipe-fd.so
2070 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer.conf
2071 rm -f $RPM_BUILD_ROOT%{_sbindir}/bacula
2075 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
2076 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
2077 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
2078 rm -rf $RPM_BUILD_DIR/depkgs
2079 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
2082 # MySQL specific files
2084 %defattr(-, root, root)
2085 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
2086 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
2087 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
2088 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
2089 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
2090 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
2091 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
2092 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
2097 %defattr(-,root,root)
2098 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite3_database
2099 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_database
2100 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite3_privileges
2101 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite3_tables
2102 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_tables
2103 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite3_tables
2104 %{sqlite_bindir}/libsqlite3.a
2105 %{sqlite_bindir}/sqlite3.h
2106 %{sqlite_bindir}/sqlite3
2111 %defattr(-,root,root)
2112 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
2113 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
2114 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
2115 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
2116 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
2117 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
2120 # The rest is DB backend independent
2121 %if ! %{client_only}
2122 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2123 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
2124 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
2125 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
2126 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
2127 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
2128 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
2129 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
2130 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
2131 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
2132 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
2133 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2134 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2135 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
2136 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
2137 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
2138 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
2139 %attr(-, root, %{daemon_group}) %{script_dir}/bpipe-fd.so
2140 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
2141 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
2142 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
2143 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
2144 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
2145 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer.conf
2147 /etc/logrotate.d/bacula
2148 /etc/log.d/scripts/services/bacula
2149 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
2150 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2151 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
2152 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2153 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
2154 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
2155 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
2157 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
2159 %{_sbindir}/bacula-dir
2160 %{_sbindir}/bacula-fd
2161 %{_sbindir}/bacula-sd
2164 %{_sbindir}/bextract
2168 %{_sbindir}/btraceback
2169 %{_sbindir}/bconsole
2174 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2175 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
2176 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
2177 %{_mandir}/man8/bacula.8.%{manpage_ext}
2178 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2179 %{_mandir}/man8/bcopy.8.%{manpage_ext}
2180 %{_mandir}/man8/bextract.8.%{manpage_ext}
2181 %{_mandir}/man8/bls.8.%{manpage_ext}
2182 %{_mandir}/man8/bscan.8.%{manpage_ext}
2183 %{_mandir}/man8/btape.8.%{manpage_ext}
2184 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2185 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
2186 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
2190 %if ! %{client_only} && %{rescue}
2191 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2194 %if ! %{client_only} && ! %{single_dir}
2195 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2196 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2197 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2198 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2199 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2200 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2201 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2202 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2205 %if ! %{client_only} && %{single_dir}
2211 # test for bacula database older than version 10
2212 # note: this ASSUMES no password has been set for bacula database
2213 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2218 # are we upgrading from sqlite to sqlite3?
2219 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
2220 echo "This version of bacula-sqlite involves an upgrade to sqlite3."
2221 echo "Your catalog database file is not compatible with sqlite3, thus"
2222 echo "you will need to dump the data, delete the old file, and re-run"
2223 echo "this rpm upgrade."
2225 echo "Backing up your current database..."
2226 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db > %{working_dir}/bacula_backup.sql
2227 mv %{working_dir}/bacula.db %{working_dir}/bacula.db.old
2228 echo "Your catalog data has been saved in %{working_dir}/bacula_backup.sql and your"
2229 echo "catalog file has been renamed %{working_dir}/bacula.db.old."
2231 echo "Please re-run this rpm package upgrade."
2232 echo "After the upgrade is complete, restore your catalog"
2233 echo "with the following commands:"
2234 echo "%{script_dir}/drop_sqlite3_tables"
2235 echo "cd %{working_dir}"
2236 echo "%{sqlite_bindir}/sqlite3 $* bacula.db < bacula_backup.sql"
2237 echo "chown bacula.bacula bacula.db"
2240 # test for bacula database older than version 10 and sqlite3
2241 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite3 ];then
2242 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2247 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2250 %if ! %{client_only}
2251 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "10" ]; then
2252 echo "This bacula upgrade will update a bacula database from version 10 to 11."
2253 echo "You appear to be running database version $DB_VER. You must first update"
2254 echo "your database to version 10 and then install this upgrade. The alternative"
2255 echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
2256 echo "catalog information, then do the upgrade. Information on updating a"
2257 echo "database older than version 10 can be found in the release notes."
2266 %if ! %{client_only}
2267 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
2268 if [ -s %{sysconf_dir}/console.conf ];then
2269 cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
2272 # create the daemon users and groups
2273 # first create the groups if they don't exist
2274 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2275 if [ -z "$HAVE_BACULA" ]; then
2276 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2277 echo "The group %{daemon_group} has been added to %{group_file}."
2278 echo "See the manual chapter \"Running Bacula\" for details."
2280 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
2281 if [ -z "$HAVE_BACULA" ]; then
2282 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
2283 echo "The group %{storage_daemon_group} has been added to %{group_file}."
2284 echo "See the manual chapter \"Running Bacula\" for details."
2286 # now create the users if they do not exist
2287 # we do not use the -g option allowing the primary group to be set to system default
2288 # this will be a unique group on redhat type systems or the group users on some systems
2289 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
2290 if [ -z "$HAVE_BACULA" ]; then
2291 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
2292 echo "The user %{storage_daemon_user} has been added to %{user_file}."
2293 echo "See the manual chapter \"Running Bacula\" for details."
2295 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
2296 if [ -z "$HAVE_BACULA" ]; then
2297 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
2298 echo "The user %{director_daemon_user} has been added to %{user_file}."
2299 echo "See the manual chapter \"Running Bacula\" for details."
2301 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2302 if [ -z "$HAVE_BACULA" ]; then
2303 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2304 echo "The user %{file_daemon_user} has been added to %{user_file}."
2305 echo "See the manual chapter \"Running Bacula\" for details."
2307 # now we add the supplementary groups, this is ok to call even if the users already exist
2308 # we only do this if the user is NOT root
2309 IS_ROOT=%{director_daemon_user}
2310 if [ "$IS_ROOT" != "root" ]; then
2311 %{usermod} -G %{daemon_group} %{director_daemon_user}
2313 IS_ROOT=%{storage_daemon_user}
2314 if [ "$IS_ROOT" != "root" ]; then
2315 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
2317 IS_ROOT=%{file_daemon_user}
2318 if [ "$IS_ROOT" != "root" ]; then
2319 %{usermod} -G %{daemon_group} %{file_daemon_user}
2333 %if ! %{client_only}
2335 if [ "$1" -ge 1 ] ; then
2336 /sbin/chkconfig --add bacula-dir
2337 /sbin/chkconfig --add bacula-fd
2338 /sbin/chkconfig --add bacula-sd
2343 # test for an existing database
2344 # note: this ASSUMES no password has been set for bacula database
2345 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2347 # grant privileges and create tables if they do not exist
2348 if [ -z "$DB_VER" ]; then
2349 echo "Hmm, doesn't look like you have an existing database."
2350 echo "Granting privileges for MySQL user bacula..."
2351 %{script_dir}/grant_mysql_privileges
2352 echo "Creating MySQL bacula database..."
2353 %{script_dir}/create_mysql_database
2354 echo "Creating bacula tables..."
2355 %{script_dir}/make_mysql_tables
2357 # check to see if we need to upgrade a 2.x database
2358 elif [ "$DB_VER" -lt "11" ]; then
2359 echo "This release requires an upgrade to your bacula database."
2360 echo "Backing up your current database..."
2361 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2362 echo "Upgrading bacula database ..."
2363 %{script_dir}/update_mysql_tables
2364 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2370 # test for an existing database
2371 if [ -s %{working_dir}/bacula.db ]; then
2372 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2373 # check to see if we need to upgrade a 2.x database
2374 if [ "$DB_VER" -lt "11" ] && [ "$DB_VER" -ge "10" ]; then
2375 echo "This release requires an upgrade to your bacula database."
2376 echo "Backing up your current database..."
2377 echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2378 echo "Upgrading bacula database ..."
2379 %{script_dir}/update_sqlite3_tables
2380 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2383 # create the database and tables
2384 echo "Hmm, doesn't look like you have an existing database."
2385 echo "Creating SQLite database..."
2386 %{script_dir}/create_sqlite3_database
2387 chown %{director_daemon_user}.%{daemon_group} %{working_dir}/bacula.db
2388 echo "Creating the SQLite tables..."
2389 %{script_dir}/make_sqlite3_tables
2394 # test for an existing database
2395 # note: this ASSUMES no password has been set for bacula database
2396 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2398 # grant privileges and create tables if they do not exist
2399 if [ -z "$DB_VER" ]; then
2400 echo "Hmm, doesn't look like you have an existing database."
2401 echo "Creating PostgreSQL bacula database..."
2402 %{script_dir}/create_postgresql_database
2403 echo "Creating bacula tables..."
2404 %{script_dir}/make_postgresql_tables
2405 echo "Granting privileges for PostgreSQL user bacula..."
2406 %{script_dir}/grant_postgresql_privileges
2408 # check to see if we need to upgrade a 2.x database
2409 elif [ "$DB_VER" -lt "11" ]; then
2410 echo "This release requires an upgrade to your bacula database."
2411 echo "Backing up your current database..."
2412 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2413 echo "Upgrading bacula database ..."
2414 %{script_dir}/update_postgresql_tables
2415 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2420 %if ! %{client_only}
2421 # generate passwords if needed
2422 if [ -d %{sysconf_dir} ]; then
2424 for file in *.conf; do
2425 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2426 need_password=`grep $string $file 2>/dev/null`
2427 if [ -n "$need_password" ]; then
2428 pass=`openssl rand -base64 33`
2429 sed "s-$string-$pass-g" $file > $file.new
2430 cp -f $file.new $file; rm -f $file.new
2448 %if ! %{client_only}
2451 /sbin/chkconfig --del bacula-dir
2452 /sbin/chkconfig --del bacula-fd
2453 /sbin/chkconfig --del bacula-sd
2471 %if ! %{client_only} && %{mtx}
2473 %defattr(-,root,root)
2474 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
2475 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
2476 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
2477 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
2478 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
2479 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
2480 %{_mandir}/man1/mtx.1.%{manpage_ext}
2481 %{_mandir}/man1/scsitape.1.%{manpage_ext}
2482 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
2483 %{_mandir}/man1/scsieject.1.%{manpage_ext}
2487 %defattr(-,root,root)
2488 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2489 %{script_dir}/bacula-ctl-fd
2490 /etc/init.d/bacula-fd
2492 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2496 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2497 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2498 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2499 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2500 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2501 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2502 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2503 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2508 /etc/logrotate.d/bacula
2510 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2511 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2513 %attr(-, root, %{daemon_group}) %dir %{working_dir}
2515 %{_sbindir}/bacula-fd
2516 %{_sbindir}/btraceback
2517 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2518 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2519 %{_sbindir}/bconsole
2520 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2521 %{_mandir}/man8/bacula.8.%{manpage_ext}
2522 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2523 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2525 %{_libdir}/libbaccfg.*
2526 %{_libdir}/libbacfind.*
2527 %{_libdir}/libbacpy.*
2531 # create the daemon group and user
2532 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2533 if [ -z "$HAVE_BACULA" ]; then
2534 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2535 echo "The group %{daemon_group} has been added to %{group_file}."
2536 echo "See the manual chapter \"Running Bacula\" for details."
2538 # we do not use the -g option allowing the primary group to be set to system default
2539 # this will be a unique group on redhat type systems or the group users on some systems
2540 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2541 if [ -z "$HAVE_BACULA" ]; then
2542 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2543 echo "The user %{file_daemon_user} has been added to %{user_file}."
2544 echo "See the manual chapter \"Running Bacula\" for details."
2546 # now we add the supplementary group, this is ok to call even if the user already exists
2547 # we only do this if the user is NOT root
2548 IS_ROOT=%{file_daemon_user}
2549 if [ "$IS_ROOT" != "root" ]; then
2550 %{usermod} -G %{daemon_group} %{file_daemon_user}
2555 if [ "$1" -ge 1 ] ; then
2556 /sbin/chkconfig --add bacula-fd
2559 # generate passwords if needed
2560 if [ -d %{sysconf_dir} ]; then
2562 for file in *.conf; do
2563 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2564 need_password=`grep $string $file 2>/dev/null`
2565 if [ -n "$need_password" ]; then
2566 pass=`openssl rand -base64 33`
2567 sed "s-$string-$pass-g" $file > $file.new
2568 cp -f $file.new $file; rm -f $file.new
2579 /sbin/chkconfig --del bacula-fd
2585 %if ! %{client_only}
2587 %defattr(-,root,%{daemon_group})
2588 %{script_dir}/updatedb/*
2591 # create the daemon group
2592 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2593 if [ -z "$HAVE_BACULA" ]; then
2594 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2595 echo "The group %{daemon_group} has been added to %{group_file}."
2596 echo "See the manual chapter \"Running Bacula\" for details."
2600 echo "The database update scripts were installed to %{script_dir}/updatedb"
2605 %defattr(-,root,root)
2606 %{_sbindir}/bgnome-console
2607 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2608 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
2609 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bgnome-console.conf
2610 /usr/share/pixmaps/bacula.png
2611 /usr/share/applications/bacula.desktop
2612 %{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
2615 %if %{gconsole} && ! %{rh8}
2616 %{_sbindir}/bacula-tray-monitor
2617 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
2618 /usr/share/pixmaps/bacula-tray-monitor.xpm
2619 /usr/share/applications/bacula-tray-monitor.desktop
2620 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
2623 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2624 # add the console helper files
2625 %config(noreplace,missingok) /etc/pam.d/bgnome-console
2626 %config(noreplace,missingok) /etc/security/console.apps/bgnome-console
2627 /usr/bin/bgnome-console
2632 # create the daemon group
2633 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2634 if [ -z "$HAVE_BACULA" ]; then
2635 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2636 echo "The group %{daemon_group} has been added to %{group_file}."
2637 echo "See the manual chapter \"Running Bacula\" for details."
2641 # generate passwords if needed
2642 if [ -d %{sysconf_dir} ]; then
2644 for file in *.conf; do
2645 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2646 need_password=`grep $string $file 2>/dev/null`
2647 if [ -n "$need_password" ]; then
2648 pass=`openssl rand -base64 33`
2649 sed "s-$string-$pass-g" $file > $file.new
2650 cp -f $file.new $file; rm -f $file.new
2659 %defattr(-,root,root)
2660 %{_sbindir}/bwx-console
2661 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2662 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bwx-console.conf
2663 /usr/share/pixmaps/wxwin16x16.xpm
2664 /usr/share/applications/wxconsole.desktop
2665 %{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
2668 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2669 # add the console helper files
2670 %config(noreplace,missingok) /etc/pam.d/bwx-console
2671 %config(noreplace,missingok) /etc/security/console.apps/bwx-console
2672 /usr/bin/bwx-console
2677 # create the daemon group
2678 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2679 if [ -z "$HAVE_BACULA" ]; then
2680 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2681 echo "The group %{daemon_group} has been added to %{group_file}."
2682 echo "See the manual chapter \"Running Bacula\" for details."
2686 # generate passwords if needed
2687 if [ -d %{sysconf_dir} ]; then
2689 for file in *.conf; do
2690 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2691 need_password=`grep $string $file 2>/dev/null`
2692 if [ -n "$need_password" ]; then
2693 pass=`openssl rand -base64 33`
2694 sed "s-$string-$pass-g" $file > $file.new
2695 cp -f $file.new $file; rm -f $file.new
2704 %defattr(-,root,root)
2706 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2707 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bat.conf
2708 /usr/share/pixmaps/bat_icon.png
2709 /usr/share/applications/bat.desktop
2710 %{_mandir}/man1/bat.1.%{manpage_ext}
2713 %if %{bat} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2714 # add the console helper files
2715 %config(noreplace,missingok) /etc/pam.d/bat
2716 %config(noreplace,missingok) /etc/security/console.apps/bat
2722 # create the daemon group
2723 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2724 if [ -z "$HAVE_BACULA" ]; then
2725 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2726 echo "The group %{daemon_group} has been added to %{group_file}."
2727 echo "See the manual chapter \"Running Bacula\" for details."
2731 # generate passwords if needed
2732 if [ -d %{sysconf_dir} ]; then
2734 for file in *.conf; do
2735 for string in XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX; do
2736 need_password=`grep $string $file 2>/dev/null`
2737 if [ -n "$need_password" ]; then
2738 pass=`openssl rand -base64 33`
2739 sed "s-$string-$pass-g" $file > $file.new
2740 cp -f $file.new $file; rm -f $file.new
2748 * Sat Jun 20 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2749 - Fix bat install which is now handled by make and uses shared libs
2750 * Sat May 16 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2751 - fix libxml dependency for rh7 per Pasi Kärkkäinen <pasik@iki.fi>
2752 * Mon May 04 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2753 - Fix post ldconfig problem in client only build
2754 * Sun May 03 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2755 - remove more files installed by client-only build not needed by client package
2756 - remove libbacsql files from client package
2757 * Sat May 02 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2759 - update for new docs configuration
2760 * Sat Apr 25 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2761 - add switch to pass Distribution tag
2762 * Sun Apr 5 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2764 - database update version 10 to 11
2765 - make now installs docs so we rm from buildroot
2766 - add shared libs in %_libdir and other misc new files
2767 * Wed Dec 31 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2769 * Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2770 - set paths for QT using pkgconfig
2771 * Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2772 - release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
2773 * Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2774 - adjust /opt/bacula install
2775 - add build switch to supress rescue package
2776 * Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2777 - add support for install to /opt/bacula
2778 * Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2779 - remove libtermcap dependancy for FC9
2780 * Mon Aug 04 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2781 - fix bat dependencies
2782 * Sat Jun 28 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2784 * Sat May 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2786 * Sun Mar 30 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2787 - FHS compatibility changes
2788 * Sat Feb 16 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2789 - remove fix for false buffer overflow detection with glibc >= 2.7
2790 * Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2791 - fix for false buffer overflow detection with glibc >= 2.7
2792 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2794 - add debug package for SuSE
2795 * Sat Jan 12 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2796 - 2.2.8 beta release
2799 * Sun Dec 30 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2800 - fix typo on su103 client package requirements
2801 * Fri Dec 28 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2802 - add nobuild_mtx switch
2803 - add patch for postgresql.c for old postgresql versions
2804 * Sat Nov 17 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2806 * Sun Nov 11 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2807 - add new files required by rescue makefile
2808 * Sat Nov 10 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2809 - add su103 build target
2810 * Sun Nov 04 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2811 - fix dist defines for rhel5 and clones
2812 - fix rhel broken 64 bit QT4 paths
2813 - rh qt4 packages don't provide qt so fix that too
2814 * Mon Oct 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2815 - correct ownership when creating sqlite db file in post script
2816 * Sun Sep 16 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2817 - fix disable-batch-insert
2818 * Fri Sep 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2820 - turn off gconsole build for fc3, tray monitor fails to build
2821 - add new files for mtx package (09Sep07 depkgs update)
2822 * Sat Sep 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2823 - add --disable-batch-insert for older platforms
2824 - add build targets for rhel5 and clones
2825 * Mon Sep 03 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2827 - turn off gconsole build for su10 & fc4, tray monitor fails to build
2828 * Sat Jul 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2829 - 2.1.26 add make of qwt in depkgs for bat
2830 * Sat Jun 02 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2831 - upgrade Qt requirement for bat to 4.2
2832 * Sun May 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2833 - add fc7 build target
2834 * Sun Apr 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2836 - gnome-console now bgnome-console
2837 - wxconsole now bwx-console
2838 - add build option for bat
2839 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2840 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
2841 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
2842 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
2843 - adjust directory locations for FHS-compatibility
2844 sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
2845 working_dir (/var/lib/bacula) and pid_dir (/var/run)
2846 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2847 - add SuSE 10.2 target
2848 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2850 - set query.sql as config file
2852 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2854 - change determination of gcc version per patch from Marc Hennes
2855 - move BuildRequire for atk-devel to gnome only builds
2857 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2859 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2860 - 1.39.26 remove create_sqlite_database.in.patch
2861 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2862 - change ownership of working_dir on server packages to bacula.bacula so that
2863 - bacula-sd can create bootstrap files
2864 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2865 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
2866 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2867 - fix manpages file extension for mdk
2868 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2869 - bug 648 re-enable and update sqlite patches
2873 - lock out gconsole build for gtk+ < 2.4
2874 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2875 - move pango-devel BuildRequires into gconsole only build
2876 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2877 - add provides and conflicts for standard suse packages
2878 - add third party packager tag support
2879 - add build_client_only tag
2880 - remove bsmtp from client package
2881 - add bacula-ctl-fd to client package
2882 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2883 - fix directory creation when wxconsole and not gconsole
2884 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2885 - add check to buildrequires to make sure libstdc++ version matches gcc
2886 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2887 - add python build support
2888 - fix LDFLAGS declarations
2889 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2890 - add requires for standard compiler toolchain
2891 - move version and release tags up
2893 - add docs_version tag
2894 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2895 - update rescuever to 1.8.6
2896 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2897 - update depkgs to 25Jun06
2898 - add mysql5 build tag
2899 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2900 - 1.38.10 bump rescue version
2901 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2902 - fix usermod statements
2904 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2905 - add -g param back to useradd statements Bug 605
2906 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2907 - redundant code cleanup
2908 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2909 - add wxconsole package
2910 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2912 - dependency update for Mandriva
2913 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2915 - remove -n option from useradd scripts
2916 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2918 - fix problem specifying more than one primary group for user bacula
2919 - add build switch to not build gconsole regardless of platform
2920 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2921 - add centos3 build tag
2922 - fix link error of static-fd on Mandrake with --disable-nls
2923 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2924 - add fc4 dependencies
2925 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2926 - add SuSE 10.0 build
2927 - remove specific permission in attrib macros
2928 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2930 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
2931 - refix compat for _dist on SLES9 which seems to have been removed
2932 - added note regarding Aleksandar's use of specific permissions in attrib macros
2933 - need to review and add specific fc4 build currently using fc3 Requires
2934 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2936 - Reorganize files and pre/post sections to remove repetitions
2937 - Always build separate mtx package
2938 - Fix file ownerships for /etc/bacula and Bacula's working dir
2939 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2940 - Disable GNOME on RH7
2941 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2942 - Red Hat and look alikes have mtx RPM, do not build/package our version
2943 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2944 - minor edit to _dist for SLES9 compatibility
2945 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2947 - kern changed location of pdf files and html manual in docs package
2948 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2950 - add docs (from prebuilt tarball) and rescue packages back in
2951 - remove dvd-freespace and dvd-writepart files, add dvd-handler
2952 - remove 3 of 4 sqlite script patches as not needed
2953 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2955 - remove docs and rescue sections (remove static fd)
2956 - add dvd-freespace and dvd-writepart files
2957 - update depkgs to 22Jun05
2958 - change database update to 8 to 9
2959 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2960 - minor cleanups before 1.38 changes
2961 - add popt and popt-devel build dependencies
2962 - add tetex and tetex-dvips dependencies for doc build
2963 - replace deprecated Copyright tag with License
2964 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2965 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
2966 - conflict with sqlite packages. remove readline dependency.
2967 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2968 - release 1.36.3 update docs
2969 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2970 - add centos4 build tag
2971 - add x86_64 build tag
2972 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2973 - add rhel4 build tag
2974 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
2975 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2976 - add rhel3 build tag
2977 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2978 - fix tray-monitor.conf for noreplace
2979 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2980 - fix distribution check for Fedora and Whitebox
2981 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2982 - add logwatch script
2984 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2985 - add build for Fedora Core 3 (linc now included in ORDit2)
2986 - add mysql4 define for Mandrake 10.1
2987 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2988 - fix {group_file} variable in post scripts
2989 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
2990 - add distribution checking and custom Distribution tag
2991 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2992 - ASSIGNMENT OF COPYRIGHT
2993 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
2994 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
2995 - all right, title and interest in and to the copyright in this software RPM
2996 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
2997 - free of all liens, encumbrances or any known claims against said copyright.
2998 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3000 - thanks to Daniel Widyono
3001 - update description for rescue package to describe cdrom creation
3002 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3003 - update depkgs to 29Oct04
3004 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3005 - add cdrom rescue to bacula-rescue package
3006 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3007 - misc fixes from 1.36.0 suse feedback
3008 - fix situation where sqlite database exists but sqlite has been removed.
3009 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3010 - remove tray-monitor from RH8 build
3011 - fix permissions on tray-monitor files
3012 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3013 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
3014 - change database update to 7 to 8 upgrade,
3015 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
3016 - build in 30Jul04, add freetype dependancy to gnome package.
3017 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3018 - add documentation to console for groupadd
3019 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3020 - add support for running daemons as root.bacula
3021 - correct for change in location of floppy rescue files in 1.35.2
3022 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
3023 - updated depgkgs to 30Jul04
3024 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3025 - really, really fix symlink creation for gconsole
3026 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3027 - fix symlink creation in gconsole post install
3028 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3029 - fixed error in gconsole post script
3030 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3031 - add check for gconsole symlink before trying to create it
3032 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3033 - fix some minor permissions issues on doc files that CVS won't let us fix
3034 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3035 - add pkgconfig to BuildRequires
3036 - clean up gnome1/2 menu entries for appropriate packages
3037 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3038 - tightened up doc distribution
3039 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3040 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
3041 - rpm's horrible bug that prevents nested conditional macros prevents me
3042 - from implementing these 2 separate approaches within the conditionals which
3043 - create the separate server packages.
3044 - the solution adopted is to remove the gnome-console files from the server packages
3045 - so bacula-gconsole is now an add on for both client and server packages.
3046 - this also now allows the server packages to be install on machines without
3047 - an X-server and we can still maintain a single spec file.
3048 - added tests to make sure we have defined platform and database macros.
3049 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3050 - corrected mysql prerequisites for suse
3051 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3052 - replaced all cp commands with cp -p
3053 - removed addition of a+x permissions on gnome-console
3054 - corrected permissions on init scripts
3055 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3056 - corrected creation of sqlite_bindir in install from !mysql to sqlite
3058 - various cleanup patches from Michael K. Johnson:
3059 - corrected post install routines for nicer chkconfig
3060 - removed chmod changes in post routines and moved to install section
3061 - removed interactive nature of post routine for rescue package
3062 - added description of building rescue disks to the description of rescue package
3063 - added clean of build root to beginning of install
3064 - removed specifying attr in all file lists
3065 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3066 - added bconsole to client package
3067 - added gconsole package as add-on to client
3068 - removed spurious dependancies on updatedb package (!cut/paste)
3069 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3070 - added updatedb package
3071 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3072 - added postgresql package
3073 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3074 - corrected the if else logic in the dependancy sections
3075 - changes for 1.34 release
3076 - /etc/bacula/console is now /etc/bacula/bconsole
3077 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
3078 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
3079 - /usr/sbin/smtp is now /usr/sbin/bsmtp
3080 - added new /etc/bacula/drop_mysql_database
3081 - added new /etc/bacula/drop_sqlite_database
3082 - added new /etc/bacula/grant_sqlite_privileges
3083 - added new generic bacula database scripts in /etc/bacula
3084 - added pre-install sections to check for database versions older than 6
3085 - added check for /etc/bacula/console.conf and copy to bconsole.conf
3086 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3087 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
3088 - added testing for existing databases before executing any of the database creation scripts
3089 - added defines working_dir and sqlite_bindir in place of hard coded paths
3090 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3091 - added build configuration for SuSE.
3092 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
3093 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3094 - added patch for create_sqlite_database to fix the installed bindir
3095 - added execute of create_sqlite_database to post of sqlite package
3096 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3097 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
3098 - added bacula-fd as Requires for rescue package
3099 - added build tag for Fedora Core 1
3100 - cleaned up dependancies for all builds
3101 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3102 - removed rh_version from package names
3103 - added platform build configuration section to beginning of file
3104 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3105 - removed make_static_bacula script from rescue package install
3106 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3107 - Added define at top of file for depkgs version
3108 - Added rescue sub-package
3109 - Moved requires statements into proper sub-package locations
3110 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3111 - Corrected Requires for Gnome 1.4/2.0 builds
3112 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3113 - Added separate source declaration for depkgs
3114 - added patch for make_catalog_backup script
3115 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3116 - Misc changes to mysql/sqlite build and rh7/8 menu differences
3117 - Added rh_version to sub-package names
3118 - Added installed but missing file /etc/bacula/gconsole
3119 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
3120 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
3121 - Update spec for version 1.31 and combine client
3122 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>