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}
122 %define client_only 0
123 %{?build_client_only:%define client_only 1}
125 # test for a platform definition
126 %if ! %{rh7} && ! %{rh8} && ! %{rh9} && ! %{fc1} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{wb3} && ! %{su9} && ! %{su10} && ! %{mdk}
127 %{error: You must specify a platform. Please examine the spec file.}
132 # set for database support desired or define the build_xxx on the command line
134 %{?build_mysql:%define mysql 1}
135 # if using mysql 4.x define this and mysql above
136 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
138 %{?build_mysql4:%define mysql4 1}
139 %{?build_mysql4:%define mysql 1}
140 # if using mysql 5.x define this and mysql above
141 # currently: SuSE 10.1 and Fedora Core 5
143 %{?build_mysql5:%define mysql5 1}
144 %{?build_mysql5:%define mysql 1}
146 %{?build_sqlite:%define sqlite 1}
148 %{?build_postgresql:%define postgresql 1}
150 # test for a database definition
151 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
152 %{error: You must specify database support. Please examine the spec file.}
157 %define db_backend mysql
160 %define db_backend sqlite
163 %define db_backend postgresql
168 %{?build_x86_64:%define x86_64 1}
170 # check what distribution we are
171 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4}
172 %define _dist %(grep Red /etc/redhat-release)
174 %if %{fc1} || %{fc4} || %{fc5}
175 %define _dist %(grep Fedora /etc/redhat-release)
177 %if %{centos4} || %{centos3}
178 %define _dist %(grep CentOS /etc/redhat-release)
180 %if %{fc3} && ! %{rhel4} && ! %{centos4}
181 %define _dist %(grep Fedora /etc/redhat-release)
183 %if %{wb3} && ! %{rhel3} && ! %{centos3}
184 %define _dist %(grep White /etc/whitebox-release)
186 %if %{su9} || %{su10}
187 %define _dist %(grep -i SuSE /etc/SuSE-release)
190 %define _dist %(grep Mand /etc/mandrake-release)
192 Distribution: %{_dist}
194 # Should we build gconsole, possible only if gnome >= 2.0 available
200 # specifically disallow gconsole if desired
201 %{?nobuild_gconsole:%define gconsole 0}
203 # Should we build wxconsole, only wxWidgets >=2.6 is supported
204 # currently only SuSE 10 and FC4/FC5
206 %{?build_wxconsole:%define wxconsole 1}
208 # should we turn on python support
210 %{?build_python:%define python 1}
212 # for client only build
223 %{expand: %%define gccver %(rpm -q gcc | cut -d - -f 2)}
224 %{expand: %%define gccrel %(rpm -q gcc | cut -d - -f 3)}
226 BuildRequires: gcc, gcc-c++, make, autoconf
227 BuildRequires: atk-devel, ncurses-devel, perl
228 BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, libxml2-devel, zlib-devel
229 BuildRequires: openssl-devel
231 BuildRequires: python, python-devel
232 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
235 BuildRequires: pkgconfig, pango-devel
238 BuildRequires: libtermcap-devel
239 BuildRequires: glibc-devel >= 2.2
242 BuildRequires: termcap
243 BuildRequires: glibc-devel >= 2.3
245 %if %{su9} && %{gconsole}
246 BuildRequires: libgnome >= 2.0
247 BuildRequires: gtk2-devel >= 2.0
248 BuildRequires: libgnomeui-devel >= 2.0
249 BuildRequires: ORBit2-devel
250 BuildRequires: libart_lgpl-devel >= 2.0
251 BuildRequires: libbonobo-devel >= 2.0
252 BuildRequires: libbonoboui-devel >= 2.0
253 BuildRequires: bonobo-activation-devel
254 BuildRequires: gconf2-devel
255 BuildRequires: linc-devel
256 BuildRequires: freetype2-devel
259 BuildRequires: termcap
260 BuildRequires: glibc-devel >= 2.3
262 %if %{su10} && %{gconsole}
263 BuildRequires: libgnome >= 2.12
264 BuildRequires: gtk2-devel >= 2.8
265 BuildRequires: libgnomeui-devel >= 2.12
266 BuildRequires: ORBit2-devel
267 BuildRequires: libart_lgpl-devel >= 2.3
268 BuildRequires: libbonobo-devel >= 2.10
269 BuildRequires: libbonoboui-devel >= 2.10
270 BuildRequires: bonobo-activation-devel
271 BuildRequires: gconf2-devel
272 BuildRequires: freetype2-devel
273 BuildRequires: cairo-devel
274 BuildRequires: fontconfig-devel >= 2.3
275 BuildRequires: gnome-vfs2-devel >= 2.12
276 BuildRequires: libpng-devel
279 BuildRequires: libtermcap-devel
280 BuildRequires: libstdc++-static-devel
281 BuildRequires: glibc-static-devel
282 BuildRequires: glibc-devel >= 2.3
284 %if %{mdk} && !%{mdv} && %{gconsole}
285 BuildRequires: gtk2-devel >= 2.0
286 BuildRequires: libgnomeui2-devel >= 2.0
287 BuildRequires: libORBit2-devel
288 BuildRequires: libart_lgpl-devel >= 2.0
289 BuildRequires: libbonobo2_0-devel
290 BuildRequires: libbonoboui2_0-devel
291 BuildRequires: libbonobo-activation-devel
292 BuildRequires: libGConf2-devel
293 BuildRequires: freetype2-devel
295 %if %{mdv} && %{gconsole}
296 BuildRequires: gtk2-devel >= 2.8
297 BuildRequires: libgnomeui2-devel >= 2.10
298 BuildRequires: libORBit2-devel
299 BuildRequires: libart_lgpl-devel >= 2.3
300 BuildRequires: libbonobo2_0-devel
301 BuildRequires: libbonoboui2_0-devel
302 BuildRequires: libbonobo-activation-devel
303 BuildRequires: libGConf2-devel
304 BuildRequires: freetype2-devel
307 BuildRequires: libtermcap-devel
308 BuildRequires: glibc-devel >= 2.3
310 %if %{fc3} && %{gconsole}
311 BuildRequires: gtk2-devel >= 2.4
312 BuildRequires: libgnomeui-devel >= 2.8
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.3
325 %if %{fc4} && %{gconsole}
326 BuildRequires: gtk2-devel >= 2.6
327 BuildRequires: libgnomeui-devel >= 2.10
328 BuildRequires: ORBit2-devel
329 BuildRequires: libart_lgpl-devel >= 2.3
330 BuildRequires: libbonobo-devel >= 2.8
331 BuildRequires: libbonoboui-devel >= 2.8
332 BuildRequires: bonobo-activation-devel
333 BuildRequires: GConf2-devel
334 BuildRequires: freetype-devel
337 BuildRequires: libtermcap-devel
338 BuildRequires: glibc-devel >= 2.4
340 %if %{fc5} && %{gconsole}
341 BuildRequires: gtk2-devel >= 2.8
342 BuildRequires: libgnomeui-devel >= 2.14
343 BuildRequires: ORBit2-devel
344 BuildRequires: libart_lgpl-devel >= 2.3
345 BuildRequires: libbonobo-devel >= 2.14
346 BuildRequires: libbonoboui-devel >= 2.14
347 BuildRequires: GConf2-devel
348 BuildRequires: freetype-devel
350 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5}
351 BuildRequires: libtermcap-devel
352 BuildRequires: glibc-devel >= 2.3
354 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && %{gconsole}
355 BuildRequires: gtk2-devel >= 2.0
356 BuildRequires: libgnomeui-devel >= 2.0
357 BuildRequires: ORBit2-devel
358 BuildRequires: libart_lgpl-devel >= 2.0
359 BuildRequires: libbonobo-devel >= 2.0
360 BuildRequires: libbonoboui-devel >= 2.0
361 BuildRequires: bonobo-activation-devel
362 BuildRequires: GConf2-devel
363 BuildRequires: linc-devel
364 BuildRequires: freetype-devel
367 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
368 BuildRequires: mysql-devel >= 3.23
371 %if %{mysql} && %{mysql4}
372 BuildRequires: mysql-devel >= 4.0
375 %if %{mysql} && %{mysql5}
376 BuildRequires: mysql-devel >= 5.0
379 %if %{postgresql} && %{wb3}
380 BuildRequires: rh-postgresql-devel >= 7
383 %if %{postgresql} && ! %{wb3}
384 BuildRequires: postgresql-devel >= 7
388 BuildRequires: wxGTK-devel >= 2.6
412 Summary: Bacula - The Network Backup Solution
413 Group: System Environment/Daemons
414 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
415 Conflicts: bacula-client
416 Obsoletes: bacula-rescue
418 %if %{su9} || %{su10}
422 Requires: ncurses, libstdc++, zlib, openssl, mtx
425 Requires: glibc >= 2.2
428 %if %{su9} || %{su10}
429 Requires: glibc >= 2.3
432 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{fc5}
433 Requires: glibc >= 2.3
437 Requires: glibc >= 2.4
441 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
442 Requires: mysql >= 3.23
443 Requires: mysql-server >= 3.23
445 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
446 Requires: mysql >= 4.0
447 Requires: mysql-server >= 4.0
449 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql5}
450 Requires: mysql >= 5.0
451 Requires: mysql-server >= 5.0
454 %if %{mysql} && %{su9} && ! %{mysql4}
455 Requires: mysql >= 3.23
456 Requires: mysql-client >= 3.23
458 %if %{mysql} && %{su9} && %{mysql4}
459 Requires: mysql >= 4.0
460 Requires: mysql-client >= 4.0
462 %if %{mysql} && %{su10} && %{mysql4}
463 Requires: mysql >= 4.0
464 Requires: mysql-client >= 4.0
466 %if %{mysql} && %{su10} && %{mysql5}
467 Requires: mysql >= 5.0
468 Requires: mysql-client >= 5.0
471 %if %{mysql} && %{mdk} && ! %{mysql4}
472 Requires: mysql >= 3.23
473 Requires: mysql-client >= 3.23
475 %if %{mysql} && %{mdk} && %{mysql4}
476 Requires: mysql >= 4.0
477 Requires: mysql-client >= 4.0
480 %if %{postgresql} && %{wb3}
481 Requires: rh-postgresql >= 7
482 Requires: rh-postgresql-server >= 7
484 %if %{postgresql} && ! %{wb3}
485 Requires: postgresql >= 7
486 Requires: postgresql-server >= 7
496 %description postgresql
500 Requires: python >= %{pyver}
514 This build requires MySQL to be installed separately as the catalog database.
517 This build requires PostgreSQL to be installed separately as the catalog database.
520 This build incorporates sqlite as the catalog database, statically compiled.
523 This build includes python scripting support.
528 Summary: Bacula - The Network Backup Solution
529 Group: System Environment/Daemons
533 This is Bacula's version of mtx tape utilities for Linux distributions that
534 do not provide their own mtx package
538 Summary: Bacula - The Network Backup Solution
539 Group: System Environment/Daemons
541 Conflicts: bacula-mysql
542 Conflicts: bacula-sqlite
543 Conflicts: bacula-postgresql
544 Obsoletes: bacula-rescue
546 %if %{su9} || %{su10}
550 Requires: libstdc++, zlib, openssl
553 Requires: glibc >= 2.2
556 %if %{su9} || %{su10}
557 Requires: glibc >= 2.3
560 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{fc5}
561 Requires: glibc >= 2.3
565 Requires: glibc >= 2.4
570 Requires: python >= %{pyver}
584 This is the File daemon (Client) only package. It includes the command line
587 This build includes python scripting support.
593 Summary: Bacula - The Network Backup Solution
594 Group: System Environment/Daemons
596 %description updatedb
607 This package installs scripts for updating older versions of the bacula
613 Summary: Bacula - The Network Backup Solution
614 Group: System Environment/Daemons
615 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
618 %if %{gconsole} && %{su9}
619 Requires: gtk2 >= 2.0
620 Requires: libgnome >= 2.0
621 Requires: libgnomeui >= 2.0
622 Requires: glibc >= 2.3
624 Requires: libart_lgpl >= 2.0
625 Requires: libbonobo >= 2.0
626 Requires: libbonoboui >= 2.0
627 Requires: bonobo-activation
632 %if %{gconsole} && %{su10}
633 Requires: gtk2 >= 2.8
634 Requires: libgnome >= 2.12
635 Requires: libgnomeui >= 2.12
636 Requires: glibc >= 2.3
638 Requires: libart_lgpl >= 2.3
639 Requires: libbonobo >= 2.10
640 Requires: libbonoboui >= 2.10
641 Requires: bonobo-activation
645 Requires: fontconfig >= 2.3
646 Requires: gnome-vfs2 >= 2.12
649 %if %{gconsole} && %{mdk} && !%{mdv}
650 Requires: gtk2 >= 2.0
651 Requires: libgnomeui2
652 Requires: glibc >= 2.3
654 Requires: libart_lgpl >= 2.0
655 Requires: libbonobo >= 2.0
656 Requires: libbonoboui >= 2.0
660 %if %{gconsole} && %{mdv}
661 Requires: gtk2 >= 2.8
662 Requires: libgnomeui2
663 Requires: glibc >= 2.3
665 Requires: libart_lgpl >= 2.3
666 Requires: libbonobo >= 2.10
667 Requires: libbonoboui >= 2.10
671 %if %{gconsole} && %{fc3}
672 Requires: gtk2 >= 2.4
673 Requires: libgnomeui >= 2.8
674 Requires: glibc >= 2.3
676 Requires: libart_lgpl >= 2.3
677 Requires: libbonobo >= 2.8
678 Requires: libbonoboui >= 2.8
679 Requires: bonobo-activation
683 %if %{gconsole} && %{fc4}
684 Requires: gtk2 >= 2.6
685 Requires: libgnomeui >= 2.10
686 Requires: glibc >= 2.3
688 Requires: libart_lgpl >= 2.3
689 Requires: libbonobo >= 2.8
690 Requires: libbonoboui >= 2.8
691 Requires: bonobo-activation
695 %if %{gconsole} && %{fc5}
696 Requires: gtk2 >= 2.8
697 Requires: libgnomeui >= 2.14
698 Requires: glibc >= 2.4
700 Requires: libart_lgpl >= 2.3
701 Requires: libbonobo >= 2.14
702 Requires: libbonoboui >= 2.14
706 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5}
707 Requires: gtk2 >= 2.0
708 Requires: libgnomeui >= 2.0
709 Requires: glibc >= 2.3
711 Requires: libart_lgpl >= 2.0
712 Requires: libbonobo >= 2.0
713 Requires: libbonoboui >= 2.0
714 Requires: bonobo-activation
719 %if %{gconsole} && %{su9}
722 %if %{gconsole} && %{su10}
725 %if %{gconsole} && ! %{su9} && ! %{su10}
730 %description gconsole
741 This is the Gnome Console package. It is an add-on to the client or
747 Summary: Bacula - The Network Backup Solution
748 Group: System Environment/Daemons
749 Requires: wxGTK >= 2.6, libstdc++, openssl
752 %if %{wxconsole} && %{su10}
753 Requires: gtk2 >= 2.8
756 %if %{wxconsole} && %{fc3}
757 Requires: gtk2 >= 2.4
760 %if %{wxconsole} && %{fc4}
761 Requires: gtk2 >= 2.6
764 %if %{wxconsole} && %{fc5}
765 Requires: gtk2 >= 2.8
769 %description wxconsole
780 This is the WXWindows Console package. It is an add-on to the client or
794 %if %{su9} || %{su10}
795 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
808 # patches for the bundled sqlite scripts
810 # patch the make_sqlite_tables script for installation bindir
811 patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
813 # patch the create_sqlite_database script for installation bindir
814 patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
816 # patch the make_catalog_backup script for installation bindir
817 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
819 # patch the update_sqlite_tables script for installation bindir
820 patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
822 # patch the bacula-dir init script to remove sqlite service
823 %if %{sqlite} && %{su9}
824 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
826 %if %{sqlite} && %{su10}
827 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
830 # 64 bit lib location hacks
832 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
834 %if %{mysql} && %{x86_64}
835 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
837 # this MAY be necessary for python support - waiting for feedback to enable
838 #%if %{python} && %{x86_64}
839 #export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
844 --sbindir=/usr/sbin \
845 --sysconfdir=/etc/bacula \
846 --with-scriptdir=/etc/bacula \
847 --enable-smartalloc \
848 --enable-client-only \
858 --sbindir=/usr/sbin \
859 --sysconfdir=/etc/bacula \
860 --with-scriptdir=/etc/bacula \
861 --enable-smartalloc \
865 %if %{gconsole} && ! %{rh8}
866 --enable-tray-monitor \
872 --with-sqlite=${cwd}/%{depkgs}/sqlite \
878 --enable-wx-console \
884 --enable-client-only \
886 --with-working-dir=%{working_dir} \
887 --with-pid-dir=/var/run \
888 --with-subsys-dir=/var/lock/subsys \
889 --with-dir-user=%{director_daemon_user} \
890 --with-dir-group=%{daemon_group} \
891 --with-sd-user=%{storage_daemon_user} \
892 --with-sd-group=%{storage_daemon_group} \
893 --with-fd-user=%{file_daemon_user} \
894 --with-fd-group=%{daemon_group} \
895 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
896 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
897 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
898 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
899 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
900 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
908 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
909 mkdir -p $RPM_BUILD_ROOT/etc/init.d
910 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
911 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
912 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
913 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
914 mkdir -p $RPM_BUILD_ROOT/etc/bacula/updatedb
916 %if %{gconsole} || %{wxconsole}
917 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
918 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
921 %if %{gconsole} || %{wxconsole}
922 %define usermode_iftrick 1
924 %define usermode_iftrick 0
927 %if %{usermode_iftrick} && ! %{su9} && ! %{su10}
928 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
929 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
930 mkdir -p $RPM_BUILD_ROOT/usr/bin
934 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
938 prefix=$RPM_BUILD_ROOT/usr \
939 sbindir=$RPM_BUILD_ROOT/usr/sbin \
940 sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
941 scriptdir=$RPM_BUILD_ROOT/etc/bacula \
942 working_dir=$RPM_BUILD_ROOT%{working_dir} \
948 prefix=$RPM_BUILD_ROOT/usr \
949 sbindir=$RPM_BUILD_ROOT/usr/sbin \
950 sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
951 working_dir=$RPM_BUILD_ROOT%{working_dir} \
952 mandir=$RPM_BUILD_ROOT/usr/man \
957 # fixme - make installs the mysql scripts for sqlite build
959 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
960 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
961 rm -f $RPM_BUILD_ROOT/etc/bacula/grant_mysql_privileges
964 # fixme - make installs the mysql scripts for postgresql build
966 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
967 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
970 # fixme - make installs gconsole script for build without gconsole
972 rm -f $RPM_BUILD_ROOT/etc/bacula/gconsole
975 rm -f $RPM_BUILD_ROOT/usr/sbin/static-bacula-fd
977 # install the init scripts
978 %if %{su9} || %{su10}
979 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
980 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
981 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
984 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
985 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
986 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
988 %if ! %{su9} && ! %{su10} && ! %{mdk}
989 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
990 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
991 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
993 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
995 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
996 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
999 # install the menu stuff
1000 %if %{gconsole} && %{su9}
1001 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1002 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1003 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1004 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1006 %if %{gconsole} && %{su10}
1007 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1008 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1009 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1010 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1012 %if %{wxconsole} && %{su10}
1013 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1014 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1016 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{mdk}
1021 %if %{gconsole} && %{iftrick}
1022 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1023 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1024 cp -p scripts/gnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/gnome-console
1025 cp -p scripts/gnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/gnome-console
1026 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/gnome-console
1028 %if %{gconsole} && ! %{rh8}
1029 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1030 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1032 %if %{wxconsole} && %{iftrick}
1033 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1034 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1035 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/wxconsole
1036 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/wxconsole
1037 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/wxconsole
1042 cp -p %{depkgs}/sqlite/sqlite $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite
1043 cp -p %{depkgs}/sqlite/sqlite.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite.h
1044 cp -p %{depkgs}/sqlite/libsqlite.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite.a
1047 # install the logrotate file
1048 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1050 # install the updatedb scripts
1051 cp -p updatedb/* $RPM_BUILD_ROOT/etc/bacula/updatedb/
1053 # install the logwatch scripts
1054 %if ! %{client_only}
1055 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1056 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1057 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1058 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1059 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1060 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1063 # install the rescue files
1064 mkdir $RPM_BUILD_ROOT/etc/bacula/rescue
1065 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT/etc/bacula/rescue/
1066 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT/etc/bacula/rescue/
1067 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT/etc/bacula/rescue/
1068 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT/etc/bacula/rescue/
1069 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT/etc/bacula/rescue/
1070 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT/etc/bacula/rescue/
1071 touch $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/rpm_release
1072 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/bacula/bin/bacula-fd
1073 rm -f src/filed/static-bacula-fd
1076 mv $RPM_BUILD_ROOT/usr/sbin/wx-console $RPM_BUILD_ROOT/usr/sbin/wxconsole
1077 mv $RPM_BUILD_ROOT/etc/bacula/wx-console.conf $RPM_BUILD_ROOT/etc/bacula/wxconsole.conf
1080 # now clean up permissions that are left broken by the install
1081 %if ! %{client_only}
1082 chmod o-r $RPM_BUILD_ROOT/etc/bacula/query.sql
1084 chmod o-rwx $RPM_BUILD_ROOT/var/bacula
1085 %if %{gconsole} && ! %{rh8}
1086 chmod 755 $RPM_BUILD_ROOT/usr/sbin/bacula-tray-monitor
1087 chmod 644 $RPM_BUILD_ROOT/etc/bacula/tray-monitor.conf
1090 # fix me - building enable-client-only installs files not included in bacula-client package
1092 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula
1093 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula-ctl-dir
1094 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula-ctl-sd
1095 rm -f $RPM_BUILD_ROOT/etc/bacula/disk-changer
1096 rm -f $RPM_BUILD_ROOT/etc/bacula/dvd-handler
1097 rm -f $RPM_BUILD_ROOT/etc/bacula/mtx-changer
1098 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
1099 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
1100 rm -rf $RPM_BUILD_ROOT/etc/bacula/updatedb
1104 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1107 # MySQL specific files
1109 %defattr(-, root, root)
1110 %attr(-, root, %{daemon_group}) /etc/bacula/create_mysql_database
1111 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_database
1112 %attr(-, root, %{daemon_group}) /etc/bacula/make_mysql_tables
1113 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_tables
1114 %attr(-, root, %{daemon_group}) /etc/bacula/update_mysql_tables
1115 %attr(-, root, %{daemon_group}) /etc/bacula/grant_mysql_privileges
1116 %attr(-, root, %{daemon_group}) /etc/bacula/startmysql
1117 %attr(-, root, %{daemon_group}) /etc/bacula/stopmysql
1122 %defattr(-,root,root)
1123 %attr(-, root, %{daemon_group}) /etc/bacula/create_sqlite_database
1124 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_database
1125 %attr(-, root, %{daemon_group}) /etc/bacula/grant_sqlite_privileges
1126 %attr(-, root, %{daemon_group}) /etc/bacula/make_sqlite_tables
1127 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_tables
1128 %attr(-, root, %{daemon_group}) /etc/bacula/update_sqlite_tables
1129 %{sqlite_bindir}/libsqlite.a
1130 %{sqlite_bindir}/sqlite.h
1131 %{sqlite_bindir}/sqlite
1136 %defattr(-,root,root)
1137 %attr(-, root, %{daemon_group}) /etc/bacula/create_postgresql_database
1138 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_database
1139 %attr(-, root, %{daemon_group}) /etc/bacula/make_postgresql_tables
1140 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_tables
1141 %attr(-, root, %{daemon_group}) /etc/bacula/update_postgresql_tables
1142 %attr(-, root, %{daemon_group}) /etc/bacula/grant_postgresql_privileges
1145 # The rest is DB backend independent
1146 %if ! %{client_only}
1147 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1148 %attr(-, root, %{daemon_group}) /etc/bacula/bacula
1149 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1150 %attr(-, root, %{daemon_group}) /etc/bacula/create_bacula_database
1151 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_database
1152 %attr(-, root, %{daemon_group}) /etc/bacula/grant_bacula_privileges
1153 %attr(-, root, %{daemon_group}) /etc/bacula/make_bacula_tables
1154 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_tables
1155 %attr(-, root, %{daemon_group}) /etc/bacula/update_bacula_tables
1156 %attr(-, root, %{daemon_group}) /etc/bacula/make_catalog_backup
1157 %attr(-, root, %{daemon_group}) /etc/bacula/delete_catalog_backup
1158 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1159 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1160 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1161 %attr(-, root, %{daemon_group}) /etc/bacula/disk-changer
1162 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-dir
1163 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-fd
1164 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-sd
1165 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
1166 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
1167 %attr(-, root, %{storage_daemon_group}) /etc/bacula/dvd-handler
1168 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
1169 %attr(-, root, %{storage_daemon_group}) /etc/bacula/mtx-changer
1171 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1172 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1174 /etc/logrotate.d/bacula
1175 /etc/log.d/scripts/services/bacula
1176 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-dir.conf
1177 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1178 %attr(-, root, %{storage_daemon_group}) %config(noreplace) /etc/bacula/bacula-sd.conf
1179 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1180 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
1181 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
1182 %attr(-, root, %{daemon_group}) /etc/bacula/query.sql
1183 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1185 /usr/sbin/bacula-dir
1193 /usr/sbin/btraceback
1203 # test for bacula database older than version 8
1204 # note: this ASSUMES no password has been set for bacula database
1205 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1210 # test for bacula database older than version 8
1211 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
1212 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1217 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1220 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "8" ]; then
1221 echo "This bacula upgrade will update a bacula database from version 8 to 9."
1222 echo "You appear to be running database version $DB_VER. You must first update"
1223 echo "your database to version 8 and then install this upgrade. The alternative"
1224 echo "is to use /etc/bacula/drop_%{db_backend}_tables to delete all your your current"
1225 echo "catalog information, then do the upgrade. Information on updating a"
1226 echo "database older than version 8 can be found in the release notes."
1234 %if ! %{client_only}
1235 # check for and copy /etc/bacula/console.conf to bconsole.conf
1236 if [ -s /etc/bacula/console.conf ];then
1237 cp -p /etc/bacula/console.conf /etc/bacula/bconsole.conf
1240 # create the daemon users and groups
1241 # first create the groups if they don't exist
1242 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1243 if [ -z "$HAVE_BACULA" ]; then
1244 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1245 echo "The group %{daemon_group} has been added to %{group_file}."
1246 echo "See the manual chapter \"Running Bacula\" for details."
1248 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
1249 if [ -z "$HAVE_BACULA" ]; then
1250 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
1251 echo "The group %{storage_daemon_group} has been added to %{group_file}."
1252 echo "See the manual chapter \"Running Bacula\" for details."
1254 # now create the users if they do not exist
1255 # we do not use the -g option allowing the primary group to be set to system default
1256 # this will be a unique group on redhat type systems or the group users on some systems
1257 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
1258 if [ -z "$HAVE_BACULA" ]; then
1259 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
1260 echo "The user %{storage_daemon_user} has been added to %{user_file}."
1261 echo "See the manual chapter \"Running Bacula\" for details."
1263 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
1264 if [ -z "$HAVE_BACULA" ]; then
1265 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
1266 echo "The user %{director_daemon_user} has been added to %{user_file}."
1267 echo "See the manual chapter \"Running Bacula\" for details."
1269 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1270 if [ -z "$HAVE_BACULA" ]; then
1271 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1272 echo "The user %{file_daemon_user} has been added to %{user_file}."
1273 echo "See the manual chapter \"Running Bacula\" for details."
1275 # now we add the supplementary groups, this is ok to call even if the users already exist
1276 # we only do this if the user is NOT root
1277 IS_ROOT=%{director_daemon_user}
1278 if [ "$IS_ROOT" != "root" ]; then
1279 %{usermod} -G %{daemon_group} %{director_daemon_user}
1281 IS_ROOT=%{storage_daemon_user}
1282 if [ "$IS_ROOT" != "root" ]; then
1283 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
1285 IS_ROOT=%{file_daemon_user}
1286 if [ "$IS_ROOT" != "root" ]; then
1287 %{usermod} -G %{daemon_group} %{file_daemon_user}
1301 %if ! %{client_only}
1303 if [ "$1" -ge 1 ] ; then
1304 /sbin/chkconfig --add bacula-dir
1305 /sbin/chkconfig --add bacula-fd
1306 /sbin/chkconfig --add bacula-sd
1311 # test for an existing database
1312 # note: this ASSUMES no password has been set for bacula database
1313 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1315 # grant privileges and create tables if they do not exist
1316 if [ -z "$DB_VER" ]; then
1317 echo "Hmm, doesn't look like you have an existing database."
1318 echo "Granting privileges for MySQL user bacula..."
1319 /etc/bacula/grant_mysql_privileges
1320 echo "Creating MySQL bacula database..."
1321 /etc/bacula/create_mysql_database
1322 echo "Creating bacula tables..."
1323 /etc/bacula/make_mysql_tables
1325 # check to see if we need to upgrade a 1.36 or lower database
1326 elif [ "$DB_VER" -lt "9" ]; then
1327 echo "This release requires an upgrade to your bacula database."
1328 echo "Backing up your current database..."
1329 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1330 echo "Upgrading bacula database ..."
1331 /etc/bacula/update_mysql_tables
1332 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1338 # test for an existing database
1339 if [ -s %{working_dir}/bacula.db ]; then
1340 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1341 # check to see if we need to upgrade a 1.36 or lower database
1342 if [ "$DB_VER" -lt "9" ] && [ "$DB_VER" -ge "8" ]; then
1343 echo "This release requires an upgrade to your bacula database."
1344 echo "Backing up your current database..."
1345 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1346 echo "Upgrading bacula database ..."
1347 /etc/bacula/update_sqlite_tables
1348 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1351 # create the database and tables
1352 echo "Hmm, doesn't look like you have an existing database."
1353 echo "Creating SQLite database..."
1354 /etc/bacula/create_sqlite_database
1355 echo "Creating the SQLite tables..."
1356 /etc/bacula/make_sqlite_tables
1361 # test for an existing database
1362 # note: this ASSUMES no password has been set for bacula database
1363 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1365 # grant privileges and create tables if they do not exist
1366 if [ -z "$DB_VER" ]; then
1367 echo "Hmm, doesn't look like you have an existing database."
1368 echo "Creating PostgreSQL bacula database..."
1369 /etc/bacula/create_postgresql_database
1370 echo "Creating bacula tables..."
1371 /etc/bacula/make_postgresql_tables
1372 echo "Granting privileges for PostgreSQL user bacula..."
1373 /etc/bacula/grant_postgresql_privileges
1375 # check to see if we need to upgrade a 1.36 or lower database
1376 elif [ "$DB_VER" -lt "9" ]; then
1377 echo "This release requires an upgrade to your bacula database."
1378 echo "Backing up your current database..."
1379 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1380 echo "Upgrading bacula database ..."
1381 /etc/bacula/update_postgresql_tables
1382 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1387 %if ! %{client_only}
1388 # generate passwords if needed
1389 if [ -d /etc/bacula ]; then
1391 for file in *.conf; do
1392 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
1393 need_password=`grep $string $file 2>/dev/null`
1394 if [ -n "$need_password" ]; then
1395 pass=`openssl rand -base64 33`
1396 sed "s-$string-$pass-g" $file > $file.new
1397 cp -f $file.new $file; rm -f $file.new
1414 %if ! %{client_only}
1417 /sbin/chkconfig --del bacula-dir
1418 /sbin/chkconfig --del bacula-fd
1419 /sbin/chkconfig --del bacula-sd
1424 %if ! %{client_only}
1426 %attr(-, root, %{storage_daemon_group}) /usr/sbin/loaderinfo
1427 %attr(-, root, %{storage_daemon_group}) /usr/sbin/mtx
1428 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsitape
1429 %attr(-, root, %{storage_daemon_group}) /usr/sbin/tapeinfo
1435 %defattr(-,root,root)
1436 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1437 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1438 /etc/bacula/bacula-ctl-fd
1439 /etc/init.d/bacula-fd
1440 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1442 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1443 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1445 /etc/logrotate.d/bacula
1447 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1448 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1449 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1452 /usr/sbin/btraceback
1453 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1454 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1459 # create the daemon group and user
1460 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1461 if [ -z "$HAVE_BACULA" ]; then
1462 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1463 echo "The group %{daemon_group} has been added to %{group_file}."
1464 echo "See the manual chapter \"Running Bacula\" for details."
1466 # we do not use the -g option allowing the primary group to be set to system default
1467 # this will be a unique group on redhat type systems or the group users on some systems
1468 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1469 if [ -z "$HAVE_BACULA" ]; then
1470 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1471 echo "The user %{file_daemon_user} has been added to %{user_file}."
1472 echo "See the manual chapter \"Running Bacula\" for details."
1474 # now we add the supplementary group, this is ok to call even if the user already exists
1475 # we only do this if the user is NOT root
1476 IS_ROOT=%{file_daemon_user}
1477 if [ "$IS_ROOT" != "root" ]; then
1478 %{usermod} -G %{daemon_group} %{file_daemon_user}
1483 if [ "$1" -ge 1 ] ; then
1484 /sbin/chkconfig --add bacula-fd
1487 # generate passwords if needed
1488 if [ -d /etc/bacula ]; then
1490 for file in *.conf; do
1491 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
1492 need_password=`grep $string $file 2>/dev/null`
1493 if [ -n "$need_password" ]; then
1494 pass=`openssl rand -base64 33`
1495 sed "s-$string-$pass-g" $file > $file.new
1496 cp -f $file.new $file; rm -f $file.new
1505 /sbin/chkconfig --del bacula-fd
1508 %if ! %{client_only}
1510 %defattr(-,root,%{daemon_group})
1511 /etc/bacula/updatedb/*
1514 # create the daemon group
1515 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1516 if [ -z "$HAVE_BACULA" ]; then
1517 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1518 echo "The group %{daemon_group} has been added to %{group_file}."
1519 echo "See the manual chapter \"Running Bacula\" for details."
1523 echo "The database update scripts were installed to /etc/bacula/updatedb"
1528 %defattr(-,root,root)
1529 /usr/sbin/gnome-console
1530 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1531 %attr(-, root, %{daemon_group}) /etc/bacula/gconsole
1532 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/gnome-console.conf
1533 /usr/share/pixmaps/bacula.png
1534 /usr/share/applications/bacula.desktop
1537 %if %{gconsole} && ! %{rh8}
1538 /usr/sbin/bacula-tray-monitor
1539 %config(noreplace) /etc/bacula/tray-monitor.conf
1540 /usr/share/pixmaps/bacula-tray-monitor.xpm
1541 /usr/share/applications/bacula-tray-monitor.desktop
1544 %if %{gconsole} && ! %{su9} && ! %{su10}
1545 # add the console helper files
1546 %config(noreplace,missingok) /etc/pam.d/gnome-console
1547 %config(noreplace,missingok) /etc/security/console.apps/gnome-console
1548 /usr/bin/gnome-console
1553 # create the daemon group
1554 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1555 if [ -z "$HAVE_BACULA" ]; then
1556 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1557 echo "The group %{daemon_group} has been added to %{group_file}."
1558 echo "See the manual chapter \"Running Bacula\" for details."
1562 # generate passwords if needed
1563 if [ -d /etc/bacula ]; then
1565 for file in *.conf; do
1566 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
1567 need_password=`grep $string $file 2>/dev/null`
1568 if [ -n "$need_password" ]; then
1569 pass=`openssl rand -base64 33`
1570 sed "s-$string-$pass-g" $file > $file.new
1571 cp -f $file.new $file; rm -f $file.new
1580 %defattr(-,root,root)
1582 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1583 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/wxconsole.conf
1584 /usr/share/pixmaps/wxwin16x16.xpm
1585 /usr/share/applications/wxconsole.desktop
1588 %if %{wxconsole} && ! %{su9} && ! %{su10}
1589 # add the console helper files
1590 %config(noreplace,missingok) /etc/pam.d/wxconsole
1591 %config(noreplace,missingok) /etc/security/console.apps/wxconsole
1597 # create the daemon group
1598 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1599 if [ -z "$HAVE_BACULA" ]; then
1600 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1601 echo "The group %{daemon_group} has been added to %{group_file}."
1602 echo "See the manual chapter \"Running Bacula\" for details."
1606 # generate passwords if needed
1607 if [ -d /etc/bacula ]; then
1609 for file in *.conf; do
1610 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
1611 need_password=`grep $string $file 2>/dev/null`
1612 if [ -n "$need_password" ]; then
1613 pass=`openssl rand -base64 33`
1614 sed "s-$string-$pass-g" $file > $file.new
1615 cp -f $file.new $file; rm -f $file.new
1623 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1624 - bug 648 renable and update sqlite patches
1625 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1626 - move pango-devel BuildRequires into gconsole only build
1627 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1628 - add provides and conflicts for standard suse packages
1629 - add third party packager tag support
1630 - add build_client_only tag
1631 - remove bsmtp from client package
1632 - add bacula-ctl-fd to client package
1633 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1634 - fix directory creation when wxconsole and not gconsole
1635 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1636 - add check to buildrequires to make sure libstdc++ version matches gcc
1637 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1638 - add python build support
1639 - fix LDFLAGS declarations
1640 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1641 - add requires for standard compiler toolchain
1642 - move version and release tags up
1644 - add docs_version tag
1645 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1646 - update rescuever to 1.8.6
1647 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1648 - update depkgs to 25Jun06
1649 - add mysql5 build tag
1650 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1651 - 1.38.10 bump rescue version
1652 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1653 - fix usermod statements
1655 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1656 - add -g param back to useradd statements Bug 605
1657 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1658 - redundant code cleanup
1659 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1660 - add wxconsole package
1661 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1663 - dependency update for Mandriva
1664 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1666 - remove -n option from useradd scripts
1667 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1669 - fix problem specifying more than one primary group for user bacula
1670 - add build switch to not build gconsole regardless of platform
1671 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1672 - add centos3 build tag
1673 - fix link error of static-fd on Mandrake with --disable-nls
1674 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1675 - add fc4 dependencies
1676 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1677 - add SuSE 10.0 build
1678 - remove specific permission in attrib macros
1679 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1681 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
1682 - refix compat for _dist on SLES9 which seems to have been removed
1683 - added note regarding Aleksandar's use of specific permissions in attrib macros
1684 - need to review and add specific fc4 build currently using fc3 Requires
1685 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1687 - Reorganize files and pre/post sections to remove repetitions
1688 - Always build separate mtx package
1689 - Fix file ownerships for /etc/bacula and Bacula's working dir
1690 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1691 - Disable GNOME on RH7
1692 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1693 - Red Hat and look alikes have mtx RPM, do not build/package our version
1694 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1695 - minor edit to _dist for SLES9 compatibility
1696 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1698 - kern changed location of pdf files and html manual in docs package
1699 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1701 - add docs (from prebuilt tarball) and rescue packages back in
1702 - remove dvd-freespace and dvd-writepart files, add dvd-handler
1703 - remove 3 of 4 sqlite script patches as not needed
1704 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1706 - remove docs and rescue sections (remove static fd)
1707 - add dvd-freespace and dvd-writepart files
1708 - update depkgs to 22Jun05
1709 - change database update to 8 to 9
1710 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1711 - minor cleanups before 1.38 changes
1712 - add popt and popt-devel build dependencies
1713 - add tetex and tetex-dvips dependencies for doc build
1714 - replace deprecated Copyright tag with License
1715 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1716 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
1717 - conflict with sqlite packages. remove readline dependency.
1718 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1719 - release 1.36.3 update docs
1720 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1721 - add centos4 build tag
1722 - add x86_64 build tag
1723 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1724 - add rhel4 build tag
1725 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
1726 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1727 - add rhel3 build tag
1728 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1729 - fix tray-monitor.conf for noreplace
1730 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1731 - fix distribution check for Fedora and Whitebox
1732 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1733 - add logwatch script
1735 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1736 - add build for Fedora Core 3 (linc now included in ORDit2)
1737 - add mysql4 define for Mandrake 10.1
1738 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1739 - fix {group_file} variable in post scripts
1740 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
1741 - add distribution checking and custom Distribution tag
1742 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1743 - ASSIGNMENT OF COPYRIGHT
1744 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
1745 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
1746 - all right, title and interest in and to the copyright in this software RPM
1747 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
1748 - free of all liens, encumbrances or any known claims against said copyright.
1749 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1751 - thanks to Daniel Widyono
1752 - update description for rescue package to describe cdrom creation
1753 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1754 - update depkgs to 29Oct04
1755 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1756 - add cdrom rescue to bacula-rescue package
1757 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1758 - misc fixes from 1.36.0 suse feedback
1759 - fix situation where sqlite database exists but sqlite has been removed.
1760 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1761 - remove tray-monitor from RH8 build
1762 - fix permissions on tray-monitor files
1763 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1764 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
1765 - change database update to 7 to 8 upgrade,
1766 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
1767 - build in 30Jul04, add freetype dependancy to gnome package.
1768 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1769 - add documentation to console for groupadd
1770 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1771 - add support for running daemons as root.bacula
1772 - correct for change in location of floppy rescue files in 1.35.2
1773 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
1774 - updated depgkgs to 30Jul04
1775 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1776 - really, really fix symlink creation for gconsole
1777 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1778 - fix symlink creation in gconsole post install
1779 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1780 - fixed error in gconsole post script
1781 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1782 - add check for gconsole symlink before trying to create it
1783 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1784 - fix some minor permissions issues on doc files that CVS won't let us fix
1785 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1786 - add pkgconfig to BuildRequires
1787 - clean up gnome1/2 menu entries for appropriate packages
1788 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1789 - tightened up doc distribution
1790 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1791 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
1792 - rpm's horrible bug that prevents nested conditional macros prevents me
1793 - from implementing these 2 separate approaches within the conditionals which
1794 - create the separate server packages.
1795 - the solution adopted is to remove the gnome-console files from the server packages
1796 - so bacula-gconsole is now an add on for both client and server packages.
1797 - this also now allows the server packages to be install on machines without
1798 - an X-server and we can still maintain a single spec file.
1799 - added tests to make sure we have defined platform and database macros.
1800 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1801 - corrected mysql prerequisites for suse
1802 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1803 - replaced all cp commands with cp -p
1804 - removed addition of a+x permissions on gnome-console
1805 - corrected permissions on init scripts
1806 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1807 - corrected creation of sqlite_bindir in install from !mysql to sqlite
1809 - various cleanup patches from Michael K. Johnson:
1810 - corrected post install routines for nicer chkconfig
1811 - removed chmod changes in post routines and moved to install section
1812 - removed interactive nature of post routine for rescue package
1813 - added description of building rescue disks to the description of rescue package
1814 - added clean of build root to beginning of install
1815 - removed specifying attr in all file lists
1816 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1817 - added bconsole to client package
1818 - added gconsole package as add-on to client
1819 - removed spurious dependancies on updatedb package (!cut/paste)
1820 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1821 - added updatedb package
1822 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1823 - added postgresql package
1824 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1825 - corrected the if else logic in the dependancy sections
1826 - changes for 1.34 release
1827 - /etc/bacula/console is now /etc/bacula/bconsole
1828 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
1829 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
1830 - /usr/sbin/smtp is now /usr/sbin/bsmtp
1831 - added new /etc/bacula/drop_mysql_database
1832 - added new /etc/bacula/drop_sqlite_database
1833 - added new /etc/bacula/grant_sqlite_privileges
1834 - added new generic bacula database scripts in /etc/bacula
1835 - added pre-install sections to check for database versions older than 6
1836 - added check for /etc/bacula/console.conf and copy to bconsole.conf
1837 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1838 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
1839 - added testing for existing databases before executing any of the database creation scripts
1840 - added defines working_dir and sqlite_bindir in place of hard coded paths
1841 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1842 - added build configuration for SuSE.
1843 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
1844 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1845 - added patch for create_sqlite_database to fix the installed bindir
1846 - added execute of create_sqlite_database to post of sqlite package
1847 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1848 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
1849 - added bacula-fd as Requires for rescue package
1850 - added build tag for Fedora Core 1
1851 - cleaned up dependancies for all builds
1852 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1853 - removed rh_version from package names
1854 - added platform build configuration section to beginning of file
1855 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1856 - removed make_static_bacula script from rescue package install
1857 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1858 - Added define at top of file for depkgs version
1859 - Added rescue sub-package
1860 - Moved requires statements into proper sub-package locations
1861 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1862 - Corrected Requires for Gnome 1.4/2.0 builds
1863 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1864 - Added separate source declaration for depkgs
1865 - added patch for make_catalog_backup script
1866 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1867 - Misc changes to mysql/sqlite build and rh7/8 menu differences
1868 - Added rh_version to sub-package names
1869 - Added installed but missing file /etc/bacula/gconsole
1870 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
1871 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
1872 - Update spec for version 1.31 and combine client
1873 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>