3 # Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
5 # Platform Build Configuration
7 # basic defines for every build
10 %define _rescuever 3.0.2
11 %define docs_version 3.0.2
12 %define depkgs_version 18Feb09
13 %define depkgs_qt_version 28Jul09
14 %define _packager D. Scott Barninger <barninger@fairfieldcomputers.com>
17 %{?single_dir_install:%define single_dir 1}
19 # Installation Directory locations
21 %define _prefix /opt/bacula
22 %define _sbindir /opt/bacula/bin
23 %define _subsysdir /opt/bacula/working
24 %define sqlite_bindir /opt/bacula/sqlite
25 %define _mandir /usr/share/man
26 %define sysconf_dir /opt/bacula/etc
27 %define script_dir /opt/bacula/scripts
28 %define working_dir /opt/bacula/working
29 %define pid_dir /opt/bacula/working
30 %define plugin_dir /opt/bacula/plugins
31 %define lib_dir /opt/bacula/lib
34 %define _sbindir %_prefix/sbin
35 %define _subsysdir /var/lock/subsys
36 %define sqlite_bindir %_libdir/bacula/sqlite
37 %define _mandir %_prefix/share/man
38 %define sysconf_dir /etc/bacula
39 %define script_dir %_libdir/bacula
40 %define working_dir /var/lib/bacula
41 %define pid_dir /var/run
42 %define plugin_dir %_libdir/bacula/plugins
43 %define lib_dir %_libdir/bacula/lib
46 # Daemon user:group Don't change them unless you know what you are doing
47 %define director_daemon_user bacula
48 %define storage_daemon_user bacula
49 %define file_daemon_user root
50 %define daemon_group bacula
51 # group that has write access to tape devices, usually disk on Linux
52 %define storage_daemon_group disk
56 BuildRequires: libacl-devel
58 # probems with mandriva build:
59 # nothing provides libbonobo2_0-devel, nothing provides libbonoboui2_0-devel
61 # set Macros by opensuse_bs, see http://en.opensuse.org/Build_Service/cross_distribution_package_how_to
62 #openSUSE 11.1 %if 0%{?suse_version} == 1110
63 #openSUSE 11.0 %if 0%{?suse_version} == 1100
64 #openSUSE 10.3 %if 0%{?suse_version} == 1030
65 #openSUSE 10.2 %if 0%{?suse_version} == 1020
66 #SUSE Linux 10.1 %if 0%{?suse_version} == 1010
67 #SUSE Linux 10.0 %if 0%{?suse_version} == 1000
68 #SUSE Linux 9.3 %if 0%{?suse_version} == 930
69 #SLES 9 %if 0%{?sles_version} == 9 also set: %if 0%{?suse_version} == 910
70 #SLE 10 %if 0%{?sles_version} == 10 also set: %if 0%{?suse_version} == 1010
71 #SLE 11 %if 0%{?sles_version} == 11 also set: %if 0%{?suse_version} == 1110
72 #CentOS 5 %if 0%{?centos_version} == 501
73 #RHEL 4 %if 0%{?rhel_version} == 406
74 #RHEL 5 %if 0%{?rhel_version} == 501
75 #Fedora 6 with Extras %if 0%{?fedora_version} == 6
76 #Fedora 7 with Extras %if 0%{?fedora_version} == 7
77 #Fedora 8 with Extras %if 0%{?fedora_version} == 8
78 #Fedora 9 with Extras %if 0%{?fedora_version} == 9
79 #Fedora 10 with Extras %if 0%{?fedora_version} == 10
80 #Mandriva 2006 %if 0%{?mandriva_version} == 2006
81 #Mandriva 2007 %if 0%{?mandriva_version} == 2007
82 #Mandriva 2008 %if 0%{?mandriva_version} == 2008
86 # am I running in opensuse build service?
87 # TODO: seems to make problems
89 # choose database backend here
90 # postgres, mysql, sqlite
91 %define build_postgresql 1
93 # Build Service: Determine Distribution
96 %define build_x86_64 1
100 %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
101 BuildRequires: GConf2-devel
102 BuildRequires: freetype-devel
103 BuildRequires: libtermcap-devel
104 BuildRequires: shadow-utils
108 %if 0%{?mandriva_version} == 2007
110 %define _dist "Mandriva 2007"
114 %if 0%{?fedora_version} == 8
116 %define _dist "Fedora Core 8"
117 BuildRequires: redhat-release
120 %if 0%{?fedora_version} == 9
122 %define _dist "Fedora Core 9"
123 BuildRequires: redhat-release
127 %if 0%{?fedora_version} == 10
129 %define _dist "Fedora Core 10"
130 BuildRequires: PolicyKit-gnome
131 BuildRequires: fedora-release
134 %if 0%{?fedora_version} == 11
136 %define _dist "Fedora Core 11"
137 BuildRequires: PolicyKit-gnome
138 BuildRequires: fedora-release
141 %if 0%{?rhel_version} == 501
142 %define build_rhel5 1
143 %define _dist "Red Hat Enterprise Linux Server release 5"
144 BuildRequires: redhat-release
147 %if 0%{?rhel_version} == 406
148 %define build_rhel4 1
149 %define _dist "Red Hat Enterprise Linux Server release 4"
150 BuildRequires: redhat-release
154 %if 0%{?centos_version} == 501
155 %define build_centos5 1
156 %define _dist "CentOS 5"
157 BuildRequires: redhat-release
161 %if 0%{?suse_version} == 1020
162 %define build_su102 1
163 %define _dist "OpenSUSE 10.2"
164 BuildRequires: suse-release
168 %if 0%{?suse_version} == 1030
169 %define build_su103 1
170 %define _dist "OpenSUSE 10.3"
171 BuildRequires: suse-release
174 %if 0%{?suse_version} == 1100
175 %define build_su110 1
176 %define _dist "SUSE 11"
177 BuildRequires: suse-release
181 %if 0%{?suse_version} == 1110
182 %define build_su111 1
183 %define _dist "SUSE 11"
187 %if 0%{?sles_version} == 9
189 %define _dist "SLES 9"
193 %if 0%{?sles_version} == 10
195 %define _dist "SLE 10"
199 %if 0%{?sles_version} == 11
200 %define build_su111 1
201 %define _dist "SLES 11"
208 # any patches for this release
209 # be sure to check the setup section for patch macros
211 #--------------------------------------------------------------------------
212 # it should not be necessary to change anything below here for a release
213 # except for patch macros in the setup section
214 #--------------------------------------------------------------------------
216 %{?contrib_packager:%define _packager %{contrib_packager}}
218 Summary: Bacula - The Network Backup Solution
222 Group: System Environment/Daemons
224 BuildRoot: %{_tmppath}/%{name}-root
225 URL: http://www.bacula.org/
226 Vendor: The Bacula Team
227 Packager: %{_packager}
230 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
231 Source1: Release_Notes-%{version}-%{release}.tar.gz
232 Source2: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
233 Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
234 Source4: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
235 Source5: http://www.prdownloads.sourceforge.net/bacula/depkgs-qt-%{depkgs_qt_version}.tar.gz
236 Source6: bacula-2.2.7-postgresql.patch
238 # define the basic package description
239 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
240 %define blurb2 Bacula is a set of computer programs that permit you (or the system
241 %define blurb3 administrator) to manage backup, recovery, and verification of computer
242 %define blurb4 data across a network of computers of different kinds. In technical terms,
243 %define blurb5 it is a network client/server based backup program. Bacula is relatively
244 %define blurb6 easy to use and efficient, while offering many advanced storage management
245 %define blurb7 features that make it easy to find and recover lost or damaged files.
246 %define blurb8 Bacula source code has been released under the GPL version 2 license.
248 # Source directory locations
249 %define _docsrc ../%{name}-docs-%{docs_version}
250 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
251 %define depkgs ../depkgs
252 %define depkgs_qt ../depkgs-qt
254 %define user_file /etc/passwd
255 %define group_file /etc/group
258 %define useradd /usr/sbin/useradd
259 %define groupadd /usr/sbin/groupadd
260 %define usermod /usr/sbin/usermod
262 # platform defines - set one below or define the build_xxx on the command line
265 %{?build_rh7:%define rh7 1}
267 %{?build_rh8:%define rh8 1}
269 %{?build_rh9:%define rh9 1}
272 %{?build_fc1:%define fc1 1}
274 %{?build_fc3:%define fc3 1}
276 %{?build_fc4:%define fc4 1}
278 %{?build_fc5:%define fc5 1}
280 %{?build_fc6:%define fc6 1}
282 %{?build_fc7:%define fc7 1}
284 %{?build_fc8:%define fc8 1}
286 %{?build_fc9:%define fc9 1}
287 # Whitebox Enterprise build
289 %{?build_wb3:%define wb3 1}
290 # RedHat Enterprise builds
292 %{?build_rhel3:%define rhel3 1}
293 %{?build_rhel3:%define wb3 1}
295 %{?build_rhel4:%define rhel4 1}
296 %{?build_rhel4:%define fc3 1}
298 %{?build_rhel5:%define rhel5 1}
299 %{?build_rhel5:%define fc6 1}
302 %{?build_centos3:%define centos3 1}
303 %{?build_centos3:%define wb3 1}
305 %{?build_centos4:%define centos4 1}
306 %{?build_centos4:%define fc3 1}
308 %{?build_centos5:%define centos5 1}
309 %{?build_centos5:%define fc6 1}
312 %{?build_sl3:%define sl3 1}
313 %{?build_sl3:%define wb3 1}
315 %{?build_sl4:%define sl4 1}
316 %{?build_sl4:%define fc3 1}
318 %{?build_sl5:%define sl5 1}
319 %{?build_sl5:%define fc6 1}
322 %{?build_su9:%define su9 1}
324 %{?build_su10:%define su10 1}
326 %{?build_su102:%define su102 1}
328 %{?build_su103:%define su103 1}
330 %{?build_su110:%define su110 1}
332 %{?build_su111:%define su111 1}
335 %{?build_mdk:%define mdk 1}
337 %{?build_mdv:%define mdv 1}
338 %{?build_mdv:%define mdk 1}
341 %define client_only 0
342 %{?build_client_only:%define client_only 1}
344 # test for a platform definition
345 %if !%{rh7} && !%{rh8} && !%{rh9} && !%{fc1} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && !%{wb3} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk}
346 %{error: You must specify a platform. Please examine the spec file.}
351 # set for database support desired or define the build_xxx on the command line
353 %{?build_mysql:%define mysql 1}
354 # if using mysql 4.x define this and mysql above
355 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
357 %{?build_mysql4:%define mysql4 1}
358 %{?build_mysql4:%define mysql 1}
359 # if using mysql 5.x define this and mysql above
360 # currently: SuSE 10.1 and Fedora Core 5
362 %{?build_mysql5:%define mysql5 1}
363 %{?build_mysql5:%define mysql 1}
365 %{?build_sqlite:%define sqlite 1}
367 %{?build_postgresql:%define postgresql 1}
369 # test for a database definition
370 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
371 %{error: You must specify database support. Please examine the spec file.}
376 %define db_backend mysql
379 %define db_backend sqlite3
382 %define db_backend postgresql
387 %{?build_x86_64:%define x86_64 1}
389 # check what distribution we are
390 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
391 %define _dist %(grep Red /etc/redhat-release)
393 %if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8} || %{fc9}
394 %define _dist %(grep Fedora /etc/redhat-release)
396 %if %{centos5} || %{centos4} || %{centos3}
397 %define _dist %(grep CentOS /etc/redhat-release)
399 %if %{sl5} ||%{sl4} || %{sl3}
400 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
402 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
403 %define _dist %(grep Fedora /etc/redhat-release)
405 %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
406 %define _dist %(grep Fedora /etc/redhat-release)
408 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
409 %define _dist %(grep White /etc/whitebox-release)
411 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
412 %define _dist %(grep -i SuSE /etc/SuSE-release)
415 %define _dist %(grep Mand /etc/mandrake-release)
417 %{?DISTNAME:%define _dist %{DISTNAME}}
418 Distribution: %{_dist}
420 # Should we build gconsole, possible only if gtk= >= 2.4 available.
421 # leaving all the BuildRequires and Requires in place below for now.
422 # su10, fc3 and fc4 now nobuild, tray monitor fails to build as of 2.2.1
423 # release as it needs 2.10
426 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
429 %if %{mdk} && ! %{mdv}
433 # specifically disallow gconsole if desired
434 %{?nobuild_gconsole:%define gconsole 0}
436 # specifically disallow rescue files
438 %{?build_rescue:%define rescue 1}
440 # Should we build wxconsole, only wxWidgets >=2.6 is supported
441 # SuSE 10 and FC4 and newer
443 %{?build_wxconsole:%define wxconsole 1}
445 # Should we build bat
448 %{?build_bat:%define bat 1}
450 # should we turn on python support
452 %{?build_python:%define python 1}
454 # specifically disallow build of mtx package if desired
456 %{?nobuild_mtx:%define mtx 0}
458 # do we need to patch for old postgresql version?
460 %{?build_old_pgsql:%define old_pgsql 1}
462 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
464 %define manpage_ext bz2
466 %define manpage_ext gz
469 # for client only build
480 %{expand: %%define gccver %(rpm -q --queryformat %%{version} gcc)}
481 %{expand: %%define gccrel %(rpm -q --queryformat %%{release} gcc)}
483 BuildRequires: gcc, gcc-c++, make, autoconf
484 BuildRequires: ncurses-devel, perl
485 BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, zlib-devel
486 BuildRequires: openssl-devel
488 BuildRequires: libxml2-devel
491 BuildRequires: python, python-devel
492 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
495 BuildRequires: pkgconfig, pango-devel, atk-devel
498 BuildRequires: pkgconfig
501 # Rh qt4 packages don't have a provide for, guess what, qt!
502 # still broken in fc8, ok in fc9
503 # so fix for broken rh
505 %if %{rhel5} || %{centos5} || %{sl5} || %{fc5} || %{fc6} || %{fc7} || %{fc8}
508 %if %{bat} && ! %{broken_rh}
509 BuildRequires: qt-devel >= 4.2
511 %if %{bat} && %{broken_rh}
512 BuildRequires: qt4-devel >= 4.2
516 BuildRequires: libtermcap-devel
517 BuildRequires: glibc-devel >= 2.2
518 BuildRequires: libxml-devel
521 BuildRequires: termcap
522 BuildRequires: glibc-devel >= 2.3
524 %if %{su9} && %{gconsole}
525 BuildRequires: libgnome >= 2.0
526 BuildRequires: gtk2-devel >= 2.0
527 BuildRequires: libgnomeui-devel >= 2.0
528 BuildRequires: ORBit2-devel
529 BuildRequires: libart_lgpl-devel >= 2.0
530 BuildRequires: libbonobo-devel >= 2.0
531 BuildRequires: libbonoboui-devel >= 2.0
532 BuildRequires: bonobo-activation-devel
533 BuildRequires: gconf2-devel
534 BuildRequires: linc-devel
535 BuildRequires: freetype2-devel
538 BuildRequires: termcap
539 BuildRequires: glibc-devel >= 2.3
541 %if %{su10} && %{gconsole}
542 BuildRequires: libgnome >= 2.12
543 BuildRequires: gtk2-devel >= 2.8
544 BuildRequires: libgnomeui-devel >= 2.12
545 BuildRequires: ORBit2-devel
546 BuildRequires: libart_lgpl-devel >= 2.3
547 BuildRequires: libbonobo-devel >= 2.10
548 BuildRequires: libbonoboui-devel >= 2.10
549 BuildRequires: bonobo-activation-devel
550 BuildRequires: gconf2-devel
551 BuildRequires: freetype2-devel
552 BuildRequires: cairo-devel
553 BuildRequires: fontconfig-devel >= 2.3
554 BuildRequires: gnome-vfs2-devel >= 2.12
555 BuildRequires: libpng-devel
558 BuildRequires: termcap
559 BuildRequires: glibc-devel >= 2.5
561 %if %{su102} && %{gconsole}
562 BuildRequires: libgnome >= 2.16
563 BuildRequires: gtk2-devel >= 2.10
564 BuildRequires: libgnomeui-devel >= 2.16
565 BuildRequires: ORBit2-devel
566 BuildRequires: libart_lgpl-devel >= 2.3
567 BuildRequires: libbonobo-devel >= 2.16
568 BuildRequires: libbonoboui-devel >= 2.16
569 BuildRequires: bonobo-activation-devel
570 BuildRequires: gconf2-devel
571 BuildRequires: freetype2-devel
572 BuildRequires: cairo-devel
573 BuildRequires: fontconfig-devel >= 2.4
574 BuildRequires: gnome-vfs2-devel >= 2.16
575 BuildRequires: libpng-devel
578 BuildRequires: termcap
579 BuildRequires: glibc-devel >= 2.6
581 %if %{su103} && %{gconsole}
582 BuildRequires: libgnome >= 2.20
583 BuildRequires: gtk2-devel >= 2.12
584 BuildRequires: libgnomeui-devel >= 2.20
585 BuildRequires: ORBit2-devel
586 BuildRequires: libart_lgpl-devel >= 2.3
587 BuildRequires: libbonobo-devel >= 2.20
588 BuildRequires: libbonoboui-devel >= 2.20
589 BuildRequires: bonobo-activation-devel
590 BuildRequires: gconf2-devel
591 BuildRequires: freetype2-devel
592 BuildRequires: cairo-devel
593 BuildRequires: fontconfig-devel >= 2.4
594 BuildRequires: gnome-vfs2-devel >= 2.20
595 BuildRequires: libpng-devel
598 BuildRequires: termcap
599 BuildRequires: glibc-devel >= 2.8
601 %if %{su110} && %{gconsole}
602 BuildRequires: libgnome >= 2.22
603 BuildRequires: gtk2-devel >= 2.12
604 BuildRequires: libgnomeui-devel >= 2.22
605 BuildRequires: ORBit2-devel
606 BuildRequires: libart_lgpl-devel >= 2.3
607 BuildRequires: libbonobo-devel >= 2.22
608 BuildRequires: libbonoboui-devel >= 2.22
609 BuildRequires: bonobo-activation-devel
610 BuildRequires: gconf2-devel
611 BuildRequires: freetype2-devel
612 BuildRequires: cairo-devel
613 BuildRequires: fontconfig-devel >= 2.4
614 BuildRequires: gnome-vfs2-devel >= 2.22
615 BuildRequires: libpng-devel
618 BuildRequires: termcap
619 BuildRequires: glibc-devel >= 2.9
621 %if %{su111} && %{gconsole}
622 BuildRequires: libgnome >= 2.24
623 BuildRequires: gtk2-devel >= 2.14
624 BuildRequires: libgnomeui-devel >= 2.24
625 BuildRequires: ORBit2-devel
626 BuildRequires: libart_lgpl-devel >= 2.3
627 BuildRequires: libbonobo-devel >= 2.24
628 BuildRequires: libbonoboui-devel >= 2.24
629 BuildRequires: bonobo-activation-devel
630 BuildRequires: gconf2-devel
631 BuildRequires: freetype2-devel
632 BuildRequires: cairo-devel
633 BuildRequires: fontconfig-devel >= 2.6
634 BuildRequires: gnome-vfs2-devel >= 2.24
635 BuildRequires: libpng-devel
638 BuildRequires: libtermcap-devel
639 BuildRequires: libstdc++-static-devel
640 BuildRequires: glibc-static-devel
641 BuildRequires: glibc-devel >= 2.3
643 %if %{mdk} && !%{mdv} && %{gconsole}
644 BuildRequires: gtk2-devel >= 2.0
645 BuildRequires: libgnomeui2-devel >= 2.0
646 BuildRequires: libORBit2-devel
647 BuildRequires: libart_lgpl-devel >= 2.0
648 BuildRequires: libbonobo2_0-devel
649 BuildRequires: libbonoboui2_0-devel
650 BuildRequires: libbonobo-activation-devel
651 BuildRequires: libGConf2-devel
652 BuildRequires: freetype2-devel
654 %if %{mdv} && %{gconsole}
655 BuildRequires: gtk2-devel >= 2.8
656 BuildRequires: libgnomeui2-devel >= 2.10
657 BuildRequires: libORBit2-devel
658 BuildRequires: libart_lgpl-devel >= 2.3
659 BuildRequires: libbonobo2_0-devel
660 BuildRequires: libbonoboui2_0-devel
661 BuildRequires: libbonobo-activation-devel
662 BuildRequires: libGConf2-devel
663 BuildRequires: freetype2-devel
666 BuildRequires: libtermcap-devel
667 BuildRequires: glibc-devel >= 2.3
669 %if %{fc3} && %{gconsole}
670 BuildRequires: gtk2-devel >= 2.4
671 BuildRequires: libgnomeui-devel >= 2.8
672 BuildRequires: ORBit2-devel
673 BuildRequires: libart_lgpl-devel >= 2.3
674 BuildRequires: libbonobo-devel >= 2.8
675 BuildRequires: libbonoboui-devel >= 2.8
676 BuildRequires: bonobo-activation-devel
677 BuildRequires: GConf2-devel
678 BuildRequires: freetype-devel
681 BuildRequires: libtermcap-devel
682 BuildRequires: glibc-devel >= 2.3
684 %if %{fc4} && %{gconsole}
685 BuildRequires: gtk2-devel >= 2.6
686 BuildRequires: libgnomeui-devel >= 2.10
687 BuildRequires: ORBit2-devel
688 BuildRequires: libart_lgpl-devel >= 2.3
689 BuildRequires: libbonobo-devel >= 2.8
690 BuildRequires: libbonoboui-devel >= 2.8
691 BuildRequires: bonobo-activation-devel
692 BuildRequires: GConf2-devel
693 BuildRequires: freetype-devel
696 BuildRequires: libtermcap-devel
697 BuildRequires: glibc-devel >= 2.4
699 %if %{fc5} && %{gconsole}
700 BuildRequires: gtk2-devel >= 2.8
701 BuildRequires: libgnomeui-devel >= 2.14
702 BuildRequires: ORBit2-devel
703 BuildRequires: libart_lgpl-devel >= 2.3
704 BuildRequires: libbonobo-devel >= 2.14
705 BuildRequires: libbonoboui-devel >= 2.14
706 BuildRequires: GConf2-devel
707 BuildRequires: freetype-devel
710 BuildRequires: libtermcap-devel
711 BuildRequires: glibc-devel >= 2.5
713 %if %{fc6} && %{gconsole}
714 BuildRequires: gtk2-devel >= 2.10
715 BuildRequires: libgnomeui-devel >= 2.16
716 BuildRequires: ORBit2-devel
717 BuildRequires: libart_lgpl-devel >= 2.3
718 BuildRequires: libbonobo-devel >= 2.16
719 BuildRequires: libbonoboui-devel >= 2.16
720 BuildRequires: GConf2-devel
721 BuildRequires: freetype-devel
724 BuildRequires: libtermcap-devel
725 BuildRequires: glibc-devel >= 2.5
727 %if %{fc7} && %{gconsole}
728 BuildRequires: gtk2-devel >= 2.10
729 BuildRequires: libgnomeui-devel >= 2.18
730 BuildRequires: ORBit2-devel
731 BuildRequires: libart_lgpl-devel >= 2.3
732 BuildRequires: libbonobo-devel >= 2.18
733 BuildRequires: libbonoboui-devel >= 2.18
734 BuildRequires: GConf2-devel
735 BuildRequires: freetype-devel
738 BuildRequires: libtermcap-devel
739 BuildRequires: glibc-devel >= 2.7
741 %if %{fc8} && %{gconsole}
742 BuildRequires: gtk2-devel >= 2.12
743 BuildRequires: libgnomeui-devel >= 2.20
744 BuildRequires: ORBit2-devel
745 BuildRequires: libart_lgpl-devel >= 2.3
746 BuildRequires: libbonobo-devel >= 2.20
747 BuildRequires: libbonoboui-devel >= 2.20
748 BuildRequires: GConf2-devel
749 BuildRequires: freetype-devel
752 BuildRequires: glibc-devel >= 2.8
753 BuildRequires: zlib-static
755 %if %{fc9} && %{gconsole}
756 BuildRequires: gtk2-devel >= 2.12
757 BuildRequires: libgnomeui-devel >= 2.22
758 BuildRequires: ORBit2-devel
759 BuildRequires: libart_lgpl-devel >= 2.3
760 BuildRequires: libbonobo-devel >= 2.22
761 BuildRequires: libbonoboui-devel >= 2.22
762 BuildRequires: GConf2-devel
763 BuildRequires: freetype-devel
765 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
766 BuildRequires: libtermcap-devel
767 BuildRequires: glibc-devel >= 2.3
769 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && %{gconsole}
770 BuildRequires: gtk2-devel >= 2.0
771 BuildRequires: libgnomeui-devel >= 2.0
772 BuildRequires: ORBit2-devel
773 BuildRequires: libart_lgpl-devel >= 2.0
774 BuildRequires: libbonobo-devel >= 2.0
775 BuildRequires: libbonoboui-devel >= 2.0
776 BuildRequires: bonobo-activation-devel
777 BuildRequires: GConf2-devel
778 BuildRequires: linc-devel
779 BuildRequires: freetype-devel
782 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
783 BuildRequires: mysql-devel >= 3.23
786 %if %{mysql} && %{mysql4}
787 BuildRequires: mysql-devel >= 4.0
790 %if %{mysql} && %{mysql5}
791 BuildRequires: mysql-devel >= 5.0
794 %if %{postgresql} && %{wb3}
795 BuildRequires: rh-postgresql-devel >= 7
798 %if %{postgresql} && ! %{wb3}
799 BuildRequires: postgresql-devel >= 7
803 BuildRequires: wxGTK-devel >= 2.6
827 Summary: Bacula - The Network Backup Solution
828 Group: System Environment/Daemons
829 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
830 Conflicts: bacula-client
831 Obsoletes: bacula-rescue
833 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
837 Requires: ncurses, libstdc++, zlib, openssl
840 Requires: glibc >= 2.2
843 %if %{su9} || %{su10}
844 Requires: glibc >= 2.3
848 Requires: glibc >= 2.5
852 Requires: glibc >= 2.6
856 Requires: glibc >= 2.8
860 Requires: glibc >= 2.9
863 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
864 Requires: glibc >= 2.3
868 Requires: glibc >= 2.4
872 Requires: glibc >= 2.5
876 Requires: glibc >= 2.7
880 Requires: glibc >= 2.8
883 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
884 Requires: mysql >= 3.23
885 Requires: mysql-server >= 3.23
887 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
888 Requires: mysql >= 4.0
889 Requires: mysql-server >= 4.0
891 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk} && %{mysql5}
892 Requires: mysql >= 5.0
893 Requires: mysql-server >= 5.0
896 %if %{mysql} && %{su9} && ! %{mysql4}
897 Requires: mysql >= 3.23
898 Requires: mysql-client >= 3.23
900 %if %{mysql} && %{su9} && %{mysql4}
901 Requires: mysql >= 4.0
902 Requires: mysql-client >= 4.0
904 %if %{mysql} && %{su10} && %{mysql4}
905 Requires: mysql >= 4.0
906 Requires: mysql-client >= 4.0
908 %if %{mysql} && %{su10} && %{mysql5}
909 Requires: mysql >= 5.0
910 Requires: mysql-client >= 5.0
912 %if %{mysql} && %{su102} && %{mysql5}
913 Requires: mysql >= 5.0
914 Requires: mysql-client >= 5.0
916 %if %{mysql} && %{su103} && %{mysql5}
917 Requires: mysql >= 5.0
918 Requires: mysql-client >= 5.0
920 %if %{mysql} && %{su110} && %{mysql5}
921 Requires: mysql >= 5.0
922 Requires: mysql-client >= 5.0
924 %if %{mysql} && %{su111} && %{mysql5}
925 Requires: mysql >= 5.0
926 Requires: mysql-client >= 5.0
929 %if %{mysql} && %{mdk} && ! %{mysql4}
930 Requires: mysql >= 3.23
931 Requires: mysql-client >= 3.23
933 %if %{mysql} && %{mdk} && %{mysql4}
934 Requires: mysql >= 4.0
935 Requires: mysql-client >= 4.0
938 %if %{postgresql} && %{wb3}
939 Requires: rh-postgresql >= 7
940 Requires: rh-postgresql-server >= 7
942 %if %{postgresql} && ! %{wb3}
943 Requires: postgresql >= 7
944 Requires: postgresql-server >= 7
954 %description postgresql
958 Requires: python >= %{pyver}
972 This build requires MySQL to be installed separately as the catalog database.
975 This build requires PostgreSQL to be installed separately as the catalog database.
978 This build incorporates sqlite3 as the catalog database, statically compiled.
981 This build includes python scripting support.
984 %if ! %{client_only} && %{mtx}
986 Summary: Bacula - The Network Backup Solution
987 Group: System Environment/Daemons
991 This is Bacula's version of mtx tape utilities for Linux distributions that
992 do not provide their own mtx package
996 Summary: Bacula - The Network Backup Solution
997 Group: System Environment/Daemons
999 Conflicts: bacula-mysql
1000 Conflicts: bacula-sqlite
1001 Conflicts: bacula-postgresql
1002 Obsoletes: bacula-rescue
1004 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1008 Requires: libstdc++, zlib, openssl
1011 Requires: glibc >= 2.2
1012 Requires: libtermcap
1014 %if %{su9} || %{su10}
1015 Requires: glibc >= 2.3
1019 Requires: glibc >= 2.5
1023 Requires: glibc >= 2.6
1027 Requires: glibc >= 2.8
1031 Requires: glibc >= 2.9
1034 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
1035 Requires: glibc >= 2.3
1036 Requires: libtermcap
1039 Requires: glibc >= 2.4
1040 Requires: libtermcap
1042 %if %{fc6} || %{fc7}
1043 Requires: glibc >= 2.5
1044 Requires: libtermcap
1047 Requires: glibc >= 2.7
1048 Requires: libtermcap
1051 Requires: glibc >= 2.8
1055 Requires: python >= %{pyver}
1069 This is the File daemon (Client) only package. It includes the command line
1072 This build includes python scripting support.
1075 %if ! %{client_only}
1078 Summary: Bacula - The Network Backup Solution
1079 Group: System Environment/Daemons
1081 %description updatedb
1092 This package installs scripts for updating older versions of the bacula
1098 Summary: Bacula - The Network Backup Solution
1099 Group: System Environment/Daemons
1100 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
1103 %if %{gconsole} && %{su9}
1104 Requires: gtk2 >= 2.0
1105 Requires: libgnome >= 2.0
1106 Requires: libgnomeui >= 2.0
1107 Requires: glibc >= 2.3
1109 Requires: libart_lgpl >= 2.0
1110 Requires: libbonobo >= 2.0
1111 Requires: libbonoboui >= 2.0
1112 Requires: bonobo-activation
1117 %if %{gconsole} && %{su10}
1118 Requires: gtk2 >= 2.8
1119 Requires: libgnome >= 2.12
1120 Requires: libgnomeui >= 2.12
1121 Requires: glibc >= 2.3
1123 Requires: libart_lgpl >= 2.3
1124 Requires: libbonobo >= 2.10
1125 Requires: libbonoboui >= 2.10
1126 Requires: bonobo-activation
1130 Requires: fontconfig >= 2.3
1131 Requires: gnome-vfs2 >= 2.12
1134 %if %{gconsole} && %{su102}
1135 Requires: gtk2 >= 2.10
1136 Requires: libgnome >= 2.16
1137 Requires: libgnomeui >= 2.16
1138 Requires: glibc >= 2.5
1140 Requires: libart_lgpl >= 2.3
1141 Requires: libbonobo >= 2.16
1142 Requires: libbonoboui >= 2.16
1143 Requires: bonobo-activation
1147 Requires: fontconfig >= 2.4
1148 Requires: gnome-vfs2 >= 2.16
1151 %if %{gconsole} && %{su103}
1152 Requires: gtk2 >= 2.12
1153 Requires: libgnome >= 2.20
1154 Requires: libgnomeui >= 2.20
1155 Requires: glibc >= 2.6
1157 Requires: libart_lgpl >= 2.3
1158 Requires: libbonobo >= 2.20
1159 Requires: libbonoboui >= 2.20
1160 Requires: bonobo-activation
1164 Requires: fontconfig >= 2.4
1165 Requires: gnome-vfs2 >= 2.20
1168 %if %{gconsole} && %{su110}
1169 Requires: gtk2 >= 2.12
1170 Requires: libgnome >= 2.22
1171 Requires: libgnomeui >= 2.22
1172 Requires: glibc >= 2.8
1174 Requires: libart_lgpl >= 2.3
1175 Requires: libbonobo >= 2.22
1176 Requires: libbonoboui >= 2.22
1177 Requires: bonobo-activation
1181 Requires: fontconfig >= 2.4
1182 Requires: gnome-vfs2 >= 2.22
1185 %if %{gconsole} && %{su111}
1186 Requires: gtk2 >= 2.14
1187 Requires: libgnome >= 2.24
1188 Requires: libgnomeui >= 2.24
1189 Requires: glibc >= 2.9
1191 Requires: libart_lgpl >= 2.3
1192 Requires: libbonobo >= 2.24
1193 Requires: libbonoboui >= 2.24
1194 Requires: bonobo-activation
1198 Requires: fontconfig >= 2.6
1199 Requires: gnome-vfs2 >= 2.24
1202 %if %{gconsole} && %{mdk} && !%{mdv}
1203 Requires: gtk2 >= 2.0
1204 Requires: libgnomeui2
1205 Requires: glibc >= 2.3
1207 Requires: libart_lgpl >= 2.0
1208 Requires: libbonobo >= 2.0
1209 Requires: libbonoboui >= 2.0
1213 %if %{gconsole} && %{mdv}
1214 Requires: gtk2 >= 2.8
1215 Requires: libgnomeui2
1216 Requires: glibc >= 2.3
1218 Requires: libart_lgpl >= 2.3
1219 Requires: libbonobo >= 2.10
1220 Requires: libbonoboui >= 2.10
1224 %if %{gconsole} && %{fc3}
1225 Requires: gtk2 >= 2.4
1226 Requires: libgnomeui >= 2.8
1227 Requires: glibc >= 2.3
1229 Requires: libart_lgpl >= 2.3
1230 Requires: libbonobo >= 2.8
1231 Requires: libbonoboui >= 2.8
1232 Requires: bonobo-activation
1236 %if %{gconsole} && %{fc4}
1237 Requires: gtk2 >= 2.6
1238 Requires: libgnomeui >= 2.10
1239 Requires: glibc >= 2.3
1241 Requires: libart_lgpl >= 2.3
1242 Requires: libbonobo >= 2.8
1243 Requires: libbonoboui >= 2.8
1244 Requires: bonobo-activation
1248 %if %{gconsole} && %{fc5}
1249 Requires: gtk2 >= 2.8
1250 Requires: libgnomeui >= 2.14
1251 Requires: glibc >= 2.4
1253 Requires: libart_lgpl >= 2.3
1254 Requires: libbonobo >= 2.14
1255 Requires: libbonoboui >= 2.14
1259 %if %{gconsole} && %{fc6}
1260 Requires: gtk2 >= 2.10
1261 Requires: libgnomeui >= 2.16
1262 Requires: glibc >= 2.5
1264 Requires: libart_lgpl >= 2.3
1265 Requires: libbonobo >= 2.16
1266 Requires: libbonoboui >= 2.16
1270 %if %{gconsole} && %{fc7}
1271 Requires: gtk2 >= 2.10
1272 Requires: libgnomeui >= 2.18
1273 Requires: glibc >= 2.5
1275 Requires: libart_lgpl >= 2.3
1276 Requires: libbonobo >= 2.18
1277 Requires: libbonoboui >= 2.18
1281 %if %{gconsole} && %{fc8}
1282 Requires: gtk2 >= 2.12
1283 Requires: libgnomeui >= 2.20
1284 Requires: glibc >= 2.7
1286 Requires: libart_lgpl >= 2.3
1287 Requires: libbonobo >= 2.20
1288 Requires: libbonoboui >= 2.20
1292 %if %{gconsole} && %{fc9}
1293 Requires: gtk2 >= 2.12
1294 Requires: libgnomeui >= 2.22
1295 Requires: glibc >= 2.8
1297 Requires: libart_lgpl >= 2.3
1298 Requires: libbonobo >= 2.22
1299 Requires: libbonoboui >= 2.22
1303 %if %{gconsole} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
1304 Requires: gtk2 >= 2.0
1305 Requires: libgnomeui >= 2.0
1306 Requires: glibc >= 2.3
1308 Requires: libart_lgpl >= 2.0
1309 Requires: libbonobo >= 2.0
1310 Requires: libbonoboui >= 2.0
1311 Requires: bonobo-activation
1316 %if %{gconsole} && %{su9}
1319 %if %{gconsole} && %{su10}
1322 %if %{gconsole} && %{su102}
1325 %if %{gconsole} && %{su103}
1328 %if %{gconsole} && %{su110}
1331 %if %{gconsole} && %{su111}
1334 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1339 %description gconsole
1350 This is the Gnome Console package. It is an add-on to the client or
1356 Summary: Bacula - The Network Backup Solution
1357 Group: System Environment/Daemons
1358 Requires: wxGTK >= 2.6, libstdc++, openssl
1361 %if %{wxconsole} && %{su10}
1362 Requires: gtk2 >= 2.8
1365 %if %{wxconsole} && %{su102}
1366 Requires: gtk2 >= 2.10
1369 %if %{wxconsole} && %{su103}
1370 Requires: gtk2 >= 2.12
1373 %if %{wxconsole} && %{su110}
1374 Requires: gtk2 >= 2.12
1377 %if %{wxconsole} && %{su111}
1378 Requires: gtk2 >= 2.14
1381 %if %{wxconsole} && %{fc3}
1382 Requires: gtk2 >= 2.4
1385 %if %{wxconsole} && %{fc4}
1386 Requires: gtk2 >= 2.6
1389 %if %{wxconsole} && %{fc5}
1390 Requires: gtk2 >= 2.8
1393 %if %{wxconsole} && %{fc6}
1394 Requires: gtk2 >= 2.10
1397 %if %{wxconsole} && %{fc7}
1398 Requires: gtk2 >= 2.10
1401 %if %{wxconsole} && %{fc8}
1402 Requires: gtk2 >= 2.12
1405 %if %{wxconsole} && %{fc9}
1406 Requires: gtk2 >= 2.12
1410 %description wxconsole
1421 This is the WXWindows Console package. It is an add-on to the client or
1427 Summary: Bacula - The Network Backup Solution
1428 Group: System Environment/Daemons
1431 %if %{bat} && %{su10}
1433 Requires: glibc >= 2.4
1434 Requires: fontconfig
1443 %if %{bat} && %{su102}
1445 Requires: glibc >= 2.5
1446 Requires: fontconfig
1455 %if %{bat} && %{su103}
1457 Requires: glibc >= 2.6
1458 Requires: fontconfig
1467 %if %{bat} && %{su110}
1469 Requires: glibc >= 2.8
1470 Requires: fontconfig
1479 %if %{bat} && %{su111}
1481 Requires: glibc >= 2.9
1482 Requires: fontconfig
1491 %if %{bat} && %{fc5}
1493 Requires: glibc >= 2.4
1494 Requires: fontconfig
1498 Requires: qt4 >= 4.2
1503 %if %{bat} && %{fc6}
1505 Requires: glibc >= 2.5
1506 Requires: fontconfig
1510 Requires: qt4 >= 4.2
1515 %if %{bat} && %{fc7}
1517 Requires: glibc >= 2.5
1518 Requires: fontconfig
1522 Requires: qt4 >= 4.2
1527 %if %{bat} && %{fc8}
1529 Requires: glibc >= 2.7
1530 Requires: fontconfig
1534 Requires: qt4 >= 4.2
1539 %if %{bat} && %{fc9}
1541 Requires: glibc >= 2.8
1542 Requires: fontconfig
1546 Requires: qt4 >= 4.3
1563 This is the Bacula Administration Tool package. It is an add-on to
1564 the client or server packages.
1567 # SuSE turns off stripping of binaries by default. In order to get
1568 # stripped packages we must generate debug package. RedHat and Mandriva
1569 # turn debug packages on by default but strip binaries regardless.
1570 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1586 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1587 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
1592 #export QTDIR=$(pkg-config --variable=prefix QtCore)
1593 #export QTINC=$(pkg-config --variable=includedir QtCore)
1594 #export QTLIB=$(pkg-config --variable=libdir QtCore)
1595 #export PATH=${QTDIR}/bin/:${PATH}
1601 export PATH=${qtdir}/qt4/bin:$PATH
1602 export QTDIR=${qtdir}/qt4/
1603 export QTINC=${qtdir}/qt4/include/
1604 export QTLIB=${qtdir}/qt4/lib/
1612 %if ! %{client_only} && %{mtx}
1617 %if %{wb3} || %{old_pgsql}
1618 patch -p3 src/cats/postgresql.c < %SOURCE5
1621 # patches for the bundled sqlite scripts
1623 # patch the make_sqlite_tables script for installation bindir
1624 #patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
1625 patch src/cats/make_sqlite3_tables.in src/cats/make_sqlite3_tables.in.patch
1627 # patch the create_sqlite_database script for installation bindir
1628 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
1629 patch src/cats/create_sqlite3_database.in src/cats/create_sqlite3_database.in.patch
1631 # patch the make_catalog_backup script for installation bindir
1632 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
1634 # patch the update_sqlite_tables script for installation bindir
1635 #patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
1636 patch src/cats/update_sqlite3_tables.in src/cats/update_sqlite3_tables.in.patch
1638 # patch the bacula-dir init script to remove sqlite service
1639 %if %{sqlite} && %{su9}
1640 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1642 %if %{sqlite} && %{su10}
1643 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1645 %if %{sqlite} && %{su102}
1646 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1648 %if %{sqlite} && %{su103}
1649 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1651 %if %{sqlite} && %{su110}
1652 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1654 %if %{sqlite} && %{su111}
1655 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1658 # 64 bit lib location hacks
1659 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
1660 # reported to be fixed to properly detect lib locations.
1662 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
1664 %if %{mysql} && %{x86_64}
1665 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
1667 %if %{python} && %{x86_64}
1668 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
1671 # Red Hat's 64 bit installation of QT4 appears to be broken so:
1673 %if %{rhel5} || %{centos5} || %{sl5}
1676 #%if %{bat} && %{qt_path} && %{x86_64}
1677 #export PATH=/usr/lib64/qt4/bin/:$PATH
1678 #export QTDIR=/usr/lib64/qt4/
1679 #export QTINC=/usr/lib64/qt4/include/
1680 #export QTLIB=/usr/lib64/qt4/
1685 --prefix=%{_prefix} \
1686 --sbindir=%{_sbindir} \
1687 --sysconfdir=%{sysconf_dir} \
1688 --with-scriptdir=%{script_dir} \
1689 --with-working-dir=%{working_dir} \
1690 --with-pid-dir=%{pid_dir} \
1691 --enable-smartalloc \
1692 --enable-client-only \
1696 --enable-static-fd \
1703 # Main Bacula configuration
1705 --prefix=%{_prefix} \
1706 --sbindir=%{_sbindir} \
1707 --sysconfdir=%{sysconf_dir} \
1708 --mandir=%{_mandir} \
1709 --with-scriptdir=%{script_dir} \
1710 --with-working-dir=%{working_dir} \
1711 --with-plugindir=%{script_dir} \
1712 --with-pid-dir=%{pid_dir} \
1713 --with-subsys-dir=%{_subsysdir} \
1714 --enable-smartalloc \
1718 %if %{gconsole} && ! %{rh8}
1719 --enable-tray-monitor \
1725 --with-sqlite3=${cwd}/%{depkgs}/sqlite3 \
1731 --enable-bwx-console \
1741 --enable-client-only \
1743 %if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{fc3} || %{wb3}
1744 --disable-batch-insert \
1746 --with-dir-user=%{director_daemon_user} \
1747 --with-dir-group=%{daemon_group} \
1748 --with-sd-user=%{storage_daemon_user} \
1749 --with-sd-group=%{storage_daemon_group} \
1750 --with-fd-user=%{file_daemon_user} \
1751 --with-fd-group=%{daemon_group} \
1752 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1753 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1754 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1755 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1756 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1757 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1765 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1766 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1767 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1768 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1769 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1770 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1771 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1773 %if %{gconsole} || %{wxconsole} || %{bat}
1774 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1775 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1778 %if %{gconsole} || %{wxconsole} || %{bat}
1779 %define usermode_iftrick 1
1781 %define usermode_iftrick 0
1784 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1785 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1786 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1787 mkdir -p $RPM_BUILD_ROOT/usr/bin
1791 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1794 make DESTDIR=$RPM_BUILD_ROOT install
1796 %if ! %{client_only} && %{mtx}
1799 prefix=$RPM_BUILD_ROOT%{_prefix} \
1800 sbindir=$RPM_BUILD_ROOT%{_sbindir} \
1801 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1802 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1803 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1804 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1805 mandir=$RPM_BUILD_ROOT%{_mandir} \
1810 # make install in manpages installs _everything_ shotgun style
1811 # so now delete what we will not be packaging
1813 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
1816 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bat.1.%{manpage_ext}
1819 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
1820 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1823 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.%{manpage_ext}
1824 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1825 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1826 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.%{manpage_ext}
1827 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.%{manpage_ext}
1828 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.%{manpage_ext}
1829 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.%{manpage_ext}
1830 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.%{manpage_ext}
1831 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.%{manpage_ext}
1834 # fixme - make installs the mysql scripts for sqlite build
1836 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1837 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1838 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1841 # fixme - make installs the mysql scripts for postgresql build
1843 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1844 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1847 # fixme - make installs gconsole script for build without gconsole
1849 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1852 rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd
1854 # install the init scripts
1855 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1856 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1857 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1858 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1861 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1862 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1863 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1865 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk}
1866 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1867 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1868 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1870 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1872 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1873 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1876 # install the menu stuff
1877 %if %{gconsole} && %{su9}
1878 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1879 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1880 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1881 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1883 %if %{gconsole} && %{su10}
1884 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1885 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1886 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1887 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1889 %if %{gconsole} && %{su102}
1890 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1891 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1892 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1893 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1895 %if %{gconsole} && %{su103}
1896 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1897 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1898 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1899 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1901 %if %{gconsole} && %{su110}
1902 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1903 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1904 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1905 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1907 %if %{gconsole} && %{su111}
1908 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1909 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1910 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1911 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1913 %if %{wxconsole} && %{su10}
1914 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1915 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1917 %if %{wxconsole} && %{su102}
1918 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1919 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1921 %if %{wxconsole} && %{su103}
1922 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1923 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1925 %if %{wxconsole} && %{su110}
1926 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1927 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1929 %if %{wxconsole} && %{su111}
1930 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1931 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1933 %if %{bat} && %{su102}
1934 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1935 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1937 %if %{bat} && %{su103}
1938 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1939 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1941 %if %{bat} && %{su110}
1942 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1943 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1945 %if %{bat} && %{su111}
1946 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1947 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1949 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{fc6} || %{fc7} || %{fc8} || %{fc9} || %{mdk}
1954 %if %{gconsole} && %{iftrick}
1955 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1956 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1957 cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console
1958 cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console
1959 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bgnome-console
1961 %if %{gconsole} && ! %{rh8}
1962 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1963 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1965 %if %{wxconsole} && %{iftrick}
1966 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1967 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1968 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bwx-console
1969 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console
1970 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bwx-console
1972 %if %{bat} && %{iftrick}
1973 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1974 cp -p scripts/bat.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1975 cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat
1976 cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat
1977 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bat
1982 cp -p %{depkgs}/sqlite3/sqlite3 $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3
1983 cp -p %{depkgs}/sqlite3/sqlite3.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3.h
1984 cp -p %{depkgs}/sqlite3/libsqlite3.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite3.a
1987 # install the logrotate file
1988 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1990 # install the updatedb scripts
1991 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
1993 # install the logwatch scripts
1994 %if ! %{client_only}
1995 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1996 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1997 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1998 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1999 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
2000 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
2003 # install the rescue files
2005 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
2006 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
2007 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
2008 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/
2009 cp -p %{_rescuesrc}/freebsd/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd/
2010 cp -p %{_rescuesrc}/solaris/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/solaris/
2011 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT%{script_dir}/rescue/
2012 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT%{script_dir}/rescue/
2013 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT%{script_dir}/rescue/
2014 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT%{script_dir}/rescue/
2015 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT%{script_dir}/rescue/
2016 cp -pr %{_rescuesrc}/knoppix $RPM_BUILD_ROOT%{script_dir}/rescue/
2017 touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
2018 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
2019 rm -f src/filed/static-bacula-fd
2022 # remove the docs installed by make
2024 rm -rf $RPM_BUILD_ROOT/usr/share/doc
2027 # install docs for single dir installation
2029 mkdir $RPM_BUILD_ROOT%{_prefix}/doc
2030 cp COPYING $RPM_BUILD_ROOT%{_prefix}/doc/
2031 cp ChangeLog $RPM_BUILD_ROOT%{_prefix}/doc/
2032 cp ReleaseNotes $RPM_BUILD_ROOT%{_prefix}/doc/
2033 cp VERIFYING $RPM_BUILD_ROOT%{_prefix}/doc/
2034 cp LICENSE $RPM_BUILD_ROOT%{_prefix}/doc/
2035 cp kernstodo $RPM_BUILD_ROOT%{_prefix}/doc/
2036 cp -r %{_docsrc}/manuals/en/catalog/catalog $RPM_BUILD_ROOT%{_prefix}/doc/
2037 cp %{_docsrc}/manuals/en/catalog/catalog.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2038 cp -r %{_docsrc}/manuals/en/concepts/concepts $RPM_BUILD_ROOT%{_prefix}/doc/
2039 cp %{_docsrc}/manuals/en/concepts/concepts.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2040 cp -r %{_docsrc}/manuals/en/console/console $RPM_BUILD_ROOT%{_prefix}/doc/
2041 cp %{_docsrc}/manuals/en/console/console.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2042 cp -r %{_docsrc}/manuals/en/developers/developers $RPM_BUILD_ROOT%{_prefix}/doc/
2043 cp %{_docsrc}/manuals/en/developers/developers.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2044 cp -r %{_docsrc}/manuals/en/install/install $RPM_BUILD_ROOT%{_prefix}/doc/
2045 cp %{_docsrc}/manuals/en/install/install.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2046 cp -r %{_docsrc}/manuals/en/problems/problems $RPM_BUILD_ROOT%{_prefix}/doc/
2047 cp %{_docsrc}/manuals/en/problems/problems.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2048 cp -r %{_docsrc}/manuals/en/utility/utility $RPM_BUILD_ROOT%{_prefix}/doc/
2049 cp %{_docsrc}/manuals/en/utility/utility.pdf $RPM_BUILD_ROOT%{_prefix}/doc/
2050 cp ../Release_Notes-%{version}-%{release}.txt $RPM_BUILD_ROOT%{_prefix}/doc/
2053 # now clean up permissions that are left broken by the install
2054 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
2055 %if %{gconsole} && ! %{rh8}
2056 chmod 755 $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor
2057 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
2060 # fix me - building enable-client-only installs files not included in bacula-client package
2062 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
2063 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
2064 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
2065 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
2066 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
2067 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
2068 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
2069 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
2070 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
2071 rm -f $RPM_BUILD_ROOT%{script_dir}/bconsole
2072 rm -f $RPM_BUILD_ROOT%{script_dir}/bpipe-fd.so
2073 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer.conf
2074 rm -f $RPM_BUILD_ROOT%{_sbindir}/bacula
2078 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
2079 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
2080 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
2081 rm -rf $RPM_BUILD_DIR/depkgs
2082 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
2085 # MySQL specific files
2087 %defattr(-, root, root)
2088 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
2089 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
2090 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
2091 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
2092 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
2093 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
2094 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
2095 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
2100 %defattr(-,root,root)
2101 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite3_database
2102 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_database
2103 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite3_privileges
2104 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite3_tables
2105 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_tables
2106 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite3_tables
2107 %{sqlite_bindir}/libsqlite3.a
2108 %{sqlite_bindir}/sqlite3.h
2109 %{sqlite_bindir}/sqlite3
2114 %defattr(-,root,root)
2115 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
2116 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
2117 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
2118 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
2119 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
2120 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
2123 # The rest is DB backend independent
2124 %if ! %{client_only}
2125 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2126 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
2127 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
2128 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
2129 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
2130 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
2131 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
2132 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
2133 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
2134 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
2135 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
2136 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2137 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2138 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
2139 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
2140 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
2141 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
2142 %attr(-, root, %{daemon_group}) %{script_dir}/bpipe-fd.so
2143 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
2144 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
2145 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
2146 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
2147 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
2148 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer.conf
2150 /etc/logrotate.d/bacula
2151 /etc/log.d/scripts/services/bacula
2152 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
2153 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2154 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
2155 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2156 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
2157 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
2158 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
2160 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
2162 %{_sbindir}/bacula-dir
2163 %{_sbindir}/bacula-fd
2164 %{_sbindir}/bacula-sd
2167 %{_sbindir}/bextract
2171 %{_sbindir}/btraceback
2172 %{_sbindir}/bconsole
2177 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2178 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
2179 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
2180 %{_mandir}/man8/bacula.8.%{manpage_ext}
2181 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2182 %{_mandir}/man8/bcopy.8.%{manpage_ext}
2183 %{_mandir}/man8/bextract.8.%{manpage_ext}
2184 %{_mandir}/man8/bls.8.%{manpage_ext}
2185 %{_mandir}/man8/bscan.8.%{manpage_ext}
2186 %{_mandir}/man8/btape.8.%{manpage_ext}
2187 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2188 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
2189 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
2193 %if ! %{client_only} && %{rescue}
2194 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2197 %if ! %{client_only} && ! %{single_dir}
2198 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2199 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2200 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2201 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2202 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2203 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2204 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2205 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2208 %if ! %{client_only} && %{single_dir}
2214 # test for bacula database older than version 10
2215 # note: this ASSUMES no password has been set for bacula database
2216 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2221 # are we upgrading from sqlite to sqlite3?
2222 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
2223 echo "This version of bacula-sqlite involves an upgrade to sqlite3."
2224 echo "Your catalog database file is not compatible with sqlite3, thus"
2225 echo "you will need to dump the data, delete the old file, and re-run"
2226 echo "this rpm upgrade."
2228 echo "Backing up your current database..."
2229 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db > %{working_dir}/bacula_backup.sql
2230 mv %{working_dir}/bacula.db %{working_dir}/bacula.db.old
2231 echo "Your catalog data has been saved in %{working_dir}/bacula_backup.sql and your"
2232 echo "catalog file has been renamed %{working_dir}/bacula.db.old."
2234 echo "Please re-run this rpm package upgrade."
2235 echo "After the upgrade is complete, restore your catalog"
2236 echo "with the following commands:"
2237 echo "%{script_dir}/drop_sqlite3_tables"
2238 echo "cd %{working_dir}"
2239 echo "%{sqlite_bindir}/sqlite3 $* bacula.db < bacula_backup.sql"
2240 echo "chown bacula.bacula bacula.db"
2243 # test for bacula database older than version 10 and sqlite3
2244 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite3 ];then
2245 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2250 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2253 %if ! %{client_only}
2254 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "10" ]; then
2255 echo "This bacula upgrade will update a bacula database from version 10 to 11."
2256 echo "You appear to be running database version $DB_VER. You must first update"
2257 echo "your database to version 10 and then install this upgrade. The alternative"
2258 echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
2259 echo "catalog information, then do the upgrade. Information on updating a"
2260 echo "database older than version 10 can be found in the release notes."
2269 %if ! %{client_only}
2270 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
2271 if [ -s %{sysconf_dir}/console.conf ];then
2272 cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
2275 # create the daemon users and groups
2276 # first create the groups if they don't exist
2277 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2278 if [ -z "$HAVE_BACULA" ]; then
2279 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2280 echo "The group %{daemon_group} has been added to %{group_file}."
2281 echo "See the manual chapter \"Running Bacula\" for details."
2283 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
2284 if [ -z "$HAVE_BACULA" ]; then
2285 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
2286 echo "The group %{storage_daemon_group} has been added to %{group_file}."
2287 echo "See the manual chapter \"Running Bacula\" for details."
2289 # now create the users if they do not exist
2290 # we do not use the -g option allowing the primary group to be set to system default
2291 # this will be a unique group on redhat type systems or the group users on some systems
2292 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
2293 if [ -z "$HAVE_BACULA" ]; then
2294 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
2295 echo "The user %{storage_daemon_user} has been added to %{user_file}."
2296 echo "See the manual chapter \"Running Bacula\" for details."
2298 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
2299 if [ -z "$HAVE_BACULA" ]; then
2300 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
2301 echo "The user %{director_daemon_user} has been added to %{user_file}."
2302 echo "See the manual chapter \"Running Bacula\" for details."
2304 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2305 if [ -z "$HAVE_BACULA" ]; then
2306 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2307 echo "The user %{file_daemon_user} has been added to %{user_file}."
2308 echo "See the manual chapter \"Running Bacula\" for details."
2310 # now we add the supplementary groups, this is ok to call even if the users already exist
2311 # we only do this if the user is NOT root
2312 IS_ROOT=%{director_daemon_user}
2313 if [ "$IS_ROOT" != "root" ]; then
2314 %{usermod} -G %{daemon_group} %{director_daemon_user}
2316 IS_ROOT=%{storage_daemon_user}
2317 if [ "$IS_ROOT" != "root" ]; then
2318 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
2320 IS_ROOT=%{file_daemon_user}
2321 if [ "$IS_ROOT" != "root" ]; then
2322 %{usermod} -G %{daemon_group} %{file_daemon_user}
2336 %if ! %{client_only}
2338 if [ "$1" -ge 1 ] ; then
2339 /sbin/chkconfig --add bacula-dir
2340 /sbin/chkconfig --add bacula-fd
2341 /sbin/chkconfig --add bacula-sd
2346 # test for an existing database
2347 # note: this ASSUMES no password has been set for bacula database
2348 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2350 # grant privileges and create tables if they do not exist
2351 if [ -z "$DB_VER" ]; then
2352 echo "Hmm, doesn't look like you have an existing database."
2353 echo "Granting privileges for MySQL user bacula..."
2354 %{script_dir}/grant_mysql_privileges
2355 echo "Creating MySQL bacula database..."
2356 %{script_dir}/create_mysql_database
2357 echo "Creating bacula tables..."
2358 %{script_dir}/make_mysql_tables
2360 # check to see if we need to upgrade a 2.x database
2361 elif [ "$DB_VER" -lt "11" ]; then
2362 echo "This release requires an upgrade to your bacula database."
2363 echo "Backing up your current database..."
2364 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2365 echo "Upgrading bacula database ..."
2366 %{script_dir}/update_mysql_tables
2367 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2373 # test for an existing database
2374 if [ -s %{working_dir}/bacula.db ]; then
2375 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2376 # check to see if we need to upgrade a 2.x database
2377 if [ "$DB_VER" -lt "11" ] && [ "$DB_VER" -ge "10" ]; then
2378 echo "This release requires an upgrade to your bacula database."
2379 echo "Backing up your current database..."
2380 echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2381 echo "Upgrading bacula database ..."
2382 %{script_dir}/update_sqlite3_tables
2383 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2386 # create the database and tables
2387 echo "Hmm, doesn't look like you have an existing database."
2388 echo "Creating SQLite database..."
2389 %{script_dir}/create_sqlite3_database
2390 chown %{director_daemon_user}.%{daemon_group} %{working_dir}/bacula.db
2391 echo "Creating the SQLite tables..."
2392 %{script_dir}/make_sqlite3_tables
2397 # test for an existing database
2398 # note: this ASSUMES no password has been set for bacula database
2399 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2401 # grant privileges and create tables if they do not exist
2402 if [ -z "$DB_VER" ]; then
2403 echo "Hmm, doesn't look like you have an existing database."
2404 echo "Creating PostgreSQL bacula database..."
2405 %{script_dir}/create_postgresql_database
2406 echo "Creating bacula tables..."
2407 %{script_dir}/make_postgresql_tables
2408 echo "Granting privileges for PostgreSQL user bacula..."
2409 %{script_dir}/grant_postgresql_privileges
2411 # check to see if we need to upgrade a 2.x database
2412 elif [ "$DB_VER" -lt "11" ]; then
2413 echo "This release requires an upgrade to your bacula database."
2414 echo "Backing up your current database..."
2415 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2416 echo "Upgrading bacula database ..."
2417 %{script_dir}/update_postgresql_tables
2418 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2423 %if ! %{client_only}
2424 # generate passwords if needed
2425 if [ -d %{sysconf_dir} ]; then
2427 for file in *.conf; do
2428 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
2429 need_password=`grep $string $file 2>/dev/null`
2430 if [ -n "$need_password" ]; then
2431 pass=`openssl rand -base64 33`
2432 sed "s-$string-$pass-g" $file > $file.new
2433 cp -f $file.new $file; rm -f $file.new
2451 %if ! %{client_only}
2454 /sbin/chkconfig --del bacula-dir
2455 /sbin/chkconfig --del bacula-fd
2456 /sbin/chkconfig --del bacula-sd
2474 %if ! %{client_only} && %{mtx}
2476 %defattr(-,root,root)
2477 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
2478 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
2479 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
2480 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
2481 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
2482 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
2483 %{_mandir}/man1/mtx.1.%{manpage_ext}
2484 %{_mandir}/man1/scsitape.1.%{manpage_ext}
2485 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
2486 %{_mandir}/man1/scsieject.1.%{manpage_ext}
2490 %defattr(-,root,root)
2491 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2492 %{script_dir}/bacula-ctl-fd
2493 /etc/init.d/bacula-fd
2495 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2499 %doc COPYING ChangeLog ReleaseNotes LICENSE VERIFYING kernstodo ../Release_Notes-%{version}-%{release}.txt
2500 %doc %{_docsrc}/manuals/en/catalog/catalog %{_docsrc}/manuals/en/catalog/catalog.pdf
2501 %doc %{_docsrc}/manuals/en/concepts/concepts %{_docsrc}/manuals/en/concepts/concepts.pdf
2502 %doc %{_docsrc}/manuals/en/console/console %{_docsrc}/manuals/en/console/console.pdf
2503 %doc %{_docsrc}/manuals/en/developers/developers %{_docsrc}/manuals/en/developers/developers.pdf
2504 %doc %{_docsrc}/manuals/en/install/install %{_docsrc}/manuals/en/install/install.pdf
2505 %doc %{_docsrc}/manuals/en/problems/problems %{_docsrc}/manuals/en/problems/problems.pdf
2506 %doc %{_docsrc}/manuals/en/utility/utility %{_docsrc}/manuals/en/utility/utility.pdf
2511 /etc/logrotate.d/bacula
2513 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2514 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2516 %attr(-, root, %{daemon_group}) %dir %{working_dir}
2518 %{_sbindir}/bacula-fd
2519 %{_sbindir}/btraceback
2520 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2521 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2522 %{_sbindir}/bconsole
2523 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2524 %{_mandir}/man8/bacula.8.%{manpage_ext}
2525 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2526 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2528 %{_libdir}/libbaccfg.*
2529 %{_libdir}/libbacfind.*
2530 %{_libdir}/libbacpy.*
2534 # create the daemon group and user
2535 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2536 if [ -z "$HAVE_BACULA" ]; then
2537 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2538 echo "The group %{daemon_group} has been added to %{group_file}."
2539 echo "See the manual chapter \"Running Bacula\" for details."
2541 # we do not use the -g option allowing the primary group to be set to system default
2542 # this will be a unique group on redhat type systems or the group users on some systems
2543 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2544 if [ -z "$HAVE_BACULA" ]; then
2545 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2546 echo "The user %{file_daemon_user} has been added to %{user_file}."
2547 echo "See the manual chapter \"Running Bacula\" for details."
2549 # now we add the supplementary group, this is ok to call even if the user already exists
2550 # we only do this if the user is NOT root
2551 IS_ROOT=%{file_daemon_user}
2552 if [ "$IS_ROOT" != "root" ]; then
2553 %{usermod} -G %{daemon_group} %{file_daemon_user}
2558 if [ "$1" -ge 1 ] ; then
2559 /sbin/chkconfig --add bacula-fd
2562 # generate passwords if needed
2563 if [ -d %{sysconf_dir} ]; then
2565 for file in *.conf; do
2566 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
2567 need_password=`grep $string $file 2>/dev/null`
2568 if [ -n "$need_password" ]; then
2569 pass=`openssl rand -base64 33`
2570 sed "s-$string-$pass-g" $file > $file.new
2571 cp -f $file.new $file; rm -f $file.new
2582 /sbin/chkconfig --del bacula-fd
2588 %if ! %{client_only}
2590 %defattr(-,root,%{daemon_group})
2591 %{script_dir}/updatedb/*
2594 # create the daemon group
2595 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2596 if [ -z "$HAVE_BACULA" ]; then
2597 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2598 echo "The group %{daemon_group} has been added to %{group_file}."
2599 echo "See the manual chapter \"Running Bacula\" for details."
2603 echo "The database update scripts were installed to %{script_dir}/updatedb"
2608 %defattr(-,root,root)
2609 %{_sbindir}/bgnome-console
2610 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2611 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
2612 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bgnome-console.conf
2613 /usr/share/pixmaps/bacula.png
2614 /usr/share/applications/bacula.desktop
2615 %{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
2618 %if %{gconsole} && ! %{rh8}
2619 %{_sbindir}/bacula-tray-monitor
2620 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
2621 /usr/share/pixmaps/bacula-tray-monitor.xpm
2622 /usr/share/applications/bacula-tray-monitor.desktop
2623 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
2626 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2627 # add the console helper files
2628 %config(noreplace,missingok) /etc/pam.d/bgnome-console
2629 %config(noreplace,missingok) /etc/security/console.apps/bgnome-console
2630 /usr/bin/bgnome-console
2635 # create the daemon group
2636 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2637 if [ -z "$HAVE_BACULA" ]; then
2638 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2639 echo "The group %{daemon_group} has been added to %{group_file}."
2640 echo "See the manual chapter \"Running Bacula\" for details."
2644 # generate passwords if needed
2645 if [ -d %{sysconf_dir} ]; then
2647 for file in *.conf; do
2648 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
2649 need_password=`grep $string $file 2>/dev/null`
2650 if [ -n "$need_password" ]; then
2651 pass=`openssl rand -base64 33`
2652 sed "s-$string-$pass-g" $file > $file.new
2653 cp -f $file.new $file; rm -f $file.new
2662 %defattr(-,root,root)
2663 %{_sbindir}/bwx-console
2664 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2665 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bwx-console.conf
2666 /usr/share/pixmaps/wxwin16x16.xpm
2667 /usr/share/applications/wxconsole.desktop
2668 %{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
2671 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2672 # add the console helper files
2673 %config(noreplace,missingok) /etc/pam.d/bwx-console
2674 %config(noreplace,missingok) /etc/security/console.apps/bwx-console
2675 /usr/bin/bwx-console
2680 # create the daemon group
2681 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2682 if [ -z "$HAVE_BACULA" ]; then
2683 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2684 echo "The group %{daemon_group} has been added to %{group_file}."
2685 echo "See the manual chapter \"Running Bacula\" for details."
2689 # generate passwords if needed
2690 if [ -d %{sysconf_dir} ]; then
2692 for file in *.conf; do
2693 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
2694 need_password=`grep $string $file 2>/dev/null`
2695 if [ -n "$need_password" ]; then
2696 pass=`openssl rand -base64 33`
2697 sed "s-$string-$pass-g" $file > $file.new
2698 cp -f $file.new $file; rm -f $file.new
2707 %defattr(-,root,root)
2709 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2710 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bat.conf
2711 /usr/share/pixmaps/bat_icon.png
2712 /usr/share/applications/bat.desktop
2713 %{_mandir}/man1/bat.1.%{manpage_ext}
2716 %if %{bat} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2717 # add the console helper files
2718 %config(noreplace,missingok) /etc/pam.d/bat
2719 %config(noreplace,missingok) /etc/security/console.apps/bat
2725 # create the daemon group
2726 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2727 if [ -z "$HAVE_BACULA" ]; then
2728 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2729 echo "The group %{daemon_group} has been added to %{group_file}."
2730 echo "See the manual chapter \"Running Bacula\" for details."
2734 # generate passwords if needed
2735 if [ -d %{sysconf_dir} ]; then
2737 for file in *.conf; do
2738 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
2739 need_password=`grep $string $file 2>/dev/null`
2740 if [ -n "$need_password" ]; then
2741 pass=`openssl rand -base64 33`
2742 sed "s-$string-$pass-g" $file > $file.new
2743 cp -f $file.new $file; rm -f $file.new
2751 * Sat Jun 20 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2752 - Fix bat install which is now handled by make and uses shared libs
2753 * Sat May 16 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2754 - fix libxml dependency for rh7 per Pasi Kärkkäinen <pasik@iki.fi>
2755 * Mon May 04 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2756 - Fix post ldconfig problem in client only build
2757 * Sun May 03 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2758 - remove more files installed by client-only build not needed by client package
2759 - remove libbacsql files from client package
2760 * Sat May 02 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2762 - update for new docs configuration
2763 * Sat Apr 25 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2764 - add switch to pass Distribution tag
2765 * Sun Apr 5 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2767 - database update version 10 to 11
2768 - make now installs docs so we rm from buildroot
2769 - add shared libs in %_libdir and other misc new files
2770 * Wed Dec 31 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2772 * Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2773 - set paths for QT using pkgconfig
2774 * Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2775 - release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
2776 * Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2777 - adjust /opt/bacula install
2778 - add build switch to supress rescue package
2779 * Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2780 - add support for install to /opt/bacula
2781 * Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2782 - remove libtermcap dependancy for FC9
2783 * Mon Aug 04 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2784 - fix bat dependencies
2785 * Sat Jun 28 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2787 * Sat May 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2789 * Sun Mar 30 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2790 - FHS compatibility changes
2791 * Sat Feb 16 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2792 - remove fix for false buffer overflow detection with glibc >= 2.7
2793 * Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2794 - fix for false buffer overflow detection with glibc >= 2.7
2795 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2797 - add debug package for SuSE
2798 * Sat Jan 12 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2799 - 2.2.8 beta release
2802 * Sun Dec 30 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2803 - fix typo on su103 client package requirements
2804 * Fri Dec 28 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2805 - add nobuild_mtx switch
2806 - add patch for postgresql.c for old postgresql versions
2807 * Sat Nov 17 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2809 * Sun Nov 11 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2810 - add new files required by rescue makefile
2811 * Sat Nov 10 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2812 - add su103 build target
2813 * Sun Nov 04 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2814 - fix dist defines for rhel5 and clones
2815 - fix rhel broken 64 bit QT4 paths
2816 - rh qt4 packages don't provide qt so fix that too
2817 * Mon Oct 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2818 - correct ownership when creating sqlite db file in post script
2819 * Sun Sep 16 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2820 - fix disable-batch-insert
2821 * Fri Sep 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2823 - turn off gconsole build for fc3, tray monitor fails to build
2824 - add new files for mtx package (09Sep07 depkgs update)
2825 * Sat Sep 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2826 - add --disable-batch-insert for older platforms
2827 - add build targets for rhel5 and clones
2828 * Mon Sep 03 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2830 - turn off gconsole build for su10 & fc4, tray monitor fails to build
2831 * Sat Jul 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2832 - 2.1.26 add make of qwt in depkgs for bat
2833 * Sat Jun 02 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2834 - upgrade Qt requirement for bat to 4.2
2835 * Sun May 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2836 - add fc7 build target
2837 * Sun Apr 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2839 - gnome-console now bgnome-console
2840 - wxconsole now bwx-console
2841 - add build option for bat
2842 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2843 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
2844 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
2845 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
2846 - adjust directory locations for FHS-compatibility
2847 sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
2848 working_dir (/var/lib/bacula) and pid_dir (/var/run)
2849 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2850 - add SuSE 10.2 target
2851 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2853 - set query.sql as config file
2855 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2857 - change determination of gcc version per patch from Marc Hennes
2858 - move BuildRequire for atk-devel to gnome only builds
2860 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2862 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2863 - 1.39.26 remove create_sqlite_database.in.patch
2864 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2865 - change ownership of working_dir on server packages to bacula.bacula so that
2866 - bacula-sd can create bootstrap files
2867 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2868 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
2869 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2870 - fix manpages file extension for mdk
2871 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2872 - bug 648 re-enable and update sqlite patches
2876 - lock out gconsole build for gtk+ < 2.4
2877 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2878 - move pango-devel BuildRequires into gconsole only build
2879 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2880 - add provides and conflicts for standard suse packages
2881 - add third party packager tag support
2882 - add build_client_only tag
2883 - remove bsmtp from client package
2884 - add bacula-ctl-fd to client package
2885 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2886 - fix directory creation when wxconsole and not gconsole
2887 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2888 - add check to buildrequires to make sure libstdc++ version matches gcc
2889 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2890 - add python build support
2891 - fix LDFLAGS declarations
2892 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2893 - add requires for standard compiler toolchain
2894 - move version and release tags up
2896 - add docs_version tag
2897 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2898 - update rescuever to 1.8.6
2899 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2900 - update depkgs to 25Jun06
2901 - add mysql5 build tag
2902 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2903 - 1.38.10 bump rescue version
2904 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2905 - fix usermod statements
2907 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2908 - add -g param back to useradd statements Bug 605
2909 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2910 - redundant code cleanup
2911 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2912 - add wxconsole package
2913 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2915 - dependency update for Mandriva
2916 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2918 - remove -n option from useradd scripts
2919 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2921 - fix problem specifying more than one primary group for user bacula
2922 - add build switch to not build gconsole regardless of platform
2923 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2924 - add centos3 build tag
2925 - fix link error of static-fd on Mandrake with --disable-nls
2926 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2927 - add fc4 dependencies
2928 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2929 - add SuSE 10.0 build
2930 - remove specific permission in attrib macros
2931 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2933 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
2934 - refix compat for _dist on SLES9 which seems to have been removed
2935 - added note regarding Aleksandar's use of specific permissions in attrib macros
2936 - need to review and add specific fc4 build currently using fc3 Requires
2937 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2939 - Reorganize files and pre/post sections to remove repetitions
2940 - Always build separate mtx package
2941 - Fix file ownerships for /etc/bacula and Bacula's working dir
2942 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2943 - Disable GNOME on RH7
2944 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2945 - Red Hat and look alikes have mtx RPM, do not build/package our version
2946 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2947 - minor edit to _dist for SLES9 compatibility
2948 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2950 - kern changed location of pdf files and html manual in docs package
2951 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2953 - add docs (from prebuilt tarball) and rescue packages back in
2954 - remove dvd-freespace and dvd-writepart files, add dvd-handler
2955 - remove 3 of 4 sqlite script patches as not needed
2956 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2958 - remove docs and rescue sections (remove static fd)
2959 - add dvd-freespace and dvd-writepart files
2960 - update depkgs to 22Jun05
2961 - change database update to 8 to 9
2962 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2963 - minor cleanups before 1.38 changes
2964 - add popt and popt-devel build dependencies
2965 - add tetex and tetex-dvips dependencies for doc build
2966 - replace deprecated Copyright tag with License
2967 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2968 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
2969 - conflict with sqlite packages. remove readline dependency.
2970 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2971 - release 1.36.3 update docs
2972 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2973 - add centos4 build tag
2974 - add x86_64 build tag
2975 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2976 - add rhel4 build tag
2977 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
2978 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2979 - add rhel3 build tag
2980 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2981 - fix tray-monitor.conf for noreplace
2982 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2983 - fix distribution check for Fedora and Whitebox
2984 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2985 - add logwatch script
2987 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2988 - add build for Fedora Core 3 (linc now included in ORDit2)
2989 - add mysql4 define for Mandrake 10.1
2990 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2991 - fix {group_file} variable in post scripts
2992 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
2993 - add distribution checking and custom Distribution tag
2994 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2995 - ASSIGNMENT OF COPYRIGHT
2996 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
2997 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
2998 - all right, title and interest in and to the copyright in this software RPM
2999 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
3000 - free of all liens, encumbrances or any known claims against said copyright.
3001 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3003 - thanks to Daniel Widyono
3004 - update description for rescue package to describe cdrom creation
3005 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3006 - update depkgs to 29Oct04
3007 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3008 - add cdrom rescue to bacula-rescue package
3009 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3010 - misc fixes from 1.36.0 suse feedback
3011 - fix situation where sqlite database exists but sqlite has been removed.
3012 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3013 - remove tray-monitor from RH8 build
3014 - fix permissions on tray-monitor files
3015 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3016 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
3017 - change database update to 7 to 8 upgrade,
3018 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
3019 - build in 30Jul04, add freetype dependancy to gnome package.
3020 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3021 - add documentation to console for groupadd
3022 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3023 - add support for running daemons as root.bacula
3024 - correct for change in location of floppy rescue files in 1.35.2
3025 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
3026 - updated depgkgs to 30Jul04
3027 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3028 - really, really fix symlink creation for gconsole
3029 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3030 - fix symlink creation in gconsole post install
3031 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3032 - fixed error in gconsole post script
3033 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3034 - add check for gconsole symlink before trying to create it
3035 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3036 - fix some minor permissions issues on doc files that CVS won't let us fix
3037 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3038 - add pkgconfig to BuildRequires
3039 - clean up gnome1/2 menu entries for appropriate packages
3040 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3041 - tightened up doc distribution
3042 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3043 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
3044 - rpm's horrible bug that prevents nested conditional macros prevents me
3045 - from implementing these 2 separate approaches within the conditionals which
3046 - create the separate server packages.
3047 - the solution adopted is to remove the gnome-console files from the server packages
3048 - so bacula-gconsole is now an add on for both client and server packages.
3049 - this also now allows the server packages to be install on machines without
3050 - an X-server and we can still maintain a single spec file.
3051 - added tests to make sure we have defined platform and database macros.
3052 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3053 - corrected mysql prerequisites for suse
3054 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3055 - replaced all cp commands with cp -p
3056 - removed addition of a+x permissions on gnome-console
3057 - corrected permissions on init scripts
3058 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3059 - corrected creation of sqlite_bindir in install from !mysql to sqlite
3061 - various cleanup patches from Michael K. Johnson:
3062 - corrected post install routines for nicer chkconfig
3063 - removed chmod changes in post routines and moved to install section
3064 - removed interactive nature of post routine for rescue package
3065 - added description of building rescue disks to the description of rescue package
3066 - added clean of build root to beginning of install
3067 - removed specifying attr in all file lists
3068 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3069 - added bconsole to client package
3070 - added gconsole package as add-on to client
3071 - removed spurious dependancies on updatedb package (!cut/paste)
3072 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3073 - added updatedb package
3074 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3075 - added postgresql package
3076 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3077 - corrected the if else logic in the dependancy sections
3078 - changes for 1.34 release
3079 - /etc/bacula/console is now /etc/bacula/bconsole
3080 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
3081 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
3082 - /usr/sbin/smtp is now /usr/sbin/bsmtp
3083 - added new /etc/bacula/drop_mysql_database
3084 - added new /etc/bacula/drop_sqlite_database
3085 - added new /etc/bacula/grant_sqlite_privileges
3086 - added new generic bacula database scripts in /etc/bacula
3087 - added pre-install sections to check for database versions older than 6
3088 - added check for /etc/bacula/console.conf and copy to bconsole.conf
3089 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3090 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
3091 - added testing for existing databases before executing any of the database creation scripts
3092 - added defines working_dir and sqlite_bindir in place of hard coded paths
3093 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3094 - added build configuration for SuSE.
3095 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
3096 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3097 - added patch for create_sqlite_database to fix the installed bindir
3098 - added execute of create_sqlite_database to post of sqlite package
3099 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3100 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
3101 - added bacula-fd as Requires for rescue package
3102 - added build tag for Fedora Core 1
3103 - cleaned up dependancies for all builds
3104 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
3105 - removed rh_version from package names
3106 - added platform build configuration section to beginning of file
3107 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3108 - removed make_static_bacula script from rescue package install
3109 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3110 - Added define at top of file for depkgs version
3111 - Added rescue sub-package
3112 - Moved requires statements into proper sub-package locations
3113 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3114 - Corrected Requires for Gnome 1.4/2.0 builds
3115 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3116 - Added separate source declaration for depkgs
3117 - added patch for make_catalog_backup script
3118 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
3119 - Misc changes to mysql/sqlite build and rh7/8 menu differences
3120 - Added rh_version to sub-package names
3121 - Added installed but missing file /etc/bacula/gconsole
3122 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
3123 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
3124 - Update spec for version 1.31 and combine client
3125 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>