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 22Feb08
10 %define _rescuever @VERSION@
11 %define docs_version @VERSION@
13 # any patches for this release
14 # be sure to check the setup section for patch macros
16 #--------------------------------------------------------------------------
17 # it should not be necessary to change anything below here for a release
18 # except for patch macros in the setup section
19 #--------------------------------------------------------------------------
21 # third party packagers
22 %define _packager D. Scott Barninger <barninger@fairfieldcomputers.com>
23 %{?contrib_packager:%define _packager %{contrib_packager}}
25 Summary: Bacula - The Network Backup Solution
29 Group: System Environment/Daemons
31 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
32 Source1: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
33 Source2: Release_Notes-%{version}-%{release}.tar.gz
34 Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
35 Source4: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
36 Source5: bacula-2.2.7-postgresql.patch
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 %_libdir/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 %_libdir/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}
101 %{?build_fc7:%define fc7 1}
103 %{?build_fc8:%define fc8 1}
104 # Whitebox Enterprise build
106 %{?build_wb3:%define wb3 1}
107 # RedHat Enterprise builds
109 %{?build_rhel3:%define rhel3 1}
110 %{?build_rhel3:%define wb3 1}
112 %{?build_rhel4:%define rhel4 1}
113 %{?build_rhel4:%define fc3 1}
115 %{?build_rhel5:%define rhel5 1}
116 %{?build_rhel5:%define fc6 1}
119 %{?build_centos3:%define centos3 1}
120 %{?build_centos3:%define wb3 1}
122 %{?build_centos4:%define centos4 1}
123 %{?build_centos4:%define fc3 1}
125 %{?build_centos5:%define centos5 1}
126 %{?build_centos5:%define fc6 1}
129 %{?build_sl3:%define sl3 1}
130 %{?build_sl3:%define wb3 1}
132 %{?build_sl4:%define sl4 1}
133 %{?build_sl4:%define fc3 1}
135 %{?build_sl5:%define sl5 1}
136 %{?build_sl5:%define fc6 1}
139 %{?build_su9:%define su9 1}
141 %{?build_su10:%define su10 1}
143 %{?build_su102:%define su102 1}
145 %{?build_su103:%define su103 1}
148 %{?build_mdk:%define mdk 1}
150 %{?build_mdv:%define mdv 1}
151 %{?build_mdv:%define mdk 1}
154 %define client_only 0
155 %{?build_client_only:%define client_only 1}
157 # test for a platform definition
158 %if !%{rh7} && !%{rh8} && !%{rh9} && !%{fc1} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{wb3} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{mdk}
159 %{error: You must specify a platform. Please examine the spec file.}
164 # set for database support desired or define the build_xxx on the command line
166 %{?build_mysql:%define mysql 1}
167 # if using mysql 4.x define this and mysql above
168 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
170 %{?build_mysql4:%define mysql4 1}
171 %{?build_mysql4:%define mysql 1}
172 # if using mysql 5.x define this and mysql above
173 # currently: SuSE 10.1 and Fedora Core 5
175 %{?build_mysql5:%define mysql5 1}
176 %{?build_mysql5:%define mysql 1}
178 %{?build_sqlite:%define sqlite 1}
180 %{?build_postgresql:%define postgresql 1}
182 # test for a database definition
183 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
184 %{error: You must specify database support. Please examine the spec file.}
189 %define db_backend mysql
192 %define db_backend sqlite3
195 %define db_backend postgresql
200 %{?build_x86_64:%define x86_64 1}
202 # check what distribution we are
203 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
204 %define _dist %(grep Red /etc/redhat-release)
206 %if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8}
207 %define _dist %(grep Fedora /etc/redhat-release)
209 %if %{centos5} || %{centos4} || %{centos3}
210 %define _dist %(grep CentOS /etc/redhat-release)
212 %if %{sl5} ||%{sl4} || %{sl3}
213 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
215 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
216 %define _dist %(grep Fedora /etc/redhat-release)
218 %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
219 %define _dist %(grep Fedora /etc/redhat-release)
221 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
222 %define _dist %(grep White /etc/whitebox-release)
224 %if %{su9} || %{su10} || %{su102} || %{su103}
225 %define _dist %(grep -i SuSE /etc/SuSE-release)
228 %define _dist %(grep Mand /etc/mandrake-release)
230 Distribution: %{_dist}
232 # Should we build gconsole, possible only if gtk= >= 2.4 available.
233 # leaving all the BuildRequires and Requires in place below for now.
234 # su10, fc3 and fc4 now nobuild, tray monitor fails to build as of 2.2.1
235 # release as it needs 2.10
238 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
241 %if %{mdk} && ! %{mdv}
245 # specifically disallow gconsole if desired
246 %{?nobuild_gconsole:%define gconsole 0}
248 # Should we build wxconsole, only wxWidgets >=2.6 is supported
249 # SuSE 10 and FC4 and newer
251 %{?build_wxconsole:%define wxconsole 1}
253 # Should we build bat
256 %{?build_bat:%define bat 1}
258 # should we turn on python support
260 %{?build_python:%define python 1}
262 # specifically disallow build of mtx package if desired
264 %{?nobuild_mtx:%define mtx 0}
266 # do we need to patch for old postgresql version?
268 %{?build_old_pgsql:%define old_pgsql 1}
270 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
272 %define manpage_ext bz2
274 %define manpage_ext gz
277 # for client only build
288 %{expand: %%define gccver %(rpm -q --queryformat %%{version} gcc)}
289 %{expand: %%define gccrel %(rpm -q --queryformat %%{release} gcc)}
291 BuildRequires: gcc, gcc-c++, make, autoconf
292 BuildRequires: ncurses-devel, perl
293 BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, libxml2-devel, zlib-devel
294 BuildRequires: openssl-devel
296 BuildRequires: python, python-devel
297 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
300 BuildRequires: pkgconfig, pango-devel, atk-devel
303 # Rh qt4 packages don't have a provide for, guess what, qt!
304 # still broken in fc8
305 # so fix for broken rh
307 %if %{rhel5} || %{centos5} || %{sl5} || %{fc5} || %{fc6} || %{fc7} || %{fc8}
310 %if %{bat} && ! %{broken_rh}
311 BuildRequires: qt-devel >= 4.2
313 %if %{bat} && %{broken_rh}
314 BuildRequires: qt4-devel >= 4.2
318 BuildRequires: libtermcap-devel
319 BuildRequires: glibc-devel >= 2.2
322 BuildRequires: termcap
323 BuildRequires: glibc-devel >= 2.3
325 %if %{su9} && %{gconsole}
326 BuildRequires: libgnome >= 2.0
327 BuildRequires: gtk2-devel >= 2.0
328 BuildRequires: libgnomeui-devel >= 2.0
329 BuildRequires: ORBit2-devel
330 BuildRequires: libart_lgpl-devel >= 2.0
331 BuildRequires: libbonobo-devel >= 2.0
332 BuildRequires: libbonoboui-devel >= 2.0
333 BuildRequires: bonobo-activation-devel
334 BuildRequires: gconf2-devel
335 BuildRequires: linc-devel
336 BuildRequires: freetype2-devel
339 BuildRequires: termcap
340 BuildRequires: glibc-devel >= 2.3
342 %if %{su10} && %{gconsole}
343 BuildRequires: libgnome >= 2.12
344 BuildRequires: gtk2-devel >= 2.8
345 BuildRequires: libgnomeui-devel >= 2.12
346 BuildRequires: ORBit2-devel
347 BuildRequires: libart_lgpl-devel >= 2.3
348 BuildRequires: libbonobo-devel >= 2.10
349 BuildRequires: libbonoboui-devel >= 2.10
350 BuildRequires: bonobo-activation-devel
351 BuildRequires: gconf2-devel
352 BuildRequires: freetype2-devel
353 BuildRequires: cairo-devel
354 BuildRequires: fontconfig-devel >= 2.3
355 BuildRequires: gnome-vfs2-devel >= 2.12
356 BuildRequires: libpng-devel
359 BuildRequires: termcap
360 BuildRequires: glibc-devel >= 2.5
362 %if %{su102} && %{gconsole}
363 BuildRequires: libgnome >= 2.16
364 BuildRequires: gtk2-devel >= 2.10
365 BuildRequires: libgnomeui-devel >= 2.16
366 BuildRequires: ORBit2-devel
367 BuildRequires: libart_lgpl-devel >= 2.3
368 BuildRequires: libbonobo-devel >= 2.16
369 BuildRequires: libbonoboui-devel >= 2.16
370 BuildRequires: bonobo-activation-devel
371 BuildRequires: gconf2-devel
372 BuildRequires: freetype2-devel
373 BuildRequires: cairo-devel
374 BuildRequires: fontconfig-devel >= 2.4
375 BuildRequires: gnome-vfs2-devel >= 2.16
376 BuildRequires: libpng-devel
379 BuildRequires: termcap
380 BuildRequires: glibc-devel >= 2.6
382 %if %{su103} && %{gconsole}
383 BuildRequires: libgnome >= 2.20
384 BuildRequires: gtk2-devel >= 2.12
385 BuildRequires: libgnomeui-devel >= 2.20
386 BuildRequires: ORBit2-devel
387 BuildRequires: libart_lgpl-devel >= 2.3
388 BuildRequires: libbonobo-devel >= 2.20
389 BuildRequires: libbonoboui-devel >= 2.20
390 BuildRequires: bonobo-activation-devel
391 BuildRequires: gconf2-devel
392 BuildRequires: freetype2-devel
393 BuildRequires: cairo-devel
394 BuildRequires: fontconfig-devel >= 2.4
395 BuildRequires: gnome-vfs2-devel >= 2.20
396 BuildRequires: libpng-devel
399 BuildRequires: libtermcap-devel
400 BuildRequires: libstdc++-static-devel
401 BuildRequires: glibc-static-devel
402 BuildRequires: glibc-devel >= 2.3
404 %if %{mdk} && !%{mdv} && %{gconsole}
405 BuildRequires: gtk2-devel >= 2.0
406 BuildRequires: libgnomeui2-devel >= 2.0
407 BuildRequires: libORBit2-devel
408 BuildRequires: libart_lgpl-devel >= 2.0
409 BuildRequires: libbonobo2_0-devel
410 BuildRequires: libbonoboui2_0-devel
411 BuildRequires: libbonobo-activation-devel
412 BuildRequires: libGConf2-devel
413 BuildRequires: freetype2-devel
415 %if %{mdv} && %{gconsole}
416 BuildRequires: gtk2-devel >= 2.8
417 BuildRequires: libgnomeui2-devel >= 2.10
418 BuildRequires: libORBit2-devel
419 BuildRequires: libart_lgpl-devel >= 2.3
420 BuildRequires: libbonobo2_0-devel
421 BuildRequires: libbonoboui2_0-devel
422 BuildRequires: libbonobo-activation-devel
423 BuildRequires: libGConf2-devel
424 BuildRequires: freetype2-devel
427 BuildRequires: libtermcap-devel
428 BuildRequires: glibc-devel >= 2.3
430 %if %{fc3} && %{gconsole}
431 BuildRequires: gtk2-devel >= 2.4
432 BuildRequires: libgnomeui-devel >= 2.8
433 BuildRequires: ORBit2-devel
434 BuildRequires: libart_lgpl-devel >= 2.3
435 BuildRequires: libbonobo-devel >= 2.8
436 BuildRequires: libbonoboui-devel >= 2.8
437 BuildRequires: bonobo-activation-devel
438 BuildRequires: GConf2-devel
439 BuildRequires: freetype-devel
442 BuildRequires: libtermcap-devel
443 BuildRequires: glibc-devel >= 2.3
445 %if %{fc4} && %{gconsole}
446 BuildRequires: gtk2-devel >= 2.6
447 BuildRequires: libgnomeui-devel >= 2.10
448 BuildRequires: ORBit2-devel
449 BuildRequires: libart_lgpl-devel >= 2.3
450 BuildRequires: libbonobo-devel >= 2.8
451 BuildRequires: libbonoboui-devel >= 2.8
452 BuildRequires: bonobo-activation-devel
453 BuildRequires: GConf2-devel
454 BuildRequires: freetype-devel
457 BuildRequires: libtermcap-devel
458 BuildRequires: glibc-devel >= 2.4
460 %if %{fc5} && %{gconsole}
461 BuildRequires: gtk2-devel >= 2.8
462 BuildRequires: libgnomeui-devel >= 2.14
463 BuildRequires: ORBit2-devel
464 BuildRequires: libart_lgpl-devel >= 2.3
465 BuildRequires: libbonobo-devel >= 2.14
466 BuildRequires: libbonoboui-devel >= 2.14
467 BuildRequires: GConf2-devel
468 BuildRequires: freetype-devel
471 BuildRequires: libtermcap-devel
472 BuildRequires: glibc-devel >= 2.5
474 %if %{fc6} && %{gconsole}
475 BuildRequires: gtk2-devel >= 2.10
476 BuildRequires: libgnomeui-devel >= 2.16
477 BuildRequires: ORBit2-devel
478 BuildRequires: libart_lgpl-devel >= 2.3
479 BuildRequires: libbonobo-devel >= 2.16
480 BuildRequires: libbonoboui-devel >= 2.16
481 BuildRequires: GConf2-devel
482 BuildRequires: freetype-devel
485 BuildRequires: libtermcap-devel
486 BuildRequires: glibc-devel >= 2.5
488 %if %{fc7} && %{gconsole}
489 BuildRequires: gtk2-devel >= 2.10
490 BuildRequires: libgnomeui-devel >= 2.18
491 BuildRequires: ORBit2-devel
492 BuildRequires: libart_lgpl-devel >= 2.3
493 BuildRequires: libbonobo-devel >= 2.18
494 BuildRequires: libbonoboui-devel >= 2.18
495 BuildRequires: GConf2-devel
496 BuildRequires: freetype-devel
499 BuildRequires: libtermcap-devel
500 BuildRequires: glibc-devel >= 2.7
502 %if %{fc8} && %{gconsole}
503 BuildRequires: gtk2-devel >= 2.12
504 BuildRequires: libgnomeui-devel >= 2.20
505 BuildRequires: ORBit2-devel
506 BuildRequires: libart_lgpl-devel >= 2.3
507 BuildRequires: libbonobo-devel >= 2.20
508 BuildRequires: libbonoboui-devel >= 2.20
509 BuildRequires: GConf2-devel
510 BuildRequires: freetype-devel
512 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8}
513 BuildRequires: libtermcap-devel
514 BuildRequires: glibc-devel >= 2.3
516 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && %{gconsole}
517 BuildRequires: gtk2-devel >= 2.0
518 BuildRequires: libgnomeui-devel >= 2.0
519 BuildRequires: ORBit2-devel
520 BuildRequires: libart_lgpl-devel >= 2.0
521 BuildRequires: libbonobo-devel >= 2.0
522 BuildRequires: libbonoboui-devel >= 2.0
523 BuildRequires: bonobo-activation-devel
524 BuildRequires: GConf2-devel
525 BuildRequires: linc-devel
526 BuildRequires: freetype-devel
529 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
530 BuildRequires: mysql-devel >= 3.23
533 %if %{mysql} && %{mysql4}
534 BuildRequires: mysql-devel >= 4.0
537 %if %{mysql} && %{mysql5}
538 BuildRequires: mysql-devel >= 5.0
541 %if %{postgresql} && %{wb3}
542 BuildRequires: rh-postgresql-devel >= 7
545 %if %{postgresql} && ! %{wb3}
546 BuildRequires: postgresql-devel >= 7
550 BuildRequires: wxGTK-devel >= 2.6
574 Summary: Bacula - The Network Backup Solution
575 Group: System Environment/Daemons
576 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
577 Conflicts: bacula-client
578 Obsoletes: bacula-rescue
580 %if %{su9} || %{su10} || %{su102} || %{su103}
584 Requires: ncurses, libstdc++, zlib, openssl, mtx
587 Requires: glibc >= 2.2
590 %if %{su9} || %{su10}
591 Requires: glibc >= 2.3
595 Requires: glibc >= 2.5
599 Requires: glibc >= 2.6
602 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8}
603 Requires: glibc >= 2.3
607 Requires: glibc >= 2.4
611 Requires: glibc >= 2.5
615 Requires: glibc >= 2.7
619 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
620 Requires: mysql >= 3.23
621 Requires: mysql-server >= 3.23
623 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
624 Requires: mysql >= 4.0
625 Requires: mysql-server >= 4.0
627 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{mdk} && %{mysql5}
628 Requires: mysql >= 5.0
629 Requires: mysql-server >= 5.0
632 %if %{mysql} && %{su9} && ! %{mysql4}
633 Requires: mysql >= 3.23
634 Requires: mysql-client >= 3.23
636 %if %{mysql} && %{su9} && %{mysql4}
637 Requires: mysql >= 4.0
638 Requires: mysql-client >= 4.0
640 %if %{mysql} && %{su10} && %{mysql4}
641 Requires: mysql >= 4.0
642 Requires: mysql-client >= 4.0
644 %if %{mysql} && %{su10} && %{mysql5}
645 Requires: mysql >= 5.0
646 Requires: mysql-client >= 5.0
648 %if %{mysql} && %{su102} && %{mysql5}
649 Requires: mysql >= 5.0
650 Requires: mysql-client >= 5.0
652 %if %{mysql} && %{su103} && %{mysql5}
653 Requires: mysql >= 5.0
654 Requires: mysql-client >= 5.0
657 %if %{mysql} && %{mdk} && ! %{mysql4}
658 Requires: mysql >= 3.23
659 Requires: mysql-client >= 3.23
661 %if %{mysql} && %{mdk} && %{mysql4}
662 Requires: mysql >= 4.0
663 Requires: mysql-client >= 4.0
666 %if %{postgresql} && %{wb3}
667 Requires: rh-postgresql >= 7
668 Requires: rh-postgresql-server >= 7
670 %if %{postgresql} && ! %{wb3}
671 Requires: postgresql >= 7
672 Requires: postgresql-server >= 7
682 %description postgresql
686 Requires: python >= %{pyver}
700 This build requires MySQL to be installed separately as the catalog database.
703 This build requires PostgreSQL to be installed separately as the catalog database.
706 This build incorporates sqlite3 as the catalog database, statically compiled.
709 This build includes python scripting support.
712 %if ! %{client_only} && %{mtx}
714 Summary: Bacula - The Network Backup Solution
715 Group: System Environment/Daemons
719 This is Bacula's version of mtx tape utilities for Linux distributions that
720 do not provide their own mtx package
724 Summary: Bacula - The Network Backup Solution
725 Group: System Environment/Daemons
727 Conflicts: bacula-mysql
728 Conflicts: bacula-sqlite
729 Conflicts: bacula-postgresql
730 Obsoletes: bacula-rescue
732 %if %{su9} || %{su10} || %{su102}
736 Requires: libstdc++, zlib, openssl
739 Requires: glibc >= 2.2
742 %if %{su9} || %{su10}
743 Requires: glibc >= 2.3
747 Requires: glibc >= 2.5
751 Requires: glibc >= 2.6
754 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8}
755 Requires: glibc >= 2.3
759 Requires: glibc >= 2.4
763 Requires: glibc >= 2.5
767 Requires: glibc >= 2.7
772 Requires: python >= %{pyver}
786 This is the File daemon (Client) only package. It includes the command line
789 This build includes python scripting support.
795 Summary: Bacula - The Network Backup Solution
796 Group: System Environment/Daemons
798 %description updatedb
809 This package installs scripts for updating older versions of the bacula
815 Summary: Bacula - The Network Backup Solution
816 Group: System Environment/Daemons
817 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
820 %if %{gconsole} && %{su9}
821 Requires: gtk2 >= 2.0
822 Requires: libgnome >= 2.0
823 Requires: libgnomeui >= 2.0
824 Requires: glibc >= 2.3
826 Requires: libart_lgpl >= 2.0
827 Requires: libbonobo >= 2.0
828 Requires: libbonoboui >= 2.0
829 Requires: bonobo-activation
834 %if %{gconsole} && %{su10}
835 Requires: gtk2 >= 2.8
836 Requires: libgnome >= 2.12
837 Requires: libgnomeui >= 2.12
838 Requires: glibc >= 2.3
840 Requires: libart_lgpl >= 2.3
841 Requires: libbonobo >= 2.10
842 Requires: libbonoboui >= 2.10
843 Requires: bonobo-activation
847 Requires: fontconfig >= 2.3
848 Requires: gnome-vfs2 >= 2.12
851 %if %{gconsole} && %{su102}
852 Requires: gtk2 >= 2.10
853 Requires: libgnome >= 2.16
854 Requires: libgnomeui >= 2.16
855 Requires: glibc >= 2.5
857 Requires: libart_lgpl >= 2.3
858 Requires: libbonobo >= 2.16
859 Requires: libbonoboui >= 2.16
860 Requires: bonobo-activation
864 Requires: fontconfig >= 2.4
865 Requires: gnome-vfs2 >= 2.16
868 %if %{gconsole} && %{su103}
869 Requires: gtk2 >= 2.12
870 Requires: libgnome >= 2.20
871 Requires: libgnomeui >= 2.20
872 Requires: glibc >= 2.6
874 Requires: libart_lgpl >= 2.3
875 Requires: libbonobo >= 2.20
876 Requires: libbonoboui >= 2.20
877 Requires: bonobo-activation
881 Requires: fontconfig >= 2.4
882 Requires: gnome-vfs2 >= 2.20
885 %if %{gconsole} && %{mdk} && !%{mdv}
886 Requires: gtk2 >= 2.0
887 Requires: libgnomeui2
888 Requires: glibc >= 2.3
890 Requires: libart_lgpl >= 2.0
891 Requires: libbonobo >= 2.0
892 Requires: libbonoboui >= 2.0
896 %if %{gconsole} && %{mdv}
897 Requires: gtk2 >= 2.8
898 Requires: libgnomeui2
899 Requires: glibc >= 2.3
901 Requires: libart_lgpl >= 2.3
902 Requires: libbonobo >= 2.10
903 Requires: libbonoboui >= 2.10
907 %if %{gconsole} && %{fc3}
908 Requires: gtk2 >= 2.4
909 Requires: libgnomeui >= 2.8
910 Requires: glibc >= 2.3
912 Requires: libart_lgpl >= 2.3
913 Requires: libbonobo >= 2.8
914 Requires: libbonoboui >= 2.8
915 Requires: bonobo-activation
919 %if %{gconsole} && %{fc4}
920 Requires: gtk2 >= 2.6
921 Requires: libgnomeui >= 2.10
922 Requires: glibc >= 2.3
924 Requires: libart_lgpl >= 2.3
925 Requires: libbonobo >= 2.8
926 Requires: libbonoboui >= 2.8
927 Requires: bonobo-activation
931 %if %{gconsole} && %{fc5}
932 Requires: gtk2 >= 2.8
933 Requires: libgnomeui >= 2.14
934 Requires: glibc >= 2.4
936 Requires: libart_lgpl >= 2.3
937 Requires: libbonobo >= 2.14
938 Requires: libbonoboui >= 2.14
942 %if %{gconsole} && %{fc6}
943 Requires: gtk2 >= 2.10
944 Requires: libgnomeui >= 2.16
945 Requires: glibc >= 2.5
947 Requires: libart_lgpl >= 2.3
948 Requires: libbonobo >= 2.16
949 Requires: libbonoboui >= 2.16
953 %if %{gconsole} && %{fc7}
954 Requires: gtk2 >= 2.10
955 Requires: libgnomeui >= 2.18
956 Requires: glibc >= 2.5
958 Requires: libart_lgpl >= 2.3
959 Requires: libbonobo >= 2.18
960 Requires: libbonoboui >= 2.18
964 %if %{gconsole} && %{fc8}
965 Requires: gtk2 >= 2.12
966 Requires: libgnomeui >= 2.20
967 Requires: glibc >= 2.7
969 Requires: libart_lgpl >= 2.3
970 Requires: libbonobo >= 2.20
971 Requires: libbonoboui >= 2.20
975 %if %{gconsole} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8}
976 Requires: gtk2 >= 2.0
977 Requires: libgnomeui >= 2.0
978 Requires: glibc >= 2.3
980 Requires: libart_lgpl >= 2.0
981 Requires: libbonobo >= 2.0
982 Requires: libbonoboui >= 2.0
983 Requires: bonobo-activation
988 %if %{gconsole} && %{su9}
991 %if %{gconsole} && %{su10}
994 %if %{gconsole} && %{su102}
997 %if %{gconsole} && %{su103}
1000 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103}
1005 %description gconsole
1016 This is the Gnome Console package. It is an add-on to the client or
1022 Summary: Bacula - The Network Backup Solution
1023 Group: System Environment/Daemons
1024 Requires: wxGTK >= 2.6, libstdc++, openssl
1027 %if %{wxconsole} && %{su10}
1028 Requires: gtk2 >= 2.8
1031 %if %{wxconsole} && %{su102}
1032 Requires: gtk2 >= 2.10
1035 %if %{wxconsole} && %{su103}
1036 Requires: gtk2 >= 2.12
1039 %if %{wxconsole} && %{fc3}
1040 Requires: gtk2 >= 2.4
1043 %if %{wxconsole} && %{fc4}
1044 Requires: gtk2 >= 2.6
1047 %if %{wxconsole} && %{fc5}
1048 Requires: gtk2 >= 2.8
1051 %if %{wxconsole} && %{fc6}
1052 Requires: gtk2 >= 2.10
1055 %if %{wxconsole} && %{fc7}
1056 Requires: gtk2 >= 2.10
1059 %if %{wxconsole} && %{fc7}
1060 Requires: gtk2 >= 2.12
1064 %description wxconsole
1075 This is the WXWindows Console package. It is an add-on to the client or
1081 Summary: Bacula - The Network Backup Solution
1082 Group: System Environment/Daemons
1085 %if %{bat} && %{su10}
1087 Requires: glibc >= 2.4
1088 Requires: fontconfig
1097 %if %{bat} && %{su102}
1099 Requires: glibc >= 2.5
1100 Requires: fontconfig
1109 %if %{bat} && %{su103}
1111 Requires: glibc >= 2.6
1112 Requires: fontconfig
1121 %if %{bat} && %{fc5}
1123 Requires: glibc >= 2.4
1124 Requires: fontconfig
1128 Requires: qt4 >= 4.2
1133 %if %{bat} && %{fc6}
1135 Requires: glibc >= 2.5
1136 Requires: fontconfig
1140 Requires: qt4 >= 4.2
1145 %if %{bat} && %{fc7}
1147 Requires: glibc >= 2.5
1148 Requires: fontconfig
1152 Requires: qt4 >= 4.2
1157 %if %{bat} && %{fc8}
1159 Requires: glibc >= 2.7
1160 Requires: fontconfig
1164 Requires: qt4 >= 4.2
1181 This is the Bacula Administration Tool package. It is an add-on to
1182 the client or server packages.
1185 # SuSE turns off stripping of binaries by default. In order to get
1186 # stripped packages we must generate debug package. RedHat and Mandriva
1187 # turn debug packages on by default but strip binaries regardless.
1188 %if %{su9} || %{su10} || %{su102} || %{su103}
1202 %if %{su9} || %{su10} || %{su102} || %{su103}
1203 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
1211 %if ! %{client_only} && %{mtx}
1219 %if %{wb3} || %{old_pgsql}
1220 patch -p3 src/cats/postgresql.c < %SOURCE5
1223 # patches for the bundled sqlite scripts
1225 # patch the make_sqlite_tables script for installation bindir
1226 #patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
1227 patch src/cats/make_sqlite3_tables.in src/cats/make_sqlite3_tables.in.patch
1229 # patch the create_sqlite_database script for installation bindir
1230 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
1231 patch src/cats/create_sqlite3_database.in src/cats/create_sqlite3_database.in.patch
1233 # patch the make_catalog_backup script for installation bindir
1234 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
1236 # patch the update_sqlite_tables script for installation bindir
1237 #patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
1238 patch src/cats/update_sqlite3_tables.in src/cats/update_sqlite3_tables.in.patch
1240 # patch the bacula-dir init script to remove sqlite service
1241 %if %{sqlite} && %{su9}
1242 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1244 %if %{sqlite} && %{su10}
1245 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1247 %if %{sqlite} && %{su102}
1248 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1250 %if %{sqlite} && %{su103}
1251 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1254 # 64 bit lib location hacks
1255 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
1256 # reported to be fixed to properly detect lib locations.
1258 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
1260 %if %{mysql} && %{x86_64}
1261 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
1263 %if %{python} && %{x86_64}
1264 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
1267 # Red Hat's 64 bit installation of QT4 appears to be broken so:
1269 %if %{rhel5} || %{centos5} || %{sl5}
1272 %if %{bat} && %{qt_path} && %{x86_64}
1273 export PATH=/usr/lib64/qt4/bin/:$PATH
1274 export QTDIR=/usr/lib64/qt4/
1275 export QTINC=/usr/lib64/qt4/include/
1276 export QTLIB=/usr/lib64/qt4/
1281 --sbindir=/usr/sbin \
1282 --sysconfdir=%{sysconf_dir} \
1283 --with-scriptdir=%{script_dir} \
1284 --with-working-dir=%{working_dir} \
1285 --with-pid-dir=%{pid_dir} \
1286 --enable-smartalloc \
1287 --enable-client-only \
1297 --sbindir=/usr/sbin \
1298 --sysconfdir=%{sysconf_dir} \
1299 --with-scriptdir=%{script_dir} \
1300 --with-working-dir=%{working_dir} \
1301 --with-pid-dir=%{pid_dir} \
1302 --enable-smartalloc \
1306 %if %{gconsole} && ! %{rh8}
1307 --enable-tray-monitor \
1313 --with-sqlite3=${cwd}/%{depkgs}/sqlite3 \
1319 --enable-bwx-console \
1323 --with-qwt=${cwd}/%{depkgs}/qwt \
1329 --enable-client-only \
1331 %if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{fc3} || %{wb3}
1332 --disable-batch-insert \
1334 --mandir=%{_mandir} \
1335 --with-subsys-dir=/var/lock/subsys \
1336 --with-dir-user=%{director_daemon_user} \
1337 --with-dir-group=%{daemon_group} \
1338 --with-sd-user=%{storage_daemon_user} \
1339 --with-sd-group=%{storage_daemon_group} \
1340 --with-fd-user=%{file_daemon_user} \
1341 --with-fd-group=%{daemon_group} \
1342 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1343 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1344 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1345 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1346 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1347 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1355 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1356 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1357 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1358 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1359 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1360 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1361 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1363 %if %{gconsole} || %{wxconsole} || %{bat}
1364 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1365 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1368 %if %{gconsole} || %{wxconsole} || %{bat}
1369 %define usermode_iftrick 1
1371 %define usermode_iftrick 0
1374 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103}
1375 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1376 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1377 mkdir -p $RPM_BUILD_ROOT/usr/bin
1381 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1385 prefix=$RPM_BUILD_ROOT/usr \
1386 sbindir=$RPM_BUILD_ROOT/usr/sbin \
1387 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1388 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1389 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1390 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1391 mandir=$RPM_BUILD_ROOT%{_mandir} \
1394 %if ! %{client_only} && %{mtx}
1397 prefix=$RPM_BUILD_ROOT/usr \
1398 sbindir=$RPM_BUILD_ROOT/usr/sbin \
1399 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1400 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1401 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1402 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1403 mandir=$RPM_BUILD_ROOT%{_mandir} \
1408 # make install in manpages installs _everything_ shotgun style
1409 # so now delete what we will not be packaging
1411 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
1414 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bat.1.%{manpage_ext}
1417 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
1418 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1421 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.%{manpage_ext}
1422 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1423 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1424 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.%{manpage_ext}
1425 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.%{manpage_ext}
1426 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.%{manpage_ext}
1427 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.%{manpage_ext}
1428 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.%{manpage_ext}
1429 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.%{manpage_ext}
1432 # fixme - make installs the mysql scripts for sqlite build
1434 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1435 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1436 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1439 # fixme - make installs the mysql scripts for postgresql build
1441 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1442 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1445 # fixme - make installs gconsole script for build without gconsole
1447 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1450 rm -f $RPM_BUILD_ROOT/usr/sbin/static-bacula-fd
1452 # install the init scripts
1453 %if %{su9} || %{su10} || %{su102} || %{su103}
1454 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1455 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1456 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1459 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1460 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1461 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1463 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{mdk}
1464 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1465 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1466 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1468 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1470 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1471 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1474 # install the menu stuff
1475 %if %{gconsole} && %{su9}
1476 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1477 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1478 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1479 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1481 %if %{gconsole} && %{su10}
1482 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1483 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1484 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1485 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1487 %if %{gconsole} && %{su102}
1488 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1489 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1490 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1491 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1493 %if %{gconsole} && %{su103}
1494 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1495 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1496 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1497 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1499 %if %{wxconsole} && %{su10}
1500 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1501 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1503 %if %{wxconsole} && %{su102}
1504 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1505 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1507 %if %{wxconsole} && %{su103}
1508 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1509 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1511 %if %{bat} && %{su102}
1512 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1513 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1515 %if %{bat} && %{su103}
1516 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1517 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1519 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{fc6} || %{fc7} || %{fc8} || %{mdk}
1524 %if %{gconsole} && %{iftrick}
1525 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1526 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1527 cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console
1528 cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console
1529 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bgnome-console
1531 %if %{gconsole} && ! %{rh8}
1532 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1533 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1535 %if %{wxconsole} && %{iftrick}
1536 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1537 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1538 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bwx-console
1539 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console
1540 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bwx-console
1542 %if %{bat} && %{iftrick}
1543 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1544 cp -p scripts/bat.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1545 cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat
1546 cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat
1547 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bat
1552 cp -p %{depkgs}/sqlite3/sqlite3 $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3
1553 cp -p %{depkgs}/sqlite3/sqlite3.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3.h
1554 cp -p %{depkgs}/sqlite3/libsqlite3.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite3.a
1557 # install the logrotate file
1558 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1560 # install the updatedb scripts
1561 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
1563 # install the logwatch scripts
1564 %if ! %{client_only}
1565 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1566 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1567 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1568 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1569 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1570 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1573 # install the rescue files
1574 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
1575 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
1576 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
1577 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/
1578 cp -p %{_rescuesrc}/freebsd/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd/
1579 cp -p %{_rescuesrc}/solaris/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/solaris/
1580 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT%{script_dir}/rescue/
1581 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT%{script_dir}/rescue/
1582 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT%{script_dir}/rescue/
1583 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT%{script_dir}/rescue/
1584 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT%{script_dir}/rescue/
1585 cp -pr %{_rescuesrc}/knoppix $RPM_BUILD_ROOT%{script_dir}/rescue/
1586 touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
1587 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
1588 rm -f src/filed/static-bacula-fd
1590 # install bat since make doesn't at the moment
1592 cp -p src/qt-console/bat $RPM_BUILD_ROOT/usr/sbin/bat
1593 cp -p src/qt-console/bat.conf $RPM_BUILD_ROOT%{sysconf_dir}/bat.conf
1596 # now clean up permissions that are left broken by the install
1597 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
1598 %if %{gconsole} && ! %{rh8}
1599 chmod 755 $RPM_BUILD_ROOT/usr/sbin/bacula-tray-monitor
1600 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
1603 # fix me - building enable-client-only installs files not included in bacula-client package
1605 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
1606 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
1607 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
1608 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
1609 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
1610 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
1611 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1612 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1613 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
1617 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1618 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
1619 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
1620 rm -rf $RPM_BUILD_DIR/depkgs
1621 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
1624 # MySQL specific files
1626 %defattr(-, root, root)
1627 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
1628 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
1629 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
1630 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
1631 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
1632 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
1633 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
1634 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
1639 %defattr(-,root,root)
1640 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite3_database
1641 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_database
1642 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite3_privileges
1643 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite3_tables
1644 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_tables
1645 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite3_tables
1646 %{sqlite_bindir}/libsqlite3.a
1647 %{sqlite_bindir}/sqlite3.h
1648 %{sqlite_bindir}/sqlite3
1653 %defattr(-,root,root)
1654 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
1655 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
1656 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
1657 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
1658 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
1659 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
1662 # The rest is DB backend independent
1663 %if ! %{client_only}
1664 %attr(-, root, %{daemon_group}) %dir %{script_dir}
1665 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
1666 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
1667 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
1668 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
1669 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
1670 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
1671 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
1672 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
1673 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
1674 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
1675 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
1676 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
1677 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
1678 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
1679 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
1680 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
1681 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
1682 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
1683 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
1684 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
1685 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
1686 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
1688 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1689 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1691 /etc/logrotate.d/bacula
1692 /etc/log.d/scripts/services/bacula
1693 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
1694 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
1695 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
1696 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
1697 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
1698 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
1699 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
1701 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
1703 /usr/sbin/bacula-dir
1711 /usr/sbin/btraceback
1717 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
1718 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1719 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1720 %{_mandir}/man8/bacula.8.%{manpage_ext}
1721 %{_mandir}/man8/bconsole.8.%{manpage_ext}
1722 %{_mandir}/man8/bcopy.8.%{manpage_ext}
1723 %{_mandir}/man8/bextract.8.%{manpage_ext}
1724 %{_mandir}/man8/bls.8.%{manpage_ext}
1725 %{_mandir}/man8/bscan.8.%{manpage_ext}
1726 %{_mandir}/man8/btape.8.%{manpage_ext}
1727 %{_mandir}/man8/btraceback.8.%{manpage_ext}
1728 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
1729 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
1734 # test for bacula database older than version 9
1735 # note: this ASSUMES no password has been set for bacula database
1736 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1741 # are we upgrading from sqlite to sqlite3?
1742 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
1743 echo "This version of bacula-sqlite involves an upgrade to sqlite3."
1744 echo "Your catalog database file is not compatible with sqlite3, thus"
1745 echo "you will need to dump the data, delete the old file, and re-run"
1746 echo "this rpm upgrade."
1748 echo "Backing up your current database..."
1749 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db > %{working_dir}/bacula_backup.sql
1750 mv %{working_dir}/bacula.db %{working_dir}/bacula.db.old
1751 echo "Your catalog data has been saved in %{working_dir}/bacula_backup.sql and your"
1752 echo "catalog file has been renamed %{working_dir}/bacula.db.old."
1754 echo "Please re-run this rpm package upgrade."
1755 echo "After the upgrade is complete, restore your catalog"
1756 echo "with the following commands:"
1757 echo "%{script_dir}/drop_sqlite3_tables"
1758 echo "cd %{working_dir}"
1759 echo "%{sqlite_bindir}/sqlite3 $* bacula.db < bacula_backup.sql"
1760 echo "chown bacula.bacula bacula.db"
1763 # test for bacula database older than version 9 and sqlite3
1764 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite3 ];then
1765 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1770 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1773 %if ! %{client_only}
1774 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "9" ]; then
1775 echo "This bacula upgrade will update a bacula database from version 9 to 10."
1776 echo "You appear to be running database version $DB_VER. You must first update"
1777 echo "your database to version 9 and then install this upgrade. The alternative"
1778 echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
1779 echo "catalog information, then do the upgrade. Information on updating a"
1780 echo "database older than version 9 can be found in the release notes."
1789 %if ! %{client_only}
1790 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
1791 if [ -s %{sysconf_dir}/console.conf ];then
1792 cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
1795 # create the daemon users and groups
1796 # first create the groups if they don't exist
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."
1803 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
1804 if [ -z "$HAVE_BACULA" ]; then
1805 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
1806 echo "The group %{storage_daemon_group} has been added to %{group_file}."
1807 echo "See the manual chapter \"Running Bacula\" for details."
1809 # now create the users if they do not exist
1810 # we do not use the -g option allowing the primary group to be set to system default
1811 # this will be a unique group on redhat type systems or the group users on some systems
1812 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
1813 if [ -z "$HAVE_BACULA" ]; then
1814 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
1815 echo "The user %{storage_daemon_user} has been added to %{user_file}."
1816 echo "See the manual chapter \"Running Bacula\" for details."
1818 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
1819 if [ -z "$HAVE_BACULA" ]; then
1820 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
1821 echo "The user %{director_daemon_user} has been added to %{user_file}."
1822 echo "See the manual chapter \"Running Bacula\" for details."
1824 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1825 if [ -z "$HAVE_BACULA" ]; then
1826 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1827 echo "The user %{file_daemon_user} has been added to %{user_file}."
1828 echo "See the manual chapter \"Running Bacula\" for details."
1830 # now we add the supplementary groups, this is ok to call even if the users already exist
1831 # we only do this if the user is NOT root
1832 IS_ROOT=%{director_daemon_user}
1833 if [ "$IS_ROOT" != "root" ]; then
1834 %{usermod} -G %{daemon_group} %{director_daemon_user}
1836 IS_ROOT=%{storage_daemon_user}
1837 if [ "$IS_ROOT" != "root" ]; then
1838 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
1840 IS_ROOT=%{file_daemon_user}
1841 if [ "$IS_ROOT" != "root" ]; then
1842 %{usermod} -G %{daemon_group} %{file_daemon_user}
1856 %if ! %{client_only}
1858 if [ "$1" -ge 1 ] ; then
1859 /sbin/chkconfig --add bacula-dir
1860 /sbin/chkconfig --add bacula-fd
1861 /sbin/chkconfig --add bacula-sd
1866 # test for an existing database
1867 # note: this ASSUMES no password has been set for bacula database
1868 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1870 # grant privileges and create tables if they do not exist
1871 if [ -z "$DB_VER" ]; then
1872 echo "Hmm, doesn't look like you have an existing database."
1873 echo "Granting privileges for MySQL user bacula..."
1874 %{script_dir}/grant_mysql_privileges
1875 echo "Creating MySQL bacula database..."
1876 %{script_dir}/create_mysql_database
1877 echo "Creating bacula tables..."
1878 %{script_dir}/make_mysql_tables
1880 # check to see if we need to upgrade a 1.38 or lower database
1881 elif [ "$DB_VER" -lt "10" ]; then
1882 echo "This release requires an upgrade to your bacula database."
1883 echo "Backing up your current database..."
1884 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1885 echo "Upgrading bacula database ..."
1886 %{script_dir}/update_mysql_tables
1887 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1893 # test for an existing database
1894 if [ -s %{working_dir}/bacula.db ]; then
1895 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1896 # check to see if we need to upgrade a 1.38 or lower database
1897 if [ "$DB_VER" -lt "10" ] && [ "$DB_VER" -ge "9" ]; then
1898 echo "This release requires an upgrade to your bacula database."
1899 echo "Backing up your current database..."
1900 echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1901 echo "Upgrading bacula database ..."
1902 %{script_dir}/update_sqlite3_tables
1903 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1906 # create the database and tables
1907 echo "Hmm, doesn't look like you have an existing database."
1908 echo "Creating SQLite database..."
1909 %{script_dir}/create_sqlite3_database
1910 chown %{director_daemon_user}.%{daemon_group} %{working_dir}/bacula.db
1911 echo "Creating the SQLite tables..."
1912 %{script_dir}/make_sqlite3_tables
1917 # test for an existing database
1918 # note: this ASSUMES no password has been set for bacula database
1919 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1921 # grant privileges and create tables if they do not exist
1922 if [ -z "$DB_VER" ]; then
1923 echo "Hmm, doesn't look like you have an existing database."
1924 echo "Creating PostgreSQL bacula database..."
1925 %{script_dir}/create_postgresql_database
1926 echo "Creating bacula tables..."
1927 %{script_dir}/make_postgresql_tables
1928 echo "Granting privileges for PostgreSQL user bacula..."
1929 %{script_dir}/grant_postgresql_privileges
1931 # check to see if we need to upgrade a 1.38 or lower database
1932 elif [ "$DB_VER" -lt "10" ]; then
1933 echo "This release requires an upgrade to your bacula database."
1934 echo "Backing up your current database..."
1935 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1936 echo "Upgrading bacula database ..."
1937 %{script_dir}/update_postgresql_tables
1938 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1943 %if ! %{client_only}
1944 # generate passwords if needed
1945 if [ -d %{sysconf_dir} ]; then
1947 for file in *.conf; do
1948 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
1949 need_password=`grep $string $file 2>/dev/null`
1950 if [ -n "$need_password" ]; then
1951 pass=`openssl rand -base64 33`
1952 sed "s-$string-$pass-g" $file > $file.new
1953 cp -f $file.new $file; rm -f $file.new
1970 %if ! %{client_only}
1973 /sbin/chkconfig --del bacula-dir
1974 /sbin/chkconfig --del bacula-fd
1975 /sbin/chkconfig --del bacula-sd
1980 %if ! %{client_only} && %{mtx}
1982 %defattr(-,root,root)
1983 %attr(-, root, %{storage_daemon_group}) /usr/sbin/loaderinfo
1984 %attr(-, root, %{storage_daemon_group}) /usr/sbin/mtx
1985 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsitape
1986 %attr(-, root, %{storage_daemon_group}) /usr/sbin/tapeinfo
1987 %attr(-, root, %{storage_daemon_group}) /usr/sbin/nsmhack
1988 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsieject
1989 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
1990 %{_mandir}/man1/mtx.1.%{manpage_ext}
1991 %{_mandir}/man1/scsitape.1.%{manpage_ext}
1992 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
1993 %{_mandir}/man1/scsieject.1.%{manpage_ext}
1997 %defattr(-,root,root)
1998 %attr(-, root, %{daemon_group}) %dir %{script_dir}
1999 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
2000 %{script_dir}/bacula-ctl-fd
2001 /etc/init.d/bacula-fd
2002 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2004 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
2005 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
2007 /etc/logrotate.d/bacula
2009 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2010 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2012 %attr(-, root, %{daemon_group}) %dir %{working_dir}
2015 /usr/sbin/btraceback
2016 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2017 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2019 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2020 %{_mandir}/man8/bacula.8.%{manpage_ext}
2021 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2022 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2026 # create the daemon group and user
2027 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2028 if [ -z "$HAVE_BACULA" ]; then
2029 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2030 echo "The group %{daemon_group} has been added to %{group_file}."
2031 echo "See the manual chapter \"Running Bacula\" for details."
2033 # we do not use the -g option allowing the primary group to be set to system default
2034 # this will be a unique group on redhat type systems or the group users on some systems
2035 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2036 if [ -z "$HAVE_BACULA" ]; then
2037 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2038 echo "The user %{file_daemon_user} has been added to %{user_file}."
2039 echo "See the manual chapter \"Running Bacula\" for details."
2041 # now we add the supplementary group, this is ok to call even if the user already exists
2042 # we only do this if the user is NOT root
2043 IS_ROOT=%{file_daemon_user}
2044 if [ "$IS_ROOT" != "root" ]; then
2045 %{usermod} -G %{daemon_group} %{file_daemon_user}
2050 if [ "$1" -ge 1 ] ; then
2051 /sbin/chkconfig --add bacula-fd
2054 # generate passwords if needed
2055 if [ -d %{sysconf_dir} ]; then
2057 for file in *.conf; do
2058 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
2059 need_password=`grep $string $file 2>/dev/null`
2060 if [ -n "$need_password" ]; then
2061 pass=`openssl rand -base64 33`
2062 sed "s-$string-$pass-g" $file > $file.new
2063 cp -f $file.new $file; rm -f $file.new
2072 /sbin/chkconfig --del bacula-fd
2075 %if ! %{client_only}
2077 %defattr(-,root,%{daemon_group})
2078 %{script_dir}/updatedb/*
2081 # create the daemon group
2082 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2083 if [ -z "$HAVE_BACULA" ]; then
2084 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2085 echo "The group %{daemon_group} has been added to %{group_file}."
2086 echo "See the manual chapter \"Running Bacula\" for details."
2090 echo "The database update scripts were installed to %{script_dir}/updatedb"
2095 %defattr(-,root,root)
2096 /usr/sbin/bgnome-console
2097 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2098 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
2099 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bgnome-console.conf
2100 /usr/share/pixmaps/bacula.png
2101 /usr/share/applications/bacula.desktop
2102 %{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
2105 %if %{gconsole} && ! %{rh8}
2106 /usr/sbin/bacula-tray-monitor
2107 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
2108 /usr/share/pixmaps/bacula-tray-monitor.xpm
2109 /usr/share/applications/bacula-tray-monitor.desktop
2110 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
2113 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103}
2114 # add the console helper files
2115 %config(noreplace,missingok) /etc/pam.d/bgnome-console
2116 %config(noreplace,missingok) /etc/security/console.apps/bgnome-console
2117 /usr/bin/bgnome-console
2122 # create the daemon group
2123 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2124 if [ -z "$HAVE_BACULA" ]; then
2125 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2126 echo "The group %{daemon_group} has been added to %{group_file}."
2127 echo "See the manual chapter \"Running Bacula\" for details."
2131 # generate passwords if needed
2132 if [ -d %{sysconf_dir} ]; then
2134 for file in *.conf; do
2135 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
2136 need_password=`grep $string $file 2>/dev/null`
2137 if [ -n "$need_password" ]; then
2138 pass=`openssl rand -base64 33`
2139 sed "s-$string-$pass-g" $file > $file.new
2140 cp -f $file.new $file; rm -f $file.new
2149 %defattr(-,root,root)
2150 /usr/sbin/bwx-console
2151 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2152 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bwx-console.conf
2153 /usr/share/pixmaps/wxwin16x16.xpm
2154 /usr/share/applications/wxconsole.desktop
2155 %{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
2158 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103}
2159 # add the console helper files
2160 %config(noreplace,missingok) /etc/pam.d/bwx-console
2161 %config(noreplace,missingok) /etc/security/console.apps/bwx-console
2162 /usr/bin/bwx-console
2167 # create the daemon group
2168 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2169 if [ -z "$HAVE_BACULA" ]; then
2170 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2171 echo "The group %{daemon_group} has been added to %{group_file}."
2172 echo "See the manual chapter \"Running Bacula\" for details."
2176 # generate passwords if needed
2177 if [ -d %{sysconf_dir} ]; then
2179 for file in *.conf; do
2180 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
2181 need_password=`grep $string $file 2>/dev/null`
2182 if [ -n "$need_password" ]; then
2183 pass=`openssl rand -base64 33`
2184 sed "s-$string-$pass-g" $file > $file.new
2185 cp -f $file.new $file; rm -f $file.new
2194 %defattr(-,root,root)
2196 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2197 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bat.conf
2198 /usr/share/pixmaps/bat_icon.png
2199 /usr/share/applications/bat.desktop
2200 %{_mandir}/man1/bat.1.%{manpage_ext}
2203 %if %{bat} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103}
2204 # add the console helper files
2205 %config(noreplace,missingok) /etc/pam.d/bat
2206 %config(noreplace,missingok) /etc/security/console.apps/bat
2212 # create the daemon group
2213 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2214 if [ -z "$HAVE_BACULA" ]; then
2215 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2216 echo "The group %{daemon_group} has been added to %{group_file}."
2217 echo "See the manual chapter \"Running Bacula\" for details."
2221 # generate passwords if needed
2222 if [ -d %{sysconf_dir} ]; then
2224 for file in *.conf; do
2225 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
2226 need_password=`grep $string $file 2>/dev/null`
2227 if [ -n "$need_password" ]; then
2228 pass=`openssl rand -base64 33`
2229 sed "s-$string-$pass-g" $file > $file.new
2230 cp -f $file.new $file; rm -f $file.new
2238 * Sun Mar 30 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2239 - FHS compatibility changes
2240 * Sat Feb 16 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2241 - remove fix for false buffer overflow detection with glibc >= 2.7
2242 * Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2243 - fix for false buffer overflow detection with glibc >= 2.7
2244 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2246 - add debug package for SuSE
2247 * Sat Jan 12 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2248 - 2.2.8 beta release
2251 * Sun Dec 30 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2252 - fix typo on su103 client package requirements
2253 * Fri Dec 28 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2254 - add nobuild_mtx switch
2255 - add patch for postgresql.c for old postgresql versions
2256 * Sat Nov 17 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2258 * Sun Nov 11 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2259 - add new files required by rescue makefile
2260 * Sat Nov 10 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2261 - add su103 build target
2262 * Sun Nov 04 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2263 - fix dist defines for rhel5 and clones
2264 - fix rhel broken 64 bit QT4 paths
2265 - rh qt4 packages don't provide qt so fix that too
2266 * Mon Oct 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2267 - correct ownership when creating sqlite db file in post script
2268 * Sun Sep 16 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2269 - fix disable-batch-insert
2270 * Fri Sep 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2272 - turn off gconsole build for fc3, tray monitor fails to build
2273 - add new files for mtx package (09Sep07 depkgs update)
2274 * Sat Sep 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2275 - add --disable-batch-insert for older platforms
2276 - add build targets for rhel5 and clones
2277 * Mon Sep 03 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2279 - turn off gconsole build for su10 & fc4, tray monitor fails to build
2280 * Sat Jul 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2281 - 2.1.26 add make of qwt in depkgs for bat
2282 * Sat Jun 02 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2283 - upgrade Qt requirement for bat to 4.2
2284 * Sun May 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2285 - add fc7 build target
2286 * Sun Apr 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2288 - gnome-console now bgnome-console
2289 - wxconsole now bwx-console
2290 - add build option for bat
2291 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2292 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
2293 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
2294 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
2295 - adjust directory locations for FHS-compatibility
2296 sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
2297 working_dir (/var/lib/bacula) and pid_dir (/var/run)
2298 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2299 - add SuSE 10.2 target
2300 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2302 - set query.sql as config file
2304 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2306 - change determination of gcc version per patch from Marc Hennes
2307 - move BuildRequire for atk-devel to gnome only builds
2309 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2311 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2312 - 1.39.26 remove create_sqlite_database.in.patch
2313 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2314 - change ownership of working_dir on server packages to bacula.bacula so that
2315 - bacula-sd can create bootstrap files
2316 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2317 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
2318 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2319 - fix manpages file extension for mdk
2320 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2321 - bug 648 re-enable and update sqlite patches
2325 - lock out gconsole build for gtk+ < 2.4
2326 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2327 - move pango-devel BuildRequires into gconsole only build
2328 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2329 - add provides and conflicts for standard suse packages
2330 - add third party packager tag support
2331 - add build_client_only tag
2332 - remove bsmtp from client package
2333 - add bacula-ctl-fd to client package
2334 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2335 - fix directory creation when wxconsole and not gconsole
2336 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2337 - add check to buildrequires to make sure libstdc++ version matches gcc
2338 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2339 - add python build support
2340 - fix LDFLAGS declarations
2341 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2342 - add requires for standard compiler toolchain
2343 - move version and release tags up
2345 - add docs_version tag
2346 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2347 - update rescuever to 1.8.6
2348 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2349 - update depkgs to 25Jun06
2350 - add mysql5 build tag
2351 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2352 - 1.38.10 bump rescue version
2353 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2354 - fix usermod statements
2356 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2357 - add -g param back to useradd statements Bug 605
2358 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2359 - redundant code cleanup
2360 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2361 - add wxconsole package
2362 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2364 - dependency update for Mandriva
2365 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2367 - remove -n option from useradd scripts
2368 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2370 - fix problem specifying more than one primary group for user bacula
2371 - add build switch to not build gconsole regardless of platform
2372 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2373 - add centos3 build tag
2374 - fix link error of static-fd on Mandrake with --disable-nls
2375 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2376 - add fc4 dependencies
2377 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2378 - add SuSE 10.0 build
2379 - remove specific permission in attrib macros
2380 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2382 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
2383 - refix compat for _dist on SLES9 which seems to have been removed
2384 - added note regarding Aleksandar's use of specific permissions in attrib macros
2385 - need to review and add specific fc4 build currently using fc3 Requires
2386 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2388 - Reorganize files and pre/post sections to remove repetitions
2389 - Always build separate mtx package
2390 - Fix file ownerships for /etc/bacula and Bacula's working dir
2391 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2392 - Disable GNOME on RH7
2393 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2394 - Red Hat and look alikes have mtx RPM, do not build/package our version
2395 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2396 - minor edit to _dist for SLES9 compatibility
2397 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2399 - kern changed location of pdf files and html manual in docs package
2400 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2402 - add docs (from prebuilt tarball) and rescue packages back in
2403 - remove dvd-freespace and dvd-writepart files, add dvd-handler
2404 - remove 3 of 4 sqlite script patches as not needed
2405 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2407 - remove docs and rescue sections (remove static fd)
2408 - add dvd-freespace and dvd-writepart files
2409 - update depkgs to 22Jun05
2410 - change database update to 8 to 9
2411 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2412 - minor cleanups before 1.38 changes
2413 - add popt and popt-devel build dependencies
2414 - add tetex and tetex-dvips dependencies for doc build
2415 - replace deprecated Copyright tag with License
2416 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2417 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
2418 - conflict with sqlite packages. remove readline dependency.
2419 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2420 - release 1.36.3 update docs
2421 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2422 - add centos4 build tag
2423 - add x86_64 build tag
2424 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2425 - add rhel4 build tag
2426 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
2427 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2428 - add rhel3 build tag
2429 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2430 - fix tray-monitor.conf for noreplace
2431 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2432 - fix distribution check for Fedora and Whitebox
2433 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2434 - add logwatch script
2436 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2437 - add build for Fedora Core 3 (linc now included in ORDit2)
2438 - add mysql4 define for Mandrake 10.1
2439 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2440 - fix {group_file} variable in post scripts
2441 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
2442 - add distribution checking and custom Distribution tag
2443 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2444 - ASSIGNMENT OF COPYRIGHT
2445 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
2446 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
2447 - all right, title and interest in and to the copyright in this software RPM
2448 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
2449 - free of all liens, encumbrances or any known claims against said copyright.
2450 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2452 - thanks to Daniel Widyono
2453 - update description for rescue package to describe cdrom creation
2454 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2455 - update depkgs to 29Oct04
2456 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2457 - add cdrom rescue to bacula-rescue package
2458 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2459 - misc fixes from 1.36.0 suse feedback
2460 - fix situation where sqlite database exists but sqlite has been removed.
2461 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2462 - remove tray-monitor from RH8 build
2463 - fix permissions on tray-monitor files
2464 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2465 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
2466 - change database update to 7 to 8 upgrade,
2467 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
2468 - build in 30Jul04, add freetype dependancy to gnome package.
2469 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2470 - add documentation to console for groupadd
2471 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2472 - add support for running daemons as root.bacula
2473 - correct for change in location of floppy rescue files in 1.35.2
2474 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
2475 - updated depgkgs to 30Jul04
2476 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2477 - really, really fix symlink creation for gconsole
2478 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2479 - fix symlink creation in gconsole post install
2480 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2481 - fixed error in gconsole post script
2482 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2483 - add check for gconsole symlink before trying to create it
2484 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2485 - fix some minor permissions issues on doc files that CVS won't let us fix
2486 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2487 - add pkgconfig to BuildRequires
2488 - clean up gnome1/2 menu entries for appropriate packages
2489 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2490 - tightened up doc distribution
2491 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2492 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
2493 - rpm's horrible bug that prevents nested conditional macros prevents me
2494 - from implementing these 2 separate approaches within the conditionals which
2495 - create the separate server packages.
2496 - the solution adopted is to remove the gnome-console files from the server packages
2497 - so bacula-gconsole is now an add on for both client and server packages.
2498 - this also now allows the server packages to be install on machines without
2499 - an X-server and we can still maintain a single spec file.
2500 - added tests to make sure we have defined platform and database macros.
2501 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2502 - corrected mysql prerequisites for suse
2503 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2504 - replaced all cp commands with cp -p
2505 - removed addition of a+x permissions on gnome-console
2506 - corrected permissions on init scripts
2507 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2508 - corrected creation of sqlite_bindir in install from !mysql to sqlite
2510 - various cleanup patches from Michael K. Johnson:
2511 - corrected post install routines for nicer chkconfig
2512 - removed chmod changes in post routines and moved to install section
2513 - removed interactive nature of post routine for rescue package
2514 - added description of building rescue disks to the description of rescue package
2515 - added clean of build root to beginning of install
2516 - removed specifying attr in all file lists
2517 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2518 - added bconsole to client package
2519 - added gconsole package as add-on to client
2520 - removed spurious dependancies on updatedb package (!cut/paste)
2521 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2522 - added updatedb package
2523 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2524 - added postgresql package
2525 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2526 - corrected the if else logic in the dependancy sections
2527 - changes for 1.34 release
2528 - /etc/bacula/console is now /etc/bacula/bconsole
2529 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
2530 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
2531 - /usr/sbin/smtp is now /usr/sbin/bsmtp
2532 - added new /etc/bacula/drop_mysql_database
2533 - added new /etc/bacula/drop_sqlite_database
2534 - added new /etc/bacula/grant_sqlite_privileges
2535 - added new generic bacula database scripts in /etc/bacula
2536 - added pre-install sections to check for database versions older than 6
2537 - added check for /etc/bacula/console.conf and copy to bconsole.conf
2538 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2539 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
2540 - added testing for existing databases before executing any of the database creation scripts
2541 - added defines working_dir and sqlite_bindir in place of hard coded paths
2542 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2543 - added build configuration for SuSE.
2544 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
2545 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2546 - added patch for create_sqlite_database to fix the installed bindir
2547 - added execute of create_sqlite_database to post of sqlite package
2548 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2549 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
2550 - added bacula-fd as Requires for rescue package
2551 - added build tag for Fedora Core 1
2552 - cleaned up dependancies for all builds
2553 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2554 - removed rh_version from package names
2555 - added platform build configuration section to beginning of file
2556 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2557 - removed make_static_bacula script from rescue package install
2558 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2559 - Added define at top of file for depkgs version
2560 - Added rescue sub-package
2561 - Moved requires statements into proper sub-package locations
2562 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2563 - Corrected Requires for Gnome 1.4/2.0 builds
2564 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2565 - Added separate source declaration for depkgs
2566 - added patch for make_catalog_backup script
2567 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2568 - Misc changes to mysql/sqlite build and rh7/8 menu differences
2569 - Added rh_version to sub-package names
2570 - Added installed but missing file /etc/bacula/gconsole
2571 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
2572 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
2573 - Update spec for version 1.31 and combine client
2574 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>