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 Summary: Bacula - The Network Backup Solution
26 Group: System Environment/Daemons
28 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
29 Source1: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
30 Source2: Release_Notes-%{version}-%{release}.tar.gz
31 Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
32 Source4: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
33 BuildRoot: %{_tmppath}/%{name}-root
34 URL: http://www.bacula.org/
35 Vendor: The Bacula Team
36 Packager: D. Scott Barninger <barninger@fairfieldcomputers.com>
38 # define the basic package description
39 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
40 %define blurb2 Bacula is a set of computer programs that permit you (or the system
41 %define blurb3 administrator) to manage backup, recovery, and verification of computer
42 %define blurb4 data across a network of computers of different kinds. In technical terms,
43 %define blurb5 it is a network client/server based backup program. Bacula is relatively
44 %define blurb6 easy to use and efficient, while offering many advanced storage management
45 %define blurb7 features that make it easy to find and recover lost or damaged files.
46 %define blurb8 Bacula source code has been released under the GPL version 2 license.
49 %define sqlite_bindir /usr/lib/bacula/sqlite
50 %define working_dir /var/bacula
51 %define _docsrc ../%{name}-docs-%{docs_version}
52 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
53 %define depkgs ../depkgs
55 # NOTE these defines are used in some rather complex useradd and groupadd
56 # commands. If you change them examine the post scripts for consequences.
57 %define director_daemon_user bacula
58 %define storage_daemon_user bacula
59 %define file_daemon_user root
60 %define daemon_group bacula
61 # group that has write access to tape devices, usually disk on Linux
62 %define storage_daemon_group disk
63 %define user_file /etc/passwd
64 %define group_file /etc/group
67 %define useradd /usr/sbin/useradd
68 %define groupadd /usr/sbin/groupadd
69 %define usermod /usr/sbin/usermod
71 # platform defines - set one below or define the build_xxx on the command line
74 %{?build_rh7:%define rh7 1}
76 %{?build_rh8:%define rh8 1}
78 %{?build_rh9:%define rh9 1}
81 %{?build_fc1:%define fc1 1}
83 %{?build_fc3:%define fc3 1}
85 %{?build_fc4:%define fc4 1}
87 %{?build_fc5:%define fc5 1}
88 # Whitebox Enterprise build
90 %{?build_wb3:%define wb3 1}
91 # RedHat Enterprise builds
93 %{?build_rhel3:%define rhel3 1}
94 %{?build_rhel3:%define wb3 1}
96 %{?build_rhel4:%define rhel4 1}
97 %{?build_rhel4:%define fc3 1}
100 %{?build_centos3:%define centos3 1}
101 %{?build_centos3:%define wb3 1}
103 %{?build_centos4:%define centos4 1}
104 %{?build_centos4:%define fc3 1}
107 %{?build_su9:%define su9 1}
109 %{?build_su10:%define su10 1}
112 %{?build_mdk:%define mdk 1}
114 %{?build_mdv:%define mdv 1}
115 %{?build_mdv:%define mdk 1}
117 # test for a platform definition
118 %if ! %{rh7} && ! %{rh8} && ! %{rh9} && ! %{fc1} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{wb3} && ! %{su9} && ! %{su10} && ! %{mdk}
119 %{error: You must specify a platform. Please examine the spec file.}
124 # set for database support desired or define the build_xxx on the command line
126 %{?build_mysql:%define mysql 1}
127 # if using mysql 4.x define this and mysql above
128 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
130 %{?build_mysql4:%define mysql4 1}
131 %{?build_mysql4:%define mysql 1}
132 # if using mysql 5.x define this and mysql above
133 # currently: SuSE 10.1 and Fedora Core 5
135 %{?build_mysql5:%define mysql5 1}
136 %{?build_mysql5:%define mysql 1}
138 %{?build_sqlite:%define sqlite 1}
140 %{?build_postgresql:%define postgresql 1}
142 # test for a database definition
143 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql}
144 %{error: You must specify database support. Please examine the spec file.}
149 %define db_backend mysql
152 %define db_backend sqlite
155 %define db_backend postgresql
160 %{?build_x86_64:%define x86_64 1}
162 # check what distribution we are
163 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4}
164 %define _dist %(grep Red /etc/redhat-release)
166 %if %{fc1} || %{fc4} || %{fc5}
167 %define _dist %(grep Fedora /etc/redhat-release)
169 %if %{centos4} || %{centos3}
170 %define _dist %(grep CentOS /etc/redhat-release)
172 %if %{fc3} && ! %{rhel4} && ! %{centos4}
173 %define _dist %(grep Fedora /etc/redhat-release)
175 %if %{wb3} && ! %{rhel3} && ! %{centos3}
176 %define _dist %(grep White /etc/whitebox-release)
178 %if %{su9} || %{su10}
179 %define _dist %(grep -i SuSE /etc/SuSE-release)
182 %define _dist %(grep Mand /etc/mandrake-release)
184 Distribution: %{_dist}
186 # Should we build gconsole, possible only if gnome >= 2.0 available
192 # specifically disallow gconsole if desired
193 %{?nobuild_gconsole:%define gconsole 0}
195 # Should we build wxconsole, only wxWidgets >=2.6 is supported
196 # currently only SuSE 10 and FC4/FC5
198 %{?build_wxconsole:%define wxconsole 1}
200 # should we turn on python support
202 %{?build_python:%define python 1}
204 %{expand: %%define gccver %(rpm -q gcc | cut -d - -f 2)}
205 %{expand: %%define gccrel %(rpm -q gcc | cut -d - -f 3)}
207 BuildRequires: gcc, gcc-c++, make, autoconf
208 BuildRequires: atk-devel, ncurses-devel, pango-devel, perl
209 BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, libxml2-devel, zlib-devel
210 BuildRequires: openssl-devel
212 BuildRequires: python, python-devel
213 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
216 BuildRequires: pkgconfig
219 BuildRequires: libtermcap-devel
220 BuildRequires: glibc-devel >= 2.2
223 BuildRequires: termcap
224 BuildRequires: glibc-devel >= 2.3
226 %if %{su9} && %{gconsole}
227 BuildRequires: libgnome >= 2.0
228 BuildRequires: gtk2-devel >= 2.0
229 BuildRequires: libgnomeui-devel >= 2.0
230 BuildRequires: ORBit2-devel
231 BuildRequires: libart_lgpl-devel >= 2.0
232 BuildRequires: libbonobo-devel >= 2.0
233 BuildRequires: libbonoboui-devel >= 2.0
234 BuildRequires: bonobo-activation-devel
235 BuildRequires: gconf2-devel
236 BuildRequires: linc-devel
237 BuildRequires: freetype2-devel
240 BuildRequires: termcap
241 BuildRequires: glibc-devel >= 2.3
243 %if %{su10} && %{gconsole}
244 BuildRequires: libgnome >= 2.12
245 BuildRequires: gtk2-devel >= 2.8
246 BuildRequires: libgnomeui-devel >= 2.12
247 BuildRequires: ORBit2-devel
248 BuildRequires: libart_lgpl-devel >= 2.3
249 BuildRequires: libbonobo-devel >= 2.10
250 BuildRequires: libbonoboui-devel >= 2.10
251 BuildRequires: bonobo-activation-devel
252 BuildRequires: gconf2-devel
253 BuildRequires: freetype2-devel
254 BuildRequires: cairo-devel
255 BuildRequires: fontconfig-devel >= 2.3
256 BuildRequires: gnome-vfs2-devel >= 2.12
257 BuildRequires: libpng-devel
260 BuildRequires: libtermcap-devel
261 BuildRequires: libstdc++-static-devel
262 BuildRequires: glibc-static-devel
263 BuildRequires: glibc-devel >= 2.3
265 %if %{mdk} && !%{mdv} && %{gconsole}
266 BuildRequires: gtk2-devel >= 2.0
267 BuildRequires: libgnomeui2-devel >= 2.0
268 BuildRequires: libORBit2-devel
269 BuildRequires: libart_lgpl-devel >= 2.0
270 BuildRequires: libbonobo2_0-devel
271 BuildRequires: libbonoboui2_0-devel
272 BuildRequires: libbonobo-activation-devel
273 BuildRequires: libGConf2-devel
274 BuildRequires: freetype2-devel
276 %if %{mdv} && %{gconsole}
277 BuildRequires: gtk2-devel >= 2.8
278 BuildRequires: libgnomeui2-devel >= 2.10
279 BuildRequires: libORBit2-devel
280 BuildRequires: libart_lgpl-devel >= 2.3
281 BuildRequires: libbonobo2_0-devel
282 BuildRequires: libbonoboui2_0-devel
283 BuildRequires: libbonobo-activation-devel
284 BuildRequires: libGConf2-devel
285 BuildRequires: freetype2-devel
288 BuildRequires: libtermcap-devel
289 BuildRequires: glibc-devel >= 2.3
291 %if %{fc3} && %{gconsole}
292 BuildRequires: gtk2-devel >= 2.4
293 BuildRequires: libgnomeui-devel >= 2.8
294 BuildRequires: ORBit2-devel
295 BuildRequires: libart_lgpl-devel >= 2.3
296 BuildRequires: libbonobo-devel >= 2.8
297 BuildRequires: libbonoboui-devel >= 2.8
298 BuildRequires: bonobo-activation-devel
299 BuildRequires: GConf2-devel
300 BuildRequires: freetype-devel
303 BuildRequires: libtermcap-devel
304 BuildRequires: glibc-devel >= 2.3
306 %if %{fc4} && %{gconsole}
307 BuildRequires: gtk2-devel >= 2.6
308 BuildRequires: libgnomeui-devel >= 2.10
309 BuildRequires: ORBit2-devel
310 BuildRequires: libart_lgpl-devel >= 2.3
311 BuildRequires: libbonobo-devel >= 2.8
312 BuildRequires: libbonoboui-devel >= 2.8
313 BuildRequires: bonobo-activation-devel
314 BuildRequires: GConf2-devel
315 BuildRequires: freetype-devel
318 BuildRequires: libtermcap-devel
319 BuildRequires: glibc-devel >= 2.4
321 %if %{fc5} && %{gconsole}
322 BuildRequires: gtk2-devel >= 2.8
323 BuildRequires: libgnomeui-devel >= 2.14
324 BuildRequires: ORBit2-devel
325 BuildRequires: libart_lgpl-devel >= 2.3
326 BuildRequires: libbonobo-devel >= 2.14
327 BuildRequires: libbonoboui-devel >= 2.14
328 BuildRequires: GConf2-devel
329 BuildRequires: freetype-devel
331 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5}
332 BuildRequires: libtermcap-devel
333 BuildRequires: glibc-devel >= 2.3
335 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && %{gconsole}
336 BuildRequires: gtk2-devel >= 2.0
337 BuildRequires: libgnomeui-devel >= 2.0
338 BuildRequires: ORBit2-devel
339 BuildRequires: libart_lgpl-devel >= 2.0
340 BuildRequires: libbonobo-devel >= 2.0
341 BuildRequires: libbonoboui-devel >= 2.0
342 BuildRequires: bonobo-activation-devel
343 BuildRequires: GConf2-devel
344 BuildRequires: linc-devel
345 BuildRequires: freetype-devel
348 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
349 BuildRequires: mysql-devel >= 3.23
352 %if %{mysql} && %{mysql4}
353 BuildRequires: mysql-devel >= 4.0
356 %if %{mysql} && %{mysql5}
357 BuildRequires: mysql-devel >= 5.0
360 %if %{postgresql} && %{wb3}
361 BuildRequires: rh-postgresql-devel >= 7
364 %if %{postgresql} && ! %{wb3}
365 BuildRequires: postgresql-devel >= 7
369 BuildRequires: wxGTK-devel >= 2.6
393 Summary: Bacula - The Network Backup Solution
394 Group: System Environment/Daemons
395 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
396 Conflicts: bacula-client
397 Obsoletes: bacula-rescue
399 %if %{su9} || %{su10}
403 Requires: ncurses, libstdc++, zlib, openssl, mtx
406 Requires: glibc >= 2.2
409 %if %{su9} || %{su10}
410 Requires: glibc >= 2.3
413 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{fc5}
414 Requires: glibc >= 2.3
418 Requires: glibc >= 2.4
422 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
423 Requires: mysql >= 3.23
424 Requires: mysql-server >= 3.23
426 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
427 Requires: mysql >= 4.0
428 Requires: mysql-server >= 4.0
430 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql5}
431 Requires: mysql >= 5.0
432 Requires: mysql-server >= 5.0
435 %if %{mysql} && %{su9} && ! %{mysql4}
436 Requires: mysql >= 3.23
437 Requires: mysql-client >= 3.23
439 %if %{mysql} && %{su9} && %{mysql4}
440 Requires: mysql >= 4.0
441 Requires: mysql-client >= 4.0
443 %if %{mysql} && %{su10} && %{mysql4}
444 Requires: mysql >= 4.0
445 Requires: mysql-client >= 4.0
447 %if %{mysql} && %{su10} && %{mysql5}
448 Requires: mysql >= 5.0
449 Requires: mysql-client >= 5.0
452 %if %{mysql} && %{mdk} && ! %{mysql4}
453 Requires: mysql >= 3.23
454 Requires: mysql-client >= 3.23
456 %if %{mysql} && %{mdk} && %{mysql4}
457 Requires: mysql >= 4.0
458 Requires: mysql-client >= 4.0
461 %if %{postgresql} && %{wb3}
462 Requires: rh-postgresql >= 7
463 Requires: rh-postgresql-server >= 7
465 %if %{postgresql} && ! %{wb3}
466 Requires: postgresql >= 7
467 Requires: postgresql-server >= 7
477 %description postgresql
481 Requires: python >= %{pyver}
495 This build requires MySQL to be installed separately as the catalog database.
498 This build requires PostgreSQL to be installed separately as the catalog database.
501 This build incorporates sqlite as the catalog database, statically compiled.
505 Summary: Bacula - The Network Backup Solution
506 Group: System Environment/Daemons
510 This is Bacula's version of mtx tape utilities for Linux distributions that
511 do not provide their own mtx package
514 Summary: Bacula - The Network Backup Solution
515 Group: System Environment/Daemons
517 Conflicts: bacula-mysql
518 Conflicts: bacula-sqlite
519 Conflicts: bacula-postgresql
520 Obsoletes: bacula-rescue
522 %if %{su9} || %{su10}
526 Requires: libstdc++, zlib, openssl
529 Requires: glibc >= 2.2
532 %if %{su9} || %{su10}
533 Requires: glibc >= 2.3
536 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{fc5}
537 Requires: glibc >= 2.3
541 Requires: glibc >= 2.4
546 Requires: python >= %{pyver}
560 This is the File daemon (Client) only package. It includes the command line
565 Summary: Bacula - The Network Backup Solution
566 Group: System Environment/Daemons
568 %description updatedb
579 This package installs scripts for updating older versions of the bacula
584 Summary: Bacula - The Network Backup Solution
585 Group: System Environment/Daemons
586 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
589 %if %{gconsole} && %{su9}
590 Requires: gtk2 >= 2.0
591 Requires: libgnome >= 2.0
592 Requires: libgnomeui >= 2.0
593 Requires: glibc >= 2.3
595 Requires: libart_lgpl >= 2.0
596 Requires: libbonobo >= 2.0
597 Requires: libbonoboui >= 2.0
598 Requires: bonobo-activation
603 %if %{gconsole} && %{su10}
604 Requires: gtk2 >= 2.8
605 Requires: libgnome >= 2.12
606 Requires: libgnomeui >= 2.12
607 Requires: glibc >= 2.3
609 Requires: libart_lgpl >= 2.3
610 Requires: libbonobo >= 2.10
611 Requires: libbonoboui >= 2.10
612 Requires: bonobo-activation
616 Requires: fontconfig >= 2.3
617 Requires: gnome-vfs2 >= 2.12
620 %if %{gconsole} && %{mdk} && !%{mdv}
621 Requires: gtk2 >= 2.0
622 Requires: libgnomeui2
623 Requires: glibc >= 2.3
625 Requires: libart_lgpl >= 2.0
626 Requires: libbonobo >= 2.0
627 Requires: libbonoboui >= 2.0
631 %if %{gconsole} && %{mdv}
632 Requires: gtk2 >= 2.8
633 Requires: libgnomeui2
634 Requires: glibc >= 2.3
636 Requires: libart_lgpl >= 2.3
637 Requires: libbonobo >= 2.10
638 Requires: libbonoboui >= 2.10
642 %if %{gconsole} && %{fc3}
643 Requires: gtk2 >= 2.4
644 Requires: libgnomeui >= 2.8
645 Requires: glibc >= 2.3
647 Requires: libart_lgpl >= 2.3
648 Requires: libbonobo >= 2.8
649 Requires: libbonoboui >= 2.8
650 Requires: bonobo-activation
654 %if %{gconsole} && %{fc4}
655 Requires: gtk2 >= 2.6
656 Requires: libgnomeui >= 2.10
657 Requires: glibc >= 2.3
659 Requires: libart_lgpl >= 2.3
660 Requires: libbonobo >= 2.8
661 Requires: libbonoboui >= 2.8
662 Requires: bonobo-activation
666 %if %{gconsole} && %{fc5}
667 Requires: gtk2 >= 2.8
668 Requires: libgnomeui >= 2.14
669 Requires: glibc >= 2.4
671 Requires: libart_lgpl >= 2.3
672 Requires: libbonobo >= 2.14
673 Requires: libbonoboui >= 2.14
677 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5}
678 Requires: gtk2 >= 2.0
679 Requires: libgnomeui >= 2.0
680 Requires: glibc >= 2.3
682 Requires: libart_lgpl >= 2.0
683 Requires: libbonobo >= 2.0
684 Requires: libbonoboui >= 2.0
685 Requires: bonobo-activation
690 %if %{gconsole} && %{su9}
693 %if %{gconsole} && %{su10}
696 %if %{gconsole} && ! %{su9} && ! %{su10}
701 %description gconsole
712 This is the Gnome Console package. It is an add-on to the client or
718 Summary: Bacula - The Network Backup Solution
719 Group: System Environment/Daemons
720 Requires: wxGTK >= 2.6, libstdc++, openssl
723 %if %{wxconsole} && %{su10}
724 Requires: gtk2 >= 2.8
727 %if %{wxconsole} && %{fc3}
728 Requires: gtk2 >= 2.4
731 %if %{wxconsole} && %{fc4}
732 Requires: gtk2 >= 2.6
735 %if %{wxconsole} && %{fc5}
736 Requires: gtk2 >= 2.8
740 %description wxconsole
751 This is the WXWindows Console package. It is an add-on to the client or
765 %if %{su9} || %{su10}
766 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
777 # patches for the bundled sqlite scripts
778 # as of 1.38.0 first 3 patches no longer needed
780 # patch the make_sqlite_tables script for installation bindir
781 # patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
783 # patch the create_sqlite_database script for installation bindir
784 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
786 # patch the make_catalog_backup script for installation bindir
787 #patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
789 # patch the update_sqlite_tables script for installation bindir
790 patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
792 # patch the bacula-dir init script to remove sqlite service
793 %if %{sqlite} && %{su9}
794 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
796 %if %{sqlite} && %{su10}
797 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
800 # 64 bit lib location hacks
802 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
804 %if %{mysql} && %{x86_64}
805 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
807 # this MAY be necessary for python support - waiting for feedback to enable
808 #%if %{python} && %{x86_64}
809 #export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
814 --sbindir=/usr/sbin \
815 --sysconfdir=/etc/bacula \
816 --with-scriptdir=/etc/bacula \
817 --enable-smartalloc \
818 --enable-client-only \
828 --sbindir=/usr/sbin \
829 --sysconfdir=/etc/bacula \
830 --with-scriptdir=/etc/bacula \
831 --enable-smartalloc \
835 %if %{gconsole} && ! %{rh8}
836 --enable-tray-monitor \
842 --with-sqlite=${cwd}/%{depkgs}/sqlite \
848 --enable-wx-console \
853 --with-working-dir=%{working_dir} \
854 --with-pid-dir=/var/run \
855 --with-subsys-dir=/var/lock/subsys \
856 --with-dir-user=%{director_daemon_user} \
857 --with-dir-group=%{daemon_group} \
858 --with-sd-user=%{storage_daemon_user} \
859 --with-sd-group=%{storage_daemon_group} \
860 --with-fd-user=%{file_daemon_user} \
861 --with-fd-group=%{daemon_group} \
862 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
863 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
864 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
865 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
866 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
867 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
875 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
876 mkdir -p $RPM_BUILD_ROOT/etc/init.d
877 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
878 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
879 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
880 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
881 mkdir -p $RPM_BUILD_ROOT/etc/bacula/updatedb
883 %if %{gconsole} || %{wxconsole}
884 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
885 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
888 %if %{gconsole} || %{wxconsole}
889 %define usermode_iftrick 1
891 %define usermode_iftrick 0
894 %if %{usermode_iftrick} && ! %{su9} && ! %{su10}
895 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
896 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
897 mkdir -p $RPM_BUILD_ROOT/usr/bin
901 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
905 prefix=$RPM_BUILD_ROOT/usr \
906 sbindir=$RPM_BUILD_ROOT/usr/sbin \
907 sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
908 scriptdir=$RPM_BUILD_ROOT/etc/bacula \
909 working_dir=$RPM_BUILD_ROOT%{working_dir} \
914 prefix=$RPM_BUILD_ROOT/usr \
915 sbindir=$RPM_BUILD_ROOT/usr/sbin \
916 sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
917 working_dir=$RPM_BUILD_ROOT%{working_dir} \
918 mandir=$RPM_BUILD_ROOT/usr/man \
922 # fixme - make installs the mysql scripts for sqlite build
924 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
925 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
926 rm -f $RPM_BUILD_ROOT/etc/bacula/grant_mysql_privileges
929 # fixme - make installs the mysql scripts for postgresql build
931 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
932 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
935 # fixme - make installs gconsole script for build without gconsole
937 rm -f $RPM_BUILD_ROOT/etc/bacula/gconsole
940 rm -f $RPM_BUILD_ROOT/usr/sbin/static-bacula-fd
942 # install the init scripts
943 %if %{su9} || %{su10}
944 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
945 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
946 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
949 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
950 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
951 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
953 %if ! %{su9} && ! %{su10} && ! %{mdk}
954 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
955 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
956 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
958 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
960 # install the menu stuff
961 %if %{gconsole} && %{su9}
962 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
963 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
964 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
965 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
967 %if %{gconsole} && %{su10}
968 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
969 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
970 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
971 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
973 %if %{wxconsole} && %{su10}
974 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
975 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
977 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{mdk}
982 %if %{gconsole} && %{iftrick}
983 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
984 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
985 cp -p scripts/gnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/gnome-console
986 cp -p scripts/gnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/gnome-console
987 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/gnome-console
989 %if %{gconsole} && ! %{rh8}
990 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
991 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
993 %if %{wxconsole} && %{iftrick}
994 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
995 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
996 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/wxconsole
997 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/wxconsole
998 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/wxconsole
1003 cp -p %{depkgs}/sqlite/sqlite $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite
1004 cp -p %{depkgs}/sqlite/sqlite.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite.h
1005 cp -p %{depkgs}/sqlite/libsqlite.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite.a
1008 # install the logrotate file
1009 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1011 # install the updatedb scripts
1012 cp -p updatedb/* $RPM_BUILD_ROOT/etc/bacula/updatedb/
1014 # install the logwatch scripts
1015 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1016 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1017 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1018 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1019 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1020 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1022 # install the rescue files
1023 mkdir $RPM_BUILD_ROOT/etc/bacula/rescue
1024 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT/etc/bacula/rescue/
1025 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT/etc/bacula/rescue/
1026 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT/etc/bacula/rescue/
1027 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT/etc/bacula/rescue/
1028 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT/etc/bacula/rescue/
1029 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT/etc/bacula/rescue/
1030 touch $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/rpm_release
1031 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/bacula/bin/bacula-fd
1032 rm -f src/filed/static-bacula-fd
1035 mv $RPM_BUILD_ROOT/usr/sbin/wx-console $RPM_BUILD_ROOT/usr/sbin/wxconsole
1036 mv $RPM_BUILD_ROOT/etc/bacula/wx-console.conf $RPM_BUILD_ROOT/etc/bacula/wxconsole.conf
1039 # now clean up permissions that are left broken by the install
1040 chmod o-r $RPM_BUILD_ROOT/etc/bacula/query.sql
1041 chmod o-rwx $RPM_BUILD_ROOT/var/bacula
1042 %if %{gconsole} && ! %{rh8}
1043 chmod 755 $RPM_BUILD_ROOT/usr/sbin/bacula-tray-monitor
1044 chmod 644 $RPM_BUILD_ROOT/etc/bacula/tray-monitor.conf
1048 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1051 # MySQL specific files
1053 %defattr(-, root, root)
1054 %attr(-, root, %{daemon_group}) /etc/bacula/create_mysql_database
1055 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_database
1056 %attr(-, root, %{daemon_group}) /etc/bacula/make_mysql_tables
1057 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_tables
1058 %attr(-, root, %{daemon_group}) /etc/bacula/update_mysql_tables
1059 %attr(-, root, %{daemon_group}) /etc/bacula/grant_mysql_privileges
1060 %attr(-, root, %{daemon_group}) /etc/bacula/startmysql
1061 %attr(-, root, %{daemon_group}) /etc/bacula/stopmysql
1066 %defattr(-,root,root)
1067 %attr(-, root, %{daemon_group}) /etc/bacula/create_sqlite_database
1068 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_database
1069 %attr(-, root, %{daemon_group}) /etc/bacula/grant_sqlite_privileges
1070 %attr(-, root, %{daemon_group}) /etc/bacula/make_sqlite_tables
1071 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_tables
1072 %attr(-, root, %{daemon_group}) /etc/bacula/update_sqlite_tables
1073 %{sqlite_bindir}/libsqlite.a
1074 %{sqlite_bindir}/sqlite.h
1075 %{sqlite_bindir}/sqlite
1080 %defattr(-,root,root)
1081 %attr(-, root, %{daemon_group}) /etc/bacula/create_postgresql_database
1082 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_database
1083 %attr(-, root, %{daemon_group}) /etc/bacula/make_postgresql_tables
1084 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_tables
1085 %attr(-, root, %{daemon_group}) /etc/bacula/update_postgresql_tables
1086 %attr(-, root, %{daemon_group}) /etc/bacula/grant_postgresql_privileges
1089 # The rest is DB backend independent
1090 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1091 %attr(-, root, %{daemon_group}) /etc/bacula/bacula
1092 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1093 %attr(-, root, %{daemon_group}) /etc/bacula/create_bacula_database
1094 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_database
1095 %attr(-, root, %{daemon_group}) /etc/bacula/grant_bacula_privileges
1096 %attr(-, root, %{daemon_group}) /etc/bacula/make_bacula_tables
1097 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_tables
1098 %attr(-, root, %{daemon_group}) /etc/bacula/update_bacula_tables
1099 %attr(-, root, %{daemon_group}) /etc/bacula/make_catalog_backup
1100 %attr(-, root, %{daemon_group}) /etc/bacula/delete_catalog_backup
1101 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1102 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1103 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1104 %attr(-, root, %{daemon_group}) /etc/bacula/disk-changer
1105 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-dir
1106 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-fd
1107 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-sd
1108 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
1109 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
1110 %attr(-, root, %{storage_daemon_group}) /etc/bacula/dvd-handler
1111 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
1112 %attr(-, root, %{storage_daemon_group}) /etc/bacula/mtx-changer
1114 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1115 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1117 /etc/logrotate.d/bacula
1118 /etc/log.d/scripts/services/bacula
1119 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-dir.conf
1120 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1121 %attr(-, root, %{storage_daemon_group}) %config(noreplace) /etc/bacula/bacula-sd.conf
1122 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1123 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
1124 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
1125 %attr(-, root, %{daemon_group}) /etc/bacula/query.sql
1126 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1128 /usr/sbin/bacula-dir
1136 /usr/sbin/btraceback
1145 # test for bacula database older than version 8
1146 # note: this ASSUMES no password has been set for bacula database
1147 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1152 # test for bacula database older than version 8
1153 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
1154 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1159 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1162 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "8" ]; then
1163 echo "This bacula upgrade will update a bacula database from version 8 to 9."
1164 echo "You appear to be running database version $DB_VER. You must first update"
1165 echo "your database to version 8 and then install this upgrade. The alternative"
1166 echo "is to use /etc/bacula/drop_%{db_backend}_tables to delete all your your current"
1167 echo "catalog information, then do the upgrade. Information on updating a"
1168 echo "database older than version 8 can be found in the release notes."
1176 # check for and copy /etc/bacula/console.conf to bconsole.conf
1177 if [ -s /etc/bacula/console.conf ];then
1178 cp -p /etc/bacula/console.conf /etc/bacula/bconsole.conf
1181 # create the daemon users and groups
1182 # first create the groups if they don't exist
1183 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1184 if [ -z "$HAVE_BACULA" ]; then
1185 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1186 echo "The group %{daemon_group} has been added to %{group_file}."
1187 echo "See the manual chapter \"Running Bacula\" for details."
1189 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
1190 if [ -z "$HAVE_BACULA" ]; then
1191 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
1192 echo "The group %{storage_daemon_group} has been added to %{group_file}."
1193 echo "See the manual chapter \"Running Bacula\" for details."
1195 # now create the users if they do not exist
1196 # we do not use the -g option allowing the primary group to be set to system default
1197 # this will be a unique group on redhat type systems or the group users on some systems
1198 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
1199 if [ -z "$HAVE_BACULA" ]; then
1200 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
1201 echo "The user %{storage_daemon_user} has been added to %{user_file}."
1202 echo "See the manual chapter \"Running Bacula\" for details."
1204 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
1205 if [ -z "$HAVE_BACULA" ]; then
1206 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
1207 echo "The user %{director_daemon_user} has been added to %{user_file}."
1208 echo "See the manual chapter \"Running Bacula\" for details."
1210 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1211 if [ -z "$HAVE_BACULA" ]; then
1212 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1213 echo "The user %{file_daemon_user} has been added to %{user_file}."
1214 echo "See the manual chapter \"Running Bacula\" for details."
1216 # now we add the supplementary groups, this is ok to call even if the users already exist
1217 # we only do this if the user is NOT root
1218 IS_ROOT=%{director_daemon_user}
1219 if [ "$IS_ROOT" != "root" ]; then
1220 %{usermod} -G %{daemon_group} %{director_daemon_user}
1222 IS_ROOT=%{storage_daemon_user}
1223 if [ "$IS_ROOT" != "root" ]; then
1224 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
1226 IS_ROOT=%{file_daemon_user}
1227 if [ "$IS_ROOT" != "root" ]; then
1228 %{usermod} -G %{daemon_group} %{file_daemon_user}
1242 if [ "$1" -ge 1 ] ; then
1243 /sbin/chkconfig --add bacula-dir
1244 /sbin/chkconfig --add bacula-fd
1245 /sbin/chkconfig --add bacula-sd
1249 # test for an existing database
1250 # note: this ASSUMES no password has been set for bacula database
1251 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1253 # grant privileges and create tables if they do not exist
1254 if [ -z "$DB_VER" ]; then
1255 echo "Hmm, doesn't look like you have an existing database."
1256 echo "Granting privileges for MySQL user bacula..."
1257 /etc/bacula/grant_mysql_privileges
1258 echo "Creating MySQL bacula database..."
1259 /etc/bacula/create_mysql_database
1260 echo "Creating bacula tables..."
1261 /etc/bacula/make_mysql_tables
1263 # check to see if we need to upgrade a 1.36 or lower database
1264 elif [ "$DB_VER" -lt "9" ]; then
1265 echo "This release requires an upgrade to your bacula database."
1266 echo "Backing up your current database..."
1267 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1268 echo "Upgrading bacula database ..."
1269 /etc/bacula/update_mysql_tables
1270 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1276 # test for an existing database
1277 if [ -s %{working_dir}/bacula.db ]; then
1278 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1279 # check to see if we need to upgrade a 1.36 or lower database
1280 if [ "$DB_VER" -lt "9" ] && [ "$DB_VER" -ge "8" ]; then
1281 echo "This release requires an upgrade to your bacula database."
1282 echo "Backing up your current database..."
1283 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1284 echo "Upgrading bacula database ..."
1285 /etc/bacula/update_sqlite_tables
1286 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1289 # create the database and tables
1290 echo "Hmm, doesn't look like you have an existing database."
1291 echo "Creating SQLite database..."
1292 /etc/bacula/create_sqlite_database
1293 echo "Creating the SQLite tables..."
1294 /etc/bacula/make_sqlite_tables
1299 # test for an existing database
1300 # note: this ASSUMES no password has been set for bacula database
1301 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1303 # grant privileges and create tables if they do not exist
1304 if [ -z "$DB_VER" ]; then
1305 echo "Hmm, doesn't look like you have an existing database."
1306 echo "Creating PostgreSQL bacula database..."
1307 /etc/bacula/create_postgresql_database
1308 echo "Creating bacula tables..."
1309 /etc/bacula/make_postgresql_tables
1310 echo "Granting privileges for PostgreSQL user bacula..."
1311 /etc/bacula/grant_postgresql_privileges
1313 # check to see if we need to upgrade a 1.36 or lower database
1314 elif [ "$DB_VER" -lt "9" ]; then
1315 echo "This release requires an upgrade to your bacula database."
1316 echo "Backing up your current database..."
1317 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1318 echo "Upgrading bacula database ..."
1319 /etc/bacula/update_postgresql_tables
1320 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1325 # generate passwords if needed
1326 if [ -d /etc/bacula ]; then
1328 for file in *.conf; do
1329 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
1330 need_password=`grep $string $file 2>/dev/null`
1331 if [ -n "$need_password" ]; then
1332 pass=`openssl rand -base64 33`
1333 sed "s-$string-$pass-g" $file > $file.new
1334 cp -f $file.new $file; rm -f $file.new
1352 /sbin/chkconfig --del bacula-dir
1353 /sbin/chkconfig --del bacula-fd
1354 /sbin/chkconfig --del bacula-sd
1359 %attr(-, root, %{storage_daemon_group}) /usr/sbin/loaderinfo
1360 %attr(-, root, %{storage_daemon_group}) /usr/sbin/mtx
1361 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsitape
1362 %attr(-, root, %{storage_daemon_group}) /usr/sbin/tapeinfo
1367 %defattr(-,root,root)
1368 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1369 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1370 /etc/init.d/bacula-fd
1371 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1373 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1374 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1376 /etc/logrotate.d/bacula
1378 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1379 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1380 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1383 /usr/sbin/btraceback
1384 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1385 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1391 # create the daemon group and user
1392 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1393 if [ -z "$HAVE_BACULA" ]; then
1394 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1395 echo "The group %{daemon_group} has been added to %{group_file}."
1396 echo "See the manual chapter \"Running Bacula\" for details."
1398 # we do not use the -g option allowing the primary group to be set to system default
1399 # this will be a unique group on redhat type systems or the group users on some systems
1400 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1401 if [ -z "$HAVE_BACULA" ]; then
1402 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1403 echo "The user %{file_daemon_user} has been added to %{user_file}."
1404 echo "See the manual chapter \"Running Bacula\" for details."
1406 # now we add the supplementary group, this is ok to call even if the user already exists
1407 # we only do this if the user is NOT root
1408 IS_ROOT=%{file_daemon_user}
1409 if [ "$IS_ROOT" != "root" ]; then
1410 %{usermod} -G %{daemon_group} %{file_daemon_user}
1415 if [ "$1" -ge 1 ] ; then
1416 /sbin/chkconfig --add bacula-fd
1419 # generate passwords if needed
1420 if [ -d /etc/bacula ]; then
1422 for file in *.conf; do
1423 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
1424 need_password=`grep $string $file 2>/dev/null`
1425 if [ -n "$need_password" ]; then
1426 pass=`openssl rand -base64 33`
1427 sed "s-$string-$pass-g" $file > $file.new
1428 cp -f $file.new $file; rm -f $file.new
1437 /sbin/chkconfig --del bacula-fd
1441 %defattr(-,root,%{daemon_group})
1442 /etc/bacula/updatedb/*
1445 # create the daemon group
1446 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1447 if [ -z "$HAVE_BACULA" ]; then
1448 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1449 echo "The group %{daemon_group} has been added to %{group_file}."
1450 echo "See the manual chapter \"Running Bacula\" for details."
1454 echo "The database update scripts were installed to /etc/bacula/updatedb"
1458 %defattr(-,root,root)
1459 /usr/sbin/gnome-console
1460 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1461 %attr(-, root, %{daemon_group}) /etc/bacula/gconsole
1462 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/gnome-console.conf
1463 /usr/share/pixmaps/bacula.png
1464 /usr/share/applications/bacula.desktop
1467 %if %{gconsole} && ! %{rh8}
1468 /usr/sbin/bacula-tray-monitor
1469 %config(noreplace) /etc/bacula/tray-monitor.conf
1470 /usr/share/pixmaps/bacula-tray-monitor.xpm
1471 /usr/share/applications/bacula-tray-monitor.desktop
1474 %if %{gconsole} && ! %{su9} && ! %{su10}
1475 # add the console helper files
1476 %config(noreplace,missingok) /etc/pam.d/gnome-console
1477 %config(noreplace,missingok) /etc/security/console.apps/gnome-console
1478 /usr/bin/gnome-console
1483 # create the daemon group
1484 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1485 if [ -z "$HAVE_BACULA" ]; then
1486 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1487 echo "The group %{daemon_group} has been added to %{group_file}."
1488 echo "See the manual chapter \"Running Bacula\" for details."
1492 # generate passwords if needed
1493 if [ -d /etc/bacula ]; then
1495 for file in *.conf; do
1496 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
1497 need_password=`grep $string $file 2>/dev/null`
1498 if [ -n "$need_password" ]; then
1499 pass=`openssl rand -base64 33`
1500 sed "s-$string-$pass-g" $file > $file.new
1501 cp -f $file.new $file; rm -f $file.new
1510 %defattr(-,root,root)
1512 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1513 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/wxconsole.conf
1514 /usr/share/pixmaps/wxwin16x16.xpm
1515 /usr/share/applications/wxconsole.desktop
1518 %if %{wxconsole} && ! %{su9} && ! %{su10}
1519 # add the console helper files
1520 %config(noreplace,missingok) /etc/pam.d/wxconsole
1521 %config(noreplace,missingok) /etc/security/console.apps/wxconsole
1527 # create the daemon group
1528 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1529 if [ -z "$HAVE_BACULA" ]; then
1530 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1531 echo "The group %{daemon_group} has been added to %{group_file}."
1532 echo "See the manual chapter \"Running Bacula\" for details."
1536 # generate passwords if needed
1537 if [ -d /etc/bacula ]; then
1539 for file in *.conf; do
1540 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
1541 need_password=`grep $string $file 2>/dev/null`
1542 if [ -n "$need_password" ]; then
1543 pass=`openssl rand -base64 33`
1544 sed "s-$string-$pass-g" $file > $file.new
1545 cp -f $file.new $file; rm -f $file.new
1553 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1554 - add provides and conflicts for standard suse packages
1555 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1556 - fix directory creation when wxconsole and not gconsole
1557 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1558 - add check to buildrequires to make sure libstdc++ version matches gcc
1559 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1560 - add python build support
1561 - fix LDFLAGS declarations
1562 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1563 - add requires for standard compiler toolchain
1564 - move version and release tags up
1566 - add docs_version tag
1567 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1568 - update rescuever to 1.8.6
1569 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1570 - update depkgs to 25Jun06
1571 - add mysql5 build tag
1572 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1573 - 1.38.10 bump rescue version
1574 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1575 - fix usermod statements
1577 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1578 - add -g param back to useradd statements Bug 605
1579 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1580 - redundant code cleanup
1581 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1582 - add wxconsole package
1583 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1585 - dependency update for Mandriva
1586 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1588 - remove -n option from useradd scripts
1589 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1591 - fix problem specifying more than one primary group for user bacula
1592 - add build switch to not build gconsole regardless of platform
1593 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1594 - add centos3 build tag
1595 - fix link error of static-fd on Mandrake with --disable-nls
1596 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1597 - add fc4 dependencies
1598 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1599 - add SuSE 10.0 build
1600 - remove specific permission in attrib macros
1601 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1603 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
1604 - refix compat for _dist on SLES9 which seems to have been removed
1605 - added note regarding Aleksandar's use of specific permissions in attrib macros
1606 - need to review and add specific fc4 build currently using fc3 Requires
1607 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1609 - Reorganize files and pre/post sections to remove repetitions
1610 - Always build separate mtx package
1611 - Fix file ownerships for /etc/bacula and Bacula's working dir
1612 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1613 - Disable GNOME on RH7
1614 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1615 - Red Hat and look alikes have mtx RPM, do not build/package our version
1616 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1617 - minor edit to _dist for SLES9 compatibility
1618 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1620 - kern changed location of pdf files and html manual in docs package
1621 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1623 - add docs (from prebuilt tarball) and rescue packages back in
1624 - remove dvd-freespace and dvd-writepart files, add dvd-handler
1625 - remove 3 of 4 sqlite script patches as not needed
1626 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1628 - remove docs and rescue sections (remove static fd)
1629 - add dvd-freespace and dvd-writepart files
1630 - update depkgs to 22Jun05
1631 - change database update to 8 to 9
1632 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1633 - minor cleanups before 1.38 changes
1634 - add popt and popt-devel build dependencies
1635 - add tetex and tetex-dvips dependencies for doc build
1636 - replace deprecated Copyright tag with License
1637 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1638 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
1639 - conflict with sqlite packages. remove readline dependency.
1640 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1641 - release 1.36.3 update docs
1642 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1643 - add centos4 build tag
1644 - add x86_64 build tag
1645 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1646 - add rhel4 build tag
1647 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
1648 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1649 - add rhel3 build tag
1650 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1651 - fix tray-monitor.conf for noreplace
1652 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1653 - fix distribution check for Fedora and Whitebox
1654 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1655 - add logwatch script
1657 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1658 - add build for Fedora Core 3 (linc now included in ORDit2)
1659 - add mysql4 define for Mandrake 10.1
1660 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1661 - fix {group_file} variable in post scripts
1662 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
1663 - add distribution checking and custom Distribution tag
1664 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1665 - ASSIGNMENT OF COPYRIGHT
1666 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
1667 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
1668 - all right, title and interest in and to the copyright in this software RPM
1669 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
1670 - free of all liens, encumbrances or any known claims against said copyright.
1671 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1673 - thanks to Daniel Widyono
1674 - update description for rescue package to describe cdrom creation
1675 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1676 - update depkgs to 29Oct04
1677 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1678 - add cdrom rescue to bacula-rescue package
1679 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1680 - misc fixes from 1.36.0 suse feedback
1681 - fix situation where sqlite database exists but sqlite has been removed.
1682 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1683 - remove tray-monitor from RH8 build
1684 - fix permissions on tray-monitor files
1685 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1686 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
1687 - change database update to 7 to 8 upgrade,
1688 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
1689 - build in 30Jul04, add freetype dependancy to gnome package.
1690 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1691 - add documentation to console for groupadd
1692 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1693 - add support for running daemons as root.bacula
1694 - correct for change in location of floppy rescue files in 1.35.2
1695 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
1696 - updated depgkgs to 30Jul04
1697 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1698 - really, really fix symlink creation for gconsole
1699 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1700 - fix symlink creation in gconsole post install
1701 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1702 - fixed error in gconsole post script
1703 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1704 - add check for gconsole symlink before trying to create it
1705 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1706 - fix some minor permissions issues on doc files that CVS won't let us fix
1707 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1708 - add pkgconfig to BuildRequires
1709 - clean up gnome1/2 menu entries for appropriate packages
1710 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1711 - tightened up doc distribution
1712 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1713 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
1714 - rpm's horrible bug that prevents nested conditional macros prevents me
1715 - from implementing these 2 separate approaches within the conditionals which
1716 - create the separate server packages.
1717 - the solution adopted is to remove the gnome-console files from the server packages
1718 - so bacula-gconsole is now an add on for both client and server packages.
1719 - this also now allows the server packages to be install on machines without
1720 - an X-server and we can still maintain a single spec file.
1721 - added tests to make sure we have defined platform and database macros.
1722 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1723 - corrected mysql prerequisites for suse
1724 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1725 - replaced all cp commands with cp -p
1726 - removed addition of a+x permissions on gnome-console
1727 - corrected permissions on init scripts
1728 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1729 - corrected creation of sqlite_bindir in install from !mysql to sqlite
1731 - various cleanup patches from Michael K. Johnson:
1732 - corrected post install routines for nicer chkconfig
1733 - removed chmod changes in post routines and moved to install section
1734 - removed interactive nature of post routine for rescue package
1735 - added description of building rescue disks to the description of rescue package
1736 - added clean of build root to beginning of install
1737 - removed specifying attr in all file lists
1738 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1739 - added bconsole to client package
1740 - added gconsole package as add-on to client
1741 - removed spurious dependancies on updatedb package (!cut/paste)
1742 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1743 - added updatedb package
1744 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1745 - added postgresql package
1746 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1747 - corrected the if else logic in the dependancy sections
1748 - changes for 1.34 release
1749 - /etc/bacula/console is now /etc/bacula/bconsole
1750 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
1751 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
1752 - /usr/sbin/smtp is now /usr/sbin/bsmtp
1753 - added new /etc/bacula/drop_mysql_database
1754 - added new /etc/bacula/drop_sqlite_database
1755 - added new /etc/bacula/grant_sqlite_privileges
1756 - added new generic bacula database scripts in /etc/bacula
1757 - added pre-install sections to check for database versions older than 6
1758 - added check for /etc/bacula/console.conf and copy to bconsole.conf
1759 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1760 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
1761 - added testing for existing databases before executing any of the database creation scripts
1762 - added defines working_dir and sqlite_bindir in place of hard coded paths
1763 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1764 - added build configuration for SuSE.
1765 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
1766 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1767 - added patch for create_sqlite_database to fix the installed bindir
1768 - added execute of create_sqlite_database to post of sqlite package
1769 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1770 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
1771 - added bacula-fd as Requires for rescue package
1772 - added build tag for Fedora Core 1
1773 - cleaned up dependancies for all builds
1774 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1775 - removed rh_version from package names
1776 - added platform build configuration section to beginning of file
1777 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1778 - removed make_static_bacula script from rescue package install
1779 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1780 - Added define at top of file for depkgs version
1781 - Added rescue sub-package
1782 - Moved requires statements into proper sub-package locations
1783 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1784 - Corrected Requires for Gnome 1.4/2.0 builds
1785 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1786 - Added separate source declaration for depkgs
1787 - added patch for make_catalog_backup script
1788 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1789 - Misc changes to mysql/sqlite build and rh7/8 menu differences
1790 - Added rh_version to sub-package names
1791 - Added installed but missing file /etc/bacula/gconsole
1792 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
1793 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
1794 - Update spec for version 1.31 and combine client
1795 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>