2 # Copyright (C) 2000-2006 Kern Sibbald
4 # Platform Build Configuration
6 # basic defines for every build
7 %define _version @VERSION@
9 %define depkgs_version 25Jun06
10 %define _rescuever 1.8.6
11 %define docs_version @VERSION@
13 # any patches for this release
14 # be sure to check the setup section for patch macros
17 #--------------------------------------------------------------------------
18 # it should not be necessary to change anything below here for a release
19 # except for patch macros in the setup section
20 #--------------------------------------------------------------------------
22 # third party packagers
23 %define _packager D. Scott Barninger <barninger@fairfieldcomputers.com>
24 %{?contrib_packager:%define _packager %{contrib_packager}}
26 Summary: Bacula - The Network Backup Solution
30 Group: System Environment/Daemons
32 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
33 Source1: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
34 Source2: Release_Notes-%{version}-%{release}.tar.gz
35 Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
36 Source4: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
37 BuildRoot: %{_tmppath}/%{name}-root
38 URL: http://www.bacula.org/
39 Vendor: The Bacula Team
40 Packager: %{_packager}
42 # define the basic package description
43 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
44 %define blurb2 Bacula is a set of computer programs that permit you (or the system
45 %define blurb3 administrator) to manage backup, recovery, and verification of computer
46 %define blurb4 data across a network of computers of different kinds. In technical terms,
47 %define blurb5 it is a network client/server based backup program. Bacula is relatively
48 %define blurb6 easy to use and efficient, while offering many advanced storage management
49 %define blurb7 features that make it easy to find and recover lost or damaged files.
50 %define blurb8 Bacula source code has been released under the GPL version 2 license.
53 %define sqlite_bindir /usr/lib/bacula/sqlite
54 %define working_dir /var/bacula
55 %define _docsrc ../%{name}-docs-%{docs_version}
56 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
57 %define depkgs ../depkgs
59 # NOTE these defines are used in some rather complex useradd and groupadd
60 # commands. If you change them examine the post scripts for consequences.
61 %define director_daemon_user bacula
62 %define storage_daemon_user bacula
63 %define file_daemon_user root
64 %define daemon_group bacula
65 # group that has write access to tape devices, usually disk on Linux
66 %define storage_daemon_group disk
67 %define user_file /etc/passwd
68 %define group_file /etc/group
71 %define useradd /usr/sbin/useradd
72 %define groupadd /usr/sbin/groupadd
73 %define usermod /usr/sbin/usermod
75 # platform defines - set one below or define the build_xxx on the command line
78 %{?build_rh7:%define rh7 1}
80 %{?build_rh8:%define rh8 1}
82 %{?build_rh9:%define rh9 1}
85 %{?build_fc1:%define fc1 1}
87 %{?build_fc3:%define fc3 1}
89 %{?build_fc4:%define fc4 1}
91 %{?build_fc5:%define fc5 1}
92 # Whitebox Enterprise build
94 %{?build_wb3:%define wb3 1}
95 # RedHat Enterprise builds
97 %{?build_rhel3:%define rhel3 1}
98 %{?build_rhel3:%define wb3 1}
100 %{?build_rhel4:%define rhel4 1}
101 %{?build_rhel4:%define fc3 1}
104 %{?build_centos3:%define centos3 1}
105 %{?build_centos3:%define wb3 1}
107 %{?build_centos4:%define centos4 1}
108 %{?build_centos4:%define fc3 1}
111 %{?build_su9:%define su9 1}
113 %{?build_su10:%define su10 1}
116 %{?build_mdk:%define mdk 1}
118 %{?build_mdv:%define mdv 1}
119 %{?build_mdv:%define mdk 1}
121 # test for a platform definition
122 %if ! %{rh7} && ! %{rh8} && ! %{rh9} && ! %{fc1} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{wb3} && ! %{su9} && ! %{su10} && ! %{mdk}
123 %{error: You must specify a platform. Please examine the spec file.}
128 # set for database support desired or define the build_xxx on the command line
130 %{?build_mysql:%define mysql 1}
131 # if using mysql 4.x define this and mysql above
132 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
134 %{?build_mysql4:%define mysql4 1}
135 %{?build_mysql4:%define mysql 1}
136 # if using mysql 5.x define this and mysql above
137 # currently: SuSE 10.1 and Fedora Core 5
139 %{?build_mysql5:%define mysql5 1}
140 %{?build_mysql5:%define mysql 1}
142 %{?build_sqlite:%define sqlite 1}
144 %{?build_postgresql:%define postgresql 1}
146 # test for a database definition
147 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql}
148 %{error: You must specify database support. Please examine the spec file.}
153 %define db_backend mysql
156 %define db_backend sqlite
159 %define db_backend postgresql
164 %{?build_x86_64:%define x86_64 1}
166 # check what distribution we are
167 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4}
168 %define _dist %(grep Red /etc/redhat-release)
170 %if %{fc1} || %{fc4} || %{fc5}
171 %define _dist %(grep Fedora /etc/redhat-release)
173 %if %{centos4} || %{centos3}
174 %define _dist %(grep CentOS /etc/redhat-release)
176 %if %{fc3} && ! %{rhel4} && ! %{centos4}
177 %define _dist %(grep Fedora /etc/redhat-release)
179 %if %{wb3} && ! %{rhel3} && ! %{centos3}
180 %define _dist %(grep White /etc/whitebox-release)
182 %if %{su9} || %{su10}
183 %define _dist %(grep -i SuSE /etc/SuSE-release)
186 %define _dist %(grep Mand /etc/mandrake-release)
188 Distribution: %{_dist}
190 # Should we build gconsole, possible only if gnome >= 2.0 available
196 # specifically disallow gconsole if desired
197 %{?nobuild_gconsole:%define gconsole 0}
199 # Should we build wxconsole, only wxWidgets >=2.6 is supported
200 # currently only SuSE 10 and FC4/FC5
202 %{?build_wxconsole:%define wxconsole 1}
204 # should we turn on python support
206 %{?build_python:%define python 1}
208 %{expand: %%define gccver %(rpm -q gcc | cut -d - -f 2)}
209 %{expand: %%define gccrel %(rpm -q gcc | cut -d - -f 3)}
211 BuildRequires: gcc, gcc-c++, make, autoconf
212 BuildRequires: atk-devel, ncurses-devel, pango-devel, perl
213 BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, libxml2-devel, zlib-devel
214 BuildRequires: openssl-devel
216 BuildRequires: python, python-devel
217 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
220 BuildRequires: pkgconfig
223 BuildRequires: libtermcap-devel
224 BuildRequires: glibc-devel >= 2.2
227 BuildRequires: termcap
228 BuildRequires: glibc-devel >= 2.3
230 %if %{su9} && %{gconsole}
231 BuildRequires: libgnome >= 2.0
232 BuildRequires: gtk2-devel >= 2.0
233 BuildRequires: libgnomeui-devel >= 2.0
234 BuildRequires: ORBit2-devel
235 BuildRequires: libart_lgpl-devel >= 2.0
236 BuildRequires: libbonobo-devel >= 2.0
237 BuildRequires: libbonoboui-devel >= 2.0
238 BuildRequires: bonobo-activation-devel
239 BuildRequires: gconf2-devel
240 BuildRequires: linc-devel
241 BuildRequires: freetype2-devel
244 BuildRequires: termcap
245 BuildRequires: glibc-devel >= 2.3
247 %if %{su10} && %{gconsole}
248 BuildRequires: libgnome >= 2.12
249 BuildRequires: gtk2-devel >= 2.8
250 BuildRequires: libgnomeui-devel >= 2.12
251 BuildRequires: ORBit2-devel
252 BuildRequires: libart_lgpl-devel >= 2.3
253 BuildRequires: libbonobo-devel >= 2.10
254 BuildRequires: libbonoboui-devel >= 2.10
255 BuildRequires: bonobo-activation-devel
256 BuildRequires: gconf2-devel
257 BuildRequires: freetype2-devel
258 BuildRequires: cairo-devel
259 BuildRequires: fontconfig-devel >= 2.3
260 BuildRequires: gnome-vfs2-devel >= 2.12
261 BuildRequires: libpng-devel
264 BuildRequires: libtermcap-devel
265 BuildRequires: libstdc++-static-devel
266 BuildRequires: glibc-static-devel
267 BuildRequires: glibc-devel >= 2.3
269 %if %{mdk} && !%{mdv} && %{gconsole}
270 BuildRequires: gtk2-devel >= 2.0
271 BuildRequires: libgnomeui2-devel >= 2.0
272 BuildRequires: libORBit2-devel
273 BuildRequires: libart_lgpl-devel >= 2.0
274 BuildRequires: libbonobo2_0-devel
275 BuildRequires: libbonoboui2_0-devel
276 BuildRequires: libbonobo-activation-devel
277 BuildRequires: libGConf2-devel
278 BuildRequires: freetype2-devel
280 %if %{mdv} && %{gconsole}
281 BuildRequires: gtk2-devel >= 2.8
282 BuildRequires: libgnomeui2-devel >= 2.10
283 BuildRequires: libORBit2-devel
284 BuildRequires: libart_lgpl-devel >= 2.3
285 BuildRequires: libbonobo2_0-devel
286 BuildRequires: libbonoboui2_0-devel
287 BuildRequires: libbonobo-activation-devel
288 BuildRequires: libGConf2-devel
289 BuildRequires: freetype2-devel
292 BuildRequires: libtermcap-devel
293 BuildRequires: glibc-devel >= 2.3
295 %if %{fc3} && %{gconsole}
296 BuildRequires: gtk2-devel >= 2.4
297 BuildRequires: libgnomeui-devel >= 2.8
298 BuildRequires: ORBit2-devel
299 BuildRequires: libart_lgpl-devel >= 2.3
300 BuildRequires: libbonobo-devel >= 2.8
301 BuildRequires: libbonoboui-devel >= 2.8
302 BuildRequires: bonobo-activation-devel
303 BuildRequires: GConf2-devel
304 BuildRequires: freetype-devel
307 BuildRequires: libtermcap-devel
308 BuildRequires: glibc-devel >= 2.3
310 %if %{fc4} && %{gconsole}
311 BuildRequires: gtk2-devel >= 2.6
312 BuildRequires: libgnomeui-devel >= 2.10
313 BuildRequires: ORBit2-devel
314 BuildRequires: libart_lgpl-devel >= 2.3
315 BuildRequires: libbonobo-devel >= 2.8
316 BuildRequires: libbonoboui-devel >= 2.8
317 BuildRequires: bonobo-activation-devel
318 BuildRequires: GConf2-devel
319 BuildRequires: freetype-devel
322 BuildRequires: libtermcap-devel
323 BuildRequires: glibc-devel >= 2.4
325 %if %{fc5} && %{gconsole}
326 BuildRequires: gtk2-devel >= 2.8
327 BuildRequires: libgnomeui-devel >= 2.14
328 BuildRequires: ORBit2-devel
329 BuildRequires: libart_lgpl-devel >= 2.3
330 BuildRequires: libbonobo-devel >= 2.14
331 BuildRequires: libbonoboui-devel >= 2.14
332 BuildRequires: GConf2-devel
333 BuildRequires: freetype-devel
335 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5}
336 BuildRequires: libtermcap-devel
337 BuildRequires: glibc-devel >= 2.3
339 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && %{gconsole}
340 BuildRequires: gtk2-devel >= 2.0
341 BuildRequires: libgnomeui-devel >= 2.0
342 BuildRequires: ORBit2-devel
343 BuildRequires: libart_lgpl-devel >= 2.0
344 BuildRequires: libbonobo-devel >= 2.0
345 BuildRequires: libbonoboui-devel >= 2.0
346 BuildRequires: bonobo-activation-devel
347 BuildRequires: GConf2-devel
348 BuildRequires: linc-devel
349 BuildRequires: freetype-devel
352 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
353 BuildRequires: mysql-devel >= 3.23
356 %if %{mysql} && %{mysql4}
357 BuildRequires: mysql-devel >= 4.0
360 %if %{mysql} && %{mysql5}
361 BuildRequires: mysql-devel >= 5.0
364 %if %{postgresql} && %{wb3}
365 BuildRequires: rh-postgresql-devel >= 7
368 %if %{postgresql} && ! %{wb3}
369 BuildRequires: postgresql-devel >= 7
373 BuildRequires: wxGTK-devel >= 2.6
397 Summary: Bacula - The Network Backup Solution
398 Group: System Environment/Daemons
399 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
400 Conflicts: bacula-client
401 Obsoletes: bacula-rescue
403 %if %{su9} || %{su10}
407 Requires: ncurses, libstdc++, zlib, openssl, mtx
410 Requires: glibc >= 2.2
413 %if %{su9} || %{su10}
414 Requires: glibc >= 2.3
417 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{fc5}
418 Requires: glibc >= 2.3
422 Requires: glibc >= 2.4
426 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
427 Requires: mysql >= 3.23
428 Requires: mysql-server >= 3.23
430 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
431 Requires: mysql >= 4.0
432 Requires: mysql-server >= 4.0
434 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql5}
435 Requires: mysql >= 5.0
436 Requires: mysql-server >= 5.0
439 %if %{mysql} && %{su9} && ! %{mysql4}
440 Requires: mysql >= 3.23
441 Requires: mysql-client >= 3.23
443 %if %{mysql} && %{su9} && %{mysql4}
444 Requires: mysql >= 4.0
445 Requires: mysql-client >= 4.0
447 %if %{mysql} && %{su10} && %{mysql4}
448 Requires: mysql >= 4.0
449 Requires: mysql-client >= 4.0
451 %if %{mysql} && %{su10} && %{mysql5}
452 Requires: mysql >= 5.0
453 Requires: mysql-client >= 5.0
456 %if %{mysql} && %{mdk} && ! %{mysql4}
457 Requires: mysql >= 3.23
458 Requires: mysql-client >= 3.23
460 %if %{mysql} && %{mdk} && %{mysql4}
461 Requires: mysql >= 4.0
462 Requires: mysql-client >= 4.0
465 %if %{postgresql} && %{wb3}
466 Requires: rh-postgresql >= 7
467 Requires: rh-postgresql-server >= 7
469 %if %{postgresql} && ! %{wb3}
470 Requires: postgresql >= 7
471 Requires: postgresql-server >= 7
481 %description postgresql
485 Requires: python >= %{pyver}
499 This build requires MySQL to be installed separately as the catalog database.
502 This build requires PostgreSQL to be installed separately as the catalog database.
505 This build incorporates sqlite as the catalog database, statically compiled.
509 Summary: Bacula - The Network Backup Solution
510 Group: System Environment/Daemons
514 This is Bacula's version of mtx tape utilities for Linux distributions that
515 do not provide their own mtx package
518 Summary: Bacula - The Network Backup Solution
519 Group: System Environment/Daemons
521 Conflicts: bacula-mysql
522 Conflicts: bacula-sqlite
523 Conflicts: bacula-postgresql
524 Obsoletes: bacula-rescue
526 %if %{su9} || %{su10}
530 Requires: libstdc++, zlib, openssl
533 Requires: glibc >= 2.2
536 %if %{su9} || %{su10}
537 Requires: glibc >= 2.3
540 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{fc5}
541 Requires: glibc >= 2.3
545 Requires: glibc >= 2.4
550 Requires: python >= %{pyver}
564 This is the File daemon (Client) only package. It includes the command line
569 Summary: Bacula - The Network Backup Solution
570 Group: System Environment/Daemons
572 %description updatedb
583 This package installs scripts for updating older versions of the bacula
588 Summary: Bacula - The Network Backup Solution
589 Group: System Environment/Daemons
590 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
593 %if %{gconsole} && %{su9}
594 Requires: gtk2 >= 2.0
595 Requires: libgnome >= 2.0
596 Requires: libgnomeui >= 2.0
597 Requires: glibc >= 2.3
599 Requires: libart_lgpl >= 2.0
600 Requires: libbonobo >= 2.0
601 Requires: libbonoboui >= 2.0
602 Requires: bonobo-activation
607 %if %{gconsole} && %{su10}
608 Requires: gtk2 >= 2.8
609 Requires: libgnome >= 2.12
610 Requires: libgnomeui >= 2.12
611 Requires: glibc >= 2.3
613 Requires: libart_lgpl >= 2.3
614 Requires: libbonobo >= 2.10
615 Requires: libbonoboui >= 2.10
616 Requires: bonobo-activation
620 Requires: fontconfig >= 2.3
621 Requires: gnome-vfs2 >= 2.12
624 %if %{gconsole} && %{mdk} && !%{mdv}
625 Requires: gtk2 >= 2.0
626 Requires: libgnomeui2
627 Requires: glibc >= 2.3
629 Requires: libart_lgpl >= 2.0
630 Requires: libbonobo >= 2.0
631 Requires: libbonoboui >= 2.0
635 %if %{gconsole} && %{mdv}
636 Requires: gtk2 >= 2.8
637 Requires: libgnomeui2
638 Requires: glibc >= 2.3
640 Requires: libart_lgpl >= 2.3
641 Requires: libbonobo >= 2.10
642 Requires: libbonoboui >= 2.10
646 %if %{gconsole} && %{fc3}
647 Requires: gtk2 >= 2.4
648 Requires: libgnomeui >= 2.8
649 Requires: glibc >= 2.3
651 Requires: libart_lgpl >= 2.3
652 Requires: libbonobo >= 2.8
653 Requires: libbonoboui >= 2.8
654 Requires: bonobo-activation
658 %if %{gconsole} && %{fc4}
659 Requires: gtk2 >= 2.6
660 Requires: libgnomeui >= 2.10
661 Requires: glibc >= 2.3
663 Requires: libart_lgpl >= 2.3
664 Requires: libbonobo >= 2.8
665 Requires: libbonoboui >= 2.8
666 Requires: bonobo-activation
670 %if %{gconsole} && %{fc5}
671 Requires: gtk2 >= 2.8
672 Requires: libgnomeui >= 2.14
673 Requires: glibc >= 2.4
675 Requires: libart_lgpl >= 2.3
676 Requires: libbonobo >= 2.14
677 Requires: libbonoboui >= 2.14
681 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5}
682 Requires: gtk2 >= 2.0
683 Requires: libgnomeui >= 2.0
684 Requires: glibc >= 2.3
686 Requires: libart_lgpl >= 2.0
687 Requires: libbonobo >= 2.0
688 Requires: libbonoboui >= 2.0
689 Requires: bonobo-activation
694 %if %{gconsole} && %{su9}
697 %if %{gconsole} && %{su10}
700 %if %{gconsole} && ! %{su9} && ! %{su10}
705 %description gconsole
716 This is the Gnome Console package. It is an add-on to the client or
722 Summary: Bacula - The Network Backup Solution
723 Group: System Environment/Daemons
724 Requires: wxGTK >= 2.6, libstdc++, openssl
727 %if %{wxconsole} && %{su10}
728 Requires: gtk2 >= 2.8
731 %if %{wxconsole} && %{fc3}
732 Requires: gtk2 >= 2.4
735 %if %{wxconsole} && %{fc4}
736 Requires: gtk2 >= 2.6
739 %if %{wxconsole} && %{fc5}
740 Requires: gtk2 >= 2.8
744 %description wxconsole
755 This is the WXWindows Console package. It is an add-on to the client or
769 %if %{su9} || %{su10}
770 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
781 # patches for the bundled sqlite scripts
782 # as of 1.38.0 first 3 patches no longer needed
784 # patch the make_sqlite_tables script for installation bindir
785 # patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
787 # patch the create_sqlite_database script for installation bindir
788 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
790 # patch the make_catalog_backup script for installation bindir
791 #patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
793 # patch the update_sqlite_tables script for installation bindir
794 patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
796 # patch the bacula-dir init script to remove sqlite service
797 %if %{sqlite} && %{su9}
798 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
800 %if %{sqlite} && %{su10}
801 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
804 # 64 bit lib location hacks
806 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
808 %if %{mysql} && %{x86_64}
809 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
811 # this MAY be necessary for python support - waiting for feedback to enable
812 #%if %{python} && %{x86_64}
813 #export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
818 --sbindir=/usr/sbin \
819 --sysconfdir=/etc/bacula \
820 --with-scriptdir=/etc/bacula \
821 --enable-smartalloc \
822 --enable-client-only \
832 --sbindir=/usr/sbin \
833 --sysconfdir=/etc/bacula \
834 --with-scriptdir=/etc/bacula \
835 --enable-smartalloc \
839 %if %{gconsole} && ! %{rh8}
840 --enable-tray-monitor \
846 --with-sqlite=${cwd}/%{depkgs}/sqlite \
852 --enable-wx-console \
857 --with-working-dir=%{working_dir} \
858 --with-pid-dir=/var/run \
859 --with-subsys-dir=/var/lock/subsys \
860 --with-dir-user=%{director_daemon_user} \
861 --with-dir-group=%{daemon_group} \
862 --with-sd-user=%{storage_daemon_user} \
863 --with-sd-group=%{storage_daemon_group} \
864 --with-fd-user=%{file_daemon_user} \
865 --with-fd-group=%{daemon_group} \
866 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
867 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
868 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
869 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
870 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
871 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
879 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
880 mkdir -p $RPM_BUILD_ROOT/etc/init.d
881 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
882 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
883 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
884 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
885 mkdir -p $RPM_BUILD_ROOT/etc/bacula/updatedb
887 %if %{gconsole} || %{wxconsole}
888 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
889 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
892 %if %{gconsole} || %{wxconsole}
893 %define usermode_iftrick 1
895 %define usermode_iftrick 0
898 %if %{usermode_iftrick} && ! %{su9} && ! %{su10}
899 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
900 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
901 mkdir -p $RPM_BUILD_ROOT/usr/bin
905 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
909 prefix=$RPM_BUILD_ROOT/usr \
910 sbindir=$RPM_BUILD_ROOT/usr/sbin \
911 sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
912 scriptdir=$RPM_BUILD_ROOT/etc/bacula \
913 working_dir=$RPM_BUILD_ROOT%{working_dir} \
918 prefix=$RPM_BUILD_ROOT/usr \
919 sbindir=$RPM_BUILD_ROOT/usr/sbin \
920 sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
921 working_dir=$RPM_BUILD_ROOT%{working_dir} \
922 mandir=$RPM_BUILD_ROOT/usr/man \
926 # fixme - make installs the mysql scripts for sqlite build
928 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
929 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
930 rm -f $RPM_BUILD_ROOT/etc/bacula/grant_mysql_privileges
933 # fixme - make installs the mysql scripts for postgresql build
935 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
936 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
939 # fixme - make installs gconsole script for build without gconsole
941 rm -f $RPM_BUILD_ROOT/etc/bacula/gconsole
944 rm -f $RPM_BUILD_ROOT/usr/sbin/static-bacula-fd
946 # install the init scripts
947 %if %{su9} || %{su10}
948 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
949 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
950 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
953 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
954 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
955 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
957 %if ! %{su9} && ! %{su10} && ! %{mdk}
958 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
959 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
960 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
962 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
964 # install the menu stuff
965 %if %{gconsole} && %{su9}
966 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
967 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
968 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
969 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
971 %if %{gconsole} && %{su10}
972 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
973 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
974 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
975 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
977 %if %{wxconsole} && %{su10}
978 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
979 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
981 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{mdk}
986 %if %{gconsole} && %{iftrick}
987 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
988 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
989 cp -p scripts/gnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/gnome-console
990 cp -p scripts/gnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/gnome-console
991 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/gnome-console
993 %if %{gconsole} && ! %{rh8}
994 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
995 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
997 %if %{wxconsole} && %{iftrick}
998 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
999 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1000 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/wxconsole
1001 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/wxconsole
1002 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/wxconsole
1007 cp -p %{depkgs}/sqlite/sqlite $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite
1008 cp -p %{depkgs}/sqlite/sqlite.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite.h
1009 cp -p %{depkgs}/sqlite/libsqlite.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite.a
1012 # install the logrotate file
1013 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1015 # install the updatedb scripts
1016 cp -p updatedb/* $RPM_BUILD_ROOT/etc/bacula/updatedb/
1018 # install the logwatch scripts
1019 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1020 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1021 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1022 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1023 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1024 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1026 # install the rescue files
1027 mkdir $RPM_BUILD_ROOT/etc/bacula/rescue
1028 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT/etc/bacula/rescue/
1029 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT/etc/bacula/rescue/
1030 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT/etc/bacula/rescue/
1031 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT/etc/bacula/rescue/
1032 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT/etc/bacula/rescue/
1033 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT/etc/bacula/rescue/
1034 touch $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/rpm_release
1035 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/bacula/bin/bacula-fd
1036 rm -f src/filed/static-bacula-fd
1039 mv $RPM_BUILD_ROOT/usr/sbin/wx-console $RPM_BUILD_ROOT/usr/sbin/wxconsole
1040 mv $RPM_BUILD_ROOT/etc/bacula/wx-console.conf $RPM_BUILD_ROOT/etc/bacula/wxconsole.conf
1043 # now clean up permissions that are left broken by the install
1044 chmod o-r $RPM_BUILD_ROOT/etc/bacula/query.sql
1045 chmod o-rwx $RPM_BUILD_ROOT/var/bacula
1046 %if %{gconsole} && ! %{rh8}
1047 chmod 755 $RPM_BUILD_ROOT/usr/sbin/bacula-tray-monitor
1048 chmod 644 $RPM_BUILD_ROOT/etc/bacula/tray-monitor.conf
1052 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1055 # MySQL specific files
1057 %defattr(-, root, root)
1058 %attr(-, root, %{daemon_group}) /etc/bacula/create_mysql_database
1059 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_database
1060 %attr(-, root, %{daemon_group}) /etc/bacula/make_mysql_tables
1061 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_tables
1062 %attr(-, root, %{daemon_group}) /etc/bacula/update_mysql_tables
1063 %attr(-, root, %{daemon_group}) /etc/bacula/grant_mysql_privileges
1064 %attr(-, root, %{daemon_group}) /etc/bacula/startmysql
1065 %attr(-, root, %{daemon_group}) /etc/bacula/stopmysql
1070 %defattr(-,root,root)
1071 %attr(-, root, %{daemon_group}) /etc/bacula/create_sqlite_database
1072 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_database
1073 %attr(-, root, %{daemon_group}) /etc/bacula/grant_sqlite_privileges
1074 %attr(-, root, %{daemon_group}) /etc/bacula/make_sqlite_tables
1075 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_tables
1076 %attr(-, root, %{daemon_group}) /etc/bacula/update_sqlite_tables
1077 %{sqlite_bindir}/libsqlite.a
1078 %{sqlite_bindir}/sqlite.h
1079 %{sqlite_bindir}/sqlite
1084 %defattr(-,root,root)
1085 %attr(-, root, %{daemon_group}) /etc/bacula/create_postgresql_database
1086 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_database
1087 %attr(-, root, %{daemon_group}) /etc/bacula/make_postgresql_tables
1088 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_tables
1089 %attr(-, root, %{daemon_group}) /etc/bacula/update_postgresql_tables
1090 %attr(-, root, %{daemon_group}) /etc/bacula/grant_postgresql_privileges
1093 # The rest is DB backend independent
1094 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1095 %attr(-, root, %{daemon_group}) /etc/bacula/bacula
1096 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1097 %attr(-, root, %{daemon_group}) /etc/bacula/create_bacula_database
1098 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_database
1099 %attr(-, root, %{daemon_group}) /etc/bacula/grant_bacula_privileges
1100 %attr(-, root, %{daemon_group}) /etc/bacula/make_bacula_tables
1101 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_tables
1102 %attr(-, root, %{daemon_group}) /etc/bacula/update_bacula_tables
1103 %attr(-, root, %{daemon_group}) /etc/bacula/make_catalog_backup
1104 %attr(-, root, %{daemon_group}) /etc/bacula/delete_catalog_backup
1105 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1106 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1107 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1108 %attr(-, root, %{daemon_group}) /etc/bacula/disk-changer
1109 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-dir
1110 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-fd
1111 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-sd
1112 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
1113 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
1114 %attr(-, root, %{storage_daemon_group}) /etc/bacula/dvd-handler
1115 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
1116 %attr(-, root, %{storage_daemon_group}) /etc/bacula/mtx-changer
1118 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1119 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1121 /etc/logrotate.d/bacula
1122 /etc/log.d/scripts/services/bacula
1123 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-dir.conf
1124 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1125 %attr(-, root, %{storage_daemon_group}) %config(noreplace) /etc/bacula/bacula-sd.conf
1126 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1127 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
1128 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
1129 %attr(-, root, %{daemon_group}) /etc/bacula/query.sql
1130 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1132 /usr/sbin/bacula-dir
1140 /usr/sbin/btraceback
1149 # test for bacula database older than version 8
1150 # note: this ASSUMES no password has been set for bacula database
1151 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1156 # test for bacula database older than version 8
1157 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
1158 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1163 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1166 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "8" ]; then
1167 echo "This bacula upgrade will update a bacula database from version 8 to 9."
1168 echo "You appear to be running database version $DB_VER. You must first update"
1169 echo "your database to version 8 and then install this upgrade. The alternative"
1170 echo "is to use /etc/bacula/drop_%{db_backend}_tables to delete all your your current"
1171 echo "catalog information, then do the upgrade. Information on updating a"
1172 echo "database older than version 8 can be found in the release notes."
1180 # check for and copy /etc/bacula/console.conf to bconsole.conf
1181 if [ -s /etc/bacula/console.conf ];then
1182 cp -p /etc/bacula/console.conf /etc/bacula/bconsole.conf
1185 # create the daemon users and groups
1186 # first create the groups if they don't exist
1187 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1188 if [ -z "$HAVE_BACULA" ]; then
1189 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1190 echo "The group %{daemon_group} has been added to %{group_file}."
1191 echo "See the manual chapter \"Running Bacula\" for details."
1193 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
1194 if [ -z "$HAVE_BACULA" ]; then
1195 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
1196 echo "The group %{storage_daemon_group} has been added to %{group_file}."
1197 echo "See the manual chapter \"Running Bacula\" for details."
1199 # now create the users if they do not exist
1200 # we do not use the -g option allowing the primary group to be set to system default
1201 # this will be a unique group on redhat type systems or the group users on some systems
1202 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
1203 if [ -z "$HAVE_BACULA" ]; then
1204 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
1205 echo "The user %{storage_daemon_user} has been added to %{user_file}."
1206 echo "See the manual chapter \"Running Bacula\" for details."
1208 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
1209 if [ -z "$HAVE_BACULA" ]; then
1210 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
1211 echo "The user %{director_daemon_user} has been added to %{user_file}."
1212 echo "See the manual chapter \"Running Bacula\" for details."
1214 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1215 if [ -z "$HAVE_BACULA" ]; then
1216 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1217 echo "The user %{file_daemon_user} has been added to %{user_file}."
1218 echo "See the manual chapter \"Running Bacula\" for details."
1220 # now we add the supplementary groups, this is ok to call even if the users already exist
1221 # we only do this if the user is NOT root
1222 IS_ROOT=%{director_daemon_user}
1223 if [ "$IS_ROOT" != "root" ]; then
1224 %{usermod} -G %{daemon_group} %{director_daemon_user}
1226 IS_ROOT=%{storage_daemon_user}
1227 if [ "$IS_ROOT" != "root" ]; then
1228 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
1230 IS_ROOT=%{file_daemon_user}
1231 if [ "$IS_ROOT" != "root" ]; then
1232 %{usermod} -G %{daemon_group} %{file_daemon_user}
1246 if [ "$1" -ge 1 ] ; then
1247 /sbin/chkconfig --add bacula-dir
1248 /sbin/chkconfig --add bacula-fd
1249 /sbin/chkconfig --add bacula-sd
1253 # test for an existing database
1254 # note: this ASSUMES no password has been set for bacula database
1255 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1257 # grant privileges and create tables if they do not exist
1258 if [ -z "$DB_VER" ]; then
1259 echo "Hmm, doesn't look like you have an existing database."
1260 echo "Granting privileges for MySQL user bacula..."
1261 /etc/bacula/grant_mysql_privileges
1262 echo "Creating MySQL bacula database..."
1263 /etc/bacula/create_mysql_database
1264 echo "Creating bacula tables..."
1265 /etc/bacula/make_mysql_tables
1267 # check to see if we need to upgrade a 1.36 or lower database
1268 elif [ "$DB_VER" -lt "9" ]; then
1269 echo "This release requires an upgrade to your bacula database."
1270 echo "Backing up your current database..."
1271 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1272 echo "Upgrading bacula database ..."
1273 /etc/bacula/update_mysql_tables
1274 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1280 # test for an existing database
1281 if [ -s %{working_dir}/bacula.db ]; then
1282 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1283 # check to see if we need to upgrade a 1.36 or lower database
1284 if [ "$DB_VER" -lt "9" ] && [ "$DB_VER" -ge "8" ]; then
1285 echo "This release requires an upgrade to your bacula database."
1286 echo "Backing up your current database..."
1287 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1288 echo "Upgrading bacula database ..."
1289 /etc/bacula/update_sqlite_tables
1290 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1293 # create the database and tables
1294 echo "Hmm, doesn't look like you have an existing database."
1295 echo "Creating SQLite database..."
1296 /etc/bacula/create_sqlite_database
1297 echo "Creating the SQLite tables..."
1298 /etc/bacula/make_sqlite_tables
1303 # test for an existing database
1304 # note: this ASSUMES no password has been set for bacula database
1305 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1307 # grant privileges and create tables if they do not exist
1308 if [ -z "$DB_VER" ]; then
1309 echo "Hmm, doesn't look like you have an existing database."
1310 echo "Creating PostgreSQL bacula database..."
1311 /etc/bacula/create_postgresql_database
1312 echo "Creating bacula tables..."
1313 /etc/bacula/make_postgresql_tables
1314 echo "Granting privileges for PostgreSQL user bacula..."
1315 /etc/bacula/grant_postgresql_privileges
1317 # check to see if we need to upgrade a 1.36 or lower database
1318 elif [ "$DB_VER" -lt "9" ]; then
1319 echo "This release requires an upgrade to your bacula database."
1320 echo "Backing up your current database..."
1321 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1322 echo "Upgrading bacula database ..."
1323 /etc/bacula/update_postgresql_tables
1324 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1329 # generate passwords if needed
1330 if [ -d /etc/bacula ]; then
1332 for file in *.conf; do
1333 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
1334 need_password=`grep $string $file 2>/dev/null`
1335 if [ -n "$need_password" ]; then
1336 pass=`openssl rand -base64 33`
1337 sed "s-$string-$pass-g" $file > $file.new
1338 cp -f $file.new $file; rm -f $file.new
1356 /sbin/chkconfig --del bacula-dir
1357 /sbin/chkconfig --del bacula-fd
1358 /sbin/chkconfig --del bacula-sd
1363 %attr(-, root, %{storage_daemon_group}) /usr/sbin/loaderinfo
1364 %attr(-, root, %{storage_daemon_group}) /usr/sbin/mtx
1365 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsitape
1366 %attr(-, root, %{storage_daemon_group}) /usr/sbin/tapeinfo
1371 %defattr(-,root,root)
1372 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1373 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1374 /etc/init.d/bacula-fd
1375 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1377 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1378 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1380 /etc/logrotate.d/bacula
1382 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1383 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1384 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1387 /usr/sbin/btraceback
1388 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1389 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1395 # create the daemon group and user
1396 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1397 if [ -z "$HAVE_BACULA" ]; then
1398 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1399 echo "The group %{daemon_group} has been added to %{group_file}."
1400 echo "See the manual chapter \"Running Bacula\" for details."
1402 # we do not use the -g option allowing the primary group to be set to system default
1403 # this will be a unique group on redhat type systems or the group users on some systems
1404 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1405 if [ -z "$HAVE_BACULA" ]; then
1406 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1407 echo "The user %{file_daemon_user} has been added to %{user_file}."
1408 echo "See the manual chapter \"Running Bacula\" for details."
1410 # now we add the supplementary group, this is ok to call even if the user already exists
1411 # we only do this if the user is NOT root
1412 IS_ROOT=%{file_daemon_user}
1413 if [ "$IS_ROOT" != "root" ]; then
1414 %{usermod} -G %{daemon_group} %{file_daemon_user}
1419 if [ "$1" -ge 1 ] ; then
1420 /sbin/chkconfig --add bacula-fd
1423 # generate passwords if needed
1424 if [ -d /etc/bacula ]; then
1426 for file in *.conf; do
1427 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
1428 need_password=`grep $string $file 2>/dev/null`
1429 if [ -n "$need_password" ]; then
1430 pass=`openssl rand -base64 33`
1431 sed "s-$string-$pass-g" $file > $file.new
1432 cp -f $file.new $file; rm -f $file.new
1441 /sbin/chkconfig --del bacula-fd
1445 %defattr(-,root,%{daemon_group})
1446 /etc/bacula/updatedb/*
1449 # create the daemon group
1450 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1451 if [ -z "$HAVE_BACULA" ]; then
1452 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1453 echo "The group %{daemon_group} has been added to %{group_file}."
1454 echo "See the manual chapter \"Running Bacula\" for details."
1458 echo "The database update scripts were installed to /etc/bacula/updatedb"
1462 %defattr(-,root,root)
1463 /usr/sbin/gnome-console
1464 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1465 %attr(-, root, %{daemon_group}) /etc/bacula/gconsole
1466 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/gnome-console.conf
1467 /usr/share/pixmaps/bacula.png
1468 /usr/share/applications/bacula.desktop
1471 %if %{gconsole} && ! %{rh8}
1472 /usr/sbin/bacula-tray-monitor
1473 %config(noreplace) /etc/bacula/tray-monitor.conf
1474 /usr/share/pixmaps/bacula-tray-monitor.xpm
1475 /usr/share/applications/bacula-tray-monitor.desktop
1478 %if %{gconsole} && ! %{su9} && ! %{su10}
1479 # add the console helper files
1480 %config(noreplace,missingok) /etc/pam.d/gnome-console
1481 %config(noreplace,missingok) /etc/security/console.apps/gnome-console
1482 /usr/bin/gnome-console
1487 # create the daemon group
1488 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1489 if [ -z "$HAVE_BACULA" ]; then
1490 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1491 echo "The group %{daemon_group} has been added to %{group_file}."
1492 echo "See the manual chapter \"Running Bacula\" for details."
1496 # generate passwords if needed
1497 if [ -d /etc/bacula ]; then
1499 for file in *.conf; do
1500 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
1501 need_password=`grep $string $file 2>/dev/null`
1502 if [ -n "$need_password" ]; then
1503 pass=`openssl rand -base64 33`
1504 sed "s-$string-$pass-g" $file > $file.new
1505 cp -f $file.new $file; rm -f $file.new
1514 %defattr(-,root,root)
1516 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1517 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/wxconsole.conf
1518 /usr/share/pixmaps/wxwin16x16.xpm
1519 /usr/share/applications/wxconsole.desktop
1522 %if %{wxconsole} && ! %{su9} && ! %{su10}
1523 # add the console helper files
1524 %config(noreplace,missingok) /etc/pam.d/wxconsole
1525 %config(noreplace,missingok) /etc/security/console.apps/wxconsole
1531 # create the daemon group
1532 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1533 if [ -z "$HAVE_BACULA" ]; then
1534 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1535 echo "The group %{daemon_group} has been added to %{group_file}."
1536 echo "See the manual chapter \"Running Bacula\" for details."
1540 # generate passwords if needed
1541 if [ -d /etc/bacula ]; then
1543 for file in *.conf; do
1544 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
1545 need_password=`grep $string $file 2>/dev/null`
1546 if [ -n "$need_password" ]; then
1547 pass=`openssl rand -base64 33`
1548 sed "s-$string-$pass-g" $file > $file.new
1549 cp -f $file.new $file; rm -f $file.new
1557 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1558 - add provides and conflicts for standard suse packages
1559 - add third party packager tag support
1560 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1561 - fix directory creation when wxconsole and not gconsole
1562 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1563 - add check to buildrequires to make sure libstdc++ version matches gcc
1564 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1565 - add python build support
1566 - fix LDFLAGS declarations
1567 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1568 - add requires for standard compiler toolchain
1569 - move version and release tags up
1571 - add docs_version tag
1572 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1573 - update rescuever to 1.8.6
1574 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1575 - update depkgs to 25Jun06
1576 - add mysql5 build tag
1577 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1578 - 1.38.10 bump rescue version
1579 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1580 - fix usermod statements
1582 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1583 - add -g param back to useradd statements Bug 605
1584 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1585 - redundant code cleanup
1586 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1587 - add wxconsole package
1588 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1590 - dependency update for Mandriva
1591 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1593 - remove -n option from useradd scripts
1594 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1596 - fix problem specifying more than one primary group for user bacula
1597 - add build switch to not build gconsole regardless of platform
1598 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1599 - add centos3 build tag
1600 - fix link error of static-fd on Mandrake with --disable-nls
1601 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1602 - add fc4 dependencies
1603 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1604 - add SuSE 10.0 build
1605 - remove specific permission in attrib macros
1606 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1608 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
1609 - refix compat for _dist on SLES9 which seems to have been removed
1610 - added note regarding Aleksandar's use of specific permissions in attrib macros
1611 - need to review and add specific fc4 build currently using fc3 Requires
1612 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1614 - Reorganize files and pre/post sections to remove repetitions
1615 - Always build separate mtx package
1616 - Fix file ownerships for /etc/bacula and Bacula's working dir
1617 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1618 - Disable GNOME on RH7
1619 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1620 - Red Hat and look alikes have mtx RPM, do not build/package our version
1621 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1622 - minor edit to _dist for SLES9 compatibility
1623 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1625 - kern changed location of pdf files and html manual in docs package
1626 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1628 - add docs (from prebuilt tarball) and rescue packages back in
1629 - remove dvd-freespace and dvd-writepart files, add dvd-handler
1630 - remove 3 of 4 sqlite script patches as not needed
1631 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1633 - remove docs and rescue sections (remove static fd)
1634 - add dvd-freespace and dvd-writepart files
1635 - update depkgs to 22Jun05
1636 - change database update to 8 to 9
1637 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1638 - minor cleanups before 1.38 changes
1639 - add popt and popt-devel build dependencies
1640 - add tetex and tetex-dvips dependencies for doc build
1641 - replace deprecated Copyright tag with License
1642 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1643 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
1644 - conflict with sqlite packages. remove readline dependency.
1645 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1646 - release 1.36.3 update docs
1647 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1648 - add centos4 build tag
1649 - add x86_64 build tag
1650 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1651 - add rhel4 build tag
1652 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
1653 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1654 - add rhel3 build tag
1655 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1656 - fix tray-monitor.conf for noreplace
1657 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1658 - fix distribution check for Fedora and Whitebox
1659 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1660 - add logwatch script
1662 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1663 - add build for Fedora Core 3 (linc now included in ORDit2)
1664 - add mysql4 define for Mandrake 10.1
1665 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1666 - fix {group_file} variable in post scripts
1667 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
1668 - add distribution checking and custom Distribution tag
1669 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1670 - ASSIGNMENT OF COPYRIGHT
1671 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
1672 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
1673 - all right, title and interest in and to the copyright in this software RPM
1674 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
1675 - free of all liens, encumbrances or any known claims against said copyright.
1676 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1678 - thanks to Daniel Widyono
1679 - update description for rescue package to describe cdrom creation
1680 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1681 - update depkgs to 29Oct04
1682 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1683 - add cdrom rescue to bacula-rescue package
1684 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1685 - misc fixes from 1.36.0 suse feedback
1686 - fix situation where sqlite database exists but sqlite has been removed.
1687 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1688 - remove tray-monitor from RH8 build
1689 - fix permissions on tray-monitor files
1690 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1691 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
1692 - change database update to 7 to 8 upgrade,
1693 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
1694 - build in 30Jul04, add freetype dependancy to gnome package.
1695 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1696 - add documentation to console for groupadd
1697 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1698 - add support for running daemons as root.bacula
1699 - correct for change in location of floppy rescue files in 1.35.2
1700 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
1701 - updated depgkgs to 30Jul04
1702 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1703 - really, really fix symlink creation for gconsole
1704 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1705 - fix symlink creation in gconsole post install
1706 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1707 - fixed error in gconsole post script
1708 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1709 - add check for gconsole symlink before trying to create it
1710 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1711 - fix some minor permissions issues on doc files that CVS won't let us fix
1712 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1713 - add pkgconfig to BuildRequires
1714 - clean up gnome1/2 menu entries for appropriate packages
1715 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1716 - tightened up doc distribution
1717 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1718 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
1719 - rpm's horrible bug that prevents nested conditional macros prevents me
1720 - from implementing these 2 separate approaches within the conditionals which
1721 - create the separate server packages.
1722 - the solution adopted is to remove the gnome-console files from the server packages
1723 - so bacula-gconsole is now an add on for both client and server packages.
1724 - this also now allows the server packages to be install on machines without
1725 - an X-server and we can still maintain a single spec file.
1726 - added tests to make sure we have defined platform and database macros.
1727 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1728 - corrected mysql prerequisites for suse
1729 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1730 - replaced all cp commands with cp -p
1731 - removed addition of a+x permissions on gnome-console
1732 - corrected permissions on init scripts
1733 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1734 - corrected creation of sqlite_bindir in install from !mysql to sqlite
1736 - various cleanup patches from Michael K. Johnson:
1737 - corrected post install routines for nicer chkconfig
1738 - removed chmod changes in post routines and moved to install section
1739 - removed interactive nature of post routine for rescue package
1740 - added description of building rescue disks to the description of rescue package
1741 - added clean of build root to beginning of install
1742 - removed specifying attr in all file lists
1743 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1744 - added bconsole to client package
1745 - added gconsole package as add-on to client
1746 - removed spurious dependancies on updatedb package (!cut/paste)
1747 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1748 - added updatedb package
1749 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1750 - added postgresql package
1751 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1752 - corrected the if else logic in the dependancy sections
1753 - changes for 1.34 release
1754 - /etc/bacula/console is now /etc/bacula/bconsole
1755 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
1756 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
1757 - /usr/sbin/smtp is now /usr/sbin/bsmtp
1758 - added new /etc/bacula/drop_mysql_database
1759 - added new /etc/bacula/drop_sqlite_database
1760 - added new /etc/bacula/grant_sqlite_privileges
1761 - added new generic bacula database scripts in /etc/bacula
1762 - added pre-install sections to check for database versions older than 6
1763 - added check for /etc/bacula/console.conf and copy to bconsole.conf
1764 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1765 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
1766 - added testing for existing databases before executing any of the database creation scripts
1767 - added defines working_dir and sqlite_bindir in place of hard coded paths
1768 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1769 - added build configuration for SuSE.
1770 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
1771 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1772 - added patch for create_sqlite_database to fix the installed bindir
1773 - added execute of create_sqlite_database to post of sqlite package
1774 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1775 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
1776 - added bacula-fd as Requires for rescue package
1777 - added build tag for Fedora Core 1
1778 - cleaned up dependancies for all builds
1779 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1780 - removed rh_version from package names
1781 - added platform build configuration section to beginning of file
1782 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1783 - removed make_static_bacula script from rescue package install
1784 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1785 - Added define at top of file for depkgs version
1786 - Added rescue sub-package
1787 - Moved requires statements into proper sub-package locations
1788 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1789 - Corrected Requires for Gnome 1.4/2.0 builds
1790 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1791 - Added separate source declaration for depkgs
1792 - added patch for make_catalog_backup script
1793 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1794 - Misc changes to mysql/sqlite build and rh7/8 menu differences
1795 - Added rh_version to sub-package names
1796 - Added installed but missing file /etc/bacula/gconsole
1797 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
1798 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
1799 - Update spec for version 1.31 and combine client
1800 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>