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 04Jan07
10 %define _rescuever 2.0.0
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 _docsrc ../%{name}-docs-%{docs_version}
55 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
56 %define depkgs ../depkgs
57 %define _mandir /usr/share/man
59 # directory locations for FHS-compatibility
60 %define sysconf_dir /etc/bacula
61 %define script_dir /etc/bacula
62 %define working_dir /var/lib/bacula
63 %define pid_dir /var/run
65 # NOTE these defines are used in some rather complex useradd and groupadd
66 # commands. If you change them examine the post scripts for consequences.
67 %define director_daemon_user bacula
68 %define storage_daemon_user bacula
69 %define file_daemon_user root
70 %define daemon_group bacula
71 # group that has write access to tape devices, usually disk on Linux
72 %define storage_daemon_group disk
73 %define user_file /etc/passwd
74 %define group_file /etc/group
77 %define useradd /usr/sbin/useradd
78 %define groupadd /usr/sbin/groupadd
79 %define usermod /usr/sbin/usermod
81 # platform defines - set one below or define the build_xxx on the command line
84 %{?build_rh7:%define rh7 1}
86 %{?build_rh8:%define rh8 1}
88 %{?build_rh9:%define rh9 1}
91 %{?build_fc1:%define fc1 1}
93 %{?build_fc3:%define fc3 1}
95 %{?build_fc4:%define fc4 1}
97 %{?build_fc5:%define fc5 1}
99 %{?build_fc6:%define fc6 1}
100 # Whitebox Enterprise build
102 %{?build_wb3:%define wb3 1}
103 # RedHat Enterprise builds
105 %{?build_rhel3:%define rhel3 1}
106 %{?build_rhel3:%define wb3 1}
108 %{?build_rhel4:%define rhel4 1}
109 %{?build_rhel4:%define fc3 1}
112 %{?build_centos3:%define centos3 1}
113 %{?build_centos3:%define wb3 1}
115 %{?build_centos4:%define centos4 1}
116 %{?build_centos4:%define fc3 1}
119 %{?build_sl3:%define sl3 1}
120 %{?build_sl3:%define wb3 1}
122 %{?build_sl4:%define sl4 1}
123 %{?build_sl4:%define fc3 1}
126 %{?build_su9:%define su9 1}
128 %{?build_su10:%define su10 1}
130 %{?build_su102:%define su102 1}
133 %{?build_mdk:%define mdk 1}
135 %{?build_mdv:%define mdv 1}
136 %{?build_mdv:%define mdk 1}
139 %define client_only 0
140 %{?build_client_only:%define client_only 1}
142 # test for a platform definition
143 %if ! %{rh7} && ! %{rh8} && ! %{rh9} && ! %{fc1} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6} && ! %{wb3} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk}
144 %{error: You must specify a platform. Please examine the spec file.}
149 # set for database support desired or define the build_xxx on the command line
151 %{?build_mysql:%define mysql 1}
152 # if using mysql 4.x define this and mysql above
153 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
155 %{?build_mysql4:%define mysql4 1}
156 %{?build_mysql4:%define mysql 1}
157 # if using mysql 5.x define this and mysql above
158 # currently: SuSE 10.1 and Fedora Core 5
160 %{?build_mysql5:%define mysql5 1}
161 %{?build_mysql5:%define mysql 1}
163 %{?build_sqlite:%define sqlite 1}
165 %{?build_postgresql:%define postgresql 1}
167 # test for a database definition
168 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
169 %{error: You must specify database support. Please examine the spec file.}
174 %define db_backend mysql
177 %define db_backend sqlite
180 %define db_backend postgresql
185 %{?build_x86_64:%define x86_64 1}
187 # check what distribution we are
188 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4}
189 %define _dist %(grep Red /etc/redhat-release)
191 %if %{fc1} || %{fc4} || %{fc5} || %{fc6}
192 %define _dist %(grep Fedora /etc/redhat-release)
194 %if %{centos4} || %{centos3}
195 %define _dist %(grep CentOS /etc/redhat-release)
198 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
200 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
201 %define _dist %(grep Fedora /etc/redhat-release)
203 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
204 %define _dist %(grep White /etc/whitebox-release)
206 %if %{su9} || %{su10} || %{su102}
207 %define _dist %(grep -i SuSE /etc/SuSE-release)
210 %define _dist %(grep Mand /etc/mandrake-release)
212 Distribution: %{_dist}
214 # Should we build gconsole, possible only if gtk= >= 2.4 available.
215 # leaving all the BuildRequires and Requires in place below for now.
218 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{su9}
221 %if %{mdk} && ! %{mdv}
225 # specifically disallow gconsole if desired
226 %{?nobuild_gconsole:%define gconsole 0}
228 # Should we build wxconsole, only wxWidgets >=2.6 is supported
229 # currently only SuSE 10 and FC4/FC5
231 %{?build_wxconsole:%define wxconsole 1}
233 # should we turn on python support
235 %{?build_python:%define python 1}
237 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
239 %define manpage_ext bz2
241 %define manpage_ext gz
244 # for client only build
255 %{expand: %%define gccver %(rpm -q --queryformat %%{version} gcc)}
256 %{expand: %%define gccrel %(rpm -q --queryformat %%{release} gcc)}
258 BuildRequires: gcc, gcc-c++, make, autoconf
259 BuildRequires: ncurses-devel, perl
260 BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, libxml2-devel, zlib-devel
261 BuildRequires: openssl-devel
263 BuildRequires: python, python-devel
264 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
267 BuildRequires: pkgconfig, pango-devel, atk-devel
270 BuildRequires: libtermcap-devel
271 BuildRequires: glibc-devel >= 2.2
274 BuildRequires: termcap
275 BuildRequires: glibc-devel >= 2.3
277 %if %{su9} && %{gconsole}
278 BuildRequires: libgnome >= 2.0
279 BuildRequires: gtk2-devel >= 2.0
280 BuildRequires: libgnomeui-devel >= 2.0
281 BuildRequires: ORBit2-devel
282 BuildRequires: libart_lgpl-devel >= 2.0
283 BuildRequires: libbonobo-devel >= 2.0
284 BuildRequires: libbonoboui-devel >= 2.0
285 BuildRequires: bonobo-activation-devel
286 BuildRequires: gconf2-devel
287 BuildRequires: linc-devel
288 BuildRequires: freetype2-devel
291 BuildRequires: termcap
292 BuildRequires: glibc-devel >= 2.3
294 %if %{su10} && %{gconsole}
295 BuildRequires: libgnome >= 2.12
296 BuildRequires: gtk2-devel >= 2.8
297 BuildRequires: libgnomeui-devel >= 2.12
298 BuildRequires: ORBit2-devel
299 BuildRequires: libart_lgpl-devel >= 2.3
300 BuildRequires: libbonobo-devel >= 2.10
301 BuildRequires: libbonoboui-devel >= 2.10
302 BuildRequires: bonobo-activation-devel
303 BuildRequires: gconf2-devel
304 BuildRequires: freetype2-devel
305 BuildRequires: cairo-devel
306 BuildRequires: fontconfig-devel >= 2.3
307 BuildRequires: gnome-vfs2-devel >= 2.12
308 BuildRequires: libpng-devel
311 BuildRequires: termcap
312 BuildRequires: glibc-devel >= 2.5
314 %if %{su102} && %{gconsole}
315 BuildRequires: libgnome >= 2.16
316 BuildRequires: gtk2-devel >= 2.10
317 BuildRequires: libgnomeui-devel >= 2.16
318 BuildRequires: ORBit2-devel
319 BuildRequires: libart_lgpl-devel >= 2.3
320 BuildRequires: libbonobo-devel >= 2.16
321 BuildRequires: libbonoboui-devel >= 2.16
322 BuildRequires: bonobo-activation-devel
323 BuildRequires: gconf2-devel
324 BuildRequires: freetype2-devel
325 BuildRequires: cairo-devel
326 BuildRequires: fontconfig-devel >= 2.4
327 BuildRequires: gnome-vfs2-devel >= 2.16
328 BuildRequires: libpng-devel
331 BuildRequires: libtermcap-devel
332 BuildRequires: libstdc++-static-devel
333 BuildRequires: glibc-static-devel
334 BuildRequires: glibc-devel >= 2.3
336 %if %{mdk} && !%{mdv} && %{gconsole}
337 BuildRequires: gtk2-devel >= 2.0
338 BuildRequires: libgnomeui2-devel >= 2.0
339 BuildRequires: libORBit2-devel
340 BuildRequires: libart_lgpl-devel >= 2.0
341 BuildRequires: libbonobo2_0-devel
342 BuildRequires: libbonoboui2_0-devel
343 BuildRequires: libbonobo-activation-devel
344 BuildRequires: libGConf2-devel
345 BuildRequires: freetype2-devel
347 %if %{mdv} && %{gconsole}
348 BuildRequires: gtk2-devel >= 2.8
349 BuildRequires: libgnomeui2-devel >= 2.10
350 BuildRequires: libORBit2-devel
351 BuildRequires: libart_lgpl-devel >= 2.3
352 BuildRequires: libbonobo2_0-devel
353 BuildRequires: libbonoboui2_0-devel
354 BuildRequires: libbonobo-activation-devel
355 BuildRequires: libGConf2-devel
356 BuildRequires: freetype2-devel
359 BuildRequires: libtermcap-devel
360 BuildRequires: glibc-devel >= 2.3
362 %if %{fc3} && %{gconsole}
363 BuildRequires: gtk2-devel >= 2.4
364 BuildRequires: libgnomeui-devel >= 2.8
365 BuildRequires: ORBit2-devel
366 BuildRequires: libart_lgpl-devel >= 2.3
367 BuildRequires: libbonobo-devel >= 2.8
368 BuildRequires: libbonoboui-devel >= 2.8
369 BuildRequires: bonobo-activation-devel
370 BuildRequires: GConf2-devel
371 BuildRequires: freetype-devel
374 BuildRequires: libtermcap-devel
375 BuildRequires: glibc-devel >= 2.3
377 %if %{fc4} && %{gconsole}
378 BuildRequires: gtk2-devel >= 2.6
379 BuildRequires: libgnomeui-devel >= 2.10
380 BuildRequires: ORBit2-devel
381 BuildRequires: libart_lgpl-devel >= 2.3
382 BuildRequires: libbonobo-devel >= 2.8
383 BuildRequires: libbonoboui-devel >= 2.8
384 BuildRequires: bonobo-activation-devel
385 BuildRequires: GConf2-devel
386 BuildRequires: freetype-devel
389 BuildRequires: libtermcap-devel
390 BuildRequires: glibc-devel >= 2.4
392 %if %{fc5} && %{gconsole}
393 BuildRequires: gtk2-devel >= 2.8
394 BuildRequires: libgnomeui-devel >= 2.14
395 BuildRequires: ORBit2-devel
396 BuildRequires: libart_lgpl-devel >= 2.3
397 BuildRequires: libbonobo-devel >= 2.14
398 BuildRequires: libbonoboui-devel >= 2.14
399 BuildRequires: GConf2-devel
400 BuildRequires: freetype-devel
403 BuildRequires: libtermcap-devel
404 BuildRequires: glibc-devel >= 2.5
406 %if %{fc6} && %{gconsole}
407 BuildRequires: gtk2-devel >= 2.10
408 BuildRequires: libgnomeui-devel >= 2.16
409 BuildRequires: ORBit2-devel
410 BuildRequires: libart_lgpl-devel >= 2.3
411 BuildRequires: libbonobo-devel >= 2.16
412 BuildRequires: libbonoboui-devel >= 2.16
413 BuildRequires: GConf2-devel
414 BuildRequires: freetype-devel
416 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6}
417 BuildRequires: libtermcap-devel
418 BuildRequires: glibc-devel >= 2.3
420 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6} && %{gconsole}
421 BuildRequires: gtk2-devel >= 2.0
422 BuildRequires: libgnomeui-devel >= 2.0
423 BuildRequires: ORBit2-devel
424 BuildRequires: libart_lgpl-devel >= 2.0
425 BuildRequires: libbonobo-devel >= 2.0
426 BuildRequires: libbonoboui-devel >= 2.0
427 BuildRequires: bonobo-activation-devel
428 BuildRequires: GConf2-devel
429 BuildRequires: linc-devel
430 BuildRequires: freetype-devel
433 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
434 BuildRequires: mysql-devel >= 3.23
437 %if %{mysql} && %{mysql4}
438 BuildRequires: mysql-devel >= 4.0
441 %if %{mysql} && %{mysql5}
442 BuildRequires: mysql-devel >= 5.0
445 %if %{postgresql} && %{wb3}
446 BuildRequires: rh-postgresql-devel >= 7
449 %if %{postgresql} && ! %{wb3}
450 BuildRequires: postgresql-devel >= 7
454 BuildRequires: wxGTK-devel >= 2.6
478 Summary: Bacula - The Network Backup Solution
479 Group: System Environment/Daemons
480 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
481 Conflicts: bacula-client
482 Obsoletes: bacula-rescue
484 %if %{su9} || %{su10} || %{su102}
488 Requires: ncurses, libstdc++, zlib, openssl, mtx
491 Requires: glibc >= 2.2
494 %if %{su9} || %{su10}
495 Requires: glibc >= 2.3
499 Requires: glibc >= 2.5
502 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{fc5} && ! %{fc6}
503 Requires: glibc >= 2.3
507 Requires: glibc >= 2.4
511 Requires: glibc >= 2.5
515 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
516 Requires: mysql >= 3.23
517 Requires: mysql-server >= 3.23
519 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
520 Requires: mysql >= 4.0
521 Requires: mysql-server >= 4.0
523 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && %{mysql5}
524 Requires: mysql >= 5.0
525 Requires: mysql-server >= 5.0
528 %if %{mysql} && %{su9} && ! %{mysql4}
529 Requires: mysql >= 3.23
530 Requires: mysql-client >= 3.23
532 %if %{mysql} && %{su9} && %{mysql4}
533 Requires: mysql >= 4.0
534 Requires: mysql-client >= 4.0
536 %if %{mysql} && %{su10} && %{mysql4}
537 Requires: mysql >= 4.0
538 Requires: mysql-client >= 4.0
540 %if %{mysql} && %{su10} && %{mysql5}
541 Requires: mysql >= 5.0
542 Requires: mysql-client >= 5.0
544 %if %{mysql} && %{su102} && %{mysql5}
545 Requires: mysql >= 5.0
546 Requires: mysql-client >= 5.0
549 %if %{mysql} && %{mdk} && ! %{mysql4}
550 Requires: mysql >= 3.23
551 Requires: mysql-client >= 3.23
553 %if %{mysql} && %{mdk} && %{mysql4}
554 Requires: mysql >= 4.0
555 Requires: mysql-client >= 4.0
558 %if %{postgresql} && %{wb3}
559 Requires: rh-postgresql >= 7
560 Requires: rh-postgresql-server >= 7
562 %if %{postgresql} && ! %{wb3}
563 Requires: postgresql >= 7
564 Requires: postgresql-server >= 7
574 %description postgresql
578 Requires: python >= %{pyver}
592 This build requires MySQL to be installed separately as the catalog database.
595 This build requires PostgreSQL to be installed separately as the catalog database.
598 This build incorporates sqlite as the catalog database, statically compiled.
601 This build includes python scripting support.
606 Summary: Bacula - The Network Backup Solution
607 Group: System Environment/Daemons
611 This is Bacula's version of mtx tape utilities for Linux distributions that
612 do not provide their own mtx package
616 Summary: Bacula - The Network Backup Solution
617 Group: System Environment/Daemons
619 Conflicts: bacula-mysql
620 Conflicts: bacula-sqlite
621 Conflicts: bacula-postgresql
622 Obsoletes: bacula-rescue
624 %if %{su9} || %{su10} || %{su102}
628 Requires: libstdc++, zlib, openssl
631 Requires: glibc >= 2.2
634 %if %{su9} || %{su10}
635 Requires: glibc >= 2.3
639 Requires: glibc >= 2.5
642 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{fc5} && ! %{fc6}
643 Requires: glibc >= 2.3
647 Requires: glibc >= 2.4
651 Requires: glibc >= 2.5
656 Requires: python >= %{pyver}
670 This is the File daemon (Client) only package. It includes the command line
673 This build includes python scripting support.
679 Summary: Bacula - The Network Backup Solution
680 Group: System Environment/Daemons
682 %description updatedb
693 This package installs scripts for updating older versions of the bacula
699 Summary: Bacula - The Network Backup Solution
700 Group: System Environment/Daemons
701 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
704 %if %{gconsole} && %{su9}
705 Requires: gtk2 >= 2.0
706 Requires: libgnome >= 2.0
707 Requires: libgnomeui >= 2.0
708 Requires: glibc >= 2.3
710 Requires: libart_lgpl >= 2.0
711 Requires: libbonobo >= 2.0
712 Requires: libbonoboui >= 2.0
713 Requires: bonobo-activation
718 %if %{gconsole} && %{su10}
719 Requires: gtk2 >= 2.8
720 Requires: libgnome >= 2.12
721 Requires: libgnomeui >= 2.12
722 Requires: glibc >= 2.3
724 Requires: libart_lgpl >= 2.3
725 Requires: libbonobo >= 2.10
726 Requires: libbonoboui >= 2.10
727 Requires: bonobo-activation
731 Requires: fontconfig >= 2.3
732 Requires: gnome-vfs2 >= 2.12
735 %if %{gconsole} && %{su102}
736 Requires: gtk2 >= 2.10
737 Requires: libgnome >= 2.16
738 Requires: libgnomeui >= 2.16
739 Requires: glibc >= 2.5
741 Requires: libart_lgpl >= 2.3
742 Requires: libbonobo >= 2.16
743 Requires: libbonoboui >= 2.16
744 Requires: bonobo-activation
748 Requires: fontconfig >= 2.4
749 Requires: gnome-vfs2 >= 2.16
752 %if %{gconsole} && %{mdk} && !%{mdv}
753 Requires: gtk2 >= 2.0
754 Requires: libgnomeui2
755 Requires: glibc >= 2.3
757 Requires: libart_lgpl >= 2.0
758 Requires: libbonobo >= 2.0
759 Requires: libbonoboui >= 2.0
763 %if %{gconsole} && %{mdv}
764 Requires: gtk2 >= 2.8
765 Requires: libgnomeui2
766 Requires: glibc >= 2.3
768 Requires: libart_lgpl >= 2.3
769 Requires: libbonobo >= 2.10
770 Requires: libbonoboui >= 2.10
774 %if %{gconsole} && %{fc3}
775 Requires: gtk2 >= 2.4
776 Requires: libgnomeui >= 2.8
777 Requires: glibc >= 2.3
779 Requires: libart_lgpl >= 2.3
780 Requires: libbonobo >= 2.8
781 Requires: libbonoboui >= 2.8
782 Requires: bonobo-activation
786 %if %{gconsole} && %{fc4}
787 Requires: gtk2 >= 2.6
788 Requires: libgnomeui >= 2.10
789 Requires: glibc >= 2.3
791 Requires: libart_lgpl >= 2.3
792 Requires: libbonobo >= 2.8
793 Requires: libbonoboui >= 2.8
794 Requires: bonobo-activation
798 %if %{gconsole} && %{fc5}
799 Requires: gtk2 >= 2.8
800 Requires: libgnomeui >= 2.14
801 Requires: glibc >= 2.4
803 Requires: libart_lgpl >= 2.3
804 Requires: libbonobo >= 2.14
805 Requires: libbonoboui >= 2.14
809 %if %{gconsole} && %{fc6}
810 Requires: gtk2 >= 2.10
811 Requires: libgnomeui >= 2.16
812 Requires: glibc >= 2.5
814 Requires: libart_lgpl >= 2.3
815 Requires: libbonobo >= 2.16
816 Requires: libbonoboui >= 2.16
820 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6}
821 Requires: gtk2 >= 2.0
822 Requires: libgnomeui >= 2.0
823 Requires: glibc >= 2.3
825 Requires: libart_lgpl >= 2.0
826 Requires: libbonobo >= 2.0
827 Requires: libbonoboui >= 2.0
828 Requires: bonobo-activation
833 %if %{gconsole} && %{su9}
836 %if %{gconsole} && %{su10}
839 %if %{gconsole} && %{su102}
842 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102}
847 %description gconsole
858 This is the Gnome Console package. It is an add-on to the client or
864 Summary: Bacula - The Network Backup Solution
865 Group: System Environment/Daemons
866 Requires: wxGTK >= 2.6, libstdc++, openssl
869 %if %{wxconsole} && %{su10}
870 Requires: gtk2 >= 2.8
873 %if %{wxconsole} && %{su102}
874 Requires: gtk2 >= 2.10
877 %if %{wxconsole} && %{fc3}
878 Requires: gtk2 >= 2.4
881 %if %{wxconsole} && %{fc4}
882 Requires: gtk2 >= 2.6
885 %if %{wxconsole} && %{fc5}
886 Requires: gtk2 >= 2.8
889 %if %{wxconsole} && %{fc6}
890 Requires: gtk2 >= 2.10
894 %description wxconsole
905 This is the WXWindows Console package. It is an add-on to the client or
919 %if %{su9} || %{su10} || %{su102}
920 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
933 # patches for the bundled sqlite scripts
935 # patch the make_sqlite_tables script for installation bindir
936 patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
938 # patch the create_sqlite_database script for installation bindir
939 # not necessary after 1.39.26 no longer references sqlite binary
940 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
942 # patch the make_catalog_backup script for installation bindir
943 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
945 # patch the update_sqlite_tables script for installation bindir
946 patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
948 # patch the bacula-dir init script to remove sqlite service
949 %if %{sqlite} && %{su9}
950 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
952 %if %{sqlite} && %{su10}
953 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
955 %if %{sqlite} && %{su102}
956 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
959 # 64 bit lib location hacks
960 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
961 # reported to be fixed to properly detect lib locations.
963 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
965 %if %{mysql} && %{x86_64}
966 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
968 %if %{python} && %{x86_64}
969 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
974 --sbindir=/usr/sbin \
975 --sysconfdir=%{sysconf_dir} \
976 --with-scriptdir=%{script_dir} \
977 --with-working-dir=%{working_dir} \
978 --with-pid-dir=%{pid_dir} \
979 --enable-smartalloc \
980 --enable-client-only \
990 --sbindir=/usr/sbin \
991 --sysconfdir=%{sysconf_dir} \
992 --with-scriptdir=%{script_dir} \
993 --with-working-dir=%{working_dir} \
994 --with-pid-dir=%{pid_dir} \
995 --enable-smartalloc \
999 %if %{gconsole} && ! %{rh8}
1000 --enable-tray-monitor \
1006 --with-sqlite=${cwd}/%{depkgs}/sqlite \
1012 --enable-wx-console \
1018 --enable-client-only \
1020 --mandir=%{_mandir} \
1021 --with-subsys-dir=/var/lock/subsys \
1022 --with-dir-user=%{director_daemon_user} \
1023 --with-dir-group=%{daemon_group} \
1024 --with-sd-user=%{storage_daemon_user} \
1025 --with-sd-group=%{storage_daemon_group} \
1026 --with-fd-user=%{file_daemon_user} \
1027 --with-fd-group=%{daemon_group} \
1028 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1029 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1030 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1031 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1032 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1033 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1041 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1042 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1043 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1044 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1045 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1046 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1047 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1049 %if %{gconsole} || %{wxconsole}
1050 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1051 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1054 %if %{gconsole} || %{wxconsole}
1055 %define usermode_iftrick 1
1057 %define usermode_iftrick 0
1060 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102}
1061 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1062 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1063 mkdir -p $RPM_BUILD_ROOT/usr/bin
1067 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1071 prefix=$RPM_BUILD_ROOT/usr \
1072 sbindir=$RPM_BUILD_ROOT/usr/sbin \
1073 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1074 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1075 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1076 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1077 mandir=$RPM_BUILD_ROOT%{_mandir} \
1080 %if ! %{client_only}
1083 prefix=$RPM_BUILD_ROOT/usr \
1084 sbindir=$RPM_BUILD_ROOT/usr/sbin \
1085 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1086 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1087 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1088 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1089 mandir=$RPM_BUILD_ROOT%{_mandir} \
1094 # make install in manpages installs _everything_ shotgun style
1095 # so now delete what we will not be packaging
1097 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-wxconsole.1.gz
1100 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-console-gnome.1.gz
1101 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.gz
1104 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.gz
1105 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.gz
1106 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.gz
1107 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.gz
1108 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.gz
1109 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.gz
1110 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.gz
1111 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.gz
1112 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.gz
1115 # fixme - make installs the mysql scripts for sqlite build
1117 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1118 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1119 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1122 # fixme - make installs the mysql scripts for postgresql build
1124 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1125 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1128 # fixme - make installs gconsole script for build without gconsole
1130 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1133 rm -f $RPM_BUILD_ROOT/usr/sbin/static-bacula-fd
1135 # install the init scripts
1136 %if %{su9} || %{su10} || %{su102}
1137 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1138 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1139 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1142 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1143 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1144 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1146 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk}
1147 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1148 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1149 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1151 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1153 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1154 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1157 # install the menu stuff
1158 %if %{gconsole} && %{su9}
1159 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1160 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1161 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1162 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1164 %if %{gconsole} && %{su10}
1165 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1166 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1167 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1168 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1170 %if %{gconsole} && %{su102}
1171 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1172 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1173 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1174 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1176 %if %{wxconsole} && %{su10}
1177 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1178 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1180 %if %{wxconsole} && %{su102}
1181 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1182 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1184 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{mdk}
1189 %if %{gconsole} && %{iftrick}
1190 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1191 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1192 cp -p scripts/gnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/gnome-console
1193 cp -p scripts/gnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/gnome-console
1194 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/gnome-console
1196 %if %{gconsole} && ! %{rh8}
1197 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1198 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1200 %if %{wxconsole} && %{iftrick}
1201 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1202 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1203 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/wxconsole
1204 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/wxconsole
1205 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/wxconsole
1210 cp -p %{depkgs}/sqlite/sqlite $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite
1211 cp -p %{depkgs}/sqlite/sqlite.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite.h
1212 cp -p %{depkgs}/sqlite/libsqlite.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite.a
1215 # install the logrotate file
1216 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1218 # install the updatedb scripts
1219 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
1221 # install the logwatch scripts
1222 %if ! %{client_only}
1223 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1224 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1225 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1226 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1227 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1228 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1231 # install the rescue files
1232 mkdir $RPM_BUILD_ROOT%{sysconf_dir}/rescue
1233 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT%{sysconf_dir}/rescue/
1234 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT%{sysconf_dir}/rescue/
1235 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT%{sysconf_dir}/rescue/
1236 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT%{sysconf_dir}/rescue/
1237 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT%{sysconf_dir}/rescue/
1238 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT%{sysconf_dir}/rescue/
1239 touch $RPM_BUILD_ROOT%{sysconf_dir}/rescue/linux/cdrom/rpm_release
1240 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{sysconf_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
1241 rm -f src/filed/static-bacula-fd
1244 mv $RPM_BUILD_ROOT/usr/sbin/wx-console $RPM_BUILD_ROOT/usr/sbin/wxconsole
1245 mv $RPM_BUILD_ROOT%{sysconf_dir}/wx-console.conf $RPM_BUILD_ROOT%{sysconf_dir}/wxconsole.conf
1248 # now clean up permissions that are left broken by the install
1249 %if ! %{client_only}
1250 chmod o-r $RPM_BUILD_ROOT%{script_dir}/query.sql
1252 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
1253 %if %{gconsole} && ! %{rh8}
1254 chmod 755 $RPM_BUILD_ROOT/usr/sbin/bacula-tray-monitor
1255 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
1258 # fix me - building enable-client-only installs files not included in bacula-client package
1260 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
1261 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
1262 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
1263 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
1264 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
1265 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
1266 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1267 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1268 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
1272 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1273 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
1274 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
1275 rm -rf $RPM_BUILD_DIR/depkgs
1276 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
1279 # MySQL specific files
1281 %defattr(-, root, root)
1282 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
1283 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
1284 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
1285 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
1286 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
1287 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
1288 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
1289 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
1294 %defattr(-,root,root)
1295 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite_database
1296 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite_database
1297 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite_privileges
1298 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite_tables
1299 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite_tables
1300 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite_tables
1301 %{sqlite_bindir}/libsqlite.a
1302 %{sqlite_bindir}/sqlite.h
1303 %{sqlite_bindir}/sqlite
1308 %defattr(-,root,root)
1309 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
1310 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
1311 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
1312 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
1313 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
1314 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
1317 # The rest is DB backend independent
1318 %if ! %{client_only}
1319 %attr(-, root, %{daemon_group}) %dir %{script_dir}
1320 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
1321 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
1322 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
1323 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
1324 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
1325 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
1326 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
1327 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
1328 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
1329 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
1330 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
1331 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
1332 %attr(-, root, %{daemon_group}) %{sysconf_dir}/rescue
1333 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
1334 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
1335 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
1336 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
1337 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
1338 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
1339 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
1340 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
1341 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
1343 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1344 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1346 /etc/logrotate.d/bacula
1347 /etc/log.d/scripts/services/bacula
1348 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
1349 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
1350 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
1351 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
1352 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
1353 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
1354 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
1356 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
1358 /usr/sbin/bacula-dir
1366 /usr/sbin/btraceback
1372 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
1373 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1374 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1375 %{_mandir}/man8/bacula.8.%{manpage_ext}
1376 %{_mandir}/man8/bconsole.8.%{manpage_ext}
1377 %{_mandir}/man8/bcopy.8.%{manpage_ext}
1378 %{_mandir}/man8/bextract.8.%{manpage_ext}
1379 %{_mandir}/man8/bls.8.%{manpage_ext}
1380 %{_mandir}/man8/bscan.8.%{manpage_ext}
1381 %{_mandir}/man8/btape.8.%{manpage_ext}
1382 %{_mandir}/man8/btraceback.8.%{manpage_ext}
1383 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
1384 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
1389 # test for bacula database older than version 9
1390 # note: this ASSUMES no password has been set for bacula database
1391 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1396 # test for bacula database older than version 9
1397 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
1398 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1403 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1406 %if ! %{client_only}
1407 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "9" ]; then
1408 echo "This bacula upgrade will update a bacula database from version 9 to 10."
1409 echo "You appear to be running database version $DB_VER. You must first update"
1410 echo "your database to version 9 and then install this upgrade. The alternative"
1411 echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
1412 echo "catalog information, then do the upgrade. Information on updating a"
1413 echo "database older than version 9 can be found in the release notes."
1422 %if ! %{client_only}
1423 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
1424 if [ -s %{sysconf_dir}/console.conf ];then
1425 cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
1428 # create the daemon users and groups
1429 # first create the groups if they don't exist
1430 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1431 if [ -z "$HAVE_BACULA" ]; then
1432 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1433 echo "The group %{daemon_group} has been added to %{group_file}."
1434 echo "See the manual chapter \"Running Bacula\" for details."
1436 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
1437 if [ -z "$HAVE_BACULA" ]; then
1438 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
1439 echo "The group %{storage_daemon_group} has been added to %{group_file}."
1440 echo "See the manual chapter \"Running Bacula\" for details."
1442 # now create the users if they do not exist
1443 # we do not use the -g option allowing the primary group to be set to system default
1444 # this will be a unique group on redhat type systems or the group users on some systems
1445 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
1446 if [ -z "$HAVE_BACULA" ]; then
1447 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
1448 echo "The user %{storage_daemon_user} has been added to %{user_file}."
1449 echo "See the manual chapter \"Running Bacula\" for details."
1451 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
1452 if [ -z "$HAVE_BACULA" ]; then
1453 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
1454 echo "The user %{director_daemon_user} has been added to %{user_file}."
1455 echo "See the manual chapter \"Running Bacula\" for details."
1457 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1458 if [ -z "$HAVE_BACULA" ]; then
1459 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1460 echo "The user %{file_daemon_user} has been added to %{user_file}."
1461 echo "See the manual chapter \"Running Bacula\" for details."
1463 # now we add the supplementary groups, this is ok to call even if the users already exist
1464 # we only do this if the user is NOT root
1465 IS_ROOT=%{director_daemon_user}
1466 if [ "$IS_ROOT" != "root" ]; then
1467 %{usermod} -G %{daemon_group} %{director_daemon_user}
1469 IS_ROOT=%{storage_daemon_user}
1470 if [ "$IS_ROOT" != "root" ]; then
1471 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
1473 IS_ROOT=%{file_daemon_user}
1474 if [ "$IS_ROOT" != "root" ]; then
1475 %{usermod} -G %{daemon_group} %{file_daemon_user}
1489 %if ! %{client_only}
1491 if [ "$1" -ge 1 ] ; then
1492 /sbin/chkconfig --add bacula-dir
1493 /sbin/chkconfig --add bacula-fd
1494 /sbin/chkconfig --add bacula-sd
1499 # test for an existing database
1500 # note: this ASSUMES no password has been set for bacula database
1501 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1503 # grant privileges and create tables if they do not exist
1504 if [ -z "$DB_VER" ]; then
1505 echo "Hmm, doesn't look like you have an existing database."
1506 echo "Granting privileges for MySQL user bacula..."
1507 %{script_dir}/grant_mysql_privileges
1508 echo "Creating MySQL bacula database..."
1509 %{script_dir}/create_mysql_database
1510 echo "Creating bacula tables..."
1511 %{script_dir}/make_mysql_tables
1513 # check to see if we need to upgrade a 1.38 or lower database
1514 elif [ "$DB_VER" -lt "10" ]; then
1515 echo "This release requires an upgrade to your bacula database."
1516 echo "Backing up your current database..."
1517 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1518 echo "Upgrading bacula database ..."
1519 %{script_dir}/update_mysql_tables
1520 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1526 # test for an existing database
1527 if [ -s %{working_dir}/bacula.db ]; then
1528 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1529 # check to see if we need to upgrade a 1.38 or lower database
1530 if [ "$DB_VER" -lt "10" ] && [ "$DB_VER" -ge "9" ]; then
1531 echo "This release requires an upgrade to your bacula database."
1532 echo "Backing up your current database..."
1533 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1534 echo "Upgrading bacula database ..."
1535 %{script_dir}/update_sqlite_tables
1536 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1539 # create the database and tables
1540 echo "Hmm, doesn't look like you have an existing database."
1541 echo "Creating SQLite database..."
1542 %{script_dir}/create_sqlite_database
1543 echo "Creating the SQLite tables..."
1544 %{script_dir}/make_sqlite_tables
1549 # test for an existing database
1550 # note: this ASSUMES no password has been set for bacula database
1551 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1553 # grant privileges and create tables if they do not exist
1554 if [ -z "$DB_VER" ]; then
1555 echo "Hmm, doesn't look like you have an existing database."
1556 echo "Creating PostgreSQL bacula database..."
1557 %{script_dir}/create_postgresql_database
1558 echo "Creating bacula tables..."
1559 %{script_dir}/make_postgresql_tables
1560 echo "Granting privileges for PostgreSQL user bacula..."
1561 %{script_dir}/grant_postgresql_privileges
1563 # check to see if we need to upgrade a 1.38 or lower database
1564 elif [ "$DB_VER" -lt "10" ]; then
1565 echo "This release requires an upgrade to your bacula database."
1566 echo "Backing up your current database..."
1567 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1568 echo "Upgrading bacula database ..."
1569 %{script_dir}/update_postgresql_tables
1570 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1575 %if ! %{client_only}
1576 # generate passwords if needed
1577 if [ -d %{sysconf_dir} ]; then
1579 for file in *.conf; do
1580 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
1581 need_password=`grep $string $file 2>/dev/null`
1582 if [ -n "$need_password" ]; then
1583 pass=`openssl rand -base64 33`
1584 sed "s-$string-$pass-g" $file > $file.new
1585 cp -f $file.new $file; rm -f $file.new
1602 %if ! %{client_only}
1605 /sbin/chkconfig --del bacula-dir
1606 /sbin/chkconfig --del bacula-fd
1607 /sbin/chkconfig --del bacula-sd
1612 %if ! %{client_only}
1614 %defattr(-,root,root)
1615 %attr(-, root, %{storage_daemon_group}) /usr/sbin/loaderinfo
1616 %attr(-, root, %{storage_daemon_group}) /usr/sbin/mtx
1617 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsitape
1618 %attr(-, root, %{storage_daemon_group}) /usr/sbin/tapeinfo
1619 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
1620 %{_mandir}/man1/mtx.1.%{manpage_ext}
1621 %{_mandir}/man1/scsitape.1.%{manpage_ext}
1622 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
1626 %defattr(-,root,root)
1627 %attr(-, root, %{daemon_group}) %dir %{script_dir}
1628 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
1629 %{script_dir}/bacula-ctl-fd
1630 /etc/init.d/bacula-fd
1631 %attr(-, root, %{daemon_group}) %{sysconf_dir}/rescue
1633 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1634 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1636 /etc/logrotate.d/bacula
1638 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
1639 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
1641 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1644 /usr/sbin/btraceback
1645 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
1646 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
1648 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
1649 %{_mandir}/man8/bacula.8.%{manpage_ext}
1650 %{_mandir}/man8/bconsole.8.%{manpage_ext}
1651 %{_mandir}/man8/btraceback.8.%{manpage_ext}
1655 # create the daemon group and user
1656 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1657 if [ -z "$HAVE_BACULA" ]; then
1658 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1659 echo "The group %{daemon_group} has been added to %{group_file}."
1660 echo "See the manual chapter \"Running Bacula\" for details."
1662 # we do not use the -g option allowing the primary group to be set to system default
1663 # this will be a unique group on redhat type systems or the group users on some systems
1664 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1665 if [ -z "$HAVE_BACULA" ]; then
1666 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1667 echo "The user %{file_daemon_user} has been added to %{user_file}."
1668 echo "See the manual chapter \"Running Bacula\" for details."
1670 # now we add the supplementary group, this is ok to call even if the user already exists
1671 # we only do this if the user is NOT root
1672 IS_ROOT=%{file_daemon_user}
1673 if [ "$IS_ROOT" != "root" ]; then
1674 %{usermod} -G %{daemon_group} %{file_daemon_user}
1679 if [ "$1" -ge 1 ] ; then
1680 /sbin/chkconfig --add bacula-fd
1683 # generate passwords if needed
1684 if [ -d %{sysconf_dir} ]; then
1686 for file in *.conf; do
1687 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
1688 need_password=`grep $string $file 2>/dev/null`
1689 if [ -n "$need_password" ]; then
1690 pass=`openssl rand -base64 33`
1691 sed "s-$string-$pass-g" $file > $file.new
1692 cp -f $file.new $file; rm -f $file.new
1701 /sbin/chkconfig --del bacula-fd
1704 %if ! %{client_only}
1706 %defattr(-,root,%{daemon_group})
1707 %{script_dir}/updatedb/*
1710 # create the daemon group
1711 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1712 if [ -z "$HAVE_BACULA" ]; then
1713 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1714 echo "The group %{daemon_group} has been added to %{group_file}."
1715 echo "See the manual chapter \"Running Bacula\" for details."
1719 echo "The database update scripts were installed to %{script_dir}/updatedb"
1724 %defattr(-,root,root)
1725 /usr/sbin/gnome-console
1726 %attr(-, root, %{daemon_group}) %dir %{script_dir}
1727 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
1728 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/gnome-console.conf
1729 /usr/share/pixmaps/bacula.png
1730 /usr/share/applications/bacula.desktop
1731 %{_mandir}/man1/bacula-console-gnome.1.%{manpage_ext}
1734 %if %{gconsole} && ! %{rh8}
1735 /usr/sbin/bacula-tray-monitor
1736 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
1737 /usr/share/pixmaps/bacula-tray-monitor.xpm
1738 /usr/share/applications/bacula-tray-monitor.desktop
1739 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1742 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102}
1743 # add the console helper files
1744 %config(noreplace,missingok) /etc/pam.d/gnome-console
1745 %config(noreplace,missingok) /etc/security/console.apps/gnome-console
1746 /usr/bin/gnome-console
1751 # create the daemon group
1752 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1753 if [ -z "$HAVE_BACULA" ]; then
1754 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1755 echo "The group %{daemon_group} has been added to %{group_file}."
1756 echo "See the manual chapter \"Running Bacula\" for details."
1760 # generate passwords if needed
1761 if [ -d %{sysconf_dir} ]; then
1763 for file in *.conf; do
1764 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
1765 need_password=`grep $string $file 2>/dev/null`
1766 if [ -n "$need_password" ]; then
1767 pass=`openssl rand -base64 33`
1768 sed "s-$string-$pass-g" $file > $file.new
1769 cp -f $file.new $file; rm -f $file.new
1778 %defattr(-,root,root)
1780 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
1781 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/wxconsole.conf
1782 /usr/share/pixmaps/wxwin16x16.xpm
1783 /usr/share/applications/wxconsole.desktop
1784 %{_mandir}/man1/bacula-wxconsole.1.%{manpage_ext}
1787 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102}
1788 # add the console helper files
1789 %config(noreplace,missingok) /etc/pam.d/wxconsole
1790 %config(noreplace,missingok) /etc/security/console.apps/wxconsole
1796 # create the daemon group
1797 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1798 if [ -z "$HAVE_BACULA" ]; then
1799 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1800 echo "The group %{daemon_group} has been added to %{group_file}."
1801 echo "See the manual chapter \"Running Bacula\" for details."
1805 # generate passwords if needed
1806 if [ -d %{sysconf_dir} ]; then
1808 for file in *.conf; do
1809 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
1810 need_password=`grep $string $file 2>/dev/null`
1811 if [ -n "$need_password" ]; then
1812 pass=`openssl rand -base64 33`
1813 sed "s-$string-$pass-g" $file > $file.new
1814 cp -f $file.new $file; rm -f $file.new
1822 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1823 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
1824 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
1825 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
1826 - adjust directory locations for FHS-compatibility
1827 sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
1828 working_dir (/var/lib/bacula) and pid_dir (/var/run)
1829 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1830 - add SuSE 10.2 target
1831 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1833 - set query.sql as config file
1835 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1837 - change determination of gcc version per patch from Marc Hennes
1838 - move BuildRequire for atk-devel to gnome only builds
1840 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1842 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1843 - 1.39.26 remove create_sqlite_database.in.patch
1844 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1845 - change ownership of working_dir on server packages to bacula.bacula so that
1846 - bacula-sd can create bootstrap files
1847 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1848 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
1849 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1850 - fix manpages file extension for mdk
1851 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1852 - bug 648 re-enable and update sqlite patches
1856 - lock out gconsole build for gtk+ < 2.4
1857 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1858 - move pango-devel BuildRequires into gconsole only build
1859 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1860 - add provides and conflicts for standard suse packages
1861 - add third party packager tag support
1862 - add build_client_only tag
1863 - remove bsmtp from client package
1864 - add bacula-ctl-fd to client package
1865 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1866 - fix directory creation when wxconsole and not gconsole
1867 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1868 - add check to buildrequires to make sure libstdc++ version matches gcc
1869 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1870 - add python build support
1871 - fix LDFLAGS declarations
1872 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1873 - add requires for standard compiler toolchain
1874 - move version and release tags up
1876 - add docs_version tag
1877 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1878 - update rescuever to 1.8.6
1879 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1880 - update depkgs to 25Jun06
1881 - add mysql5 build tag
1882 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1883 - 1.38.10 bump rescue version
1884 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1885 - fix usermod statements
1887 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1888 - add -g param back to useradd statements Bug 605
1889 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1890 - redundant code cleanup
1891 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1892 - add wxconsole package
1893 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1895 - dependency update for Mandriva
1896 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1898 - remove -n option from useradd scripts
1899 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1901 - fix problem specifying more than one primary group for user bacula
1902 - add build switch to not build gconsole regardless of platform
1903 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1904 - add centos3 build tag
1905 - fix link error of static-fd on Mandrake with --disable-nls
1906 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1907 - add fc4 dependencies
1908 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1909 - add SuSE 10.0 build
1910 - remove specific permission in attrib macros
1911 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1913 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
1914 - refix compat for _dist on SLES9 which seems to have been removed
1915 - added note regarding Aleksandar's use of specific permissions in attrib macros
1916 - need to review and add specific fc4 build currently using fc3 Requires
1917 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1919 - Reorganize files and pre/post sections to remove repetitions
1920 - Always build separate mtx package
1921 - Fix file ownerships for /etc/bacula and Bacula's working dir
1922 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1923 - Disable GNOME on RH7
1924 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1925 - Red Hat and look alikes have mtx RPM, do not build/package our version
1926 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1927 - minor edit to _dist for SLES9 compatibility
1928 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1930 - kern changed location of pdf files and html manual in docs package
1931 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1933 - add docs (from prebuilt tarball) and rescue packages back in
1934 - remove dvd-freespace and dvd-writepart files, add dvd-handler
1935 - remove 3 of 4 sqlite script patches as not needed
1936 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1938 - remove docs and rescue sections (remove static fd)
1939 - add dvd-freespace and dvd-writepart files
1940 - update depkgs to 22Jun05
1941 - change database update to 8 to 9
1942 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1943 - minor cleanups before 1.38 changes
1944 - add popt and popt-devel build dependencies
1945 - add tetex and tetex-dvips dependencies for doc build
1946 - replace deprecated Copyright tag with License
1947 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1948 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
1949 - conflict with sqlite packages. remove readline dependency.
1950 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1951 - release 1.36.3 update docs
1952 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1953 - add centos4 build tag
1954 - add x86_64 build tag
1955 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1956 - add rhel4 build tag
1957 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
1958 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1959 - add rhel3 build tag
1960 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1961 - fix tray-monitor.conf for noreplace
1962 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1963 - fix distribution check for Fedora and Whitebox
1964 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1965 - add logwatch script
1967 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1968 - add build for Fedora Core 3 (linc now included in ORDit2)
1969 - add mysql4 define for Mandrake 10.1
1970 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1971 - fix {group_file} variable in post scripts
1972 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
1973 - add distribution checking and custom Distribution tag
1974 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1975 - ASSIGNMENT OF COPYRIGHT
1976 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
1977 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
1978 - all right, title and interest in and to the copyright in this software RPM
1979 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
1980 - free of all liens, encumbrances or any known claims against said copyright.
1981 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1983 - thanks to Daniel Widyono
1984 - update description for rescue package to describe cdrom creation
1985 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1986 - update depkgs to 29Oct04
1987 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1988 - add cdrom rescue to bacula-rescue package
1989 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1990 - misc fixes from 1.36.0 suse feedback
1991 - fix situation where sqlite database exists but sqlite has been removed.
1992 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1993 - remove tray-monitor from RH8 build
1994 - fix permissions on tray-monitor files
1995 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1996 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
1997 - change database update to 7 to 8 upgrade,
1998 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
1999 - build in 30Jul04, add freetype dependancy to gnome package.
2000 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2001 - add documentation to console for groupadd
2002 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2003 - add support for running daemons as root.bacula
2004 - correct for change in location of floppy rescue files in 1.35.2
2005 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
2006 - updated depgkgs to 30Jul04
2007 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2008 - really, really fix symlink creation for gconsole
2009 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2010 - fix symlink creation in gconsole post install
2011 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2012 - fixed error in gconsole post script
2013 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2014 - add check for gconsole symlink before trying to create it
2015 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2016 - fix some minor permissions issues on doc files that CVS won't let us fix
2017 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2018 - add pkgconfig to BuildRequires
2019 - clean up gnome1/2 menu entries for appropriate packages
2020 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2021 - tightened up doc distribution
2022 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2023 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
2024 - rpm's horrible bug that prevents nested conditional macros prevents me
2025 - from implementing these 2 separate approaches within the conditionals which
2026 - create the separate server packages.
2027 - the solution adopted is to remove the gnome-console files from the server packages
2028 - so bacula-gconsole is now an add on for both client and server packages.
2029 - this also now allows the server packages to be install on machines without
2030 - an X-server and we can still maintain a single spec file.
2031 - added tests to make sure we have defined platform and database macros.
2032 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2033 - corrected mysql prerequisites for suse
2034 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2035 - replaced all cp commands with cp -p
2036 - removed addition of a+x permissions on gnome-console
2037 - corrected permissions on init scripts
2038 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2039 - corrected creation of sqlite_bindir in install from !mysql to sqlite
2041 - various cleanup patches from Michael K. Johnson:
2042 - corrected post install routines for nicer chkconfig
2043 - removed chmod changes in post routines and moved to install section
2044 - removed interactive nature of post routine for rescue package
2045 - added description of building rescue disks to the description of rescue package
2046 - added clean of build root to beginning of install
2047 - removed specifying attr in all file lists
2048 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2049 - added bconsole to client package
2050 - added gconsole package as add-on to client
2051 - removed spurious dependancies on updatedb package (!cut/paste)
2052 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2053 - added updatedb package
2054 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2055 - added postgresql package
2056 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2057 - corrected the if else logic in the dependancy sections
2058 - changes for 1.34 release
2059 - /etc/bacula/console is now /etc/bacula/bconsole
2060 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
2061 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
2062 - /usr/sbin/smtp is now /usr/sbin/bsmtp
2063 - added new /etc/bacula/drop_mysql_database
2064 - added new /etc/bacula/drop_sqlite_database
2065 - added new /etc/bacula/grant_sqlite_privileges
2066 - added new generic bacula database scripts in /etc/bacula
2067 - added pre-install sections to check for database versions older than 6
2068 - added check for /etc/bacula/console.conf and copy to bconsole.conf
2069 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2070 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
2071 - added testing for existing databases before executing any of the database creation scripts
2072 - added defines working_dir and sqlite_bindir in place of hard coded paths
2073 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2074 - added build configuration for SuSE.
2075 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
2076 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2077 - added patch for create_sqlite_database to fix the installed bindir
2078 - added execute of create_sqlite_database to post of sqlite package
2079 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2080 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
2081 - added bacula-fd as Requires for rescue package
2082 - added build tag for Fedora Core 1
2083 - cleaned up dependancies for all builds
2084 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2085 - removed rh_version from package names
2086 - added platform build configuration section to beginning of file
2087 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2088 - removed make_static_bacula script from rescue package install
2089 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2090 - Added define at top of file for depkgs version
2091 - Added rescue sub-package
2092 - Moved requires statements into proper sub-package locations
2093 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2094 - Corrected Requires for Gnome 1.4/2.0 builds
2095 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2096 - Added separate source declaration for depkgs
2097 - added patch for make_catalog_backup script
2098 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2099 - Misc changes to mysql/sqlite build and rh7/8 menu differences
2100 - Added rh_version to sub-package names
2101 - Added installed but missing file /etc/bacula/gconsole
2102 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
2103 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
2104 - Update spec for version 1.31 and combine client
2105 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>