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 working_dir /var/bacula
55 %define _docsrc ../%{name}-docs-%{docs_version}
56 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
57 %define depkgs ../depkgs
58 %define _mandir /usr/share/man
60 # NOTE these defines are used in some rather complex useradd and groupadd
61 # commands. If you change them examine the post scripts for consequences.
62 %define director_daemon_user bacula
63 %define storage_daemon_user bacula
64 %define file_daemon_user root
65 %define daemon_group bacula
66 # group that has write access to tape devices, usually disk on Linux
67 %define storage_daemon_group disk
68 %define user_file /etc/passwd
69 %define group_file /etc/group
72 %define useradd /usr/sbin/useradd
73 %define groupadd /usr/sbin/groupadd
74 %define usermod /usr/sbin/usermod
76 # platform defines - set one below or define the build_xxx on the command line
79 %{?build_rh7:%define rh7 1}
81 %{?build_rh8:%define rh8 1}
83 %{?build_rh9:%define rh9 1}
86 %{?build_fc1:%define fc1 1}
88 %{?build_fc3:%define fc3 1}
90 %{?build_fc4:%define fc4 1}
92 %{?build_fc5:%define fc5 1}
94 %{?build_fc6:%define fc6 1}
95 # Whitebox Enterprise build
97 %{?build_wb3:%define wb3 1}
98 # RedHat Enterprise builds
100 %{?build_rhel3:%define rhel3 1}
101 %{?build_rhel3:%define wb3 1}
103 %{?build_rhel4:%define rhel4 1}
104 %{?build_rhel4:%define fc3 1}
107 %{?build_centos3:%define centos3 1}
108 %{?build_centos3:%define wb3 1}
110 %{?build_centos4:%define centos4 1}
111 %{?build_centos4:%define fc3 1}
114 %{?build_su9:%define su9 1}
116 %{?build_su10:%define su10 1}
118 %{?build_su102:%define su102 1}
121 %{?build_mdk:%define mdk 1}
123 %{?build_mdv:%define mdv 1}
124 %{?build_mdv:%define mdk 1}
127 %define client_only 0
128 %{?build_client_only:%define client_only 1}
130 # test for a platform definition
131 %if ! %{rh7} && ! %{rh8} && ! %{rh9} && ! %{fc1} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6} && ! %{wb3} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk}
132 %{error: You must specify a platform. Please examine the spec file.}
137 # set for database support desired or define the build_xxx on the command line
139 %{?build_mysql:%define mysql 1}
140 # if using mysql 4.x define this and mysql above
141 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
143 %{?build_mysql4:%define mysql4 1}
144 %{?build_mysql4:%define mysql 1}
145 # if using mysql 5.x define this and mysql above
146 # currently: SuSE 10.1 and Fedora Core 5
148 %{?build_mysql5:%define mysql5 1}
149 %{?build_mysql5:%define mysql 1}
151 %{?build_sqlite:%define sqlite 1}
153 %{?build_postgresql:%define postgresql 1}
155 # test for a database definition
156 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
157 %{error: You must specify database support. Please examine the spec file.}
162 %define db_backend mysql
165 %define db_backend sqlite
168 %define db_backend postgresql
173 %{?build_x86_64:%define x86_64 1}
175 # check what distribution we are
176 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4}
177 %define _dist %(grep Red /etc/redhat-release)
179 %if %{fc1} || %{fc4} || %{fc5} || %{fc6}
180 %define _dist %(grep Fedora /etc/redhat-release)
182 %if %{centos4} || %{centos3}
183 %define _dist %(grep CentOS /etc/redhat-release)
185 %if %{fc3} && ! %{rhel4} && ! %{centos4}
186 %define _dist %(grep Fedora /etc/redhat-release)
188 %if %{wb3} && ! %{rhel3} && ! %{centos3}
189 %define _dist %(grep White /etc/whitebox-release)
191 %if %{su9} || %{su10} || %{su102}
192 %define _dist %(grep -i SuSE /etc/SuSE-release)
195 %define _dist %(grep Mand /etc/mandrake-release)
197 Distribution: %{_dist}
199 # Should we build gconsole, possible only if gtk= >= 2.4 available.
200 # leaving all the BuildRequires and Requires in place below for now.
203 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{su9}
206 %if %{mdk} && ! %{mdv}
210 # specifically disallow gconsole if desired
211 %{?nobuild_gconsole:%define gconsole 0}
213 # Should we build wxconsole, only wxWidgets >=2.6 is supported
214 # currently only SuSE 10 and FC4/FC5
216 %{?build_wxconsole:%define wxconsole 1}
218 # should we turn on python support
220 %{?build_python:%define python 1}
222 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
224 %define manpage_ext bz2
226 %define manpage_ext gz
229 # for client only build
240 %{expand: %%define gccver %(rpm -q --queryformat %%{version} gcc)}
241 %{expand: %%define gccrel %(rpm -q --queryformat %%{release} gcc)}
243 BuildRequires: gcc, gcc-c++, make, autoconf
244 BuildRequires: ncurses-devel, perl
245 BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, libxml2-devel, zlib-devel
246 BuildRequires: openssl-devel
248 BuildRequires: python, python-devel
249 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
252 BuildRequires: pkgconfig, pango-devel, atk-devel
255 BuildRequires: libtermcap-devel
256 BuildRequires: glibc-devel >= 2.2
259 BuildRequires: termcap
260 BuildRequires: glibc-devel >= 2.3
262 %if %{su9} && %{gconsole}
263 BuildRequires: libgnome >= 2.0
264 BuildRequires: gtk2-devel >= 2.0
265 BuildRequires: libgnomeui-devel >= 2.0
266 BuildRequires: ORBit2-devel
267 BuildRequires: libart_lgpl-devel >= 2.0
268 BuildRequires: libbonobo-devel >= 2.0
269 BuildRequires: libbonoboui-devel >= 2.0
270 BuildRequires: bonobo-activation-devel
271 BuildRequires: gconf2-devel
272 BuildRequires: linc-devel
273 BuildRequires: freetype2-devel
276 BuildRequires: termcap
277 BuildRequires: glibc-devel >= 2.3
279 %if %{su10} && %{gconsole}
280 BuildRequires: libgnome >= 2.12
281 BuildRequires: gtk2-devel >= 2.8
282 BuildRequires: libgnomeui-devel >= 2.12
283 BuildRequires: ORBit2-devel
284 BuildRequires: libart_lgpl-devel >= 2.3
285 BuildRequires: libbonobo-devel >= 2.10
286 BuildRequires: libbonoboui-devel >= 2.10
287 BuildRequires: bonobo-activation-devel
288 BuildRequires: gconf2-devel
289 BuildRequires: freetype2-devel
290 BuildRequires: cairo-devel
291 BuildRequires: fontconfig-devel >= 2.3
292 BuildRequires: gnome-vfs2-devel >= 2.12
293 BuildRequires: libpng-devel
296 BuildRequires: termcap
297 BuildRequires: glibc-devel >= 2.5
299 %if %{su102} && %{gconsole}
300 BuildRequires: libgnome >= 2.16
301 BuildRequires: gtk2-devel >= 2.10
302 BuildRequires: libgnomeui-devel >= 2.16
303 BuildRequires: ORBit2-devel
304 BuildRequires: libart_lgpl-devel >= 2.3
305 BuildRequires: libbonobo-devel >= 2.16
306 BuildRequires: libbonoboui-devel >= 2.16
307 BuildRequires: bonobo-activation-devel
308 BuildRequires: gconf2-devel
309 BuildRequires: freetype2-devel
310 BuildRequires: cairo-devel
311 BuildRequires: fontconfig-devel >= 2.4
312 BuildRequires: gnome-vfs2-devel >= 2.16
313 BuildRequires: libpng-devel
316 BuildRequires: libtermcap-devel
317 BuildRequires: libstdc++-static-devel
318 BuildRequires: glibc-static-devel
319 BuildRequires: glibc-devel >= 2.3
321 %if %{mdk} && !%{mdv} && %{gconsole}
322 BuildRequires: gtk2-devel >= 2.0
323 BuildRequires: libgnomeui2-devel >= 2.0
324 BuildRequires: libORBit2-devel
325 BuildRequires: libart_lgpl-devel >= 2.0
326 BuildRequires: libbonobo2_0-devel
327 BuildRequires: libbonoboui2_0-devel
328 BuildRequires: libbonobo-activation-devel
329 BuildRequires: libGConf2-devel
330 BuildRequires: freetype2-devel
332 %if %{mdv} && %{gconsole}
333 BuildRequires: gtk2-devel >= 2.8
334 BuildRequires: libgnomeui2-devel >= 2.10
335 BuildRequires: libORBit2-devel
336 BuildRequires: libart_lgpl-devel >= 2.3
337 BuildRequires: libbonobo2_0-devel
338 BuildRequires: libbonoboui2_0-devel
339 BuildRequires: libbonobo-activation-devel
340 BuildRequires: libGConf2-devel
341 BuildRequires: freetype2-devel
344 BuildRequires: libtermcap-devel
345 BuildRequires: glibc-devel >= 2.3
347 %if %{fc3} && %{gconsole}
348 BuildRequires: gtk2-devel >= 2.4
349 BuildRequires: libgnomeui-devel >= 2.8
350 BuildRequires: ORBit2-devel
351 BuildRequires: libart_lgpl-devel >= 2.3
352 BuildRequires: libbonobo-devel >= 2.8
353 BuildRequires: libbonoboui-devel >= 2.8
354 BuildRequires: bonobo-activation-devel
355 BuildRequires: GConf2-devel
356 BuildRequires: freetype-devel
359 BuildRequires: libtermcap-devel
360 BuildRequires: glibc-devel >= 2.3
362 %if %{fc4} && %{gconsole}
363 BuildRequires: gtk2-devel >= 2.6
364 BuildRequires: libgnomeui-devel >= 2.10
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.4
377 %if %{fc5} && %{gconsole}
378 BuildRequires: gtk2-devel >= 2.8
379 BuildRequires: libgnomeui-devel >= 2.14
380 BuildRequires: ORBit2-devel
381 BuildRequires: libart_lgpl-devel >= 2.3
382 BuildRequires: libbonobo-devel >= 2.14
383 BuildRequires: libbonoboui-devel >= 2.14
384 BuildRequires: GConf2-devel
385 BuildRequires: freetype-devel
388 BuildRequires: libtermcap-devel
389 BuildRequires: glibc-devel >= 2.5
391 %if %{fc6} && %{gconsole}
392 BuildRequires: gtk2-devel >= 2.10
393 BuildRequires: libgnomeui-devel >= 2.16
394 BuildRequires: ORBit2-devel
395 BuildRequires: libart_lgpl-devel >= 2.3
396 BuildRequires: libbonobo-devel >= 2.16
397 BuildRequires: libbonoboui-devel >= 2.16
398 BuildRequires: GConf2-devel
399 BuildRequires: freetype-devel
401 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6}
402 BuildRequires: libtermcap-devel
403 BuildRequires: glibc-devel >= 2.3
405 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6} && %{gconsole}
406 BuildRequires: gtk2-devel >= 2.0
407 BuildRequires: libgnomeui-devel >= 2.0
408 BuildRequires: ORBit2-devel
409 BuildRequires: libart_lgpl-devel >= 2.0
410 BuildRequires: libbonobo-devel >= 2.0
411 BuildRequires: libbonoboui-devel >= 2.0
412 BuildRequires: bonobo-activation-devel
413 BuildRequires: GConf2-devel
414 BuildRequires: linc-devel
415 BuildRequires: freetype-devel
418 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
419 BuildRequires: mysql-devel >= 3.23
422 %if %{mysql} && %{mysql4}
423 BuildRequires: mysql-devel >= 4.0
426 %if %{mysql} && %{mysql5}
427 BuildRequires: mysql-devel >= 5.0
430 %if %{postgresql} && %{wb3}
431 BuildRequires: rh-postgresql-devel >= 7
434 %if %{postgresql} && ! %{wb3}
435 BuildRequires: postgresql-devel >= 7
439 BuildRequires: wxGTK-devel >= 2.6
463 Summary: Bacula - The Network Backup Solution
464 Group: System Environment/Daemons
465 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
466 Conflicts: bacula-client
467 Obsoletes: bacula-rescue
469 %if %{su9} || %{su10} || %{su102}
473 Requires: ncurses, libstdc++, zlib, openssl, mtx
476 Requires: glibc >= 2.2
479 %if %{su9} || %{su10}
480 Requires: glibc >= 2.3
484 Requires: glibc >= 2.5
487 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{fc5} && ! %{fc6}
488 Requires: glibc >= 2.3
492 Requires: glibc >= 2.4
496 Requires: glibc >= 2.5
500 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
501 Requires: mysql >= 3.23
502 Requires: mysql-server >= 3.23
504 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
505 Requires: mysql >= 4.0
506 Requires: mysql-server >= 4.0
508 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && %{mysql5}
509 Requires: mysql >= 5.0
510 Requires: mysql-server >= 5.0
513 %if %{mysql} && %{su9} && ! %{mysql4}
514 Requires: mysql >= 3.23
515 Requires: mysql-client >= 3.23
517 %if %{mysql} && %{su9} && %{mysql4}
518 Requires: mysql >= 4.0
519 Requires: mysql-client >= 4.0
521 %if %{mysql} && %{su10} && %{mysql4}
522 Requires: mysql >= 4.0
523 Requires: mysql-client >= 4.0
525 %if %{mysql} && %{su10} && %{mysql5}
526 Requires: mysql >= 5.0
527 Requires: mysql-client >= 5.0
529 %if %{mysql} && %{su102} && %{mysql5}
530 Requires: mysql >= 5.0
531 Requires: mysql-client >= 5.0
534 %if %{mysql} && %{mdk} && ! %{mysql4}
535 Requires: mysql >= 3.23
536 Requires: mysql-client >= 3.23
538 %if %{mysql} && %{mdk} && %{mysql4}
539 Requires: mysql >= 4.0
540 Requires: mysql-client >= 4.0
543 %if %{postgresql} && %{wb3}
544 Requires: rh-postgresql >= 7
545 Requires: rh-postgresql-server >= 7
547 %if %{postgresql} && ! %{wb3}
548 Requires: postgresql >= 7
549 Requires: postgresql-server >= 7
559 %description postgresql
563 Requires: python >= %{pyver}
577 This build requires MySQL to be installed separately as the catalog database.
580 This build requires PostgreSQL to be installed separately as the catalog database.
583 This build incorporates sqlite as the catalog database, statically compiled.
586 This build includes python scripting support.
591 Summary: Bacula - The Network Backup Solution
592 Group: System Environment/Daemons
596 This is Bacula's version of mtx tape utilities for Linux distributions that
597 do not provide their own mtx package
601 Summary: Bacula - The Network Backup Solution
602 Group: System Environment/Daemons
604 Conflicts: bacula-mysql
605 Conflicts: bacula-sqlite
606 Conflicts: bacula-postgresql
607 Obsoletes: bacula-rescue
609 %if %{su9} || %{su10} || %{su102}
613 Requires: libstdc++, zlib, openssl
616 Requires: glibc >= 2.2
619 %if %{su9} || %{su10}
620 Requires: glibc >= 2.3
624 Requires: glibc >= 2.5
627 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{fc5} && ! %{fc6}
628 Requires: glibc >= 2.3
632 Requires: glibc >= 2.4
636 Requires: glibc >= 2.5
641 Requires: python >= %{pyver}
655 This is the File daemon (Client) only package. It includes the command line
658 This build includes python scripting support.
664 Summary: Bacula - The Network Backup Solution
665 Group: System Environment/Daemons
667 %description updatedb
678 This package installs scripts for updating older versions of the bacula
684 Summary: Bacula - The Network Backup Solution
685 Group: System Environment/Daemons
686 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
689 %if %{gconsole} && %{su9}
690 Requires: gtk2 >= 2.0
691 Requires: libgnome >= 2.0
692 Requires: libgnomeui >= 2.0
693 Requires: glibc >= 2.3
695 Requires: libart_lgpl >= 2.0
696 Requires: libbonobo >= 2.0
697 Requires: libbonoboui >= 2.0
698 Requires: bonobo-activation
703 %if %{gconsole} && %{su10}
704 Requires: gtk2 >= 2.8
705 Requires: libgnome >= 2.12
706 Requires: libgnomeui >= 2.12
707 Requires: glibc >= 2.3
709 Requires: libart_lgpl >= 2.3
710 Requires: libbonobo >= 2.10
711 Requires: libbonoboui >= 2.10
712 Requires: bonobo-activation
716 Requires: fontconfig >= 2.3
717 Requires: gnome-vfs2 >= 2.12
720 %if %{gconsole} && %{su102}
721 Requires: gtk2 >= 2.10
722 Requires: libgnome >= 2.16
723 Requires: libgnomeui >= 2.16
724 Requires: glibc >= 2.5
726 Requires: libart_lgpl >= 2.3
727 Requires: libbonobo >= 2.16
728 Requires: libbonoboui >= 2.16
729 Requires: bonobo-activation
733 Requires: fontconfig >= 2.4
734 Requires: gnome-vfs2 >= 2.16
737 %if %{gconsole} && %{mdk} && !%{mdv}
738 Requires: gtk2 >= 2.0
739 Requires: libgnomeui2
740 Requires: glibc >= 2.3
742 Requires: libart_lgpl >= 2.0
743 Requires: libbonobo >= 2.0
744 Requires: libbonoboui >= 2.0
748 %if %{gconsole} && %{mdv}
749 Requires: gtk2 >= 2.8
750 Requires: libgnomeui2
751 Requires: glibc >= 2.3
753 Requires: libart_lgpl >= 2.3
754 Requires: libbonobo >= 2.10
755 Requires: libbonoboui >= 2.10
759 %if %{gconsole} && %{fc3}
760 Requires: gtk2 >= 2.4
761 Requires: libgnomeui >= 2.8
762 Requires: glibc >= 2.3
764 Requires: libart_lgpl >= 2.3
765 Requires: libbonobo >= 2.8
766 Requires: libbonoboui >= 2.8
767 Requires: bonobo-activation
771 %if %{gconsole} && %{fc4}
772 Requires: gtk2 >= 2.6
773 Requires: libgnomeui >= 2.10
774 Requires: glibc >= 2.3
776 Requires: libart_lgpl >= 2.3
777 Requires: libbonobo >= 2.8
778 Requires: libbonoboui >= 2.8
779 Requires: bonobo-activation
783 %if %{gconsole} && %{fc5}
784 Requires: gtk2 >= 2.8
785 Requires: libgnomeui >= 2.14
786 Requires: glibc >= 2.4
788 Requires: libart_lgpl >= 2.3
789 Requires: libbonobo >= 2.14
790 Requires: libbonoboui >= 2.14
794 %if %{gconsole} && %{fc6}
795 Requires: gtk2 >= 2.10
796 Requires: libgnomeui >= 2.16
797 Requires: glibc >= 2.5
799 Requires: libart_lgpl >= 2.3
800 Requires: libbonobo >= 2.16
801 Requires: libbonoboui >= 2.16
805 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{fc6}
806 Requires: gtk2 >= 2.0
807 Requires: libgnomeui >= 2.0
808 Requires: glibc >= 2.3
810 Requires: libart_lgpl >= 2.0
811 Requires: libbonobo >= 2.0
812 Requires: libbonoboui >= 2.0
813 Requires: bonobo-activation
818 %if %{gconsole} && %{su9}
821 %if %{gconsole} && %{su10}
824 %if %{gconsole} && %{su102}
827 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102}
832 %description gconsole
843 This is the Gnome Console package. It is an add-on to the client or
849 Summary: Bacula - The Network Backup Solution
850 Group: System Environment/Daemons
851 Requires: wxGTK >= 2.6, libstdc++, openssl
854 %if %{wxconsole} && %{su10}
855 Requires: gtk2 >= 2.8
858 %if %{wxconsole} && %{su102}
859 Requires: gtk2 >= 2.10
862 %if %{wxconsole} && %{fc3}
863 Requires: gtk2 >= 2.4
866 %if %{wxconsole} && %{fc4}
867 Requires: gtk2 >= 2.6
870 %if %{wxconsole} && %{fc5}
871 Requires: gtk2 >= 2.8
874 %if %{wxconsole} && %{fc6}
875 Requires: gtk2 >= 2.10
879 %description wxconsole
890 This is the WXWindows Console package. It is an add-on to the client or
904 %if %{su9} || %{su10} || %{su102}
905 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
918 # patches for the bundled sqlite scripts
920 # patch the make_sqlite_tables script for installation bindir
921 patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
923 # patch the create_sqlite_database script for installation bindir
924 # not necessary after 1.39.26 no longer references sqlite binary
925 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
927 # patch the make_catalog_backup script for installation bindir
928 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
930 # patch the update_sqlite_tables script for installation bindir
931 patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
933 # patch the bacula-dir init script to remove sqlite service
934 %if %{sqlite} && %{su9}
935 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
937 %if %{sqlite} && %{su10}
938 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
940 %if %{sqlite} && %{su102}
941 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
944 # 64 bit lib location hacks
945 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
946 # reported to be fixed to properly detect lib locations.
948 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
950 %if %{mysql} && %{x86_64}
951 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
953 %if %{python} && %{x86_64}
954 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
959 --sbindir=/usr/sbin \
960 --sysconfdir=/etc/bacula \
961 --with-scriptdir=/etc/bacula \
962 --enable-smartalloc \
963 --enable-client-only \
973 --sbindir=/usr/sbin \
974 --sysconfdir=/etc/bacula \
975 --with-scriptdir=/etc/bacula \
976 --enable-smartalloc \
980 %if %{gconsole} && ! %{rh8}
981 --enable-tray-monitor \
987 --with-sqlite=${cwd}/%{depkgs}/sqlite \
993 --enable-wx-console \
999 --enable-client-only \
1001 --mandir=%{_mandir} \
1002 --with-working-dir=%{working_dir} \
1003 --with-pid-dir=/var/run \
1004 --with-subsys-dir=/var/lock/subsys \
1005 --with-dir-user=%{director_daemon_user} \
1006 --with-dir-group=%{daemon_group} \
1007 --with-sd-user=%{storage_daemon_user} \
1008 --with-sd-group=%{storage_daemon_group} \
1009 --with-fd-user=%{file_daemon_user} \
1010 --with-fd-group=%{daemon_group} \
1011 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1012 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1013 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1014 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1015 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1016 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1024 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1025 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1026 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1027 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1028 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1029 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1030 mkdir -p $RPM_BUILD_ROOT/etc/bacula/updatedb
1032 %if %{gconsole} || %{wxconsole}
1033 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1034 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1037 %if %{gconsole} || %{wxconsole}
1038 %define usermode_iftrick 1
1040 %define usermode_iftrick 0
1043 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102}
1044 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1045 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1046 mkdir -p $RPM_BUILD_ROOT/usr/bin
1050 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1054 prefix=$RPM_BUILD_ROOT/usr \
1055 sbindir=$RPM_BUILD_ROOT/usr/sbin \
1056 sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
1057 scriptdir=$RPM_BUILD_ROOT/etc/bacula \
1058 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1059 mandir=$RPM_BUILD_ROOT%{_mandir} \
1062 %if ! %{client_only}
1065 prefix=$RPM_BUILD_ROOT/usr \
1066 sbindir=$RPM_BUILD_ROOT/usr/sbin \
1067 sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
1068 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1069 mandir=$RPM_BUILD_ROOT%{_mandir} \
1074 # make install in manpages installs _everything_ shotgun style
1075 # so now delete what we will not be packaging
1077 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-wxconsole.1.gz
1080 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-console-gnome.1.gz
1081 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.gz
1084 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.gz
1085 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.gz
1086 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.gz
1087 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.gz
1088 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.gz
1089 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.gz
1090 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.gz
1091 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.gz
1092 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.gz
1095 # fixme - make installs the mysql scripts for sqlite build
1097 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
1098 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
1099 rm -f $RPM_BUILD_ROOT/etc/bacula/grant_mysql_privileges
1102 # fixme - make installs the mysql scripts for postgresql build
1104 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
1105 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
1108 # fixme - make installs gconsole script for build without gconsole
1110 rm -f $RPM_BUILD_ROOT/etc/bacula/gconsole
1113 rm -f $RPM_BUILD_ROOT/usr/sbin/static-bacula-fd
1115 # install the init scripts
1116 %if %{su9} || %{su10} || %{su102}
1117 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1118 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1119 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1122 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1123 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1124 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1126 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{mdk}
1127 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1128 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1129 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1131 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1133 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1134 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1137 # install the menu stuff
1138 %if %{gconsole} && %{su9}
1139 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1140 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1141 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1142 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1144 %if %{gconsole} && %{su10}
1145 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1146 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1147 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1148 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1150 %if %{gconsole} && %{su102}
1151 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1152 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1153 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1154 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1156 %if %{wxconsole} && %{su10}
1157 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1158 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1160 %if %{wxconsole} && %{su102}
1161 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1162 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1164 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{mdk}
1169 %if %{gconsole} && %{iftrick}
1170 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1171 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1172 cp -p scripts/gnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/gnome-console
1173 cp -p scripts/gnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/gnome-console
1174 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/gnome-console
1176 %if %{gconsole} && ! %{rh8}
1177 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1178 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1180 %if %{wxconsole} && %{iftrick}
1181 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1182 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1183 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/wxconsole
1184 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/wxconsole
1185 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/wxconsole
1190 cp -p %{depkgs}/sqlite/sqlite $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite
1191 cp -p %{depkgs}/sqlite/sqlite.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite.h
1192 cp -p %{depkgs}/sqlite/libsqlite.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite.a
1195 # install the logrotate file
1196 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1198 # install the updatedb scripts
1199 cp -p updatedb/* $RPM_BUILD_ROOT/etc/bacula/updatedb/
1201 # install the logwatch scripts
1202 %if ! %{client_only}
1203 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1204 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1205 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1206 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1207 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1208 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1211 # install the rescue files
1212 mkdir $RPM_BUILD_ROOT/etc/bacula/rescue
1213 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT/etc/bacula/rescue/
1214 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT/etc/bacula/rescue/
1215 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT/etc/bacula/rescue/
1216 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT/etc/bacula/rescue/
1217 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT/etc/bacula/rescue/
1218 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT/etc/bacula/rescue/
1219 touch $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/rpm_release
1220 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/bacula/bin/bacula-fd
1221 rm -f src/filed/static-bacula-fd
1224 mv $RPM_BUILD_ROOT/usr/sbin/wx-console $RPM_BUILD_ROOT/usr/sbin/wxconsole
1225 mv $RPM_BUILD_ROOT/etc/bacula/wx-console.conf $RPM_BUILD_ROOT/etc/bacula/wxconsole.conf
1228 # now clean up permissions that are left broken by the install
1229 %if ! %{client_only}
1230 chmod o-r $RPM_BUILD_ROOT/etc/bacula/query.sql
1232 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
1233 %if %{gconsole} && ! %{rh8}
1234 chmod 755 $RPM_BUILD_ROOT/usr/sbin/bacula-tray-monitor
1235 chmod 644 $RPM_BUILD_ROOT/etc/bacula/tray-monitor.conf
1238 # fix me - building enable-client-only installs files not included in bacula-client package
1240 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula
1241 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula-ctl-dir
1242 rm -f $RPM_BUILD_ROOT/etc/bacula/bacula-ctl-sd
1243 rm -f $RPM_BUILD_ROOT/etc/bacula/disk-changer
1244 rm -f $RPM_BUILD_ROOT/etc/bacula/dvd-handler
1245 rm -f $RPM_BUILD_ROOT/etc/bacula/mtx-changer
1246 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
1247 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
1248 rm -rf $RPM_BUILD_ROOT/etc/bacula/updatedb
1252 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1253 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
1254 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
1255 rm -rf $RPM_BUILD_DIR/depkgs
1256 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
1259 # MySQL specific files
1261 %defattr(-, root, root)
1262 %attr(-, root, %{daemon_group}) /etc/bacula/create_mysql_database
1263 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_database
1264 %attr(-, root, %{daemon_group}) /etc/bacula/make_mysql_tables
1265 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_tables
1266 %attr(-, root, %{daemon_group}) /etc/bacula/update_mysql_tables
1267 %attr(-, root, %{daemon_group}) /etc/bacula/grant_mysql_privileges
1268 %attr(-, root, %{daemon_group}) /etc/bacula/startmysql
1269 %attr(-, root, %{daemon_group}) /etc/bacula/stopmysql
1274 %defattr(-,root,root)
1275 %attr(-, root, %{daemon_group}) /etc/bacula/create_sqlite_database
1276 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_database
1277 %attr(-, root, %{daemon_group}) /etc/bacula/grant_sqlite_privileges
1278 %attr(-, root, %{daemon_group}) /etc/bacula/make_sqlite_tables
1279 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_tables
1280 %attr(-, root, %{daemon_group}) /etc/bacula/update_sqlite_tables
1281 %{sqlite_bindir}/libsqlite.a
1282 %{sqlite_bindir}/sqlite.h
1283 %{sqlite_bindir}/sqlite
1288 %defattr(-,root,root)
1289 %attr(-, root, %{daemon_group}) /etc/bacula/create_postgresql_database
1290 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_database
1291 %attr(-, root, %{daemon_group}) /etc/bacula/make_postgresql_tables
1292 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_tables
1293 %attr(-, root, %{daemon_group}) /etc/bacula/update_postgresql_tables
1294 %attr(-, root, %{daemon_group}) /etc/bacula/grant_postgresql_privileges
1297 # The rest is DB backend independent
1298 %if ! %{client_only}
1299 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1300 %attr(-, root, %{daemon_group}) /etc/bacula/bacula
1301 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1302 %attr(-, root, %{daemon_group}) /etc/bacula/create_bacula_database
1303 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_database
1304 %attr(-, root, %{daemon_group}) /etc/bacula/grant_bacula_privileges
1305 %attr(-, root, %{daemon_group}) /etc/bacula/make_bacula_tables
1306 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_tables
1307 %attr(-, root, %{daemon_group}) /etc/bacula/update_bacula_tables
1308 %attr(-, root, %{daemon_group}) /etc/bacula/make_catalog_backup
1309 %attr(-, root, %{daemon_group}) /etc/bacula/delete_catalog_backup
1310 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1311 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1312 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1313 %attr(-, root, %{daemon_group}) /etc/bacula/disk-changer
1314 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-dir
1315 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-fd
1316 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-sd
1317 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
1318 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
1319 %attr(-, root, %{storage_daemon_group}) /etc/bacula/dvd-handler
1320 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
1321 %attr(-, root, %{storage_daemon_group}) /etc/bacula/mtx-changer
1323 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1324 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1326 /etc/logrotate.d/bacula
1327 /etc/log.d/scripts/services/bacula
1328 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-dir.conf
1329 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1330 %attr(-, root, %{storage_daemon_group}) %config(noreplace) /etc/bacula/bacula-sd.conf
1331 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1332 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
1333 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
1334 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/query.sql
1336 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
1338 /usr/sbin/bacula-dir
1346 /usr/sbin/btraceback
1352 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
1353 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1354 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1355 %{_mandir}/man8/bacula.8.%{manpage_ext}
1356 %{_mandir}/man8/bconsole.8.%{manpage_ext}
1357 %{_mandir}/man8/bcopy.8.%{manpage_ext}
1358 %{_mandir}/man8/bextract.8.%{manpage_ext}
1359 %{_mandir}/man8/bls.8.%{manpage_ext}
1360 %{_mandir}/man8/bscan.8.%{manpage_ext}
1361 %{_mandir}/man8/btape.8.%{manpage_ext}
1362 %{_mandir}/man8/btraceback.8.%{manpage_ext}
1363 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
1364 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
1369 # test for bacula database older than version 9
1370 # note: this ASSUMES no password has been set for bacula database
1371 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1376 # test for bacula database older than version 9
1377 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
1378 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1383 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1386 %if ! %{client_only}
1387 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "9" ]; then
1388 echo "This bacula upgrade will update a bacula database from version 9 to 10."
1389 echo "You appear to be running database version $DB_VER. You must first update"
1390 echo "your database to version 9 and then install this upgrade. The alternative"
1391 echo "is to use /etc/bacula/drop_%{db_backend}_tables to delete all your your current"
1392 echo "catalog information, then do the upgrade. Information on updating a"
1393 echo "database older than version 9 can be found in the release notes."
1402 %if ! %{client_only}
1403 # check for and copy /etc/bacula/console.conf to bconsole.conf
1404 if [ -s /etc/bacula/console.conf ];then
1405 cp -p /etc/bacula/console.conf /etc/bacula/bconsole.conf
1408 # create the daemon users and groups
1409 # first create the groups if they don't exist
1410 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1411 if [ -z "$HAVE_BACULA" ]; then
1412 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1413 echo "The group %{daemon_group} has been added to %{group_file}."
1414 echo "See the manual chapter \"Running Bacula\" for details."
1416 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
1417 if [ -z "$HAVE_BACULA" ]; then
1418 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
1419 echo "The group %{storage_daemon_group} has been added to %{group_file}."
1420 echo "See the manual chapter \"Running Bacula\" for details."
1422 # now create the users if they do not exist
1423 # we do not use the -g option allowing the primary group to be set to system default
1424 # this will be a unique group on redhat type systems or the group users on some systems
1425 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
1426 if [ -z "$HAVE_BACULA" ]; then
1427 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
1428 echo "The user %{storage_daemon_user} has been added to %{user_file}."
1429 echo "See the manual chapter \"Running Bacula\" for details."
1431 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
1432 if [ -z "$HAVE_BACULA" ]; then
1433 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
1434 echo "The user %{director_daemon_user} has been added to %{user_file}."
1435 echo "See the manual chapter \"Running Bacula\" for details."
1437 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1438 if [ -z "$HAVE_BACULA" ]; then
1439 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1440 echo "The user %{file_daemon_user} has been added to %{user_file}."
1441 echo "See the manual chapter \"Running Bacula\" for details."
1443 # now we add the supplementary groups, this is ok to call even if the users already exist
1444 # we only do this if the user is NOT root
1445 IS_ROOT=%{director_daemon_user}
1446 if [ "$IS_ROOT" != "root" ]; then
1447 %{usermod} -G %{daemon_group} %{director_daemon_user}
1449 IS_ROOT=%{storage_daemon_user}
1450 if [ "$IS_ROOT" != "root" ]; then
1451 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
1453 IS_ROOT=%{file_daemon_user}
1454 if [ "$IS_ROOT" != "root" ]; then
1455 %{usermod} -G %{daemon_group} %{file_daemon_user}
1469 %if ! %{client_only}
1471 if [ "$1" -ge 1 ] ; then
1472 /sbin/chkconfig --add bacula-dir
1473 /sbin/chkconfig --add bacula-fd
1474 /sbin/chkconfig --add bacula-sd
1479 # test for an existing database
1480 # note: this ASSUMES no password has been set for bacula database
1481 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1483 # grant privileges and create tables if they do not exist
1484 if [ -z "$DB_VER" ]; then
1485 echo "Hmm, doesn't look like you have an existing database."
1486 echo "Granting privileges for MySQL user bacula..."
1487 /etc/bacula/grant_mysql_privileges
1488 echo "Creating MySQL bacula database..."
1489 /etc/bacula/create_mysql_database
1490 echo "Creating bacula tables..."
1491 /etc/bacula/make_mysql_tables
1493 # check to see if we need to upgrade a 1.38 or lower database
1494 elif [ "$DB_VER" -lt "10" ]; then
1495 echo "This release requires an upgrade to your bacula database."
1496 echo "Backing up your current database..."
1497 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1498 echo "Upgrading bacula database ..."
1499 /etc/bacula/update_mysql_tables
1500 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1506 # test for an existing database
1507 if [ -s %{working_dir}/bacula.db ]; then
1508 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1509 # check to see if we need to upgrade a 1.38 or lower database
1510 if [ "$DB_VER" -lt "10" ] && [ "$DB_VER" -ge "9" ]; then
1511 echo "This release requires an upgrade to your bacula database."
1512 echo "Backing up your current database..."
1513 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1514 echo "Upgrading bacula database ..."
1515 /etc/bacula/update_sqlite_tables
1516 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1519 # create the database and tables
1520 echo "Hmm, doesn't look like you have an existing database."
1521 echo "Creating SQLite database..."
1522 /etc/bacula/create_sqlite_database
1523 echo "Creating the SQLite tables..."
1524 /etc/bacula/make_sqlite_tables
1529 # test for an existing database
1530 # note: this ASSUMES no password has been set for bacula database
1531 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1533 # grant privileges and create tables if they do not exist
1534 if [ -z "$DB_VER" ]; then
1535 echo "Hmm, doesn't look like you have an existing database."
1536 echo "Creating PostgreSQL bacula database..."
1537 /etc/bacula/create_postgresql_database
1538 echo "Creating bacula tables..."
1539 /etc/bacula/make_postgresql_tables
1540 echo "Granting privileges for PostgreSQL user bacula..."
1541 /etc/bacula/grant_postgresql_privileges
1543 # check to see if we need to upgrade a 1.38 or lower database
1544 elif [ "$DB_VER" -lt "10" ]; then
1545 echo "This release requires an upgrade to your bacula database."
1546 echo "Backing up your current database..."
1547 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1548 echo "Upgrading bacula database ..."
1549 /etc/bacula/update_postgresql_tables
1550 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1555 %if ! %{client_only}
1556 # generate passwords if needed
1557 if [ -d /etc/bacula ]; then
1559 for file in *.conf; do
1560 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
1561 need_password=`grep $string $file 2>/dev/null`
1562 if [ -n "$need_password" ]; then
1563 pass=`openssl rand -base64 33`
1564 sed "s-$string-$pass-g" $file > $file.new
1565 cp -f $file.new $file; rm -f $file.new
1582 %if ! %{client_only}
1585 /sbin/chkconfig --del bacula-dir
1586 /sbin/chkconfig --del bacula-fd
1587 /sbin/chkconfig --del bacula-sd
1592 %if ! %{client_only}
1594 %defattr(-,root,root)
1595 %attr(-, root, %{storage_daemon_group}) /usr/sbin/loaderinfo
1596 %attr(-, root, %{storage_daemon_group}) /usr/sbin/mtx
1597 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsitape
1598 %attr(-, root, %{storage_daemon_group}) /usr/sbin/tapeinfo
1599 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
1600 %{_mandir}/man1/mtx.1.%{manpage_ext}
1601 %{_mandir}/man1/scsitape.1.%{manpage_ext}
1602 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
1607 %defattr(-,root,root)
1608 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1609 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1610 /etc/bacula/bacula-ctl-fd
1611 /etc/init.d/bacula-fd
1612 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1614 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1615 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1617 /etc/logrotate.d/bacula
1619 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1620 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1622 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1625 /usr/sbin/btraceback
1626 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1627 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1629 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
1630 %{_mandir}/man8/bacula.8.%{manpage_ext}
1631 %{_mandir}/man8/bconsole.8.%{manpage_ext}
1632 %{_mandir}/man8/btraceback.8.%{manpage_ext}
1636 # create the daemon group and user
1637 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1638 if [ -z "$HAVE_BACULA" ]; then
1639 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1640 echo "The group %{daemon_group} has been added to %{group_file}."
1641 echo "See the manual chapter \"Running Bacula\" for details."
1643 # we do not use the -g option allowing the primary group to be set to system default
1644 # this will be a unique group on redhat type systems or the group users on some systems
1645 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1646 if [ -z "$HAVE_BACULA" ]; then
1647 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1648 echo "The user %{file_daemon_user} has been added to %{user_file}."
1649 echo "See the manual chapter \"Running Bacula\" for details."
1651 # now we add the supplementary group, this is ok to call even if the user already exists
1652 # we only do this if the user is NOT root
1653 IS_ROOT=%{file_daemon_user}
1654 if [ "$IS_ROOT" != "root" ]; then
1655 %{usermod} -G %{daemon_group} %{file_daemon_user}
1660 if [ "$1" -ge 1 ] ; then
1661 /sbin/chkconfig --add bacula-fd
1664 # generate passwords if needed
1665 if [ -d /etc/bacula ]; then
1667 for file in *.conf; do
1668 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
1669 need_password=`grep $string $file 2>/dev/null`
1670 if [ -n "$need_password" ]; then
1671 pass=`openssl rand -base64 33`
1672 sed "s-$string-$pass-g" $file > $file.new
1673 cp -f $file.new $file; rm -f $file.new
1682 /sbin/chkconfig --del bacula-fd
1685 %if ! %{client_only}
1687 %defattr(-,root,%{daemon_group})
1688 /etc/bacula/updatedb/*
1691 # create the daemon group
1692 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1693 if [ -z "$HAVE_BACULA" ]; then
1694 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1695 echo "The group %{daemon_group} has been added to %{group_file}."
1696 echo "See the manual chapter \"Running Bacula\" for details."
1700 echo "The database update scripts were installed to /etc/bacula/updatedb"
1705 %defattr(-,root,root)
1706 /usr/sbin/gnome-console
1707 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1708 %attr(-, root, %{daemon_group}) /etc/bacula/gconsole
1709 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/gnome-console.conf
1710 /usr/share/pixmaps/bacula.png
1711 /usr/share/applications/bacula.desktop
1712 %{_mandir}/man1/bacula-console-gnome.1.%{manpage_ext}
1715 %if %{gconsole} && ! %{rh8}
1716 /usr/sbin/bacula-tray-monitor
1717 %config(noreplace) /etc/bacula/tray-monitor.conf
1718 /usr/share/pixmaps/bacula-tray-monitor.xpm
1719 /usr/share/applications/bacula-tray-monitor.desktop
1720 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1723 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102}
1724 # add the console helper files
1725 %config(noreplace,missingok) /etc/pam.d/gnome-console
1726 %config(noreplace,missingok) /etc/security/console.apps/gnome-console
1727 /usr/bin/gnome-console
1732 # create the daemon group
1733 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1734 if [ -z "$HAVE_BACULA" ]; then
1735 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1736 echo "The group %{daemon_group} has been added to %{group_file}."
1737 echo "See the manual chapter \"Running Bacula\" for details."
1741 # generate passwords if needed
1742 if [ -d /etc/bacula ]; then
1744 for file in *.conf; do
1745 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
1746 need_password=`grep $string $file 2>/dev/null`
1747 if [ -n "$need_password" ]; then
1748 pass=`openssl rand -base64 33`
1749 sed "s-$string-$pass-g" $file > $file.new
1750 cp -f $file.new $file; rm -f $file.new
1759 %defattr(-,root,root)
1761 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1762 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/wxconsole.conf
1763 /usr/share/pixmaps/wxwin16x16.xpm
1764 /usr/share/applications/wxconsole.desktop
1765 %{_mandir}/man1/bacula-wxconsole.1.%{manpage_ext}
1768 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102}
1769 # add the console helper files
1770 %config(noreplace,missingok) /etc/pam.d/wxconsole
1771 %config(noreplace,missingok) /etc/security/console.apps/wxconsole
1777 # create the daemon group
1778 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1779 if [ -z "$HAVE_BACULA" ]; then
1780 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1781 echo "The group %{daemon_group} has been added to %{group_file}."
1782 echo "See the manual chapter \"Running Bacula\" for details."
1786 # generate passwords if needed
1787 if [ -d /etc/bacula ]; then
1789 for file in *.conf; do
1790 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
1791 need_password=`grep $string $file 2>/dev/null`
1792 if [ -n "$need_password" ]; then
1793 pass=`openssl rand -base64 33`
1794 sed "s-$string-$pass-g" $file > $file.new
1795 cp -f $file.new $file; rm -f $file.new
1803 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1804 - add SuSE 10.2 target
1805 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1807 - set query.sql as config file
1809 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1811 - change determination of gcc version per patch from Marc Hennes
1812 - move BuildRequire for atk-devel to gnome only builds
1814 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
1816 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1817 - 1.39.26 remove create_sqlite_database.in.patch
1818 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1819 - change ownership of working_dir on server packages to bacula.bacula so that
1820 - bacula-sd can create bootstrap files
1821 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1822 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
1823 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1824 - fix manpages file extension for mdk
1825 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1826 - bug 648 re-enable and update sqlite patches
1830 - lock out gconsole build for gtk+ < 2.4
1831 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1832 - move pango-devel BuildRequires into gconsole only build
1833 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1834 - add provides and conflicts for standard suse packages
1835 - add third party packager tag support
1836 - add build_client_only tag
1837 - remove bsmtp from client package
1838 - add bacula-ctl-fd to client package
1839 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1840 - fix directory creation when wxconsole and not gconsole
1841 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1842 - add check to buildrequires to make sure libstdc++ version matches gcc
1843 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1844 - add python build support
1845 - fix LDFLAGS declarations
1846 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1847 - add requires for standard compiler toolchain
1848 - move version and release tags up
1850 - add docs_version tag
1851 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1852 - update rescuever to 1.8.6
1853 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1854 - update depkgs to 25Jun06
1855 - add mysql5 build tag
1856 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1857 - 1.38.10 bump rescue version
1858 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1859 - fix usermod statements
1861 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1862 - add -g param back to useradd statements Bug 605
1863 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1864 - redundant code cleanup
1865 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1866 - add wxconsole package
1867 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1869 - dependency update for Mandriva
1870 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1872 - remove -n option from useradd scripts
1873 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1875 - fix problem specifying more than one primary group for user bacula
1876 - add build switch to not build gconsole regardless of platform
1877 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1878 - add centos3 build tag
1879 - fix link error of static-fd on Mandrake with --disable-nls
1880 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1881 - add fc4 dependencies
1882 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1883 - add SuSE 10.0 build
1884 - remove specific permission in attrib macros
1885 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1887 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
1888 - refix compat for _dist on SLES9 which seems to have been removed
1889 - added note regarding Aleksandar's use of specific permissions in attrib macros
1890 - need to review and add specific fc4 build currently using fc3 Requires
1891 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1893 - Reorganize files and pre/post sections to remove repetitions
1894 - Always build separate mtx package
1895 - Fix file ownerships for /etc/bacula and Bacula's working dir
1896 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1897 - Disable GNOME on RH7
1898 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1899 - Red Hat and look alikes have mtx RPM, do not build/package our version
1900 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1901 - minor edit to _dist for SLES9 compatibility
1902 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1904 - kern changed location of pdf files and html manual in docs package
1905 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1907 - add docs (from prebuilt tarball) and rescue packages back in
1908 - remove dvd-freespace and dvd-writepart files, add dvd-handler
1909 - remove 3 of 4 sqlite script patches as not needed
1910 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1912 - remove docs and rescue sections (remove static fd)
1913 - add dvd-freespace and dvd-writepart files
1914 - update depkgs to 22Jun05
1915 - change database update to 8 to 9
1916 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1917 - minor cleanups before 1.38 changes
1918 - add popt and popt-devel build dependencies
1919 - add tetex and tetex-dvips dependencies for doc build
1920 - replace deprecated Copyright tag with License
1921 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1922 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
1923 - conflict with sqlite packages. remove readline dependency.
1924 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1925 - release 1.36.3 update docs
1926 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1927 - add centos4 build tag
1928 - add x86_64 build tag
1929 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1930 - add rhel4 build tag
1931 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
1932 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1933 - add rhel3 build tag
1934 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1935 - fix tray-monitor.conf for noreplace
1936 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1937 - fix distribution check for Fedora and Whitebox
1938 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1939 - add logwatch script
1941 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1942 - add build for Fedora Core 3 (linc now included in ORDit2)
1943 - add mysql4 define for Mandrake 10.1
1944 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1945 - fix {group_file} variable in post scripts
1946 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
1947 - add distribution checking and custom Distribution tag
1948 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1949 - ASSIGNMENT OF COPYRIGHT
1950 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
1951 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
1952 - all right, title and interest in and to the copyright in this software RPM
1953 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
1954 - free of all liens, encumbrances or any known claims against said copyright.
1955 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1957 - thanks to Daniel Widyono
1958 - update description for rescue package to describe cdrom creation
1959 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1960 - update depkgs to 29Oct04
1961 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1962 - add cdrom rescue to bacula-rescue package
1963 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1964 - misc fixes from 1.36.0 suse feedback
1965 - fix situation where sqlite database exists but sqlite has been removed.
1966 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1967 - remove tray-monitor from RH8 build
1968 - fix permissions on tray-monitor files
1969 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1970 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
1971 - change database update to 7 to 8 upgrade,
1972 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
1973 - build in 30Jul04, add freetype dependancy to gnome package.
1974 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1975 - add documentation to console for groupadd
1976 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1977 - add support for running daemons as root.bacula
1978 - correct for change in location of floppy rescue files in 1.35.2
1979 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
1980 - updated depgkgs to 30Jul04
1981 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1982 - really, really fix symlink creation for gconsole
1983 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1984 - fix symlink creation in gconsole post install
1985 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1986 - fixed error in gconsole post script
1987 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1988 - add check for gconsole symlink before trying to create it
1989 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1990 - fix some minor permissions issues on doc files that CVS won't let us fix
1991 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1992 - add pkgconfig to BuildRequires
1993 - clean up gnome1/2 menu entries for appropriate packages
1994 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1995 - tightened up doc distribution
1996 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1997 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
1998 - rpm's horrible bug that prevents nested conditional macros prevents me
1999 - from implementing these 2 separate approaches within the conditionals which
2000 - create the separate server packages.
2001 - the solution adopted is to remove the gnome-console files from the server packages
2002 - so bacula-gconsole is now an add on for both client and server packages.
2003 - this also now allows the server packages to be install on machines without
2004 - an X-server and we can still maintain a single spec file.
2005 - added tests to make sure we have defined platform and database macros.
2006 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2007 - corrected mysql prerequisites for suse
2008 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2009 - replaced all cp commands with cp -p
2010 - removed addition of a+x permissions on gnome-console
2011 - corrected permissions on init scripts
2012 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2013 - corrected creation of sqlite_bindir in install from !mysql to sqlite
2015 - various cleanup patches from Michael K. Johnson:
2016 - corrected post install routines for nicer chkconfig
2017 - removed chmod changes in post routines and moved to install section
2018 - removed interactive nature of post routine for rescue package
2019 - added description of building rescue disks to the description of rescue package
2020 - added clean of build root to beginning of install
2021 - removed specifying attr in all file lists
2022 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2023 - added bconsole to client package
2024 - added gconsole package as add-on to client
2025 - removed spurious dependancies on updatedb package (!cut/paste)
2026 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2027 - added updatedb package
2028 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2029 - added postgresql package
2030 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2031 - corrected the if else logic in the dependancy sections
2032 - changes for 1.34 release
2033 - /etc/bacula/console is now /etc/bacula/bconsole
2034 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
2035 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
2036 - /usr/sbin/smtp is now /usr/sbin/bsmtp
2037 - added new /etc/bacula/drop_mysql_database
2038 - added new /etc/bacula/drop_sqlite_database
2039 - added new /etc/bacula/grant_sqlite_privileges
2040 - added new generic bacula database scripts in /etc/bacula
2041 - added pre-install sections to check for database versions older than 6
2042 - added check for /etc/bacula/console.conf and copy to bconsole.conf
2043 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2044 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
2045 - added testing for existing databases before executing any of the database creation scripts
2046 - added defines working_dir and sqlite_bindir in place of hard coded paths
2047 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2048 - added build configuration for SuSE.
2049 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
2050 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2051 - added patch for create_sqlite_database to fix the installed bindir
2052 - added execute of create_sqlite_database to post of sqlite package
2053 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2054 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
2055 - added bacula-fd as Requires for rescue package
2056 - added build tag for Fedora Core 1
2057 - cleaned up dependancies for all builds
2058 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2059 - removed rh_version from package names
2060 - added platform build configuration section to beginning of file
2061 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2062 - removed make_static_bacula script from rescue package install
2063 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2064 - Added define at top of file for depkgs version
2065 - Added rescue sub-package
2066 - Moved requires statements into proper sub-package locations
2067 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2068 - Corrected Requires for Gnome 1.4/2.0 builds
2069 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2070 - Added separate source declaration for depkgs
2071 - added patch for make_catalog_backup script
2072 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2073 - Misc changes to mysql/sqlite build and rh7/8 menu differences
2074 - Added rh_version to sub-package names
2075 - Added installed but missing file /etc/bacula/gconsole
2076 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
2077 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
2078 - Update spec for version 1.31 and combine client
2079 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>