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}
105 %{?build_fc9:%define fc9 1}
106 # Whitebox Enterprise build
108 %{?build_wb3:%define wb3 1}
109 # RedHat Enterprise builds
111 %{?build_rhel3:%define rhel3 1}
112 %{?build_rhel3:%define wb3 1}
114 %{?build_rhel4:%define rhel4 1}
115 %{?build_rhel4:%define fc3 1}
117 %{?build_rhel5:%define rhel5 1}
118 %{?build_rhel5:%define fc6 1}
121 %{?build_centos3:%define centos3 1}
122 %{?build_centos3:%define wb3 1}
124 %{?build_centos4:%define centos4 1}
125 %{?build_centos4:%define fc3 1}
127 %{?build_centos5:%define centos5 1}
128 %{?build_centos5:%define fc6 1}
131 %{?build_sl3:%define sl3 1}
132 %{?build_sl3:%define wb3 1}
134 %{?build_sl4:%define sl4 1}
135 %{?build_sl4:%define fc3 1}
137 %{?build_sl5:%define sl5 1}
138 %{?build_sl5:%define fc6 1}
141 %{?build_su9:%define su9 1}
143 %{?build_su10:%define su10 1}
145 %{?build_su102:%define su102 1}
147 %{?build_su103:%define su103 1}
150 %{?build_mdk:%define mdk 1}
152 %{?build_mdv:%define mdv 1}
153 %{?build_mdv:%define mdk 1}
156 %define client_only 0
157 %{?build_client_only:%define client_only 1}
159 # test for a platform definition
160 %if !%{rh7} && !%{rh8} && !%{rh9} && !%{fc1} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && !%{wb3} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{mdk}
161 %{error: You must specify a platform. Please examine the spec file.}
166 # set for database support desired or define the build_xxx on the command line
168 %{?build_mysql:%define mysql 1}
169 # if using mysql 4.x define this and mysql above
170 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
172 %{?build_mysql4:%define mysql4 1}
173 %{?build_mysql4:%define mysql 1}
174 # if using mysql 5.x define this and mysql above
175 # currently: SuSE 10.1 and Fedora Core 5
177 %{?build_mysql5:%define mysql5 1}
178 %{?build_mysql5:%define mysql 1}
180 %{?build_sqlite:%define sqlite 1}
182 %{?build_postgresql:%define postgresql 1}
184 # test for a database definition
185 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
186 %{error: You must specify database support. Please examine the spec file.}
191 %define db_backend mysql
194 %define db_backend sqlite3
197 %define db_backend postgresql
202 %{?build_x86_64:%define x86_64 1}
204 # check what distribution we are
205 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
206 %define _dist %(grep Red /etc/redhat-release)
208 %if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8} || %{fc9}
209 %define _dist %(grep Fedora /etc/redhat-release)
211 %if %{centos5} || %{centos4} || %{centos3}
212 %define _dist %(grep CentOS /etc/redhat-release)
214 %if %{sl5} ||%{sl4} || %{sl3}
215 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
217 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
218 %define _dist %(grep Fedora /etc/redhat-release)
220 %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
221 %define _dist %(grep Fedora /etc/redhat-release)
223 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
224 %define _dist %(grep White /etc/whitebox-release)
226 %if %{su9} || %{su10} || %{su102} || %{su103}
227 %define _dist %(grep -i SuSE /etc/SuSE-release)
230 %define _dist %(grep Mand /etc/mandrake-release)
232 Distribution: %{_dist}
234 # Should we build gconsole, possible only if gtk= >= 2.4 available.
235 # leaving all the BuildRequires and Requires in place below for now.
236 # su10, fc3 and fc4 now nobuild, tray monitor fails to build as of 2.2.1
237 # release as it needs 2.10
240 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
243 %if %{mdk} && ! %{mdv}
247 # specifically disallow gconsole if desired
248 %{?nobuild_gconsole:%define gconsole 0}
250 # Should we build wxconsole, only wxWidgets >=2.6 is supported
251 # SuSE 10 and FC4 and newer
253 %{?build_wxconsole:%define wxconsole 1}
255 # Should we build bat
258 %{?build_bat:%define bat 1}
260 # should we turn on python support
262 %{?build_python:%define python 1}
264 # specifically disallow build of mtx package if desired
266 %{?nobuild_mtx:%define mtx 0}
268 # do we need to patch for old postgresql version?
270 %{?build_old_pgsql:%define old_pgsql 1}
272 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
274 %define manpage_ext bz2
276 %define manpage_ext gz
279 # for client only build
290 %{expand: %%define gccver %(rpm -q --queryformat %%{version} gcc)}
291 %{expand: %%define gccrel %(rpm -q --queryformat %%{release} gcc)}
293 BuildRequires: gcc, gcc-c++, make, autoconf
294 BuildRequires: ncurses-devel, perl
295 BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, libxml2-devel, zlib-devel
296 BuildRequires: openssl-devel
298 BuildRequires: python, python-devel
299 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
302 BuildRequires: pkgconfig, pango-devel, atk-devel
305 # Rh qt4 packages don't have a provide for, guess what, qt!
306 # still broken in fc8, ok in fc9
307 # so fix for broken rh
309 %if %{rhel5} || %{centos5} || %{sl5} || %{fc5} || %{fc6} || %{fc7} || %{fc8}
312 %if %{bat} && ! %{broken_rh}
313 BuildRequires: qt-devel >= 4.2
315 %if %{bat} && %{broken_rh}
316 BuildRequires: qt4-devel >= 4.2
320 BuildRequires: libtermcap-devel
321 BuildRequires: glibc-devel >= 2.2
324 BuildRequires: termcap
325 BuildRequires: glibc-devel >= 2.3
327 %if %{su9} && %{gconsole}
328 BuildRequires: libgnome >= 2.0
329 BuildRequires: gtk2-devel >= 2.0
330 BuildRequires: libgnomeui-devel >= 2.0
331 BuildRequires: ORBit2-devel
332 BuildRequires: libart_lgpl-devel >= 2.0
333 BuildRequires: libbonobo-devel >= 2.0
334 BuildRequires: libbonoboui-devel >= 2.0
335 BuildRequires: bonobo-activation-devel
336 BuildRequires: gconf2-devel
337 BuildRequires: linc-devel
338 BuildRequires: freetype2-devel
341 BuildRequires: termcap
342 BuildRequires: glibc-devel >= 2.3
344 %if %{su10} && %{gconsole}
345 BuildRequires: libgnome >= 2.12
346 BuildRequires: gtk2-devel >= 2.8
347 BuildRequires: libgnomeui-devel >= 2.12
348 BuildRequires: ORBit2-devel
349 BuildRequires: libart_lgpl-devel >= 2.3
350 BuildRequires: libbonobo-devel >= 2.10
351 BuildRequires: libbonoboui-devel >= 2.10
352 BuildRequires: bonobo-activation-devel
353 BuildRequires: gconf2-devel
354 BuildRequires: freetype2-devel
355 BuildRequires: cairo-devel
356 BuildRequires: fontconfig-devel >= 2.3
357 BuildRequires: gnome-vfs2-devel >= 2.12
358 BuildRequires: libpng-devel
361 BuildRequires: termcap
362 BuildRequires: glibc-devel >= 2.5
364 %if %{su102} && %{gconsole}
365 BuildRequires: libgnome >= 2.16
366 BuildRequires: gtk2-devel >= 2.10
367 BuildRequires: libgnomeui-devel >= 2.16
368 BuildRequires: ORBit2-devel
369 BuildRequires: libart_lgpl-devel >= 2.3
370 BuildRequires: libbonobo-devel >= 2.16
371 BuildRequires: libbonoboui-devel >= 2.16
372 BuildRequires: bonobo-activation-devel
373 BuildRequires: gconf2-devel
374 BuildRequires: freetype2-devel
375 BuildRequires: cairo-devel
376 BuildRequires: fontconfig-devel >= 2.4
377 BuildRequires: gnome-vfs2-devel >= 2.16
378 BuildRequires: libpng-devel
381 BuildRequires: termcap
382 BuildRequires: glibc-devel >= 2.6
384 %if %{su103} && %{gconsole}
385 BuildRequires: libgnome >= 2.20
386 BuildRequires: gtk2-devel >= 2.12
387 BuildRequires: libgnomeui-devel >= 2.20
388 BuildRequires: ORBit2-devel
389 BuildRequires: libart_lgpl-devel >= 2.3
390 BuildRequires: libbonobo-devel >= 2.20
391 BuildRequires: libbonoboui-devel >= 2.20
392 BuildRequires: bonobo-activation-devel
393 BuildRequires: gconf2-devel
394 BuildRequires: freetype2-devel
395 BuildRequires: cairo-devel
396 BuildRequires: fontconfig-devel >= 2.4
397 BuildRequires: gnome-vfs2-devel >= 2.20
398 BuildRequires: libpng-devel
401 BuildRequires: libtermcap-devel
402 BuildRequires: libstdc++-static-devel
403 BuildRequires: glibc-static-devel
404 BuildRequires: glibc-devel >= 2.3
406 %if %{mdk} && !%{mdv} && %{gconsole}
407 BuildRequires: gtk2-devel >= 2.0
408 BuildRequires: libgnomeui2-devel >= 2.0
409 BuildRequires: libORBit2-devel
410 BuildRequires: libart_lgpl-devel >= 2.0
411 BuildRequires: libbonobo2_0-devel
412 BuildRequires: libbonoboui2_0-devel
413 BuildRequires: libbonobo-activation-devel
414 BuildRequires: libGConf2-devel
415 BuildRequires: freetype2-devel
417 %if %{mdv} && %{gconsole}
418 BuildRequires: gtk2-devel >= 2.8
419 BuildRequires: libgnomeui2-devel >= 2.10
420 BuildRequires: libORBit2-devel
421 BuildRequires: libart_lgpl-devel >= 2.3
422 BuildRequires: libbonobo2_0-devel
423 BuildRequires: libbonoboui2_0-devel
424 BuildRequires: libbonobo-activation-devel
425 BuildRequires: libGConf2-devel
426 BuildRequires: freetype2-devel
429 BuildRequires: libtermcap-devel
430 BuildRequires: glibc-devel >= 2.3
432 %if %{fc3} && %{gconsole}
433 BuildRequires: gtk2-devel >= 2.4
434 BuildRequires: libgnomeui-devel >= 2.8
435 BuildRequires: ORBit2-devel
436 BuildRequires: libart_lgpl-devel >= 2.3
437 BuildRequires: libbonobo-devel >= 2.8
438 BuildRequires: libbonoboui-devel >= 2.8
439 BuildRequires: bonobo-activation-devel
440 BuildRequires: GConf2-devel
441 BuildRequires: freetype-devel
444 BuildRequires: libtermcap-devel
445 BuildRequires: glibc-devel >= 2.3
447 %if %{fc4} && %{gconsole}
448 BuildRequires: gtk2-devel >= 2.6
449 BuildRequires: libgnomeui-devel >= 2.10
450 BuildRequires: ORBit2-devel
451 BuildRequires: libart_lgpl-devel >= 2.3
452 BuildRequires: libbonobo-devel >= 2.8
453 BuildRequires: libbonoboui-devel >= 2.8
454 BuildRequires: bonobo-activation-devel
455 BuildRequires: GConf2-devel
456 BuildRequires: freetype-devel
459 BuildRequires: libtermcap-devel
460 BuildRequires: glibc-devel >= 2.4
462 %if %{fc5} && %{gconsole}
463 BuildRequires: gtk2-devel >= 2.8
464 BuildRequires: libgnomeui-devel >= 2.14
465 BuildRequires: ORBit2-devel
466 BuildRequires: libart_lgpl-devel >= 2.3
467 BuildRequires: libbonobo-devel >= 2.14
468 BuildRequires: libbonoboui-devel >= 2.14
469 BuildRequires: GConf2-devel
470 BuildRequires: freetype-devel
473 BuildRequires: libtermcap-devel
474 BuildRequires: glibc-devel >= 2.5
476 %if %{fc6} && %{gconsole}
477 BuildRequires: gtk2-devel >= 2.10
478 BuildRequires: libgnomeui-devel >= 2.16
479 BuildRequires: ORBit2-devel
480 BuildRequires: libart_lgpl-devel >= 2.3
481 BuildRequires: libbonobo-devel >= 2.16
482 BuildRequires: libbonoboui-devel >= 2.16
483 BuildRequires: GConf2-devel
484 BuildRequires: freetype-devel
487 BuildRequires: libtermcap-devel
488 BuildRequires: glibc-devel >= 2.5
490 %if %{fc7} && %{gconsole}
491 BuildRequires: gtk2-devel >= 2.10
492 BuildRequires: libgnomeui-devel >= 2.18
493 BuildRequires: ORBit2-devel
494 BuildRequires: libart_lgpl-devel >= 2.3
495 BuildRequires: libbonobo-devel >= 2.18
496 BuildRequires: libbonoboui-devel >= 2.18
497 BuildRequires: GConf2-devel
498 BuildRequires: freetype-devel
501 BuildRequires: libtermcap-devel
502 BuildRequires: glibc-devel >= 2.7
504 %if %{fc8} && %{gconsole}
505 BuildRequires: gtk2-devel >= 2.12
506 BuildRequires: libgnomeui-devel >= 2.20
507 BuildRequires: ORBit2-devel
508 BuildRequires: libart_lgpl-devel >= 2.3
509 BuildRequires: libbonobo-devel >= 2.20
510 BuildRequires: libbonoboui-devel >= 2.20
511 BuildRequires: GConf2-devel
512 BuildRequires: freetype-devel
515 BuildRequires: libtermcap-devel
516 BuildRequires: glibc-devel >= 2.8
517 BuildRequires: zlib-static
519 %if %{fc9} && %{gconsole}
520 BuildRequires: gtk2-devel >= 2.12
521 BuildRequires: libgnomeui-devel >= 2.22
522 BuildRequires: ORBit2-devel
523 BuildRequires: libart_lgpl-devel >= 2.3
524 BuildRequires: libbonobo-devel >= 2.22
525 BuildRequires: libbonoboui-devel >= 2.22
526 BuildRequires: GConf2-devel
527 BuildRequires: freetype-devel
529 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
530 BuildRequires: libtermcap-devel
531 BuildRequires: glibc-devel >= 2.3
533 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && %{gconsole}
534 BuildRequires: gtk2-devel >= 2.0
535 BuildRequires: libgnomeui-devel >= 2.0
536 BuildRequires: ORBit2-devel
537 BuildRequires: libart_lgpl-devel >= 2.0
538 BuildRequires: libbonobo-devel >= 2.0
539 BuildRequires: libbonoboui-devel >= 2.0
540 BuildRequires: bonobo-activation-devel
541 BuildRequires: GConf2-devel
542 BuildRequires: linc-devel
543 BuildRequires: freetype-devel
546 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
547 BuildRequires: mysql-devel >= 3.23
550 %if %{mysql} && %{mysql4}
551 BuildRequires: mysql-devel >= 4.0
554 %if %{mysql} && %{mysql5}
555 BuildRequires: mysql-devel >= 5.0
558 %if %{postgresql} && %{wb3}
559 BuildRequires: rh-postgresql-devel >= 7
562 %if %{postgresql} && ! %{wb3}
563 BuildRequires: postgresql-devel >= 7
567 BuildRequires: wxGTK-devel >= 2.6
591 Summary: Bacula - The Network Backup Solution
592 Group: System Environment/Daemons
593 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
594 Conflicts: bacula-client
595 Obsoletes: bacula-rescue
597 %if %{su9} || %{su10} || %{su102} || %{su103}
601 Requires: ncurses, libstdc++, zlib, openssl, mtx
604 Requires: glibc >= 2.2
607 %if %{su9} || %{su10}
608 Requires: glibc >= 2.3
612 Requires: glibc >= 2.5
616 Requires: glibc >= 2.6
619 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
620 Requires: glibc >= 2.3
624 Requires: glibc >= 2.4
628 Requires: glibc >= 2.5
632 Requires: glibc >= 2.7
636 Requires: glibc >= 2.8
640 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
641 Requires: mysql >= 3.23
642 Requires: mysql-server >= 3.23
644 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
645 Requires: mysql >= 4.0
646 Requires: mysql-server >= 4.0
648 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{mdk} && %{mysql5}
649 Requires: mysql >= 5.0
650 Requires: mysql-server >= 5.0
653 %if %{mysql} && %{su9} && ! %{mysql4}
654 Requires: mysql >= 3.23
655 Requires: mysql-client >= 3.23
657 %if %{mysql} && %{su9} && %{mysql4}
658 Requires: mysql >= 4.0
659 Requires: mysql-client >= 4.0
661 %if %{mysql} && %{su10} && %{mysql4}
662 Requires: mysql >= 4.0
663 Requires: mysql-client >= 4.0
665 %if %{mysql} && %{su10} && %{mysql5}
666 Requires: mysql >= 5.0
667 Requires: mysql-client >= 5.0
669 %if %{mysql} && %{su102} && %{mysql5}
670 Requires: mysql >= 5.0
671 Requires: mysql-client >= 5.0
673 %if %{mysql} && %{su103} && %{mysql5}
674 Requires: mysql >= 5.0
675 Requires: mysql-client >= 5.0
678 %if %{mysql} && %{mdk} && ! %{mysql4}
679 Requires: mysql >= 3.23
680 Requires: mysql-client >= 3.23
682 %if %{mysql} && %{mdk} && %{mysql4}
683 Requires: mysql >= 4.0
684 Requires: mysql-client >= 4.0
687 %if %{postgresql} && %{wb3}
688 Requires: rh-postgresql >= 7
689 Requires: rh-postgresql-server >= 7
691 %if %{postgresql} && ! %{wb3}
692 Requires: postgresql >= 7
693 Requires: postgresql-server >= 7
703 %description postgresql
707 Requires: python >= %{pyver}
721 This build requires MySQL to be installed separately as the catalog database.
724 This build requires PostgreSQL to be installed separately as the catalog database.
727 This build incorporates sqlite3 as the catalog database, statically compiled.
730 This build includes python scripting support.
733 %if ! %{client_only} && %{mtx}
735 Summary: Bacula - The Network Backup Solution
736 Group: System Environment/Daemons
740 This is Bacula's version of mtx tape utilities for Linux distributions that
741 do not provide their own mtx package
745 Summary: Bacula - The Network Backup Solution
746 Group: System Environment/Daemons
748 Conflicts: bacula-mysql
749 Conflicts: bacula-sqlite
750 Conflicts: bacula-postgresql
751 Obsoletes: bacula-rescue
753 %if %{su9} || %{su10} || %{su102}
757 Requires: libstdc++, zlib, openssl
760 Requires: glibc >= 2.2
763 %if %{su9} || %{su10}
764 Requires: glibc >= 2.3
768 Requires: glibc >= 2.5
772 Requires: glibc >= 2.6
775 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
776 Requires: glibc >= 2.3
780 Requires: glibc >= 2.4
784 Requires: glibc >= 2.5
788 Requires: glibc >= 2.7
792 Requires: glibc >= 2.8
797 Requires: python >= %{pyver}
811 This is the File daemon (Client) only package. It includes the command line
814 This build includes python scripting support.
820 Summary: Bacula - The Network Backup Solution
821 Group: System Environment/Daemons
823 %description updatedb
834 This package installs scripts for updating older versions of the bacula
840 Summary: Bacula - The Network Backup Solution
841 Group: System Environment/Daemons
842 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
845 %if %{gconsole} && %{su9}
846 Requires: gtk2 >= 2.0
847 Requires: libgnome >= 2.0
848 Requires: libgnomeui >= 2.0
849 Requires: glibc >= 2.3
851 Requires: libart_lgpl >= 2.0
852 Requires: libbonobo >= 2.0
853 Requires: libbonoboui >= 2.0
854 Requires: bonobo-activation
859 %if %{gconsole} && %{su10}
860 Requires: gtk2 >= 2.8
861 Requires: libgnome >= 2.12
862 Requires: libgnomeui >= 2.12
863 Requires: glibc >= 2.3
865 Requires: libart_lgpl >= 2.3
866 Requires: libbonobo >= 2.10
867 Requires: libbonoboui >= 2.10
868 Requires: bonobo-activation
872 Requires: fontconfig >= 2.3
873 Requires: gnome-vfs2 >= 2.12
876 %if %{gconsole} && %{su102}
877 Requires: gtk2 >= 2.10
878 Requires: libgnome >= 2.16
879 Requires: libgnomeui >= 2.16
880 Requires: glibc >= 2.5
882 Requires: libart_lgpl >= 2.3
883 Requires: libbonobo >= 2.16
884 Requires: libbonoboui >= 2.16
885 Requires: bonobo-activation
889 Requires: fontconfig >= 2.4
890 Requires: gnome-vfs2 >= 2.16
893 %if %{gconsole} && %{su103}
894 Requires: gtk2 >= 2.12
895 Requires: libgnome >= 2.20
896 Requires: libgnomeui >= 2.20
897 Requires: glibc >= 2.6
899 Requires: libart_lgpl >= 2.3
900 Requires: libbonobo >= 2.20
901 Requires: libbonoboui >= 2.20
902 Requires: bonobo-activation
906 Requires: fontconfig >= 2.4
907 Requires: gnome-vfs2 >= 2.20
910 %if %{gconsole} && %{mdk} && !%{mdv}
911 Requires: gtk2 >= 2.0
912 Requires: libgnomeui2
913 Requires: glibc >= 2.3
915 Requires: libart_lgpl >= 2.0
916 Requires: libbonobo >= 2.0
917 Requires: libbonoboui >= 2.0
921 %if %{gconsole} && %{mdv}
922 Requires: gtk2 >= 2.8
923 Requires: libgnomeui2
924 Requires: glibc >= 2.3
926 Requires: libart_lgpl >= 2.3
927 Requires: libbonobo >= 2.10
928 Requires: libbonoboui >= 2.10
932 %if %{gconsole} && %{fc3}
933 Requires: gtk2 >= 2.4
934 Requires: libgnomeui >= 2.8
935 Requires: glibc >= 2.3
937 Requires: libart_lgpl >= 2.3
938 Requires: libbonobo >= 2.8
939 Requires: libbonoboui >= 2.8
940 Requires: bonobo-activation
944 %if %{gconsole} && %{fc4}
945 Requires: gtk2 >= 2.6
946 Requires: libgnomeui >= 2.10
947 Requires: glibc >= 2.3
949 Requires: libart_lgpl >= 2.3
950 Requires: libbonobo >= 2.8
951 Requires: libbonoboui >= 2.8
952 Requires: bonobo-activation
956 %if %{gconsole} && %{fc5}
957 Requires: gtk2 >= 2.8
958 Requires: libgnomeui >= 2.14
959 Requires: glibc >= 2.4
961 Requires: libart_lgpl >= 2.3
962 Requires: libbonobo >= 2.14
963 Requires: libbonoboui >= 2.14
967 %if %{gconsole} && %{fc6}
968 Requires: gtk2 >= 2.10
969 Requires: libgnomeui >= 2.16
970 Requires: glibc >= 2.5
972 Requires: libart_lgpl >= 2.3
973 Requires: libbonobo >= 2.16
974 Requires: libbonoboui >= 2.16
978 %if %{gconsole} && %{fc7}
979 Requires: gtk2 >= 2.10
980 Requires: libgnomeui >= 2.18
981 Requires: glibc >= 2.5
983 Requires: libart_lgpl >= 2.3
984 Requires: libbonobo >= 2.18
985 Requires: libbonoboui >= 2.18
989 %if %{gconsole} && %{fc8}
990 Requires: gtk2 >= 2.12
991 Requires: libgnomeui >= 2.20
992 Requires: glibc >= 2.7
994 Requires: libart_lgpl >= 2.3
995 Requires: libbonobo >= 2.20
996 Requires: libbonoboui >= 2.20
1000 %if %{gconsole} && %{fc9}
1001 Requires: gtk2 >= 2.12
1002 Requires: libgnomeui >= 2.22
1003 Requires: glibc >= 2.8
1005 Requires: libart_lgpl >= 2.3
1006 Requires: libbonobo >= 2.22
1007 Requires: libbonoboui >= 2.22
1011 %if %{gconsole} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
1012 Requires: gtk2 >= 2.0
1013 Requires: libgnomeui >= 2.0
1014 Requires: glibc >= 2.3
1016 Requires: libart_lgpl >= 2.0
1017 Requires: libbonobo >= 2.0
1018 Requires: libbonoboui >= 2.0
1019 Requires: bonobo-activation
1024 %if %{gconsole} && %{su9}
1027 %if %{gconsole} && %{su10}
1030 %if %{gconsole} && %{su102}
1033 %if %{gconsole} && %{su103}
1036 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103}
1041 %description gconsole
1052 This is the Gnome Console package. It is an add-on to the client or
1058 Summary: Bacula - The Network Backup Solution
1059 Group: System Environment/Daemons
1060 Requires: wxGTK >= 2.6, libstdc++, openssl
1063 %if %{wxconsole} && %{su10}
1064 Requires: gtk2 >= 2.8
1067 %if %{wxconsole} && %{su102}
1068 Requires: gtk2 >= 2.10
1071 %if %{wxconsole} && %{su103}
1072 Requires: gtk2 >= 2.12
1075 %if %{wxconsole} && %{fc3}
1076 Requires: gtk2 >= 2.4
1079 %if %{wxconsole} && %{fc4}
1080 Requires: gtk2 >= 2.6
1083 %if %{wxconsole} && %{fc5}
1084 Requires: gtk2 >= 2.8
1087 %if %{wxconsole} && %{fc6}
1088 Requires: gtk2 >= 2.10
1091 %if %{wxconsole} && %{fc7}
1092 Requires: gtk2 >= 2.10
1095 %if %{wxconsole} && %{fc8}
1096 Requires: gtk2 >= 2.12
1099 %if %{wxconsole} && %{fc9}
1100 Requires: gtk2 >= 2.12
1104 %description wxconsole
1115 This is the WXWindows Console package. It is an add-on to the client or
1121 Summary: Bacula - The Network Backup Solution
1122 Group: System Environment/Daemons
1125 %if %{bat} && %{su10}
1127 Requires: glibc >= 2.4
1128 Requires: fontconfig
1137 %if %{bat} && %{su102}
1139 Requires: glibc >= 2.5
1140 Requires: fontconfig
1149 %if %{bat} && %{su103}
1151 Requires: glibc >= 2.6
1152 Requires: fontconfig
1161 %if %{bat} && %{fc5}
1163 Requires: glibc >= 2.4
1164 Requires: fontconfig
1168 Requires: qt4 >= 4.2
1173 %if %{bat} && %{fc6}
1175 Requires: glibc >= 2.5
1176 Requires: fontconfig
1180 Requires: qt4 >= 4.2
1185 %if %{bat} && %{fc7}
1187 Requires: glibc >= 2.5
1188 Requires: fontconfig
1192 Requires: qt4 >= 4.2
1197 %if %{bat} && %{fc8}
1199 Requires: glibc >= 2.7
1200 Requires: fontconfig
1204 Requires: qt4 >= 4.2
1209 %if %{bat} && %{fc8}
1211 Requires: glibc >= 2.8
1212 Requires: fontconfig
1216 Requires: qt4 >= 4.3
1233 This is the Bacula Administration Tool package. It is an add-on to
1234 the client or server packages.
1237 # SuSE turns off stripping of binaries by default. In order to get
1238 # stripped packages we must generate debug package. RedHat and Mandriva
1239 # turn debug packages on by default but strip binaries regardless.
1240 %if %{su9} || %{su10} || %{su102} || %{su103}
1254 %if %{su9} || %{su10} || %{su102} || %{su103}
1255 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
1263 %if ! %{client_only} && %{mtx}
1271 %if %{wb3} || %{old_pgsql}
1272 patch -p3 src/cats/postgresql.c < %SOURCE5
1275 # patches for the bundled sqlite scripts
1277 # patch the make_sqlite_tables script for installation bindir
1278 #patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
1279 patch src/cats/make_sqlite3_tables.in src/cats/make_sqlite3_tables.in.patch
1281 # patch the create_sqlite_database script for installation bindir
1282 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
1283 patch src/cats/create_sqlite3_database.in src/cats/create_sqlite3_database.in.patch
1285 # patch the make_catalog_backup script for installation bindir
1286 patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
1288 # patch the update_sqlite_tables script for installation bindir
1289 #patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
1290 patch src/cats/update_sqlite3_tables.in src/cats/update_sqlite3_tables.in.patch
1292 # patch the bacula-dir init script to remove sqlite service
1293 %if %{sqlite} && %{su9}
1294 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1296 %if %{sqlite} && %{su10}
1297 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1299 %if %{sqlite} && %{su102}
1300 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1302 %if %{sqlite} && %{su103}
1303 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1306 # 64 bit lib location hacks
1307 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
1308 # reported to be fixed to properly detect lib locations.
1310 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
1312 %if %{mysql} && %{x86_64}
1313 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
1315 %if %{python} && %{x86_64}
1316 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
1319 # Red Hat's 64 bit installation of QT4 appears to be broken so:
1321 %if %{rhel5} || %{centos5} || %{sl5}
1324 %if %{bat} && %{qt_path} && %{x86_64}
1325 export PATH=/usr/lib64/qt4/bin/:$PATH
1326 export QTDIR=/usr/lib64/qt4/
1327 export QTINC=/usr/lib64/qt4/include/
1328 export QTLIB=/usr/lib64/qt4/
1333 --sbindir=/usr/sbin \
1334 --sysconfdir=%{sysconf_dir} \
1335 --with-scriptdir=%{script_dir} \
1336 --with-working-dir=%{working_dir} \
1337 --with-pid-dir=%{pid_dir} \
1338 --enable-smartalloc \
1339 --enable-client-only \
1349 --sbindir=/usr/sbin \
1350 --sysconfdir=%{sysconf_dir} \
1351 --with-scriptdir=%{script_dir} \
1352 --with-working-dir=%{working_dir} \
1353 --with-pid-dir=%{pid_dir} \
1354 --enable-smartalloc \
1358 %if %{gconsole} && ! %{rh8}
1359 --enable-tray-monitor \
1365 --with-sqlite3=${cwd}/%{depkgs}/sqlite3 \
1371 --enable-bwx-console \
1375 --with-qwt=${cwd}/%{depkgs}/qwt \
1381 --enable-client-only \
1383 %if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{fc3} || %{wb3}
1384 --disable-batch-insert \
1386 --mandir=%{_mandir} \
1387 --with-subsys-dir=/var/lock/subsys \
1388 --with-dir-user=%{director_daemon_user} \
1389 --with-dir-group=%{daemon_group} \
1390 --with-sd-user=%{storage_daemon_user} \
1391 --with-sd-group=%{storage_daemon_group} \
1392 --with-fd-user=%{file_daemon_user} \
1393 --with-fd-group=%{daemon_group} \
1394 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1395 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1396 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1397 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1398 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1399 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1407 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1408 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1409 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1410 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1411 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1412 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1413 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1415 %if %{gconsole} || %{wxconsole} || %{bat}
1416 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1417 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1420 %if %{gconsole} || %{wxconsole} || %{bat}
1421 %define usermode_iftrick 1
1423 %define usermode_iftrick 0
1426 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103}
1427 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1428 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1429 mkdir -p $RPM_BUILD_ROOT/usr/bin
1433 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1437 prefix=$RPM_BUILD_ROOT/usr \
1438 sbindir=$RPM_BUILD_ROOT/usr/sbin \
1439 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1440 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1441 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1442 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1443 mandir=$RPM_BUILD_ROOT%{_mandir} \
1446 %if ! %{client_only} && %{mtx}
1449 prefix=$RPM_BUILD_ROOT/usr \
1450 sbindir=$RPM_BUILD_ROOT/usr/sbin \
1451 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1452 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1453 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1454 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1455 mandir=$RPM_BUILD_ROOT%{_mandir} \
1460 # make install in manpages installs _everything_ shotgun style
1461 # so now delete what we will not be packaging
1463 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
1466 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bat.1.%{manpage_ext}
1469 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
1470 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1473 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.%{manpage_ext}
1474 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1475 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1476 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.%{manpage_ext}
1477 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.%{manpage_ext}
1478 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.%{manpage_ext}
1479 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.%{manpage_ext}
1480 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.%{manpage_ext}
1481 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.%{manpage_ext}
1484 # fixme - make installs the mysql scripts for sqlite build
1486 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1487 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1488 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1491 # fixme - make installs the mysql scripts for postgresql build
1493 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1494 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1497 # fixme - make installs gconsole script for build without gconsole
1499 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1502 rm -f $RPM_BUILD_ROOT/usr/sbin/static-bacula-fd
1504 # install the init scripts
1505 %if %{su9} || %{su10} || %{su102} || %{su103}
1506 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1507 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1508 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1511 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1512 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1513 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1515 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{mdk}
1516 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1517 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1518 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1520 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1522 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1523 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1526 # install the menu stuff
1527 %if %{gconsole} && %{su9}
1528 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1529 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1530 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1531 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1533 %if %{gconsole} && %{su10}
1534 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1535 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1536 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1537 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1539 %if %{gconsole} && %{su102}
1540 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1541 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1542 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1543 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1545 %if %{gconsole} && %{su103}
1546 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1547 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1548 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1549 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1551 %if %{wxconsole} && %{su10}
1552 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1553 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1555 %if %{wxconsole} && %{su102}
1556 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1557 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1559 %if %{wxconsole} && %{su103}
1560 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1561 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1563 %if %{bat} && %{su102}
1564 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1565 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1567 %if %{bat} && %{su103}
1568 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1569 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1571 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{fc6} || %{fc7} || %{fc8} || %{fc9} || %{mdk}
1576 %if %{gconsole} && %{iftrick}
1577 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1578 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1579 cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console
1580 cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console
1581 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bgnome-console
1583 %if %{gconsole} && ! %{rh8}
1584 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1585 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1587 %if %{wxconsole} && %{iftrick}
1588 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1589 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1590 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bwx-console
1591 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console
1592 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bwx-console
1594 %if %{bat} && %{iftrick}
1595 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1596 cp -p scripts/bat.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1597 cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat
1598 cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat
1599 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/bat
1604 cp -p %{depkgs}/sqlite3/sqlite3 $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3
1605 cp -p %{depkgs}/sqlite3/sqlite3.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3.h
1606 cp -p %{depkgs}/sqlite3/libsqlite3.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite3.a
1609 # install the logrotate file
1610 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1612 # install the updatedb scripts
1613 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
1615 # install the logwatch scripts
1616 %if ! %{client_only}
1617 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1618 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1619 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1620 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1621 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1622 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1625 # install the rescue files
1626 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
1627 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
1628 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
1629 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/
1630 cp -p %{_rescuesrc}/freebsd/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd/
1631 cp -p %{_rescuesrc}/solaris/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/solaris/
1632 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT%{script_dir}/rescue/
1633 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT%{script_dir}/rescue/
1634 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT%{script_dir}/rescue/
1635 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT%{script_dir}/rescue/
1636 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT%{script_dir}/rescue/
1637 cp -pr %{_rescuesrc}/knoppix $RPM_BUILD_ROOT%{script_dir}/rescue/
1638 touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
1639 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
1640 rm -f src/filed/static-bacula-fd
1642 # install bat since make doesn't at the moment
1644 cp -p src/qt-console/bat $RPM_BUILD_ROOT/usr/sbin/bat
1645 cp -p src/qt-console/bat.conf $RPM_BUILD_ROOT%{sysconf_dir}/bat.conf
1648 # now clean up permissions that are left broken by the install
1649 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
1650 %if %{gconsole} && ! %{rh8}
1651 chmod 755 $RPM_BUILD_ROOT/usr/sbin/bacula-tray-monitor
1652 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
1655 # fix me - building enable-client-only installs files not included in bacula-client package
1657 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
1658 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
1659 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
1660 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
1661 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
1662 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
1663 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1664 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1665 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
1669 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1670 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
1671 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
1672 rm -rf $RPM_BUILD_DIR/depkgs
1673 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
1676 # MySQL specific files
1678 %defattr(-, root, root)
1679 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
1680 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
1681 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
1682 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
1683 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
1684 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
1685 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
1686 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
1691 %defattr(-,root,root)
1692 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite3_database
1693 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_database
1694 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite3_privileges
1695 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite3_tables
1696 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_tables
1697 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite3_tables
1698 %{sqlite_bindir}/libsqlite3.a
1699 %{sqlite_bindir}/sqlite3.h
1700 %{sqlite_bindir}/sqlite3
1705 %defattr(-,root,root)
1706 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
1707 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
1708 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
1709 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
1710 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
1711 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
1714 # The rest is DB backend independent
1715 %if ! %{client_only}
1716 %attr(-, root, %{daemon_group}) %dir %{script_dir}
1717 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
1718 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
1719 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
1720 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
1721 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
1722 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
1723 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
1724 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
1725 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
1726 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
1727 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
1728 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
1729 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
1730 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
1731 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
1732 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
1733 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
1734 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
1735 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
1736 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
1737 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
1738 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
1740 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
1741 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1743 /etc/logrotate.d/bacula
1744 /etc/log.d/scripts/services/bacula
1745 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
1746 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
1747 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
1748 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
1749 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
1750 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
1751 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
1753 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
1755 /usr/sbin/bacula-dir
1763 /usr/sbin/btraceback
1769 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
1770 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1771 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1772 %{_mandir}/man8/bacula.8.%{manpage_ext}
1773 %{_mandir}/man8/bconsole.8.%{manpage_ext}
1774 %{_mandir}/man8/bcopy.8.%{manpage_ext}
1775 %{_mandir}/man8/bextract.8.%{manpage_ext}
1776 %{_mandir}/man8/bls.8.%{manpage_ext}
1777 %{_mandir}/man8/bscan.8.%{manpage_ext}
1778 %{_mandir}/man8/btape.8.%{manpage_ext}
1779 %{_mandir}/man8/btraceback.8.%{manpage_ext}
1780 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
1781 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
1786 # test for bacula database older than version 9
1787 # note: this ASSUMES no password has been set for bacula database
1788 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1793 # are we upgrading from sqlite to sqlite3?
1794 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
1795 echo "This version of bacula-sqlite involves an upgrade to sqlite3."
1796 echo "Your catalog database file is not compatible with sqlite3, thus"
1797 echo "you will need to dump the data, delete the old file, and re-run"
1798 echo "this rpm upgrade."
1800 echo "Backing up your current database..."
1801 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db > %{working_dir}/bacula_backup.sql
1802 mv %{working_dir}/bacula.db %{working_dir}/bacula.db.old
1803 echo "Your catalog data has been saved in %{working_dir}/bacula_backup.sql and your"
1804 echo "catalog file has been renamed %{working_dir}/bacula.db.old."
1806 echo "Please re-run this rpm package upgrade."
1807 echo "After the upgrade is complete, restore your catalog"
1808 echo "with the following commands:"
1809 echo "%{script_dir}/drop_sqlite3_tables"
1810 echo "cd %{working_dir}"
1811 echo "%{sqlite_bindir}/sqlite3 $* bacula.db < bacula_backup.sql"
1812 echo "chown bacula.bacula bacula.db"
1815 # test for bacula database older than version 9 and sqlite3
1816 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite3 ];then
1817 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1822 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1825 %if ! %{client_only}
1826 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "9" ]; then
1827 echo "This bacula upgrade will update a bacula database from version 9 to 10."
1828 echo "You appear to be running database version $DB_VER. You must first update"
1829 echo "your database to version 9 and then install this upgrade. The alternative"
1830 echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
1831 echo "catalog information, then do the upgrade. Information on updating a"
1832 echo "database older than version 9 can be found in the release notes."
1841 %if ! %{client_only}
1842 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
1843 if [ -s %{sysconf_dir}/console.conf ];then
1844 cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
1847 # create the daemon users and groups
1848 # first create the groups if they don't exist
1849 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1850 if [ -z "$HAVE_BACULA" ]; then
1851 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1852 echo "The group %{daemon_group} has been added to %{group_file}."
1853 echo "See the manual chapter \"Running Bacula\" for details."
1855 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
1856 if [ -z "$HAVE_BACULA" ]; then
1857 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
1858 echo "The group %{storage_daemon_group} has been added to %{group_file}."
1859 echo "See the manual chapter \"Running Bacula\" for details."
1861 # now create the users if they do not exist
1862 # we do not use the -g option allowing the primary group to be set to system default
1863 # this will be a unique group on redhat type systems or the group users on some systems
1864 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
1865 if [ -z "$HAVE_BACULA" ]; then
1866 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
1867 echo "The user %{storage_daemon_user} has been added to %{user_file}."
1868 echo "See the manual chapter \"Running Bacula\" for details."
1870 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
1871 if [ -z "$HAVE_BACULA" ]; then
1872 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
1873 echo "The user %{director_daemon_user} has been added to %{user_file}."
1874 echo "See the manual chapter \"Running Bacula\" for details."
1876 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1877 if [ -z "$HAVE_BACULA" ]; then
1878 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1879 echo "The user %{file_daemon_user} has been added to %{user_file}."
1880 echo "See the manual chapter \"Running Bacula\" for details."
1882 # now we add the supplementary groups, this is ok to call even if the users already exist
1883 # we only do this if the user is NOT root
1884 IS_ROOT=%{director_daemon_user}
1885 if [ "$IS_ROOT" != "root" ]; then
1886 %{usermod} -G %{daemon_group} %{director_daemon_user}
1888 IS_ROOT=%{storage_daemon_user}
1889 if [ "$IS_ROOT" != "root" ]; then
1890 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
1892 IS_ROOT=%{file_daemon_user}
1893 if [ "$IS_ROOT" != "root" ]; then
1894 %{usermod} -G %{daemon_group} %{file_daemon_user}
1908 %if ! %{client_only}
1910 if [ "$1" -ge 1 ] ; then
1911 /sbin/chkconfig --add bacula-dir
1912 /sbin/chkconfig --add bacula-fd
1913 /sbin/chkconfig --add bacula-sd
1918 # test for an existing database
1919 # note: this ASSUMES no password has been set for bacula database
1920 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1922 # grant privileges and create tables if they do not exist
1923 if [ -z "$DB_VER" ]; then
1924 echo "Hmm, doesn't look like you have an existing database."
1925 echo "Granting privileges for MySQL user bacula..."
1926 %{script_dir}/grant_mysql_privileges
1927 echo "Creating MySQL bacula database..."
1928 %{script_dir}/create_mysql_database
1929 echo "Creating bacula tables..."
1930 %{script_dir}/make_mysql_tables
1932 # check to see if we need to upgrade a 1.38 or lower database
1933 elif [ "$DB_VER" -lt "10" ]; then
1934 echo "This release requires an upgrade to your bacula database."
1935 echo "Backing up your current database..."
1936 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1937 echo "Upgrading bacula database ..."
1938 %{script_dir}/update_mysql_tables
1939 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1945 # test for an existing database
1946 if [ -s %{working_dir}/bacula.db ]; then
1947 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1948 # check to see if we need to upgrade a 1.38 or lower database
1949 if [ "$DB_VER" -lt "10" ] && [ "$DB_VER" -ge "9" ]; then
1950 echo "This release requires an upgrade to your bacula database."
1951 echo "Backing up your current database..."
1952 echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1953 echo "Upgrading bacula database ..."
1954 %{script_dir}/update_sqlite3_tables
1955 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1958 # create the database and tables
1959 echo "Hmm, doesn't look like you have an existing database."
1960 echo "Creating SQLite database..."
1961 %{script_dir}/create_sqlite3_database
1962 chown %{director_daemon_user}.%{daemon_group} %{working_dir}/bacula.db
1963 echo "Creating the SQLite tables..."
1964 %{script_dir}/make_sqlite3_tables
1969 # test for an existing database
1970 # note: this ASSUMES no password has been set for bacula database
1971 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1973 # grant privileges and create tables if they do not exist
1974 if [ -z "$DB_VER" ]; then
1975 echo "Hmm, doesn't look like you have an existing database."
1976 echo "Creating PostgreSQL bacula database..."
1977 %{script_dir}/create_postgresql_database
1978 echo "Creating bacula tables..."
1979 %{script_dir}/make_postgresql_tables
1980 echo "Granting privileges for PostgreSQL user bacula..."
1981 %{script_dir}/grant_postgresql_privileges
1983 # check to see if we need to upgrade a 1.38 or lower database
1984 elif [ "$DB_VER" -lt "10" ]; then
1985 echo "This release requires an upgrade to your bacula database."
1986 echo "Backing up your current database..."
1987 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1988 echo "Upgrading bacula database ..."
1989 %{script_dir}/update_postgresql_tables
1990 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1995 %if ! %{client_only}
1996 # generate passwords if needed
1997 if [ -d %{sysconf_dir} ]; then
1999 for file in *.conf; do
2000 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
2001 need_password=`grep $string $file 2>/dev/null`
2002 if [ -n "$need_password" ]; then
2003 pass=`openssl rand -base64 33`
2004 sed "s-$string-$pass-g" $file > $file.new
2005 cp -f $file.new $file; rm -f $file.new
2022 %if ! %{client_only}
2025 /sbin/chkconfig --del bacula-dir
2026 /sbin/chkconfig --del bacula-fd
2027 /sbin/chkconfig --del bacula-sd
2032 %if ! %{client_only} && %{mtx}
2034 %defattr(-,root,root)
2035 %attr(-, root, %{storage_daemon_group}) /usr/sbin/loaderinfo
2036 %attr(-, root, %{storage_daemon_group}) /usr/sbin/mtx
2037 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsitape
2038 %attr(-, root, %{storage_daemon_group}) /usr/sbin/tapeinfo
2039 %attr(-, root, %{storage_daemon_group}) /usr/sbin/nsmhack
2040 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsieject
2041 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
2042 %{_mandir}/man1/mtx.1.%{manpage_ext}
2043 %{_mandir}/man1/scsitape.1.%{manpage_ext}
2044 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
2045 %{_mandir}/man1/scsieject.1.%{manpage_ext}
2049 %defattr(-,root,root)
2050 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2051 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
2052 %{script_dir}/bacula-ctl-fd
2053 /etc/init.d/bacula-fd
2054 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2056 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo
2057 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
2059 /etc/logrotate.d/bacula
2061 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2062 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2064 %attr(-, root, %{daemon_group}) %dir %{working_dir}
2067 /usr/sbin/btraceback
2068 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2069 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2071 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2072 %{_mandir}/man8/bacula.8.%{manpage_ext}
2073 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2074 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2078 # create the daemon group and user
2079 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2080 if [ -z "$HAVE_BACULA" ]; then
2081 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2082 echo "The group %{daemon_group} has been added to %{group_file}."
2083 echo "See the manual chapter \"Running Bacula\" for details."
2085 # we do not use the -g option allowing the primary group to be set to system default
2086 # this will be a unique group on redhat type systems or the group users on some systems
2087 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2088 if [ -z "$HAVE_BACULA" ]; then
2089 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2090 echo "The user %{file_daemon_user} has been added to %{user_file}."
2091 echo "See the manual chapter \"Running Bacula\" for details."
2093 # now we add the supplementary group, this is ok to call even if the user already exists
2094 # we only do this if the user is NOT root
2095 IS_ROOT=%{file_daemon_user}
2096 if [ "$IS_ROOT" != "root" ]; then
2097 %{usermod} -G %{daemon_group} %{file_daemon_user}
2102 if [ "$1" -ge 1 ] ; then
2103 /sbin/chkconfig --add bacula-fd
2106 # generate passwords if needed
2107 if [ -d %{sysconf_dir} ]; then
2109 for file in *.conf; do
2110 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
2111 need_password=`grep $string $file 2>/dev/null`
2112 if [ -n "$need_password" ]; then
2113 pass=`openssl rand -base64 33`
2114 sed "s-$string-$pass-g" $file > $file.new
2115 cp -f $file.new $file; rm -f $file.new
2124 /sbin/chkconfig --del bacula-fd
2127 %if ! %{client_only}
2129 %defattr(-,root,%{daemon_group})
2130 %{script_dir}/updatedb/*
2133 # create the daemon group
2134 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2135 if [ -z "$HAVE_BACULA" ]; then
2136 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2137 echo "The group %{daemon_group} has been added to %{group_file}."
2138 echo "See the manual chapter \"Running Bacula\" for details."
2142 echo "The database update scripts were installed to %{script_dir}/updatedb"
2147 %defattr(-,root,root)
2148 /usr/sbin/bgnome-console
2149 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2150 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
2151 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bgnome-console.conf
2152 /usr/share/pixmaps/bacula.png
2153 /usr/share/applications/bacula.desktop
2154 %{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
2157 %if %{gconsole} && ! %{rh8}
2158 /usr/sbin/bacula-tray-monitor
2159 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
2160 /usr/share/pixmaps/bacula-tray-monitor.xpm
2161 /usr/share/applications/bacula-tray-monitor.desktop
2162 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
2165 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103}
2166 # add the console helper files
2167 %config(noreplace,missingok) /etc/pam.d/bgnome-console
2168 %config(noreplace,missingok) /etc/security/console.apps/bgnome-console
2169 /usr/bin/bgnome-console
2174 # create the daemon group
2175 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2176 if [ -z "$HAVE_BACULA" ]; then
2177 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2178 echo "The group %{daemon_group} has been added to %{group_file}."
2179 echo "See the manual chapter \"Running Bacula\" for details."
2183 # generate passwords if needed
2184 if [ -d %{sysconf_dir} ]; then
2186 for file in *.conf; do
2187 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
2188 need_password=`grep $string $file 2>/dev/null`
2189 if [ -n "$need_password" ]; then
2190 pass=`openssl rand -base64 33`
2191 sed "s-$string-$pass-g" $file > $file.new
2192 cp -f $file.new $file; rm -f $file.new
2201 %defattr(-,root,root)
2202 /usr/sbin/bwx-console
2203 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2204 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bwx-console.conf
2205 /usr/share/pixmaps/wxwin16x16.xpm
2206 /usr/share/applications/wxconsole.desktop
2207 %{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
2210 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103}
2211 # add the console helper files
2212 %config(noreplace,missingok) /etc/pam.d/bwx-console
2213 %config(noreplace,missingok) /etc/security/console.apps/bwx-console
2214 /usr/bin/bwx-console
2219 # create the daemon group
2220 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2221 if [ -z "$HAVE_BACULA" ]; then
2222 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2223 echo "The group %{daemon_group} has been added to %{group_file}."
2224 echo "See the manual chapter \"Running Bacula\" for details."
2228 # generate passwords if needed
2229 if [ -d %{sysconf_dir} ]; then
2231 for file in *.conf; do
2232 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
2233 need_password=`grep $string $file 2>/dev/null`
2234 if [ -n "$need_password" ]; then
2235 pass=`openssl rand -base64 33`
2236 sed "s-$string-$pass-g" $file > $file.new
2237 cp -f $file.new $file; rm -f $file.new
2246 %defattr(-,root,root)
2248 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2249 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bat.conf
2250 /usr/share/pixmaps/bat_icon.png
2251 /usr/share/applications/bat.desktop
2252 %{_mandir}/man1/bat.1.%{manpage_ext}
2255 %if %{bat} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103}
2256 # add the console helper files
2257 %config(noreplace,missingok) /etc/pam.d/bat
2258 %config(noreplace,missingok) /etc/security/console.apps/bat
2264 # create the daemon group
2265 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2266 if [ -z "$HAVE_BACULA" ]; then
2267 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2268 echo "The group %{daemon_group} has been added to %{group_file}."
2269 echo "See the manual chapter \"Running Bacula\" for details."
2273 # generate passwords if needed
2274 if [ -d %{sysconf_dir} ]; then
2276 for file in *.conf; do
2277 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
2278 need_password=`grep $string $file 2>/dev/null`
2279 if [ -n "$need_password" ]; then
2280 pass=`openssl rand -base64 33`
2281 sed "s-$string-$pass-g" $file > $file.new
2282 cp -f $file.new $file; rm -f $file.new
2290 * Sat May 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2292 * Sun Mar 30 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2293 - FHS compatibility changes
2294 * Sat Feb 16 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2295 - remove fix for false buffer overflow detection with glibc >= 2.7
2296 * Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2297 - fix for false buffer overflow detection with glibc >= 2.7
2298 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2300 - add debug package for SuSE
2301 * Sat Jan 12 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2302 - 2.2.8 beta release
2305 * Sun Dec 30 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2306 - fix typo on su103 client package requirements
2307 * Fri Dec 28 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2308 - add nobuild_mtx switch
2309 - add patch for postgresql.c for old postgresql versions
2310 * Sat Nov 17 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2312 * Sun Nov 11 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2313 - add new files required by rescue makefile
2314 * Sat Nov 10 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2315 - add su103 build target
2316 * Sun Nov 04 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2317 - fix dist defines for rhel5 and clones
2318 - fix rhel broken 64 bit QT4 paths
2319 - rh qt4 packages don't provide qt so fix that too
2320 * Mon Oct 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2321 - correct ownership when creating sqlite db file in post script
2322 * Sun Sep 16 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2323 - fix disable-batch-insert
2324 * Fri Sep 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2326 - turn off gconsole build for fc3, tray monitor fails to build
2327 - add new files for mtx package (09Sep07 depkgs update)
2328 * Sat Sep 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2329 - add --disable-batch-insert for older platforms
2330 - add build targets for rhel5 and clones
2331 * Mon Sep 03 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2333 - turn off gconsole build for su10 & fc4, tray monitor fails to build
2334 * Sat Jul 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2335 - 2.1.26 add make of qwt in depkgs for bat
2336 * Sat Jun 02 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2337 - upgrade Qt requirement for bat to 4.2
2338 * Sun May 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2339 - add fc7 build target
2340 * Sun Apr 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2342 - gnome-console now bgnome-console
2343 - wxconsole now bwx-console
2344 - add build option for bat
2345 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2346 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
2347 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
2348 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
2349 - adjust directory locations for FHS-compatibility
2350 sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
2351 working_dir (/var/lib/bacula) and pid_dir (/var/run)
2352 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2353 - add SuSE 10.2 target
2354 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2356 - set query.sql as config file
2358 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2360 - change determination of gcc version per patch from Marc Hennes
2361 - move BuildRequire for atk-devel to gnome only builds
2363 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2365 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2366 - 1.39.26 remove create_sqlite_database.in.patch
2367 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2368 - change ownership of working_dir on server packages to bacula.bacula so that
2369 - bacula-sd can create bootstrap files
2370 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2371 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
2372 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2373 - fix manpages file extension for mdk
2374 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2375 - bug 648 re-enable and update sqlite patches
2379 - lock out gconsole build for gtk+ < 2.4
2380 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2381 - move pango-devel BuildRequires into gconsole only build
2382 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2383 - add provides and conflicts for standard suse packages
2384 - add third party packager tag support
2385 - add build_client_only tag
2386 - remove bsmtp from client package
2387 - add bacula-ctl-fd to client package
2388 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2389 - fix directory creation when wxconsole and not gconsole
2390 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2391 - add check to buildrequires to make sure libstdc++ version matches gcc
2392 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2393 - add python build support
2394 - fix LDFLAGS declarations
2395 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2396 - add requires for standard compiler toolchain
2397 - move version and release tags up
2399 - add docs_version tag
2400 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2401 - update rescuever to 1.8.6
2402 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2403 - update depkgs to 25Jun06
2404 - add mysql5 build tag
2405 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2406 - 1.38.10 bump rescue version
2407 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2408 - fix usermod statements
2410 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2411 - add -g param back to useradd statements Bug 605
2412 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2413 - redundant code cleanup
2414 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2415 - add wxconsole package
2416 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2418 - dependency update for Mandriva
2419 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2421 - remove -n option from useradd scripts
2422 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2424 - fix problem specifying more than one primary group for user bacula
2425 - add build switch to not build gconsole regardless of platform
2426 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2427 - add centos3 build tag
2428 - fix link error of static-fd on Mandrake with --disable-nls
2429 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2430 - add fc4 dependencies
2431 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2432 - add SuSE 10.0 build
2433 - remove specific permission in attrib macros
2434 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2436 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
2437 - refix compat for _dist on SLES9 which seems to have been removed
2438 - added note regarding Aleksandar's use of specific permissions in attrib macros
2439 - need to review and add specific fc4 build currently using fc3 Requires
2440 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2442 - Reorganize files and pre/post sections to remove repetitions
2443 - Always build separate mtx package
2444 - Fix file ownerships for /etc/bacula and Bacula's working dir
2445 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2446 - Disable GNOME on RH7
2447 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2448 - Red Hat and look alikes have mtx RPM, do not build/package our version
2449 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2450 - minor edit to _dist for SLES9 compatibility
2451 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2453 - kern changed location of pdf files and html manual in docs package
2454 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2456 - add docs (from prebuilt tarball) and rescue packages back in
2457 - remove dvd-freespace and dvd-writepart files, add dvd-handler
2458 - remove 3 of 4 sqlite script patches as not needed
2459 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2461 - remove docs and rescue sections (remove static fd)
2462 - add dvd-freespace and dvd-writepart files
2463 - update depkgs to 22Jun05
2464 - change database update to 8 to 9
2465 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2466 - minor cleanups before 1.38 changes
2467 - add popt and popt-devel build dependencies
2468 - add tetex and tetex-dvips dependencies for doc build
2469 - replace deprecated Copyright tag with License
2470 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2471 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
2472 - conflict with sqlite packages. remove readline dependency.
2473 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2474 - release 1.36.3 update docs
2475 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2476 - add centos4 build tag
2477 - add x86_64 build tag
2478 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2479 - add rhel4 build tag
2480 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
2481 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2482 - add rhel3 build tag
2483 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2484 - fix tray-monitor.conf for noreplace
2485 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2486 - fix distribution check for Fedora and Whitebox
2487 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2488 - add logwatch script
2490 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2491 - add build for Fedora Core 3 (linc now included in ORDit2)
2492 - add mysql4 define for Mandrake 10.1
2493 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2494 - fix {group_file} variable in post scripts
2495 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
2496 - add distribution checking and custom Distribution tag
2497 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2498 - ASSIGNMENT OF COPYRIGHT
2499 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
2500 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
2501 - all right, title and interest in and to the copyright in this software RPM
2502 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
2503 - free of all liens, encumbrances or any known claims against said copyright.
2504 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2506 - thanks to Daniel Widyono
2507 - update description for rescue package to describe cdrom creation
2508 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2509 - update depkgs to 29Oct04
2510 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2511 - add cdrom rescue to bacula-rescue package
2512 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2513 - misc fixes from 1.36.0 suse feedback
2514 - fix situation where sqlite database exists but sqlite has been removed.
2515 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2516 - remove tray-monitor from RH8 build
2517 - fix permissions on tray-monitor files
2518 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2519 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
2520 - change database update to 7 to 8 upgrade,
2521 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
2522 - build in 30Jul04, add freetype dependancy to gnome package.
2523 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2524 - add documentation to console for groupadd
2525 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2526 - add support for running daemons as root.bacula
2527 - correct for change in location of floppy rescue files in 1.35.2
2528 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
2529 - updated depgkgs to 30Jul04
2530 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2531 - really, really fix symlink creation for gconsole
2532 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2533 - fix symlink creation in gconsole post install
2534 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2535 - fixed error in gconsole post script
2536 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2537 - add check for gconsole symlink before trying to create it
2538 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2539 - fix some minor permissions issues on doc files that CVS won't let us fix
2540 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2541 - add pkgconfig to BuildRequires
2542 - clean up gnome1/2 menu entries for appropriate packages
2543 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2544 - tightened up doc distribution
2545 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2546 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
2547 - rpm's horrible bug that prevents nested conditional macros prevents me
2548 - from implementing these 2 separate approaches within the conditionals which
2549 - create the separate server packages.
2550 - the solution adopted is to remove the gnome-console files from the server packages
2551 - so bacula-gconsole is now an add on for both client and server packages.
2552 - this also now allows the server packages to be install on machines without
2553 - an X-server and we can still maintain a single spec file.
2554 - added tests to make sure we have defined platform and database macros.
2555 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2556 - corrected mysql prerequisites for suse
2557 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2558 - replaced all cp commands with cp -p
2559 - removed addition of a+x permissions on gnome-console
2560 - corrected permissions on init scripts
2561 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2562 - corrected creation of sqlite_bindir in install from !mysql to sqlite
2564 - various cleanup patches from Michael K. Johnson:
2565 - corrected post install routines for nicer chkconfig
2566 - removed chmod changes in post routines and moved to install section
2567 - removed interactive nature of post routine for rescue package
2568 - added description of building rescue disks to the description of rescue package
2569 - added clean of build root to beginning of install
2570 - removed specifying attr in all file lists
2571 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2572 - added bconsole to client package
2573 - added gconsole package as add-on to client
2574 - removed spurious dependancies on updatedb package (!cut/paste)
2575 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2576 - added updatedb package
2577 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2578 - added postgresql package
2579 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2580 - corrected the if else logic in the dependancy sections
2581 - changes for 1.34 release
2582 - /etc/bacula/console is now /etc/bacula/bconsole
2583 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
2584 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
2585 - /usr/sbin/smtp is now /usr/sbin/bsmtp
2586 - added new /etc/bacula/drop_mysql_database
2587 - added new /etc/bacula/drop_sqlite_database
2588 - added new /etc/bacula/grant_sqlite_privileges
2589 - added new generic bacula database scripts in /etc/bacula
2590 - added pre-install sections to check for database versions older than 6
2591 - added check for /etc/bacula/console.conf and copy to bconsole.conf
2592 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2593 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
2594 - added testing for existing databases before executing any of the database creation scripts
2595 - added defines working_dir and sqlite_bindir in place of hard coded paths
2596 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2597 - added build configuration for SuSE.
2598 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
2599 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2600 - added patch for create_sqlite_database to fix the installed bindir
2601 - added execute of create_sqlite_database to post of sqlite package
2602 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2603 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
2604 - added bacula-fd as Requires for rescue package
2605 - added build tag for Fedora Core 1
2606 - cleaned up dependancies for all builds
2607 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2608 - removed rh_version from package names
2609 - added platform build configuration section to beginning of file
2610 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2611 - removed make_static_bacula script from rescue package install
2612 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2613 - Added define at top of file for depkgs version
2614 - Added rescue sub-package
2615 - Moved requires statements into proper sub-package locations
2616 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2617 - Corrected Requires for Gnome 1.4/2.0 builds
2618 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2619 - Added separate source declaration for depkgs
2620 - added patch for make_catalog_backup script
2621 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2622 - Misc changes to mysql/sqlite build and rh7/8 menu differences
2623 - Added rh_version to sub-package names
2624 - Added installed but missing file /etc/bacula/gconsole
2625 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
2626 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
2627 - Update spec for version 1.31 and combine client
2628 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>