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
809 # as of 1.38.0 first 3 patches no longer needed
811 # patch the make_sqlite_tables script for installation bindir
812 # patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
814 # patch the create_sqlite_database script for installation bindir
815 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
817 # patch the make_catalog_backup script for installation bindir
818 #patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
820 # patch the update_sqlite_tables script for installation bindir
821 patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
823 # patch the bacula-dir init script to remove sqlite service
824 %if %{sqlite} && %{su9}
825 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
827 %if %{sqlite} && %{su10}
828 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
831 # 64 bit lib location hacks
833 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
835 %if %{mysql} && %{x86_64}
836 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
838 # this MAY be necessary for python support - waiting for feedback to enable
839 #%if %{python} && %{x86_64}
840 #export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
845 --sbindir=/usr/sbin \
846 --sysconfdir=/etc/bacula \
847 --with-scriptdir=/etc/bacula \
848 --enable-smartalloc \
849 --enable-client-only \
859 --sbindir=/usr/sbin \
860 --sysconfdir=/etc/bacula \
861 --with-scriptdir=/etc/bacula \
862 --enable-smartalloc \
866 %if %{gconsole} && ! %{rh8}
867 --enable-tray-monitor \
873 --with-sqlite=${cwd}/%{depkgs}/sqlite \
879 --enable-wx-console \
885 --enable-client-only \
887 --with-working-dir=%{working_dir} \
888 --with-pid-dir=/var/run \
889 --with-subsys-dir=/var/lock/subsys \
890 --with-dir-user=%{director_daemon_user} \
891 --with-dir-group=%{daemon_group} \
892 --with-sd-user=%{storage_daemon_user} \
893 --with-sd-group=%{storage_daemon_group} \
894 --with-fd-user=%{file_daemon_user} \
895 --with-fd-group=%{daemon_group} \
896 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
897 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
898 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
899 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
900 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
901 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
909 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
910 mkdir -p $RPM_BUILD_ROOT/etc/init.d
911 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
912 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
913 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
914 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
915 mkdir -p $RPM_BUILD_ROOT/etc/bacula/updatedb
917 %if %{gconsole} || %{wxconsole}
918 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
919 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
922 %if %{gconsole} || %{wxconsole}
923 %define usermode_iftrick 1
925 %define usermode_iftrick 0
928 %if %{usermode_iftrick} && ! %{su9} && ! %{su10}
929 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
930 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
931 mkdir -p $RPM_BUILD_ROOT/usr/bin
935 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
939 prefix=$RPM_BUILD_ROOT/usr \
940 sbindir=$RPM_BUILD_ROOT/usr/sbin \
941 sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
942 scriptdir=$RPM_BUILD_ROOT/etc/bacula \
943 working_dir=$RPM_BUILD_ROOT%{working_dir} \
949 prefix=$RPM_BUILD_ROOT/usr \
950 sbindir=$RPM_BUILD_ROOT/usr/sbin \
951 sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
952 working_dir=$RPM_BUILD_ROOT%{working_dir} \
953 mandir=$RPM_BUILD_ROOT/usr/man \
958 # fixme - make installs the mysql scripts for sqlite build
960 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
961 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
962 rm -f $RPM_BUILD_ROOT/etc/bacula/grant_mysql_privileges
965 # fixme - make installs the mysql scripts for postgresql build
967 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
968 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
971 # fixme - make installs gconsole script for build without gconsole
973 rm -f $RPM_BUILD_ROOT/etc/bacula/gconsole
976 rm -f $RPM_BUILD_ROOT/usr/sbin/static-bacula-fd
978 # install the init scripts
979 %if %{su9} || %{su10}
980 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
981 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
982 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
985 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
986 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
987 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
989 %if ! %{su9} && ! %{su10} && ! %{mdk}
990 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
991 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
992 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
994 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
996 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
997 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1000 # install the menu stuff
1001 %if %{gconsole} && %{su9}
1002 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1003 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1004 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1005 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1007 %if %{gconsole} && %{su10}
1008 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1009 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1010 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1011 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1013 %if %{wxconsole} && %{su10}
1014 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1015 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1017 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{mdk}
1022 %if %{gconsole} && %{iftrick}
1023 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1024 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1025 cp -p scripts/gnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/gnome-console
1026 cp -p scripts/gnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/gnome-console
1027 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/gnome-console
1029 %if %{gconsole} && ! %{rh8}
1030 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1031 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1033 %if %{wxconsole} && %{iftrick}
1034 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1035 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1036 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/wxconsole
1037 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/wxconsole
1038 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/wxconsole
1043 cp -p %{depkgs}/sqlite/sqlite $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite
1044 cp -p %{depkgs}/sqlite/sqlite.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite.h
1045 cp -p %{depkgs}/sqlite/libsqlite.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite.a
1048 # install the logrotate file
1049 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1051 # install the updatedb scripts
1052 cp -p updatedb/* $RPM_BUILD_ROOT/etc/bacula/updatedb/
1054 # install the logwatch scripts
1055 %if ! %{client_only}
1056 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1057 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1058 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1059 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1060 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1061 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1064 # install the rescue files
1065 mkdir $RPM_BUILD_ROOT/etc/bacula/rescue
1066 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT/etc/bacula/rescue/
1067 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT/etc/bacula/rescue/
1068 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT/etc/bacula/rescue/
1069 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT/etc/bacula/rescue/
1070 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT/etc/bacula/rescue/
1071 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT/etc/bacula/rescue/
1072 touch $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/rpm_release
1073 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/bacula/bin/bacula-fd
1074 rm -f src/filed/static-bacula-fd
1077 mv $RPM_BUILD_ROOT/usr/sbin/wx-console $RPM_BUILD_ROOT/usr/sbin/wxconsole
1078 mv $RPM_BUILD_ROOT/etc/bacula/wx-console.conf $RPM_BUILD_ROOT/etc/bacula/wxconsole.conf
1081 # now clean up permissions that are left broken by the install
1082 %if ! %{client_only}
1083 chmod o-r $RPM_BUILD_ROOT/etc/bacula/query.sql
1085 chmod o-rwx $RPM_BUILD_ROOT/var/bacula
1086 %if %{gconsole} && ! %{rh8}
1087 chmod 755 $RPM_BUILD_ROOT/usr/sbin/bacula-tray-monitor
1088 chmod 644 $RPM_BUILD_ROOT/etc/bacula/tray-monitor.conf
1091 # fix me - building enable-client-only installs files not included in bacula-client package
1093 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula
1094 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula-ctl-dir
1095 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula-ctl-sd
1096 rm -f $RPM_BUILD_ROOT/etc/bacula/disk-changer
1097 rm -f $RPM_BUILD_ROOT/etc/bacula/dvd-handler
1098 rm -f $RPM_BUILD_ROOT/etc/bacula/mtx-changer
1099 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
1100 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
1101 rm -rf $RPM_BUILD_ROOT/etc/bacula/updatedb
1105 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1108 # MySQL specific files
1110 %defattr(-, root, root)
1111 %attr(-, root, %{daemon_group}) /etc/bacula/create_mysql_database
1112 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_database
1113 %attr(-, root, %{daemon_group}) /etc/bacula/make_mysql_tables
1114 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_tables
1115 %attr(-, root, %{daemon_group}) /etc/bacula/update_mysql_tables
1116 %attr(-, root, %{daemon_group}) /etc/bacula/grant_mysql_privileges
1117 %attr(-, root, %{daemon_group}) /etc/bacula/startmysql
1118 %attr(-, root, %{daemon_group}) /etc/bacula/stopmysql
1123 %defattr(-,root,root)
1124 %attr(-, root, %{daemon_group}) /etc/bacula/create_sqlite_database
1125 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_database
1126 %attr(-, root, %{daemon_group}) /etc/bacula/grant_sqlite_privileges
1127 %attr(-, root, %{daemon_group}) /etc/bacula/make_sqlite_tables
1128 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_tables
1129 %attr(-, root, %{daemon_group}) /etc/bacula/update_sqlite_tables
1130 %{sqlite_bindir}/libsqlite.a
1131 %{sqlite_bindir}/sqlite.h
1132 %{sqlite_bindir}/sqlite
1137 %defattr(-,root,root)
1138 %attr(-, root, %{daemon_group}) /etc/bacula/create_postgresql_database
1139 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_database
1140 %attr(-, root, %{daemon_group}) /etc/bacula/make_postgresql_tables
1141 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_tables
1142 %attr(-, root, %{daemon_group}) /etc/bacula/update_postgresql_tables
1143 %attr(-, root, %{daemon_group}) /etc/bacula/grant_postgresql_privileges
1146 # The rest is DB backend independent
1147 %if ! %{client_only}
1148 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1149 %attr(-, root, %{daemon_group}) /etc/bacula/bacula
1150 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1151 %attr(-, root, %{daemon_group}) /etc/bacula/create_bacula_database
1152 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_database
1153 %attr(-, root, %{daemon_group}) /etc/bacula/grant_bacula_privileges
1154 %attr(-, root, %{daemon_group}) /etc/bacula/make_bacula_tables
1155 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_tables
1156 %attr(-, root, %{daemon_group}) /etc/bacula/update_bacula_tables
1157 %attr(-, root, %{daemon_group}) /etc/bacula/make_catalog_backup
1158 %attr(-, root, %{daemon_group}) /etc/bacula/delete_catalog_backup
1159 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1160 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1161 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1162 %attr(-, root, %{daemon_group}) /etc/bacula/disk-changer
1163 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-dir
1164 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-fd
1165 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-sd
1166 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
1167 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
1168 %attr(-, root, %{storage_daemon_group}) /etc/bacula/dvd-handler
1169 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
1170 %attr(-, root, %{storage_daemon_group}) /etc/bacula/mtx-changer
1172 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1173 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1175 /etc/logrotate.d/bacula
1176 /etc/log.d/scripts/services/bacula
1177 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-dir.conf
1178 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1179 %attr(-, root, %{storage_daemon_group}) %config(noreplace) /etc/bacula/bacula-sd.conf
1180 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1181 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
1182 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
1183 %attr(-, root, %{daemon_group}) /etc/bacula/query.sql
1184 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1186 /usr/sbin/bacula-dir
1194 /usr/sbin/btraceback
1204 # test for bacula database older than version 8
1205 # note: this ASSUMES no password has been set for bacula database
1206 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1211 # test for bacula database older than version 8
1212 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
1213 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1218 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1221 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "8" ]; then
1222 echo "This bacula upgrade will update a bacula database from version 8 to 9."
1223 echo "You appear to be running database version $DB_VER. You must first update"
1224 echo "your database to version 8 and then install this upgrade. The alternative"
1225 echo "is to use /etc/bacula/drop_%{db_backend}_tables to delete all your your current"
1226 echo "catalog information, then do the upgrade. Information on updating a"
1227 echo "database older than version 8 can be found in the release notes."
1235 %if ! %{client_only}
1236 # check for and copy /etc/bacula/console.conf to bconsole.conf
1237 if [ -s /etc/bacula/console.conf ];then
1238 cp -p /etc/bacula/console.conf /etc/bacula/bconsole.conf
1241 # create the daemon users and groups
1242 # first create the groups if they don't exist
1243 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1244 if [ -z "$HAVE_BACULA" ]; then
1245 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1246 echo "The group %{daemon_group} has been added to %{group_file}."
1247 echo "See the manual chapter \"Running Bacula\" for details."
1249 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
1250 if [ -z "$HAVE_BACULA" ]; then
1251 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
1252 echo "The group %{storage_daemon_group} has been added to %{group_file}."
1253 echo "See the manual chapter \"Running Bacula\" for details."
1255 # now create the users if they do not exist
1256 # we do not use the -g option allowing the primary group to be set to system default
1257 # this will be a unique group on redhat type systems or the group users on some systems
1258 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
1259 if [ -z "$HAVE_BACULA" ]; then
1260 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
1261 echo "The user %{storage_daemon_user} has been added to %{user_file}."
1262 echo "See the manual chapter \"Running Bacula\" for details."
1264 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
1265 if [ -z "$HAVE_BACULA" ]; then
1266 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
1267 echo "The user %{director_daemon_user} has been added to %{user_file}."
1268 echo "See the manual chapter \"Running Bacula\" for details."
1270 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1271 if [ -z "$HAVE_BACULA" ]; then
1272 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1273 echo "The user %{file_daemon_user} has been added to %{user_file}."
1274 echo "See the manual chapter \"Running Bacula\" for details."
1276 # now we add the supplementary groups, this is ok to call even if the users already exist
1277 # we only do this if the user is NOT root
1278 IS_ROOT=%{director_daemon_user}
1279 if [ "$IS_ROOT" != "root" ]; then
1280 %{usermod} -G %{daemon_group} %{director_daemon_user}
1282 IS_ROOT=%{storage_daemon_user}
1283 if [ "$IS_ROOT" != "root" ]; then
1284 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
1286 IS_ROOT=%{file_daemon_user}
1287 if [ "$IS_ROOT" != "root" ]; then
1288 %{usermod} -G %{daemon_group} %{file_daemon_user}
1302 %if ! %{client_only}
1304 if [ "$1" -ge 1 ] ; then
1305 /sbin/chkconfig --add bacula-dir
1306 /sbin/chkconfig --add bacula-fd
1307 /sbin/chkconfig --add bacula-sd
1312 # test for an existing database
1313 # note: this ASSUMES no password has been set for bacula database
1314 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1316 # grant privileges and create tables if they do not exist
1317 if [ -z "$DB_VER" ]; then
1318 echo "Hmm, doesn't look like you have an existing database."
1319 echo "Granting privileges for MySQL user bacula..."
1320 /etc/bacula/grant_mysql_privileges
1321 echo "Creating MySQL bacula database..."
1322 /etc/bacula/create_mysql_database
1323 echo "Creating bacula tables..."
1324 /etc/bacula/make_mysql_tables
1326 # check to see if we need to upgrade a 1.36 or lower database
1327 elif [ "$DB_VER" -lt "9" ]; then
1328 echo "This release requires an upgrade to your bacula database."
1329 echo "Backing up your current database..."
1330 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1331 echo "Upgrading bacula database ..."
1332 /etc/bacula/update_mysql_tables
1333 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1339 # test for an existing database
1340 if [ -s %{working_dir}/bacula.db ]; then
1341 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1342 # check to see if we need to upgrade a 1.36 or lower database
1343 if [ "$DB_VER" -lt "9" ] && [ "$DB_VER" -ge "8" ]; then
1344 echo "This release requires an upgrade to your bacula database."
1345 echo "Backing up your current database..."
1346 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1347 echo "Upgrading bacula database ..."
1348 /etc/bacula/update_sqlite_tables
1349 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1352 # create the database and tables
1353 echo "Hmm, doesn't look like you have an existing database."
1354 echo "Creating SQLite database..."
1355 /etc/bacula/create_sqlite_database
1356 echo "Creating the SQLite tables..."
1357 /etc/bacula/make_sqlite_tables
1362 # test for an existing database
1363 # note: this ASSUMES no password has been set for bacula database
1364 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1366 # grant privileges and create tables if they do not exist
1367 if [ -z "$DB_VER" ]; then
1368 echo "Hmm, doesn't look like you have an existing database."
1369 echo "Creating PostgreSQL bacula database..."
1370 /etc/bacula/create_postgresql_database
1371 echo "Creating bacula tables..."
1372 /etc/bacula/make_postgresql_tables
1373 echo "Granting privileges for PostgreSQL user bacula..."
1374 /etc/bacula/grant_postgresql_privileges
1376 # check to see if we need to upgrade a 1.36 or lower database
1377 elif [ "$DB_VER" -lt "9" ]; then
1378 echo "This release requires an upgrade to your bacula database."
1379 echo "Backing up your current database..."
1380 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1381 echo "Upgrading bacula database ..."
1382 /etc/bacula/update_postgresql_tables
1383 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1388 %if ! %{client_only}
1389 # generate passwords if needed
1390 if [ -d /etc/bacula ]; then
1392 for file in *.conf; do
1393 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
1394 need_password=`grep $string $file 2>/dev/null`
1395 if [ -n "$need_password" ]; then
1396 pass=`openssl rand -base64 33`
1397 sed "s-$string-$pass-g" $file > $file.new
1398 cp -f $file.new $file; rm -f $file.new
1415 %if ! %{client_only}
1418 /sbin/chkconfig --del bacula-dir
1419 /sbin/chkconfig --del bacula-fd
1420 /sbin/chkconfig --del bacula-sd
1425 %if ! %{client_only}
1427 %attr(-, root, %{storage_daemon_group}) /usr/sbin/loaderinfo
1428 %attr(-, root, %{storage_daemon_group}) /usr/sbin/mtx
1429 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsitape
1430 %attr(-, root, %{storage_daemon_group}) /usr/sbin/tapeinfo
1436 %defattr(-,root,root)
1437 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1438 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1439 /etc/bacula/bacula-ctl-fd
1440 /etc/init.d/bacula-fd
1441 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1443 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1444 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1446 /etc/logrotate.d/bacula
1448 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1449 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1450 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1453 /usr/sbin/btraceback
1454 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1455 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1460 # create the daemon group and user
1461 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1462 if [ -z "$HAVE_BACULA" ]; then
1463 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1464 echo "The group %{daemon_group} has been added to %{group_file}."
1465 echo "See the manual chapter \"Running Bacula\" for details."
1467 # we do not use the -g option allowing the primary group to be set to system default
1468 # this will be a unique group on redhat type systems or the group users on some systems
1469 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1470 if [ -z "$HAVE_BACULA" ]; then
1471 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1472 echo "The user %{file_daemon_user} has been added to %{user_file}."
1473 echo "See the manual chapter \"Running Bacula\" for details."
1475 # now we add the supplementary group, this is ok to call even if the user already exists
1476 # we only do this if the user is NOT root
1477 IS_ROOT=%{file_daemon_user}
1478 if [ "$IS_ROOT" != "root" ]; then
1479 %{usermod} -G %{daemon_group} %{file_daemon_user}
1484 if [ "$1" -ge 1 ] ; then
1485 /sbin/chkconfig --add bacula-fd
1488 # generate passwords if needed
1489 if [ -d /etc/bacula ]; then
1491 for file in *.conf; do
1492 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
1493 need_password=`grep $string $file 2>/dev/null`
1494 if [ -n "$need_password" ]; then
1495 pass=`openssl rand -base64 33`
1496 sed "s-$string-$pass-g" $file > $file.new
1497 cp -f $file.new $file; rm -f $file.new
1506 /sbin/chkconfig --del bacula-fd
1509 %if ! %{client_only}
1511 %defattr(-,root,%{daemon_group})
1512 /etc/bacula/updatedb/*
1515 # create the daemon group
1516 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1517 if [ -z "$HAVE_BACULA" ]; then
1518 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1519 echo "The group %{daemon_group} has been added to %{group_file}."
1520 echo "See the manual chapter \"Running Bacula\" for details."
1524 echo "The database update scripts were installed to /etc/bacula/updatedb"
1529 %defattr(-,root,root)
1530 /usr/sbin/gnome-console
1531 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1532 %attr(-, root, %{daemon_group}) /etc/bacula/gconsole
1533 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/gnome-console.conf
1534 /usr/share/pixmaps/bacula.png
1535 /usr/share/applications/bacula.desktop
1538 %if %{gconsole} && ! %{rh8}
1539 /usr/sbin/bacula-tray-monitor
1540 %config(noreplace) /etc/bacula/tray-monitor.conf
1541 /usr/share/pixmaps/bacula-tray-monitor.xpm
1542 /usr/share/applications/bacula-tray-monitor.desktop
1545 %if %{gconsole} && ! %{su9} && ! %{su10}
1546 # add the console helper files
1547 %config(noreplace,missingok) /etc/pam.d/gnome-console
1548 %config(noreplace,missingok) /etc/security/console.apps/gnome-console
1549 /usr/bin/gnome-console
1554 # create the daemon group
1555 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1556 if [ -z "$HAVE_BACULA" ]; then
1557 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1558 echo "The group %{daemon_group} has been added to %{group_file}."
1559 echo "See the manual chapter \"Running Bacula\" for details."
1563 # generate passwords if needed
1564 if [ -d /etc/bacula ]; then
1566 for file in *.conf; do
1567 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
1568 need_password=`grep $string $file 2>/dev/null`
1569 if [ -n "$need_password" ]; then
1570 pass=`openssl rand -base64 33`
1571 sed "s-$string-$pass-g" $file > $file.new
1572 cp -f $file.new $file; rm -f $file.new
1581 %defattr(-,root,root)
1583 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1584 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/wxconsole.conf
1585 /usr/share/pixmaps/wxwin16x16.xpm
1586 /usr/share/applications/wxconsole.desktop
1589 %if %{wxconsole} && ! %{su9} && ! %{su10}
1590 # add the console helper files
1591 %config(noreplace,missingok) /etc/pam.d/wxconsole
1592 %config(noreplace,missingok) /etc/security/console.apps/wxconsole
1598 # create the daemon group
1599 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1600 if [ -z "$HAVE_BACULA" ]; then
1601 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1602 echo "The group %{daemon_group} has been added to %{group_file}."
1603 echo "See the manual chapter \"Running Bacula\" for details."
1607 # generate passwords if needed
1608 if [ -d /etc/bacula ]; then
1610 for file in *.conf; do
1611 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
1612 need_password=`grep $string $file 2>/dev/null`
1613 if [ -n "$need_password" ]; then
1614 pass=`openssl rand -base64 33`
1615 sed "s-$string-$pass-g" $file > $file.new
1616 cp -f $file.new $file; rm -f $file.new
1624 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1625 - move pango-devel BuildRequires into gconsole only build
1626 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1627 - add provides and conflicts for standard suse packages
1628 - add third party packager tag support
1629 - add build_client_only tag
1630 - remove bsmtp from client package
1631 - add bacula-ctl-fd to client package
1632 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1633 - fix directory creation when wxconsole and not gconsole
1634 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1635 - add check to buildrequires to make sure libstdc++ version matches gcc
1636 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1637 - add python build support
1638 - fix LDFLAGS declarations
1639 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1640 - add requires for standard compiler toolchain
1641 - move version and release tags up
1643 - add docs_version tag
1644 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1645 - update rescuever to 1.8.6
1646 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1647 - update depkgs to 25Jun06
1648 - add mysql5 build tag
1649 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1650 - 1.38.10 bump rescue version
1651 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1652 - fix usermod statements
1654 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1655 - add -g param back to useradd statements Bug 605
1656 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1657 - redundant code cleanup
1658 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1659 - add wxconsole package
1660 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1662 - dependency update for Mandriva
1663 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1665 - remove -n option from useradd scripts
1666 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1668 - fix problem specifying more than one primary group for user bacula
1669 - add build switch to not build gconsole regardless of platform
1670 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1671 - add centos3 build tag
1672 - fix link error of static-fd on Mandrake with --disable-nls
1673 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1674 - add fc4 dependencies
1675 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1676 - add SuSE 10.0 build
1677 - remove specific permission in attrib macros
1678 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1680 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
1681 - refix compat for _dist on SLES9 which seems to have been removed
1682 - added note regarding Aleksandar's use of specific permissions in attrib macros
1683 - need to review and add specific fc4 build currently using fc3 Requires
1684 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1686 - Reorganize files and pre/post sections to remove repetitions
1687 - Always build separate mtx package
1688 - Fix file ownerships for /etc/bacula and Bacula's working dir
1689 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1690 - Disable GNOME on RH7
1691 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1692 - Red Hat and look alikes have mtx RPM, do not build/package our version
1693 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1694 - minor edit to _dist for SLES9 compatibility
1695 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1697 - kern changed location of pdf files and html manual in docs package
1698 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1700 - add docs (from prebuilt tarball) and rescue packages back in
1701 - remove dvd-freespace and dvd-writepart files, add dvd-handler
1702 - remove 3 of 4 sqlite script patches as not needed
1703 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1705 - remove docs and rescue sections (remove static fd)
1706 - add dvd-freespace and dvd-writepart files
1707 - update depkgs to 22Jun05
1708 - change database update to 8 to 9
1709 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1710 - minor cleanups before 1.38 changes
1711 - add popt and popt-devel build dependencies
1712 - add tetex and tetex-dvips dependencies for doc build
1713 - replace deprecated Copyright tag with License
1714 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1715 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
1716 - conflict with sqlite packages. remove readline dependency.
1717 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1718 - release 1.36.3 update docs
1719 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1720 - add centos4 build tag
1721 - add x86_64 build tag
1722 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1723 - add rhel4 build tag
1724 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
1725 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1726 - add rhel3 build tag
1727 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1728 - fix tray-monitor.conf for noreplace
1729 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1730 - fix distribution check for Fedora and Whitebox
1731 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1732 - add logwatch script
1734 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1735 - add build for Fedora Core 3 (linc now included in ORDit2)
1736 - add mysql4 define for Mandrake 10.1
1737 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1738 - fix {group_file} variable in post scripts
1739 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
1740 - add distribution checking and custom Distribution tag
1741 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1742 - ASSIGNMENT OF COPYRIGHT
1743 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
1744 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
1745 - all right, title and interest in and to the copyright in this software RPM
1746 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
1747 - free of all liens, encumbrances or any known claims against said copyright.
1748 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1750 - thanks to Daniel Widyono
1751 - update description for rescue package to describe cdrom creation
1752 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1753 - update depkgs to 29Oct04
1754 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1755 - add cdrom rescue to bacula-rescue package
1756 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1757 - misc fixes from 1.36.0 suse feedback
1758 - fix situation where sqlite database exists but sqlite has been removed.
1759 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1760 - remove tray-monitor from RH8 build
1761 - fix permissions on tray-monitor files
1762 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1763 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
1764 - change database update to 7 to 8 upgrade,
1765 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
1766 - build in 30Jul04, add freetype dependancy to gnome package.
1767 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1768 - add documentation to console for groupadd
1769 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1770 - add support for running daemons as root.bacula
1771 - correct for change in location of floppy rescue files in 1.35.2
1772 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
1773 - updated depgkgs to 30Jul04
1774 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1775 - really, really fix symlink creation for gconsole
1776 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1777 - fix symlink creation in gconsole post install
1778 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1779 - fixed error in gconsole post script
1780 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1781 - add check for gconsole symlink before trying to create it
1782 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1783 - fix some minor permissions issues on doc files that CVS won't let us fix
1784 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1785 - add pkgconfig to BuildRequires
1786 - clean up gnome1/2 menu entries for appropriate packages
1787 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1788 - tightened up doc distribution
1789 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1790 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
1791 - rpm's horrible bug that prevents nested conditional macros prevents me
1792 - from implementing these 2 separate approaches within the conditionals which
1793 - create the separate server packages.
1794 - the solution adopted is to remove the gnome-console files from the server packages
1795 - so bacula-gconsole is now an add on for both client and server packages.
1796 - this also now allows the server packages to be install on machines without
1797 - an X-server and we can still maintain a single spec file.
1798 - added tests to make sure we have defined platform and database macros.
1799 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1800 - corrected mysql prerequisites for suse
1801 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1802 - replaced all cp commands with cp -p
1803 - removed addition of a+x permissions on gnome-console
1804 - corrected permissions on init scripts
1805 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1806 - corrected creation of sqlite_bindir in install from !mysql to sqlite
1808 - various cleanup patches from Michael K. Johnson:
1809 - corrected post install routines for nicer chkconfig
1810 - removed chmod changes in post routines and moved to install section
1811 - removed interactive nature of post routine for rescue package
1812 - added description of building rescue disks to the description of rescue package
1813 - added clean of build root to beginning of install
1814 - removed specifying attr in all file lists
1815 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1816 - added bconsole to client package
1817 - added gconsole package as add-on to client
1818 - removed spurious dependancies on updatedb package (!cut/paste)
1819 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1820 - added updatedb package
1821 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1822 - added postgresql package
1823 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1824 - corrected the if else logic in the dependancy sections
1825 - changes for 1.34 release
1826 - /etc/bacula/console is now /etc/bacula/bconsole
1827 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
1828 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
1829 - /usr/sbin/smtp is now /usr/sbin/bsmtp
1830 - added new /etc/bacula/drop_mysql_database
1831 - added new /etc/bacula/drop_sqlite_database
1832 - added new /etc/bacula/grant_sqlite_privileges
1833 - added new generic bacula database scripts in /etc/bacula
1834 - added pre-install sections to check for database versions older than 6
1835 - added check for /etc/bacula/console.conf and copy to bconsole.conf
1836 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1837 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
1838 - added testing for existing databases before executing any of the database creation scripts
1839 - added defines working_dir and sqlite_bindir in place of hard coded paths
1840 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1841 - added build configuration for SuSE.
1842 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
1843 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1844 - added patch for create_sqlite_database to fix the installed bindir
1845 - added execute of create_sqlite_database to post of sqlite package
1846 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1847 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
1848 - added bacula-fd as Requires for rescue package
1849 - added build tag for Fedora Core 1
1850 - cleaned up dependancies for all builds
1851 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1852 - removed rh_version from package names
1853 - added platform build configuration section to beginning of file
1854 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1855 - removed make_static_bacula script from rescue package install
1856 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1857 - Added define at top of file for depkgs version
1858 - Added rescue sub-package
1859 - Moved requires statements into proper sub-package locations
1860 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1861 - Corrected Requires for Gnome 1.4/2.0 builds
1862 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1863 - Added separate source declaration for depkgs
1864 - added patch for make_catalog_backup script
1865 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1866 - Misc changes to mysql/sqlite build and rh7/8 menu differences
1867 - Added rh_version to sub-package names
1868 - Added installed but missing file /etc/bacula/gconsole
1869 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
1870 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
1871 - Update spec for version 1.31 and combine client
1872 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>