2 # Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
4 # Platform Build Configuration
6 # basic defines for every build
7 %define _version @VERSION@
9 %define depkgs_version 18Feb09
10 %define _rescuever @VERSION@
11 %define docs_version @VERSION@
12 %define binname baculasystems
13 %define _prefix @prefix@
14 # third party packagers
15 %define _packager Bacula Systems SA
16 %{?contrib_packager:%define _packager %{contrib_packager}}
17 %define downloads http://www.prdownloads.sourceforge.net
18 %define url http://www.baculasystems.com
19 %define vendor The @BACULA@ Team
21 # any patches for this release
22 # be sure to check the setup section for patch macros
24 #--------------------------------------------------------------------------
25 # it should not be necessary to change anything below here for a release
26 # except for patch macros in the setup section
27 #--------------------------------------------------------------------------
29 Summary: Bacula - The Network Backup Solution
33 Group: System Environment/Daemons
35 Source0: %{downloads}/%{binname}/%{name}-%{version}.tar.gz
36 Source1: %{downloads}/%{binname}/depkgs-%{depkgs_version}.tar.gz
37 Source2: Release_Notes-%{version}-%{release}.tar.gz
38 Source3: %{downloads}/%{binname}/%{name}-docs-%{docs_version}.tar.gz
39 Source4: %{downloads}/%{binname}/%{name}-rescue-%{_rescuever}.tar.gz
40 Source5: bacula-2.2.7-postgresql.patch
41 BuildRoot: %{_tmppath}/%{name}-root
44 Packager: %{_packager}
47 # define the basic package description
48 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
49 %define blurb2 Bacula is a set of computer programs that permit you (or the system
50 %define blurb3 administrator) to manage backup, recovery, and verification of computer
51 %define blurb4 data across a network of computers of different kinds. In technical terms,
52 %define blurb5 it is a network client/server based backup program. Bacula is relatively
53 %define blurb6 easy to use and efficient, while offering many advanced storage management
54 %define blurb7 features that make it easy to find and recover lost or damaged files.
55 %define blurb8 Bacula source code has been released under the GPL version 2 license.
57 # source directory locations
58 %define _docsrc ../%{name}-docs-%{docs_version}
59 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
60 %define depkgs ../depkgs
63 %define _sbindir @sbindir@
64 %define _subsysdir @subsysdir@
65 %define sqlite_bindir %_libdir/bacula/sqlite
66 %define _mandir @mandir@
67 %define sysconf_dir @sysconfdir@
68 %define script_dir @scriptdir@
69 %define working_dir @working_dir@
70 %define pid_dir @piddir@
72 # NOTE these defines are used in some rather complex useradd and groupadd
73 # commands. If you change them examine the post scripts for consequences.
74 %define director_daemon_user bacula
75 %define storage_daemon_user bacula
76 %define file_daemon_user root
77 %define daemon_group bacula
78 # group that has write access to tape devices, usually disk on Linux
79 %define storage_daemon_group disk
80 %define user_file /etc/passwd
81 %define group_file /etc/group
84 %define useradd /usr/sbin/useradd
85 %define groupadd /usr/sbin/groupadd
86 %define usermod /usr/sbin/usermod
88 # platform defines - set one below or define the build_xxx on the command line
91 %{?build_rh7:%define rh7 1}
93 %{?build_rh8:%define rh8 1}
95 %{?build_rh9:%define rh9 1}
98 %{?build_fc1:%define fc1 1}
100 %{?build_fc3:%define fc3 1}
102 %{?build_fc4:%define fc4 1}
104 %{?build_fc5:%define fc5 1}
106 %{?build_fc6:%define fc6 1}
108 %{?build_fc7:%define fc7 1}
110 %{?build_fc8:%define fc8 1}
112 %{?build_fc9:%define fc9 1}
113 # Whitebox Enterprise build
115 %{?build_wb3:%define wb3 1}
116 # RedHat Enterprise builds
118 %{?build_rhel3:%define rhel3 1}
119 %{?build_rhel3:%define wb3 1}
121 %{?build_rhel4:%define rhel4 1}
122 %{?build_rhel4:%define fc3 1}
124 %{?build_rhel5:%define rhel5 1}
125 %{?build_rhel5:%define fc6 1}
128 %{?build_centos3:%define centos3 1}
129 %{?build_centos3:%define wb3 1}
131 %{?build_centos4:%define centos4 1}
132 %{?build_centos4:%define fc3 1}
134 %{?build_centos5:%define centos5 1}
135 %{?build_centos5:%define fc6 1}
138 %{?build_sl3:%define sl3 1}
139 %{?build_sl3:%define wb3 1}
141 %{?build_sl4:%define sl4 1}
142 %{?build_sl4:%define fc3 1}
144 %{?build_sl5:%define sl5 1}
145 %{?build_sl5:%define fc6 1}
148 %{?build_su9:%define su9 1}
150 %{?build_su10:%define su10 1}
152 %{?build_su102:%define su102 1}
154 %{?build_su103:%define su103 1}
156 %{?build_su110:%define su110 1}
158 %{?build_su111:%define su111 1}
161 %{?build_mdk:%define mdk 1}
163 %{?build_mdv:%define mdv 1}
164 %{?build_mdv:%define mdk 1}
167 %define client_only 0
168 %{?build_client_only:%define client_only 1}
170 # test for a platform definition
171 %if !%{rh7} && !%{rh8} && !%{rh9} && !%{fc1} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && !%{wb3} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk}
172 %{error: You must specify a platform. Please examine the spec file.}
177 # set for database support desired or define the build_xxx on the command line
179 %{?build_mysql:%define mysql 1}
180 # if using mysql 4.x define this and mysql above
181 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
183 %{?build_mysql4:%define mysql4 1}
184 %{?build_mysql4:%define mysql 1}
185 # if using mysql 5.x define this and mysql above
186 # currently: SuSE 10.1 and Fedora Core 5
188 %{?build_mysql5:%define mysql5 1}
189 %{?build_mysql5:%define mysql 1}
191 %{?build_sqlite:%define sqlite 1}
193 %{?build_postgresql:%define postgresql 1}
195 # test for a database definition
196 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql} && ! %{client_only}
197 %{error: You must specify database support. Please examine the spec file.}
202 %define db_backend mysql
205 %define db_backend sqlite3
208 %define db_backend postgresql
213 %{?build_x86_64:%define x86_64 1}
215 # check what distribution we are
216 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4} || %{rhel5}
217 %define _dist %(grep Red /etc/redhat-release)
219 %if %{fc1} || %{fc4} || %{fc5} || %{fc7} || %{fc8} || %{fc9}
220 %define _dist %(grep Fedora /etc/redhat-release)
222 %if %{centos5} || %{centos4} || %{centos3}
223 %define _dist %(grep CentOS /etc/redhat-release)
225 %if %{sl5} ||%{sl4} || %{sl3}
226 %define _dist %(grep 'Scientific Linux' /etc/redhat-release)
228 %if %{fc3} && ! %{rhel4} && ! %{centos4} && ! %{sl4}
229 %define _dist %(grep Fedora /etc/redhat-release)
231 %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5}
232 %define _dist %(grep Fedora /etc/redhat-release)
234 %if %{wb3} && ! %{rhel3} && ! %{centos3} && ! %{sl3}
235 %define _dist %(grep White /etc/whitebox-release)
237 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
238 %define _dist %(grep -i SuSE /etc/SuSE-release)
241 %define _dist %(grep Mand /etc/mandrake-release)
243 Distribution: %{_dist}
245 # Should we build gconsole, possible only if gtk= >= 2.4 available.
246 # leaving all the BuildRequires and Requires in place below for now.
247 # su10, fc3 and fc4 now nobuild, tray monitor fails to build as of 2.2.1
248 # release as it needs 2.10
251 %if %{rh7} || %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{su9} || %{su10}
254 %if %{mdk} && ! %{mdv}
258 # specifically disallow gconsole if desired
259 %{?nobuild_gconsole:%define gconsole 0}
261 # specifically disallow rescue files if desired
263 %{?nobuild_rescue:%define rescue 0}
265 # Should we build wxconsole, only wxWidgets >=2.6 is supported
266 # SuSE 10 and FC4 and newer
268 %{?build_wxconsole:%define wxconsole 1}
270 # Should we build bat
273 %{?build_bat:%define bat 1}
275 # should we turn on python support
277 %{?build_python:%define python 1}
279 # specifically disallow build of mtx package if desired
281 %{?nobuild_mtx:%define mtx 0}
283 # do we need to patch for old postgresql version?
285 %{?build_old_pgsql:%define old_pgsql 1}
287 # Mandriva somehow forces the manpage file extension to bz2 rather than gz
289 %define manpage_ext bz2
291 %define manpage_ext gz
294 # for client only build
305 %{expand: %%define gccver %(rpm -q --queryformat %%{version} gcc)}
306 %{expand: %%define gccrel %(rpm -q --queryformat %%{release} gcc)}
308 #BuildRequires: libattr-devel for 3.0
309 BuildRequires: libacl-devel
310 BuildRequires: gcc, gcc-c++, make, autoconf
311 BuildRequires: ncurses-devel, perl
312 BuildRequires: libstdc++-devel = %{gccver}-%{gccrel}, libxml2-devel, zlib-devel
313 BuildRequires: openssl-devel
315 BuildRequires: python, python-devel
316 %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
319 BuildRequires: pkgconfig, pango-devel, atk-devel
322 BuildRequires: pkgconfig
325 # Rh qt4 packages don't have a provide for, guess what, qt!
326 # still broken in fc8, ok in fc9
327 # so fix for broken rh
329 %if %{rhel5} || %{centos5} || %{sl5} || %{fc5} || %{fc6} || %{fc7} || %{fc8}
332 %if %{bat} && ! %{broken_rh}
333 BuildRequires: qt-devel >= 4.2
335 %if %{bat} && %{broken_rh}
336 BuildRequires: qt4-devel >= 4.2
340 BuildRequires: libtermcap-devel
341 BuildRequires: glibc-devel >= 2.2
344 BuildRequires: termcap
345 BuildRequires: glibc-devel >= 2.3
347 %if %{su9} && %{gconsole}
348 BuildRequires: libgnome >= 2.0
349 BuildRequires: gtk2-devel >= 2.0
350 BuildRequires: libgnomeui-devel >= 2.0
351 BuildRequires: ORBit2-devel
352 BuildRequires: libart_lgpl-devel >= 2.0
353 BuildRequires: libbonobo-devel >= 2.0
354 BuildRequires: libbonoboui-devel >= 2.0
355 BuildRequires: bonobo-activation-devel
356 BuildRequires: gconf2-devel
357 BuildRequires: linc-devel
358 BuildRequires: freetype2-devel
361 BuildRequires: termcap
362 BuildRequires: glibc-devel >= 2.3
364 %if %{su10} && %{gconsole}
365 BuildRequires: libgnome >= 2.12
366 BuildRequires: gtk2-devel >= 2.8
367 BuildRequires: libgnomeui-devel >= 2.12
368 BuildRequires: ORBit2-devel
369 BuildRequires: libart_lgpl-devel >= 2.3
370 BuildRequires: libbonobo-devel >= 2.10
371 BuildRequires: libbonoboui-devel >= 2.10
372 BuildRequires: bonobo-activation-devel
373 BuildRequires: gconf2-devel
374 BuildRequires: freetype2-devel
375 BuildRequires: cairo-devel
376 BuildRequires: fontconfig-devel >= 2.3
377 BuildRequires: gnome-vfs2-devel >= 2.12
378 BuildRequires: libpng-devel
381 BuildRequires: termcap
382 BuildRequires: glibc-devel >= 2.5
384 %if %{su102} && %{gconsole}
385 BuildRequires: libgnome >= 2.16
386 BuildRequires: gtk2-devel >= 2.10
387 BuildRequires: libgnomeui-devel >= 2.16
388 BuildRequires: ORBit2-devel
389 BuildRequires: libart_lgpl-devel >= 2.3
390 BuildRequires: libbonobo-devel >= 2.16
391 BuildRequires: libbonoboui-devel >= 2.16
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.16
398 BuildRequires: libpng-devel
401 BuildRequires: termcap
402 BuildRequires: glibc-devel >= 2.6
404 %if %{su103} && %{gconsole}
405 BuildRequires: libgnome >= 2.20
406 BuildRequires: gtk2-devel >= 2.12
407 BuildRequires: libgnomeui-devel >= 2.20
408 BuildRequires: ORBit2-devel
409 BuildRequires: libart_lgpl-devel >= 2.3
410 BuildRequires: libbonobo-devel >= 2.20
411 BuildRequires: libbonoboui-devel >= 2.20
412 BuildRequires: bonobo-activation-devel
413 BuildRequires: gconf2-devel
414 BuildRequires: freetype2-devel
415 BuildRequires: cairo-devel
416 BuildRequires: fontconfig-devel >= 2.4
417 BuildRequires: gnome-vfs2-devel >= 2.20
418 BuildRequires: libpng-devel
421 BuildRequires: termcap
422 BuildRequires: glibc-devel >= 2.8
424 %if %{su110} && %{gconsole}
425 BuildRequires: libgnome >= 2.22
426 BuildRequires: gtk2-devel >= 2.12
427 BuildRequires: libgnomeui-devel >= 2.22
428 BuildRequires: ORBit2-devel
429 BuildRequires: libart_lgpl-devel >= 2.3
430 BuildRequires: libbonobo-devel >= 2.22
431 BuildRequires: libbonoboui-devel >= 2.22
432 BuildRequires: bonobo-activation-devel
433 BuildRequires: gconf2-devel
434 BuildRequires: freetype2-devel
435 BuildRequires: cairo-devel
436 BuildRequires: fontconfig-devel >= 2.4
437 BuildRequires: gnome-vfs2-devel >= 2.22
438 BuildRequires: libpng-devel
441 BuildRequires: termcap
442 BuildRequires: glibc-devel >= 2.9
444 %if %{su111} && %{gconsole}
445 BuildRequires: libgnome >= 2.24
446 BuildRequires: gtk2-devel >= 2.14
447 BuildRequires: libgnomeui-devel >= 2.24
448 BuildRequires: ORBit2-devel
449 BuildRequires: libart_lgpl-devel >= 2.3
450 BuildRequires: libbonobo-devel >= 2.24
451 BuildRequires: libbonoboui-devel >= 2.24
452 BuildRequires: bonobo-activation-devel
453 BuildRequires: gconf2-devel
454 BuildRequires: freetype2-devel
455 BuildRequires: cairo-devel
456 BuildRequires: fontconfig-devel >= 2.6
457 BuildRequires: gnome-vfs2-devel >= 2.24
458 BuildRequires: libpng-devel
461 BuildRequires: libtermcap-devel
462 BuildRequires: libstdc++-static-devel
463 BuildRequires: glibc-static-devel
464 BuildRequires: glibc-devel >= 2.3
466 %if %{mdk} && !%{mdv} && %{gconsole}
467 BuildRequires: gtk2-devel >= 2.0
468 BuildRequires: libgnomeui2-devel >= 2.0
469 BuildRequires: libORBit2-devel
470 BuildRequires: libart_lgpl-devel >= 2.0
471 BuildRequires: libbonobo2_0-devel
472 BuildRequires: libbonoboui2_0-devel
473 BuildRequires: libbonobo-activation-devel
474 BuildRequires: libGConf2-devel
475 BuildRequires: freetype2-devel
477 %if %{mdv} && %{gconsole}
478 BuildRequires: gtk2-devel >= 2.8
479 BuildRequires: libgnomeui2-devel >= 2.10
480 BuildRequires: libORBit2-devel
481 BuildRequires: libart_lgpl-devel >= 2.3
482 BuildRequires: libbonobo2_0-devel
483 BuildRequires: libbonoboui2_0-devel
484 BuildRequires: libbonobo-activation-devel
485 BuildRequires: libGConf2-devel
486 BuildRequires: freetype2-devel
489 BuildRequires: libtermcap-devel
490 BuildRequires: glibc-devel >= 2.3
492 %if %{fc3} && %{gconsole}
493 BuildRequires: gtk2-devel >= 2.4
494 BuildRequires: libgnomeui-devel >= 2.8
495 BuildRequires: ORBit2-devel
496 BuildRequires: libart_lgpl-devel >= 2.3
497 BuildRequires: libbonobo-devel >= 2.8
498 BuildRequires: libbonoboui-devel >= 2.8
499 BuildRequires: bonobo-activation-devel
500 BuildRequires: GConf2-devel
501 BuildRequires: freetype-devel
504 BuildRequires: libtermcap-devel
505 BuildRequires: glibc-devel >= 2.3
507 %if %{fc4} && %{gconsole}
508 BuildRequires: gtk2-devel >= 2.6
509 BuildRequires: libgnomeui-devel >= 2.10
510 BuildRequires: ORBit2-devel
511 BuildRequires: libart_lgpl-devel >= 2.3
512 BuildRequires: libbonobo-devel >= 2.8
513 BuildRequires: libbonoboui-devel >= 2.8
514 BuildRequires: bonobo-activation-devel
515 BuildRequires: GConf2-devel
516 BuildRequires: freetype-devel
519 BuildRequires: libtermcap-devel
520 BuildRequires: glibc-devel >= 2.4
522 %if %{fc5} && %{gconsole}
523 BuildRequires: gtk2-devel >= 2.8
524 BuildRequires: libgnomeui-devel >= 2.14
525 BuildRequires: ORBit2-devel
526 BuildRequires: libart_lgpl-devel >= 2.3
527 BuildRequires: libbonobo-devel >= 2.14
528 BuildRequires: libbonoboui-devel >= 2.14
529 BuildRequires: GConf2-devel
530 BuildRequires: freetype-devel
533 BuildRequires: libtermcap-devel
534 BuildRequires: glibc-devel >= 2.5
536 %if %{fc6} && %{gconsole}
537 BuildRequires: gtk2-devel >= 2.10
538 BuildRequires: libgnomeui-devel >= 2.16
539 BuildRequires: ORBit2-devel
540 BuildRequires: libart_lgpl-devel >= 2.3
541 BuildRequires: libbonobo-devel >= 2.16
542 BuildRequires: libbonoboui-devel >= 2.16
543 BuildRequires: GConf2-devel
544 BuildRequires: freetype-devel
547 BuildRequires: libtermcap-devel
548 BuildRequires: glibc-devel >= 2.5
550 %if %{fc7} && %{gconsole}
551 BuildRequires: gtk2-devel >= 2.10
552 BuildRequires: libgnomeui-devel >= 2.18
553 BuildRequires: ORBit2-devel
554 BuildRequires: libart_lgpl-devel >= 2.3
555 BuildRequires: libbonobo-devel >= 2.18
556 BuildRequires: libbonoboui-devel >= 2.18
557 BuildRequires: GConf2-devel
558 BuildRequires: freetype-devel
561 BuildRequires: libtermcap-devel
562 BuildRequires: glibc-devel >= 2.7
564 %if %{fc8} && %{gconsole}
565 BuildRequires: gtk2-devel >= 2.12
566 BuildRequires: libgnomeui-devel >= 2.20
567 BuildRequires: ORBit2-devel
568 BuildRequires: libart_lgpl-devel >= 2.3
569 BuildRequires: libbonobo-devel >= 2.20
570 BuildRequires: libbonoboui-devel >= 2.20
571 BuildRequires: GConf2-devel
572 BuildRequires: freetype-devel
575 BuildRequires: glibc-devel >= 2.8
576 BuildRequires: zlib-static
578 %if %{fc9} && %{gconsole}
579 BuildRequires: gtk2-devel >= 2.12
580 BuildRequires: libgnomeui-devel >= 2.22
581 BuildRequires: ORBit2-devel
582 BuildRequires: libart_lgpl-devel >= 2.3
583 BuildRequires: libbonobo-devel >= 2.22
584 BuildRequires: libbonoboui-devel >= 2.22
585 BuildRequires: GConf2-devel
586 BuildRequires: freetype-devel
588 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
589 BuildRequires: libtermcap-devel
590 BuildRequires: glibc-devel >= 2.3
592 %if !%{rh7} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9} && %{gconsole}
593 BuildRequires: gtk2-devel >= 2.0
594 BuildRequires: libgnomeui-devel >= 2.0
595 BuildRequires: ORBit2-devel
596 BuildRequires: libart_lgpl-devel >= 2.0
597 BuildRequires: libbonobo-devel >= 2.0
598 BuildRequires: libbonoboui-devel >= 2.0
599 BuildRequires: bonobo-activation-devel
600 BuildRequires: GConf2-devel
601 BuildRequires: linc-devel
602 BuildRequires: freetype-devel
605 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
606 BuildRequires: mysql-devel >= 3.23
609 %if %{mysql} && %{mysql4}
610 BuildRequires: mysql-devel >= 4.0
613 %if %{mysql} && %{mysql5}
614 BuildRequires: mysql-devel >= 5.0
617 %if %{postgresql} && %{wb3}
618 BuildRequires: rh-postgresql-devel >= 7
621 %if %{postgresql} && ! %{wb3}
622 BuildRequires: postgresql-devel >= 7
626 BuildRequires: wxGTK-devel >= 2.6
650 Summary: Bacula - The Network Backup Solution
651 Group: System Environment/Daemons
652 Provides: %{binname}-dir, %{binname}-sd, %{binname}-fd, %{binname}-server
653 Conflicts: bacula-client
655 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
659 Requires: ncurses, libstdc++, zlib, openssl, mtx
662 Requires: glibc >= 2.2
665 %if %{su9} || %{su10}
666 Requires: glibc >= 2.3
670 Requires: glibc >= 2.5
674 Requires: glibc >= 2.6
678 Requires: glibc >= 2.8
682 Requires: glibc >= 2.9
685 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
686 Requires: glibc >= 2.3
690 Requires: glibc >= 2.4
694 Requires: glibc >= 2.5
698 Requires: glibc >= 2.7
702 Requires: glibc >= 2.8
705 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
706 Requires: mysql >= 3.23
707 Requires: mysql-server >= 3.23
709 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
710 Requires: mysql >= 4.0
711 Requires: mysql-server >= 4.0
713 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk} && %{mysql5}
714 Requires: mysql >= 5.0
715 Requires: mysql-server >= 5.0
718 %if %{mysql} && %{su9} && ! %{mysql4}
719 Requires: mysql >= 3.23
720 Requires: mysql-client >= 3.23
722 %if %{mysql} && %{su9} && %{mysql4}
723 Requires: mysql >= 4.0
724 Requires: mysql-client >= 4.0
726 %if %{mysql} && %{su10} && %{mysql4}
727 Requires: mysql >= 4.0
728 Requires: mysql-client >= 4.0
730 %if %{mysql} && %{su10} && %{mysql5}
731 Requires: mysql >= 5.0
732 Requires: mysql-client >= 5.0
734 %if %{mysql} && %{su102} && %{mysql5}
735 Requires: mysql >= 5.0
736 Requires: mysql-client >= 5.0
738 %if %{mysql} && %{su103} && %{mysql5}
739 Requires: mysql >= 5.0
740 Requires: mysql-client >= 5.0
742 %if %{mysql} && %{su110} && %{mysql5}
743 Requires: mysql >= 5.0
744 Requires: mysql-client >= 5.0
746 %if %{mysql} && %{su111} && %{mysql5}
747 Requires: mysql >= 5.0
748 Requires: mysql-client >= 5.0
751 %if %{mysql} && %{mdk} && ! %{mysql4}
752 Requires: mysql >= 3.23
753 Requires: mysql-client >= 3.23
755 %if %{mysql} && %{mdk} && %{mysql4}
756 Requires: mysql >= 4.0
757 Requires: mysql-client >= 4.0
760 %if %{postgresql} && %{wb3}
761 Requires: rh-postgresql >= 7
762 Requires: rh-postgresql-server >= 7
764 %if %{postgresql} && ! %{wb3}
765 Requires: postgresql >= 7
766 Requires: postgresql-server >= 7
776 %description postgresql
780 Requires: python >= %{pyver}
794 This build requires MySQL to be installed separately as the catalog database.
797 This build requires PostgreSQL to be installed separately as the catalog database.
800 This build incorporates sqlite3 as the catalog database, statically compiled.
803 This build includes python scripting support.
806 %if ! %{client_only} && %{mtx}
808 Summary: Bacula - The Network Backup Solution
809 Group: System Environment/Daemons
813 This is Bacula's version of mtx tape utilities for Linux distributions that
814 do not provide their own mtx package
818 Summary: Bacula - The Network Backup Solution
819 Group: System Environment/Daemons
820 Provides: %{binname}-fd
821 Conflicts: bacula-mysql
822 Conflicts: bacula-sqlite
823 Conflicts: bacula-postgresql
825 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
829 Requires: libstdc++, zlib, openssl
832 Requires: glibc >= 2.2
835 %if %{su9} || %{su10}
836 Requires: glibc >= 2.3
840 Requires: glibc >= 2.5
844 Requires: glibc >= 2.6
848 Requires: glibc >= 2.8
852 Requires: glibc >= 2.9
855 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{fc5} && ! %{fc6} && ! %{fc7} && ! %{fc8} && ! %{fc9}
856 Requires: glibc >= 2.3
860 Requires: glibc >= 2.4
864 Requires: glibc >= 2.5
868 Requires: glibc >= 2.7
872 Requires: glibc >= 2.8
876 Requires: python >= %{pyver}
890 This is the File daemon (Client) only package. It includes the command line
893 This build includes python scripting support.
899 Summary: Bacula - The Network Backup Solution
900 Group: System Environment/Daemons
902 %description updatedb
913 This package installs scripts for updating older versions of the bacula
920 Summary: Bacula - The Network Backup Solution
921 Group: System Environment/Daemons
934 This package installs scripts for creating a rescue USB key.
939 Summary: Bacula - The Network Backup Solution
940 Group: System Environment/Daemons
953 This package installs the Bacula pdf and html documentation.
957 Summary: Bacula - The Network Backup Solution
958 Group: System Environment/Daemons
959 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
962 %if %{gconsole} && %{su9}
963 Requires: gtk2 >= 2.0
964 Requires: libgnome >= 2.0
965 Requires: libgnomeui >= 2.0
966 Requires: glibc >= 2.3
968 Requires: libart_lgpl >= 2.0
969 Requires: libbonobo >= 2.0
970 Requires: libbonoboui >= 2.0
971 Requires: bonobo-activation
976 %if %{gconsole} && %{su10}
977 Requires: gtk2 >= 2.8
978 Requires: libgnome >= 2.12
979 Requires: libgnomeui >= 2.12
980 Requires: glibc >= 2.3
982 Requires: libart_lgpl >= 2.3
983 Requires: libbonobo >= 2.10
984 Requires: libbonoboui >= 2.10
985 Requires: bonobo-activation
989 Requires: fontconfig >= 2.3
990 Requires: gnome-vfs2 >= 2.12
993 %if %{gconsole} && %{su102}
994 Requires: gtk2 >= 2.10
995 Requires: libgnome >= 2.16
996 Requires: libgnomeui >= 2.16
997 Requires: glibc >= 2.5
999 Requires: libart_lgpl >= 2.3
1000 Requires: libbonobo >= 2.16
1001 Requires: libbonoboui >= 2.16
1002 Requires: bonobo-activation
1006 Requires: fontconfig >= 2.4
1007 Requires: gnome-vfs2 >= 2.16
1010 %if %{gconsole} && %{su103}
1011 Requires: gtk2 >= 2.12
1012 Requires: libgnome >= 2.20
1013 Requires: libgnomeui >= 2.20
1014 Requires: glibc >= 2.6
1016 Requires: libart_lgpl >= 2.3
1017 Requires: libbonobo >= 2.20
1018 Requires: libbonoboui >= 2.20
1019 Requires: bonobo-activation
1023 Requires: fontconfig >= 2.4
1024 Requires: gnome-vfs2 >= 2.20
1027 %if %{gconsole} && %{su110}
1028 Requires: gtk2 >= 2.12
1029 Requires: libgnome >= 2.22
1030 Requires: libgnomeui >= 2.22
1031 Requires: glibc >= 2.8
1033 Requires: libart_lgpl >= 2.3
1034 Requires: libbonobo >= 2.22
1035 Requires: libbonoboui >= 2.22
1036 Requires: bonobo-activation
1040 Requires: fontconfig >= 2.4
1041 Requires: gnome-vfs2 >= 2.22
1044 %if %{gconsole} && %{su111}
1045 Requires: gtk2 >= 2.14
1046 Requires: libgnome >= 2.24
1047 Requires: libgnomeui >= 2.24
1048 Requires: glibc >= 2.9
1050 Requires: libart_lgpl >= 2.3
1051 Requires: libbonobo >= 2.24
1052 Requires: libbonoboui >= 2.24
1053 Requires: bonobo-activation
1057 Requires: fontconfig >= 2.6
1058 Requires: gnome-vfs2 >= 2.24
1061 %if %{gconsole} && %{mdk} && !%{mdv}
1062 Requires: gtk2 >= 2.0
1063 Requires: libgnomeui2
1064 Requires: glibc >= 2.3
1066 Requires: libart_lgpl >= 2.0
1067 Requires: libbonobo >= 2.0
1068 Requires: libbonoboui >= 2.0
1072 %if %{gconsole} && %{mdv}
1073 Requires: gtk2 >= 2.8
1074 Requires: libgnomeui2
1075 Requires: glibc >= 2.3
1077 Requires: libart_lgpl >= 2.3
1078 Requires: libbonobo >= 2.10
1079 Requires: libbonoboui >= 2.10
1083 %if %{gconsole} && %{fc3}
1084 Requires: gtk2 >= 2.4
1085 Requires: libgnomeui >= 2.8
1086 Requires: glibc >= 2.3
1088 Requires: libart_lgpl >= 2.3
1089 Requires: libbonobo >= 2.8
1090 Requires: libbonoboui >= 2.8
1091 Requires: bonobo-activation
1095 %if %{gconsole} && %{fc4}
1096 Requires: gtk2 >= 2.6
1097 Requires: libgnomeui >= 2.10
1098 Requires: glibc >= 2.3
1100 Requires: libart_lgpl >= 2.3
1101 Requires: libbonobo >= 2.8
1102 Requires: libbonoboui >= 2.8
1103 Requires: bonobo-activation
1107 %if %{gconsole} && %{fc5}
1108 Requires: gtk2 >= 2.8
1109 Requires: libgnomeui >= 2.14
1110 Requires: glibc >= 2.4
1112 Requires: libart_lgpl >= 2.3
1113 Requires: libbonobo >= 2.14
1114 Requires: libbonoboui >= 2.14
1118 %if %{gconsole} && %{fc6}
1119 Requires: gtk2 >= 2.10
1120 Requires: libgnomeui >= 2.16
1121 Requires: glibc >= 2.5
1123 Requires: libart_lgpl >= 2.3
1124 Requires: libbonobo >= 2.16
1125 Requires: libbonoboui >= 2.16
1129 %if %{gconsole} && %{fc7}
1130 Requires: gtk2 >= 2.10
1131 Requires: libgnomeui >= 2.18
1132 Requires: glibc >= 2.5
1134 Requires: libart_lgpl >= 2.3
1135 Requires: libbonobo >= 2.18
1136 Requires: libbonoboui >= 2.18
1140 %if %{gconsole} && %{fc8}
1141 Requires: gtk2 >= 2.12
1142 Requires: libgnomeui >= 2.20
1143 Requires: glibc >= 2.7
1145 Requires: libart_lgpl >= 2.3
1146 Requires: libbonobo >= 2.20
1147 Requires: libbonoboui >= 2.20
1151 %if %{gconsole} && %{fc9}
1152 Requires: gtk2 >= 2.12
1153 Requires: libgnomeui >= 2.22
1154 Requires: glibc >= 2.8
1156 Requires: libart_lgpl >= 2.3
1157 Requires: libbonobo >= 2.22
1158 Requires: libbonoboui >= 2.22
1162 %if %{gconsole} && !%{su9} && !%{su10} && !%{su102} && !%{su103} && !%{su110} && !%{su111} && !%{mdk} && !%{fc3} && !%{fc4} && !%{fc5} && !%{fc6} && !%{fc7} && !%{fc8} && !%{fc9}
1163 Requires: gtk2 >= 2.0
1164 Requires: libgnomeui >= 2.0
1165 Requires: glibc >= 2.3
1167 Requires: libart_lgpl >= 2.0
1168 Requires: libbonobo >= 2.0
1169 Requires: libbonoboui >= 2.0
1170 Requires: bonobo-activation
1175 %if %{gconsole} && %{su9}
1178 %if %{gconsole} && %{su10}
1181 %if %{gconsole} && %{su102}
1184 %if %{gconsole} && %{su103}
1187 %if %{gconsole} && %{su110}
1190 %if %{gconsole} && %{su111}
1193 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1198 %description gconsole
1209 This is the Gnome Console package. It is an add-on to the client or
1215 Summary: Bacula - The Network Backup Solution
1216 Group: System Environment/Daemons
1217 Requires: wxGTK >= 2.6, libstdc++, openssl
1220 %if %{wxconsole} && %{su10}
1221 Requires: gtk2 >= 2.8
1224 %if %{wxconsole} && %{su102}
1225 Requires: gtk2 >= 2.10
1228 %if %{wxconsole} && %{su103}
1229 Requires: gtk2 >= 2.12
1232 %if %{wxconsole} && %{su110}
1233 Requires: gtk2 >= 2.12
1236 %if %{wxconsole} && %{su111}
1237 Requires: gtk2 >= 2.14
1240 %if %{wxconsole} && %{fc3}
1241 Requires: gtk2 >= 2.4
1244 %if %{wxconsole} && %{fc4}
1245 Requires: gtk2 >= 2.6
1248 %if %{wxconsole} && %{fc5}
1249 Requires: gtk2 >= 2.8
1252 %if %{wxconsole} && %{fc6}
1253 Requires: gtk2 >= 2.10
1256 %if %{wxconsole} && %{fc7}
1257 Requires: gtk2 >= 2.10
1260 %if %{wxconsole} && %{fc8}
1261 Requires: gtk2 >= 2.12
1264 %if %{wxconsole} && %{fc9}
1265 Requires: gtk2 >= 2.12
1269 %description wxconsole
1280 This is the WXWindows Console package. It is an add-on to the client or
1286 Summary: Bacula - The Network Backup Solution
1287 Group: System Environment/Daemons
1290 %if %{bat} && %{su10}
1292 Requires: glibc >= 2.4
1293 Requires: fontconfig
1302 %if %{bat} && %{su102}
1304 Requires: glibc >= 2.5
1305 Requires: fontconfig
1314 %if %{bat} && %{su103}
1316 Requires: glibc >= 2.6
1317 Requires: fontconfig
1326 %if %{bat} && %{su110}
1328 Requires: glibc >= 2.8
1329 Requires: fontconfig
1338 %if %{bat} && %{su111}
1340 Requires: glibc >= 2.9
1341 Requires: fontconfig
1350 %if %{bat} && %{fc5}
1352 Requires: glibc >= 2.4
1353 Requires: fontconfig
1357 Requires: qt4 >= 4.2
1362 %if %{bat} && %{fc6}
1364 Requires: glibc >= 2.5
1365 Requires: fontconfig
1369 Requires: qt4 >= 4.2
1374 %if %{bat} && %{fc7}
1376 Requires: glibc >= 2.5
1377 Requires: fontconfig
1381 Requires: qt4 >= 4.2
1386 %if %{bat} && %{fc8}
1388 Requires: glibc >= 2.7
1389 Requires: fontconfig
1393 Requires: qt4 >= 4.2
1398 %if %{bat} && %{fc9}
1400 Requires: glibc >= 2.8
1401 Requires: fontconfig
1405 Requires: qt4 >= 4.3
1422 This is the Bacula Administration Tool (bat) graphical user interface package.
1423 It is an add-on to the client or server packages.
1426 # SuSE turns off stripping of binaries by default. In order to get
1427 # stripped packages we must generate debug package. RedHat and Mandriva
1428 # turn debug packages on by default but strip binaries regardless.
1429 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1443 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1444 export LDFLAGS="${LDFLAGS} -L/usr/lib/termcap"
1448 export QTDIR=$(pkg-config --variable=prefix QtCore)
1449 export QTINC=$(pkg-config --variable=includedir QtCore)
1450 export QTLIB=$(pkg-config --variable=libdir QtCore)
1451 export PATH=${QTDIR}/bin/:${PATH}
1459 %if ! %{client_only} && %{mtx}
1467 %if %{wb3} || %{old_pgsql}
1468 patch -p3 src/cats/postgresql.c < %SOURCE5
1471 # patches for the bundled sqlite scripts
1473 # patch the make_sqlite_tables script for installation bindir
1474 #patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
1475 #patch src/cats/make_sqlite3_tables.in src/cats/make_sqlite3_tables.in.patch
1477 # patch the create_sqlite_database script for installation bindir
1478 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
1479 #patch src/cats/create_sqlite3_database.in src/cats/create_sqlite3_database.in.patch
1481 # patch the make_catalog_backup script for installation bindir
1482 #patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
1484 # patch the update_sqlite_tables script for installation bindir
1485 #patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
1486 #patch src/cats/update_sqlite3_tables.in src/cats/update_sqlite3_tables.in.patch
1488 # patch the bacula-dir init script to remove sqlite service
1489 %if %{sqlite} && %{su9}
1490 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1492 %if %{sqlite} && %{su10}
1493 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1495 %if %{sqlite} && %{su102}
1496 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1498 %if %{sqlite} && %{su103}
1499 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1501 %if %{sqlite} && %{su110}
1502 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1504 %if %{sqlite} && %{su111}
1505 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
1508 # 64 bit lib location hacks
1509 # as of 1.39.18 it should not be necessary to enable x86_64 as configure is
1510 # reported to be fixed to properly detect lib locations.
1512 export LDFLAGS="${LDFLAGS} -L/usr/lib64"
1514 %if %{mysql} && %{x86_64}
1515 export LDFLAGS="${LDFLAGS} -L/usr/lib64/mysql"
1517 %if %{python} && %{x86_64}
1518 export LDFLAGS="${LDFLAGS} -L/usr/lib64/python%{pyver}"
1521 # Red Hat's 64 bit installation of QT4 appears to be broken so:
1523 %if %{rhel5} || %{centos5} || %{sl5}
1526 %if %{bat} && %{qt_path} && %{x86_64}
1527 export PATH=/usr/lib64/qt4/bin/:$PATH
1528 export QTDIR=/usr/lib64/qt4/
1529 export QTINC=/usr/lib64/qt4/include/
1530 export QTLIB=/usr/lib64/qt4/
1534 echo "Doing rescue configure"
1536 --prefix=%{_prefix} \
1537 --sbindir=%{_sbindir} \
1538 --sysconfdir=%{sysconf_dir} \
1539 --with-scriptdir=%{script_dir} \
1540 --with-working-dir=%{working_dir} \
1541 --with-pid-dir=%{pid_dir} \
1542 --enable-smartalloc \
1543 --enable-client-only \
1547 --enable-static-fd \
1550 echo "Doing rescue make"
1554 echo "Doing full configure"
1556 --prefix=%{_prefix} \
1557 --sbindir=%{_sbindir} \
1558 --sysconfdir=%{sysconf_dir} \
1559 --with-scriptdir=%{script_dir} \
1560 --with-working-dir=%{working_dir} \
1561 --with-pid-dir=%{pid_dir} \
1562 --enable-smartalloc \
1567 %if %{gconsole} && ! %{rh8}
1568 --enable-tray-monitor \
1580 --enable-bwx-console \
1590 --enable-client-only \
1592 %if %{rh7} || %{rh8} || %{rh9} || %{fc1} || %{fc3} || %{wb3}
1593 --disable-batch-insert \
1595 --mandir=%{_mandir} \
1596 --with-subsys-dir=%{_subsysdir} \
1597 --with-dir-user=%{director_daemon_user} \
1598 --with-dir-group=%{daemon_group} \
1599 --with-sd-user=%{storage_daemon_user} \
1600 --with-sd-group=%{storage_daemon_group} \
1601 --with-fd-user=%{file_daemon_user} \
1602 --with-fd-group=%{daemon_group} \
1603 --with-basename="XXX_HOSTNAME_XXX" \
1604 --with-hostname="XXX_HOSTNAME_XXX" \
1605 --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
1606 --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
1607 --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
1608 --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
1609 --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
1610 --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
1613 echo "Doing Full make"
1616 echo "Doing Full install"
1620 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1621 mkdir -p $RPM_BUILD_ROOT/etc/init.d
1622 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
1623 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
1624 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
1625 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
1626 mkdir -p $RPM_BUILD_ROOT%{script_dir}/updatedb
1628 %if %{gconsole} || %{wxconsole} || %{bat}
1629 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
1630 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
1633 %if %{gconsole} || %{wxconsole} || %{bat}
1634 %define usermode_iftrick 1
1636 %define usermode_iftrick 0
1639 %if %{usermode_iftrick} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
1640 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
1641 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
1642 mkdir -p $RPM_BUILD_ROOT%{_sbindir}
1646 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
1650 prefix=$RPM_BUILD_ROOT%{_prefix} \
1651 sbindir=$RPM_BUILD_ROOT%{_sbindir} \
1652 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1653 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1654 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1655 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1656 mandir=$RPM_BUILD_ROOT%{_mandir} \
1659 %if ! %{client_only} && %{mtx}
1662 prefix=$RPM_BUILD_ROOT%{_prefix} \
1663 sbindir=$RPM_BUILD_ROOT%{_sbindir} \
1664 sysconfdir=$RPM_BUILD_ROOT%{sysconf_dir} \
1665 scriptdir=$RPM_BUILD_ROOT%{script_dir} \
1666 working_dir=$RPM_BUILD_ROOT%{working_dir} \
1667 piddir=$RPM_BUILD_ROOT%{pid_dir} \
1668 mandir=$RPM_BUILD_ROOT%{_mandir} \
1673 # make install in manpages installs _everything_ shotgun style
1674 # so now delete what we will not be packaging
1676 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
1679 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bat.1.%{manpage_ext}
1682 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
1683 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
1686 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/bsmtp.1.%{manpage_ext}
1687 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-dir.8.%{manpage_ext}
1688 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bacula-sd.8.%{manpage_ext}
1689 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bcopy.8.%{manpage_ext}
1690 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bextract.8.%{manpage_ext}
1691 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bls.8.%{manpage_ext}
1692 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/bscan.8.%{manpage_ext}
1693 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/btape.8.%{manpage_ext}
1694 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/dbcheck.8.%{manpage_ext}
1697 # fixme - make installs the mysql scripts for sqlite build
1699 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1700 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1701 rm -f $RPM_BUILD_ROOT%{script_dir}/grant_mysql_privileges
1704 # fixme - make installs the mysql scripts for postgresql build
1706 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1707 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1710 # fixme - make installs gconsole script for build without gconsole
1712 rm -f $RPM_BUILD_ROOT%{script_dir}/gconsole
1715 rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd
1717 # install the init scripts
1718 %if %{su9} || %{su10} || %{su102} || %{su103} || %{su110} || %{su111}
1719 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1720 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1721 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1725 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1726 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1727 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1730 %if ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111} && ! %{mdk}
1731 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1732 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
1733 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1736 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
1739 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-dir
1740 rm -f $RPM_BUILD_ROOT/etc/init.d/bacula-sd
1743 # install the menu stuff
1744 %if %{gconsole} && %{su9}
1745 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1746 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1747 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1748 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1750 %if %{gconsole} && %{su10}
1751 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1752 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1753 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1754 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1756 %if %{gconsole} && %{su102}
1757 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1758 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1759 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1760 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1762 %if %{gconsole} && %{su103}
1763 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1764 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1765 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1766 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1768 %if %{gconsole} && %{su110}
1769 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1770 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1771 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1772 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1774 %if %{gconsole} && %{su111}
1775 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1776 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1777 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1778 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1780 %if %{wxconsole} && %{su10}
1781 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1782 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1784 %if %{wxconsole} && %{su102}
1785 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1786 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1788 %if %{wxconsole} && %{su103}
1789 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1790 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1792 %if %{wxconsole} && %{su110}
1793 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1794 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1796 %if %{wxconsole} && %{su111}
1797 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1798 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1800 %if %{bat} && %{su102}
1801 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1802 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1804 %if %{bat} && %{su103}
1805 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1806 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1808 %if %{bat} && %{su110}
1809 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1810 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1812 %if %{bat} && %{su111}
1813 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1814 cp -p scripts/bat.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1816 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{fc6} || %{fc7} || %{fc8} || %{fc9} || %{mdk}
1821 %if %{gconsole} && %{iftrick}
1822 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
1823 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
1824 cp -p scripts/bgnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bgnome-console
1825 cp -p scripts/bgnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/bgnome-console
1826 #ln -sf consolehelper $RPM_BUILD_ROOT%{_sbindir}/bgnome-console
1828 %if %{gconsole} && ! %{rh8}
1829 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
1830 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
1832 %if %{wxconsole} && %{iftrick}
1833 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
1834 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
1835 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bwx-console
1836 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/bwx-console
1837 #ln -sf consolehelper $RPM_BUILD_ROOT%{_sbindir}/bwx-console
1839 %if %{bat} && %{iftrick}
1840 cp -p src/qt-console/images/bat_icon.png $RPM_BUILD_ROOT/usr/share/pixmaps/bat_icon.png
1841 cp -p scripts/bat.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bat.desktop
1842 cp -p scripts/bat.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/bat
1843 cp -p scripts/bat.pamd $RPM_BUILD_ROOT/etc/pam.d/bat
1844 #ln -sf consolehelper $RPM_BUILD_ROOT/%{_sbindir}/bat
1849 cp -p %{depkgs}/sqlite3/sqlite3 $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3
1850 cp -p %{depkgs}/sqlite3/sqlite3.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite3.h
1851 cp -p %{depkgs}/sqlite3/libsqlite3.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite3.a
1854 # install the logrotate file
1855 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
1857 # install the updatedb scripts
1858 cp -p updatedb/* $RPM_BUILD_ROOT%{script_dir}/updatedb/
1860 # install the logwatch scripts
1861 %if ! %{client_only}
1862 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1863 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1864 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1865 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
1866 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
1867 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
1870 # install the rescue files
1872 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue
1873 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd
1874 mkdir $RPM_BUILD_ROOT%{script_dir}/rescue/solaris
1875 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/
1876 cp -p %{_rescuesrc}/freebsd/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/freebsd/
1877 cp -p %{_rescuesrc}/solaris/Makefile* $RPM_BUILD_ROOT%{script_dir}/rescue/solaris/
1878 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT%{script_dir}/rescue/
1879 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT%{script_dir}/rescue/
1880 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT%{script_dir}/rescue/
1881 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT%{script_dir}/rescue/
1882 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT%{script_dir}/rescue/
1883 cp -pr %{_rescuesrc}/knoppix $RPM_BUILD_ROOT%{script_dir}/rescue/
1884 touch $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/rpm_release
1885 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT%{script_dir}/rescue/linux/cdrom/bacula/bin/bacula-fd
1886 rm -f src/filed/static-bacula-fd
1891 cp -p src/qt-console/bat $RPM_BUILD_ROOT%{_sbindir}/bat
1892 cp -p src/qt-console/bat.conf $RPM_BUILD_ROOT%{sysconf_dir}/bat.conf
1895 # now clean up permissions that are left broken by the install
1896 chmod o-rwx $RPM_BUILD_ROOT%{working_dir}
1897 %if %{gconsole} && ! %{rh8}
1898 chmod 755 $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor
1899 chmod 644 $RPM_BUILD_ROOT%{sysconf_dir}/tray-monitor.conf
1902 # fix me - building enable-client-only installs files not included in bacula-client package
1904 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula
1905 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-dir
1906 rm -f $RPM_BUILD_ROOT%{script_dir}/bacula-ctl-sd
1907 rm -f $RPM_BUILD_ROOT%{script_dir}/disk-changer
1908 rm -f $RPM_BUILD_ROOT%{script_dir}/dvd-handler
1909 rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer
1910 rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
1911 rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
1912 rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
1916 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1917 rm -rf $RPM_BUILD_DIR/%{name}-docs-%{docs_version}
1918 rm -rf $RPM_BUILD_DIR/%{name}-rescue-%{_rescuever}
1919 rm -rf $RPM_BUILD_DIR/depkgs
1920 rm -f $RPM_BUILD_DIR/Release_Notes-%{version}-%{release}.txt
1923 # MySQL specific files
1925 %defattr(-, root, %{daemon_group})
1926 %attr(-, root, %{daemon_group}) %{script_dir}/create_mysql_database
1927 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_database
1928 %attr(-, root, %{daemon_group}) %{script_dir}/make_mysql_tables
1929 %attr(-, root, %{daemon_group}) %{script_dir}/drop_mysql_tables
1930 %attr(-, root, %{daemon_group}) %{script_dir}/update_mysql_tables
1931 %attr(-, root, %{daemon_group}) %{script_dir}/grant_mysql_privileges
1932 %attr(-, root, %{daemon_group}) %{script_dir}/startmysql
1933 %attr(-, root, %{daemon_group}) %{script_dir}/stopmysql
1938 %defattr(-, root, %{daemon_group})
1939 %attr(-, root, %{daemon_group}) %{script_dir}/create_sqlite3_database
1940 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_database
1941 %attr(-, root, %{daemon_group}) %{script_dir}/grant_sqlite3_privileges
1942 %attr(-, root, %{daemon_group}) %{script_dir}/make_sqlite3_tables
1943 %attr(-, root, %{daemon_group}) %{script_dir}/drop_sqlite3_tables
1944 %attr(-, root, %{daemon_group}) %{script_dir}/update_sqlite3_tables
1945 %{sqlite_bindir}/libsqlite3.a
1946 %{sqlite_bindir}/sqlite3.h
1947 %{sqlite_bindir}/sqlite3
1952 %defattr(-, root, %{daemon_group})
1953 %attr(-, root, %{daemon_group}) %{script_dir}/create_postgresql_database
1954 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_database
1955 %attr(-, root, %{daemon_group}) %{script_dir}/make_postgresql_tables
1956 %attr(-, root, %{daemon_group}) %{script_dir}/drop_postgresql_tables
1957 %attr(-, root, %{daemon_group}) %{script_dir}/update_postgresql_tables
1958 %attr(-, root, %{daemon_group}) %{script_dir}/grant_postgresql_privileges
1961 # The rest is DB backend independent
1962 %if ! %{client_only}
1963 %attr(-, root, %{daemon_group}) %dir %{script_dir}
1964 %attr(-, root, %{daemon_group}) %{script_dir}/bacula
1965 %attr(-, root, %{daemon_group}) %{script_dir}/bconsole
1966 %attr(-, root, %{daemon_group}) %{script_dir}/create_bacula_database
1967 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_database
1968 %attr(-, root, %{daemon_group}) %{script_dir}/grant_bacula_privileges
1969 %attr(-, root, %{daemon_group}) %{script_dir}/make_bacula_tables
1970 %attr(-, root, %{daemon_group}) %{script_dir}/drop_bacula_tables
1971 %attr(-, root, %{daemon_group}) %{script_dir}/update_bacula_tables
1972 %attr(-, root, %{daemon_group}) %{script_dir}/make_catalog_backup
1973 %attr(-, root, %{daemon_group}) %{script_dir}/delete_catalog_backup
1974 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
1975 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
1976 %attr(-, root, %{daemon_group}) %{script_dir}/disk-changer
1977 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-dir
1978 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-fd
1979 %attr(-, root, %{daemon_group}) %{script_dir}/bacula-ctl-sd
1980 %attr(-, root, %{daemon_group}) %{script_dir}/bpipe-fd.so
1981 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
1982 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-sd
1983 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
1984 %attr(-, root, %{storage_daemon_group}) %{script_dir}/dvd-handler
1985 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer
1986 %attr(-, root, %{storage_daemon_group}) %{script_dir}/mtx-changer.conf
1989 /etc/logrotate.d/bacula
1990 /etc/log.d/scripts/services/bacula
1992 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
1993 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-dir.conf
1994 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
1995 %attr(-, root, %{storage_daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-sd.conf
1996 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
1997 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
1998 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
1999 %attr(-, root, %{daemon_group}) %config(noreplace) %{script_dir}/query.sql
2001 %attr(-, %{storage_daemon_user}, %{daemon_group}) %dir %{working_dir}
2003 %attr(-, root, %{daemon_group}) %dir %{_sbindir}
2004 %attr(-, root, %{daemon_group}) %{_sbindir}/bacula-dir
2005 %attr(-, root, %{daemon_group}) %{_sbindir}/bacula-fd
2006 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/bacula-sd
2007 %attr(-, root, %{daemon_group}) %{_sbindir}/bcopy
2008 %attr(-, root, %{daemon_group}) %{_sbindir}/bextract
2009 %attr(-, root, %{daemon_group}) %{_sbindir}/bls
2010 %attr(-, root, %{daemon_group}) %{_sbindir}/bscan
2011 %attr(-, root, %{daemon_group}) %{_sbindir}/btape
2012 %attr(-, root, %{daemon_group}) %{_sbindir}/btraceback
2013 %attr(-, root, %{daemon_group}) %{_sbindir}/bconsole
2014 %attr(-, root, %{daemon_group}) %{_sbindir}/dbcheck
2015 %attr(-, root, %{daemon_group}) %{_sbindir}/bsmtp
2016 %attr(-, root, %{daemon_group}) %{_sbindir}/bregex
2017 %attr(-, root, %{daemon_group}) %{_sbindir}/bwild
2020 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2021 %{_mandir}/man8/bacula-dir.8.%{manpage_ext}
2022 %{_mandir}/man8/bacula-sd.8.%{manpage_ext}
2023 %{_mandir}/man8/bacula.8.%{manpage_ext}
2024 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2025 %{_mandir}/man8/bcopy.8.%{manpage_ext}
2026 %{_mandir}/man8/bextract.8.%{manpage_ext}
2027 %{_mandir}/man8/bls.8.%{manpage_ext}
2028 %{_mandir}/man8/bscan.8.%{manpage_ext}
2029 %{_mandir}/man8/btape.8.%{manpage_ext}
2030 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2031 %{_mandir}/man8/dbcheck.8.%{manpage_ext}
2032 %{_mandir}/man1/bsmtp.1.%{manpage_ext}
2036 %doc COPYING LICENSE ChangeLog ReleaseNotes VERIFYING kernstodo
2037 %doc ../Release_Notes-%{version}-%{release}.txt
2041 # test for bacula database older than version 9
2042 # note: this ASSUMES no password has been set for bacula database
2043 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2048 # are we upgrading from sqlite to sqlite3?
2049 if [ -f %{working_dir}/bacula.db ] && [ -f %{sqlite_bindir}/sqlite ];then
2050 echo "This version of bacula-sqlite involves an upgrade to sqlite3."
2051 echo "Your catalog database file is not compatible with sqlite3, thus"
2052 echo "you will need to dump the data, delete the old file, and re-run"
2053 echo "this rpm upgrade."
2055 echo "Backing up your current database..."
2056 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db > %{working_dir}/bacula_backup.sql
2057 mv %{working_dir}/bacula.db %{working_dir}/bacula.db.old
2058 echo "Your catalog data has been saved in %{working_dir}/bacula_backup.sql and your"
2059 echo "catalog file has been renamed %{working_dir}/bacula.db.old."
2061 echo "Please re-run this rpm package upgrade."
2062 echo "After the upgrade is complete, restore your catalog"
2063 echo "with the following commands:"
2064 echo "%{script_dir}/drop_sqlite3_tables"
2065 echo "cd %{working_dir}"
2066 echo "%{sqlite_bindir}/sqlite3 $* bacula.db < bacula_backup.sql"
2067 echo "chown bacula:bacula bacula.db"
2070 # test for bacula database older than version 9 and sqlite3
2071 if [ -f %{working_dir}/bacula.db ] && [ -f %{sqlite_bindir}/sqlite3 ];then
2072 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2077 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2080 %if ! %{client_only}
2081 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "10" ]; then
2082 echo "This bacula upgrade will update a bacula database from version 10 to 11."
2083 echo "You appear to be running database version $DB_VER. You must first update"
2084 echo "your database to version 10 and then install this upgrade. The alternative"
2085 echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
2086 echo "catalog information, then do the upgrade. Information on updating a"
2087 echo "database older than version 9 can be found in the release notes."
2096 %if ! %{client_only}
2097 # check for and copy %{sysconf_dir}/console.conf to bconsole.conf
2098 if [ -f %{sysconf_dir}/console.conf ];then
2099 cp -p %{sysconf_dir}/console.conf %{sysconf_dir}/bconsole.conf
2102 # create the daemon users and groups
2103 # first create the groups if they don't exist
2104 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2105 if [ -z "$HAVE_BACULA" ]; then
2106 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2107 echo "The group %{daemon_group} has been added to %{group_file}."
2108 echo "See the manual chapter \"Running Bacula\" for details."
2110 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
2111 if [ -z "$HAVE_BACULA" ]; then
2112 %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
2113 echo "The group %{storage_daemon_group} has been added to %{group_file}."
2114 echo "See the manual chapter \"Running Bacula\" for details."
2116 # now create the users if they do not exist
2117 # we do not use the -g option allowing the primary group to be set to system default
2118 # this will be a unique group on redhat type systems or the group users on some systems
2119 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
2120 if [ -z "$HAVE_BACULA" ]; then
2121 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
2122 echo "The user %{storage_daemon_user} has been added to %{user_file}."
2123 echo "See the manual chapter \"Running Bacula\" for details."
2125 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
2126 if [ -z "$HAVE_BACULA" ]; then
2127 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
2128 echo "The user %{director_daemon_user} has been added to %{user_file}."
2129 echo "See the manual chapter \"Running Bacula\" for details."
2131 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2132 if [ -z "$HAVE_BACULA" ]; then
2133 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2134 echo "The user %{file_daemon_user} has been added to %{user_file}."
2135 echo "See the manual chapter \"Running Bacula\" for details."
2137 # now we add the supplementary groups, this is ok to call even if the users already exist
2138 # we only do this if the user is NOT root
2139 IS_ROOT=%{director_daemon_user}
2140 if [ "$IS_ROOT" != "root" ]; then
2141 %{usermod} -G %{daemon_group} %{director_daemon_user}
2143 IS_ROOT=%{storage_daemon_user}
2144 if [ "$IS_ROOT" != "root" ]; then
2145 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
2147 IS_ROOT=%{file_daemon_user}
2148 if [ "$IS_ROOT" != "root" ]; then
2149 %{usermod} -G %{daemon_group} %{file_daemon_user}
2163 %if ! %{client_only}
2165 if [ "$1" -ge 1 ] ; then
2166 /sbin/chkconfig --add bacula-dir
2167 /sbin/chkconfig --add bacula-fd
2168 /sbin/chkconfig --add bacula-sd
2173 # test for an existing database
2174 # note: this ASSUMES no password has been set for bacula database
2175 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
2177 # grant privileges and create tables if they do not exist
2178 if [ -z "$DB_VER" ]; then
2179 echo "Hmm, it doesn't look like you have an existing database."
2180 echo "Granting privileges for MySQL user bacula..."
2181 %{script_dir}/grant_mysql_privileges
2182 echo "Creating MySQL bacula database..."
2183 %{script_dir}/create_mysql_database
2184 echo "Creating bacula tables..."
2185 %{script_dir}/make_mysql_tables
2187 # check to see if we need to upgrade a 2.x or lower database
2188 elif [ "$DB_VER" -lt "11" ]; then
2189 echo "This release requires an upgrade to your bacula database."
2190 echo "Backing up your current database..."
2191 mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2192 echo "Upgrading bacula database ..."
2193 %{script_dir}/update_mysql_tables
2194 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2200 # test for an existing database
2201 if [ -f %{working_dir}/bacula.db ]; then
2202 DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
2203 # check to see if we need to upgrade a 2.x or lower database
2204 if [ "$DB_VER" -lt "10" ] && [ "$DB_VER" -ge "10" ]; then
2205 echo "This release requires an upgrade to your bacula database."
2206 echo "Backing up your current database..."
2207 echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2208 echo "Upgrading bacula database ..."
2209 %{script_dir}/update_sqlite3_tables
2210 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2213 # create the database and tables
2214 echo "Hmm, it doesn't look like you have an existing database."
2215 echo "Creating SQLite database..."
2216 %{script_dir}/create_sqlite3_database
2217 echo "Creating the SQLite tables..."
2218 %{script_dir}/make_sqlite3_tables
2219 chown %{director_daemon_user}:%{daemon_group} %{working_dir}/bacula.db
2224 # test for an existing database
2225 # note: this ASSUMES no password has been set for bacula database
2226 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
2228 # grant privileges and create tables if they do not exist
2229 if [ -z "$DB_VER" ]; then
2230 echo "Hmm, it doesn't look like you have an existing database."
2231 echo "Creating PostgreSQL bacula database..."
2232 %{script_dir}/create_postgresql_database
2233 echo "Creating bacula tables..."
2234 %{script_dir}/make_postgresql_tables
2235 echo "Granting privileges for PostgreSQL user bacula..."
2236 %{script_dir}/grant_postgresql_privileges
2238 # check to see if we need to upgrade a 2.x or lower database
2239 elif [ "$DB_VER" -lt "11" ]; then
2240 echo "This release requires an upgrade to your bacula database."
2241 echo "Backing up your current database..."
2242 pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
2243 echo "Upgrading bacula database ..."
2244 %{script_dir}/update_postgresql_tables
2245 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
2250 %if ! %{client_only}
2251 # generate passwords if needed
2252 if [ -d %{sysconf_dir} ]; then
2254 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
2255 pass=`openssl rand -base64 33`
2256 for file in *.conf; do
2257 need_password=`grep ${string} $file 2>/dev/null`
2258 if [ -n "$need_password" ]; then
2259 sed "s@${string}@${pass}@g" $file > $file.new
2260 cp -f $file.new $file; rm -f $file.new
2264 # put actual hostname in conf file
2266 string="XXX_HOSTNAME_XXX"
2267 for file in *.conf; do
2268 need_host=`grep ${string} $file 2>/dev/null`
2269 if [ -n "$need_host" ]; then
2270 sed "s@${string}@${host}@g" $file >$file.new
2271 cp -f $file.new $file; rm -f $file.new
2289 %if ! %{client_only}
2292 /sbin/chkconfig --del bacula-dir
2293 /sbin/chkconfig --del bacula-fd
2294 /sbin/chkconfig --del bacula-sd
2299 %if ! %{client_only} && %{mtx}
2301 %defattr(-,root,root)
2302 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/loaderinfo
2303 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/mtx
2304 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsitape
2305 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/tapeinfo
2306 %attr(-, root, %{storage_daemon_group}) %{_sbindir}/scsieject
2307 %{_mandir}/man1/loaderinfo.1.%{manpage_ext}
2308 %{_mandir}/man1/mtx.1.%{manpage_ext}
2309 %{_mandir}/man1/scsitape.1.%{manpage_ext}
2310 %{_mandir}/man1/tapeinfo.1.%{manpage_ext}
2311 %{_mandir}/man1/scsieject.1.%{manpage_ext}
2316 %defattr(-,root,root)
2317 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2318 %{script_dir}/bacula-ctl-fd
2319 /etc/init.d/bacula-fd
2322 %doc COPYING ChangeLog LICENSE ReleaseNotes VERIFYING kernstodo
2323 %doc ../Release_Notes-%{version}-%{release}.txt
2325 /etc/logrotate.d/bacula
2327 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bacula-fd.conf
2328 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bconsole.conf
2330 %attr(-, root, %{daemon_group}) %dir %{working_dir}
2332 %{_sbindir}/bacula-fd
2333 %{_sbindir}/btraceback
2334 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.gdb
2335 %attr(-, root, %{daemon_group}) %{script_dir}/btraceback.dbx
2336 %{_sbindir}/bconsole
2337 %{_mandir}/man8/bacula-fd.8.%{manpage_ext}
2338 %{_mandir}/man8/bacula.8.%{manpage_ext}
2339 %{_mandir}/man8/bconsole.8.%{manpage_ext}
2340 %{_mandir}/man8/btraceback.8.%{manpage_ext}
2344 # create the daemon group and user
2345 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2346 if [ -z "$HAVE_BACULA" ]; then
2347 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2348 echo "The group %{daemon_group} has been added to %{group_file}."
2349 echo "See the manual chapter \"Running Bacula\" for details."
2351 # we do not use the -g option allowing the primary group to be set to system default
2352 # this will be a unique group on redhat type systems or the group users on some systems
2353 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
2354 if [ -z "$HAVE_BACULA" ]; then
2355 %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
2356 echo "The user %{file_daemon_user} has been added to %{user_file}."
2357 echo "See the manual chapter \"Running Bacula\" for details."
2359 # now we add the supplementary group, this is ok to call even if the user already exists
2360 # we only do this if the user is NOT root
2361 IS_ROOT=%{file_daemon_user}
2362 if [ "$IS_ROOT" != "root" ]; then
2363 %{usermod} -G %{daemon_group} %{file_daemon_user}
2368 # generate passwords if needed
2369 if [ -d %{sysconf_dir} ]; then
2371 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
2372 pass=`openssl rand -base64 33`
2373 for file in *.conf; do
2374 need_password=`grep $string $file 2>/dev/null`
2375 if [ -n "$need_password" ]; then
2376 sed "s@${string}@${pass}@g" $file > $file.new
2377 cp -f $file.new $file; rm -f $file.new
2381 # put actual hostname in conf file
2383 string="XXX_HOSTNAME_XXX"
2384 for file in *.conf; do
2385 need_host=`grep $string $file 2>/dev/null`
2386 if [ -n "$need_host" ]; then
2387 sed "s@${string}@${host}@g" $file >$file.new
2388 cp -f $file.new $file; rm -f $file.new
2394 if [ "$1" -ge 1 ] ; then
2395 /sbin/chkconfig --off bacula-fd
2396 /sbin/chkconfig --add bacula-fd
2397 /sbin/chkconfig --on bacula-fd
2405 /sbin/chkconfig --del bacula-fd
2408 %if ! %{client_only}
2410 %defattr(-,root,%{daemon_group})
2411 %{script_dir}/updatedb/*
2414 # create the daemon group
2415 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2416 if [ -z "$HAVE_BACULA" ]; then
2417 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2418 echo "The group %{daemon_group} has been added to %{group_file}."
2419 echo "See the manual chapter \"Running Bacula\" for details."
2423 echo "The database update scripts were installed in %{script_dir}/updatedb"
2428 %defattr(-,root,root)
2429 %attr(-, root, %{daemon_group}) %{script_dir}/rescue
2433 %defattr(-,root,root)
2434 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
2438 %defattr(-, root, %{daemon_group})
2439 %{_sbindir}/bgnome-console
2440 %attr(-, root, %{daemon_group}) %dir %{script_dir}
2441 %attr(-, root, %{daemon_group}) %{script_dir}/gconsole
2442 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bgnome-console.conf
2443 /usr/share/pixmaps/bacula.png
2444 /usr/share/applications/bacula.desktop
2445 %{_mandir}/man1/bacula-bgnome-console.1.%{manpage_ext}
2448 %if %{gconsole} && ! %{rh8}
2449 %{_sbindir}/bacula-tray-monitor
2450 %config(noreplace) %{sysconf_dir}/tray-monitor.conf
2451 /usr/share/pixmaps/bacula-tray-monitor.xpm
2452 /usr/share/applications/bacula-tray-monitor.desktop
2453 %{_mandir}/man1/bacula-tray-monitor.1.%{manpage_ext}
2456 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2457 # add the console helper files
2458 %config(noreplace,missingok) /etc/pam.d/bgnome-console
2459 %config(noreplace,missingok) /etc/security/console.apps/bgnome-console
2460 %{_sbindir}/bgnome-console
2465 # create the daemon group
2466 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2467 if [ -z "$HAVE_BACULA" ]; then
2468 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2469 echo "The group %{daemon_group} has been added to %{group_file}."
2470 echo "See the manual chapter \"Running Bacula\" for details."
2474 # generate passwords if needed
2475 if [ -d %{sysconf_dir} ]; then
2477 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
2478 pass=`openssl rand -base64 33`
2479 for file in *.conf; do
2480 need_password=`grep $string $file 2>/dev/null`
2481 if [ -n "$need_password" ]; then
2482 sed "s@${string}@${pass}@g" $file > $file.new
2483 cp -f $file.new $file; rm -f $file.new
2487 # put actual hostname in conf file
2489 string="XXX_HOSTNAME_XXX"
2490 for file in *.conf; do
2491 need_host=`grep $string $file 2>/dev/null`
2492 if [ -n "$need_host" ]; then
2493 sed "s@${string}@${host}@g" $file >$file.new
2494 cp -f $file.new $file; rm -f $file.new
2504 %defattr(-, root, %{daemon_group})
2505 %defattr(-,root,root)
2506 %{_sbindir}/bwx-console
2507 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2508 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bwx-console.conf
2509 /usr/share/pixmaps/wxwin16x16.xpm
2510 /usr/share/applications/wxconsole.desktop
2511 %{_mandir}/man1/bacula-bwxconsole.1.%{manpage_ext}
2514 %if %{wxconsole} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2515 # add the console helper files
2516 %config(noreplace,missingok) /etc/pam.d/bwx-console
2517 %config(noreplace,missingok) /etc/security/console.apps/bwx-console
2518 %{_sbindir}/bwx-console
2523 # create the daemon group
2524 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2525 if [ -z "$HAVE_BACULA" ]; then
2526 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2527 echo "The group %{daemon_group} has been added to %{group_file}."
2528 echo "See the manual chapter \"Running Bacula\" for details."
2532 # generate passwords if needed
2533 if [ -d %{sysconf_dir} ]; then
2535 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
2536 pass=`openssl rand -base64 33`
2537 for file in *.conf; do
2538 need_password=`grep $string $file 2>/dev/null`
2539 if [ -n "$need_password" ]; then
2540 sed "s@${string}@${pass}@g" $file > $file.new
2541 cp -f $file.new $file; rm -f $file.new
2545 # put actual hostname in conf file
2547 string="XXX_HOSTNAME_XXX"
2548 for file in *.conf; do
2549 need_host=`grep $string $file 2>/dev/null`
2550 if [ -n "$need_host" ]; then
2551 sed "s@${string}@${host}@g" $file >$file.new
2552 cp -f $file.new $file; rm -f $file.new
2562 %defattr(-,root,%{daemon_group})
2564 %attr(-, root, %{daemon_group}) %dir %{sysconf_dir}
2565 %attr(-, root, %{daemon_group}) %config(noreplace) %{sysconf_dir}/bat.conf
2566 /usr/share/pixmaps/bat_icon.png
2567 /usr/share/applications/bat.desktop
2568 %{_mandir}/man1/bat.1.%{manpage_ext}
2571 %if %{bat} && ! %{su9} && ! %{su10} && ! %{su102} && ! %{su103} && ! %{su110} && ! %{su111}
2572 # add the console helper files
2573 %config(noreplace,missingok) /etc/pam.d/bat
2574 %config(noreplace,missingok) /etc/security/console.apps/bat
2579 # create the daemon group
2580 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
2581 if [ -z "$HAVE_BACULA" ]; then
2582 %{groupadd} -r %{daemon_group} > /dev/null 2>&1
2583 echo "The group %{daemon_group} has been added to %{group_file}."
2584 echo "See the manual chapter \"Running Bacula\" for details."
2588 # generate passwords if needed
2589 if [ -d %{sysconf_dir} ]; then
2591 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
2592 pass=`openssl rand -base64 33`
2593 for file in *.conf; do
2594 need_password=`grep $string $file 2>/dev/null`
2595 if [ -n "$need_password" ]; then
2596 sed "s@${string}@${pass}@g" $file > $file.new
2597 cp -f $file.new $file; rm -f $file.new
2601 # put actual hostname in conf file
2603 string="XXX_HOSTNAME_XXX"
2604 for file in *.conf; do
2605 need_host=`grep $string $file 2>/dev/null`
2606 if [ -n "$need_host" ]; then
2607 sed "s@${string}@${host}@g" $file >$file.new
2608 cp -f $file.new $file; rm -f $file.new
2617 * Sun Jul 19 2009 Kern Sibbald <kern@sibbald.com>
2618 - Merge in Scott's 3.0 changes
2619 * Sat Apr 25 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2620 - add switch to pass Distribution tag
2621 * Sun Apr 5 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2623 - database update version 10 to 11
2624 - make now installs docs so we rm from buildroot
2625 - add shared libs in %_libdir and other misc new files
2626 * Sun Jun 14 2009 D. Scott Barninger <barninger@fairfieldcomputers.com>
2627 - some corrections to %if logic
2628 * Fri May 29 2009 Kern Sibbald <kern@sibbald.com>
2629 - Make bacula.spec.in more configurable
2630 - Split out rescue and docs
2631 * Wed Dec 31 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2633 * Sat Nov 08 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2634 - set paths for QT using pkgconfig
2635 * Sat Oct 11 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2636 - release 2.4.3 update depkgs to 11Sep08 remove file nmshack from mtx package
2637 * Sun Sep 07 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2638 - adjust /opt/bacula install
2639 - add build switch to supress rescue package
2640 * Sun Aug 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2641 - add support for install to /opt/bacula
2642 * Sun Aug 17 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2643 - remove libtermcap dependancy for FC9
2644 * Mon Aug 04 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2645 - fix bat dependencies
2646 * Sat Jun 28 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2648 * Sat May 24 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2650 * Sun Mar 30 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2651 - FHS compatibility changes
2652 * Sat Feb 16 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2653 - remove fix for false buffer overflow detection with glibc >= 2.7
2654 * Sat Feb 09 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2655 - fix for false buffer overflow detection with glibc >= 2.7
2656 * Sun Jan 27 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2658 - add debug package for SuSE
2659 * Sat Jan 12 2008 D. Scott Barninger <barninger@fairfieldcomputers.com>
2660 - 2.2.8 beta release
2663 * Sun Dec 30 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2664 - fix typo on su103 client package requirements
2665 * Fri Dec 28 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2666 - add nobuild_mtx switch
2667 - add patch for postgresql.c for old postgresql versions
2668 * Sat Nov 17 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2670 * Sun Nov 11 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2671 - add new files required by rescue makefile
2672 * Sat Nov 10 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2673 - add su103 build target
2674 * Sun Nov 04 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2675 - fix dist defines for rhel5 and clones
2676 - fix rhel broken 64 bit QT4 paths
2677 - rh qt4 packages don't provide qt so fix that too
2678 * Mon Oct 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2679 - correct ownership when creating sqlite db file in post script
2680 * Sun Sep 16 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2681 - fix disable-batch-insert
2682 * Fri Sep 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2684 - turn off gconsole build for fc3, tray monitor fails to build
2685 - add new files for mtx package (09Sep07 depkgs update)
2686 * Sat Sep 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2687 - add --disable-batch-insert for older platforms
2688 - add build targets for rhel5 and clones
2689 * Mon Sep 03 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2691 - turn off gconsole build for su10 & fc4, tray monitor fails to build
2692 * Sat Jul 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2693 - 2.1.26 add make of qwt in depkgs for bat
2694 * Sat Jun 02 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2695 - upgrade Qt requirement for bat to 4.2
2696 * Sun May 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2697 - add fc7 build target
2698 * Sun Apr 29 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2700 - gnome-console now bgnome-console
2701 - wxconsole now bwx-console
2702 - add build option for bat
2703 * Sat Apr 08 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2704 - merge Otto Mueller's patch but keep script dir set to /etc/bacula
2705 - add build tag for Scientific Linux per Jon Peatfield <J.S.Peatfield@damtp.cam.ac.uk>
2706 * Tue Mar 27 2007 Otto Mueller <otto.mueller@bundestag.de>
2707 - adjust directory locations for FHS-compatibility
2708 sysconf_dir (/etc/bacula), script_dir (/usr/lib/bacula),
2709 working_dir (/var/lib/bacula) and pid_dir (/var/run)
2710 * Mon Feb 26 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2711 - add SuSE 10.2 target
2712 * Sat Jan 20 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2714 - set query.sql as config file
2716 * Sun Jan 14 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2718 - change determination of gcc version per patch from Marc Hennes
2719 - move BuildRequire for atk-devel to gnome only builds
2721 * Sat Jan 06 2007 D. Scott Barninger <barninger@fairfieldcomputers.com>
2723 * Sun Oct 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2724 - 1.39.26 remove create_sqlite_database.in.patch
2725 * Sun Sep 24 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2726 - change ownership of working_dir on server packages to bacula.bacula so that
2727 - bacula-sd can create bootstrap files
2728 * Sat Sep 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2729 - 1.39.22 remove separate cd and make of manpages the main Makefile does it now
2730 * Sun Aug 06 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2731 - fix manpages file extension for mdk
2732 * Sat Aug 05 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2733 - bug 648 re-enable and update sqlite patches
2737 - lock out gconsole build for gtk+ < 2.4
2738 * Mon Jul 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2739 - move pango-devel BuildRequires into gconsole only build
2740 * Sat Jul 15 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2741 - add provides and conflicts for standard suse packages
2742 - add third party packager tag support
2743 - add build_client_only tag
2744 - remove bsmtp from client package
2745 - add bacula-ctl-fd to client package
2746 * Thu Jul 13 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2747 - fix directory creation when wxconsole and not gconsole
2748 * Tue Jul 04 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2749 - add check to buildrequires to make sure libstdc++ version matches gcc
2750 * Mon Jul 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2751 - add python build support
2752 - fix LDFLAGS declarations
2753 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2754 - add requires for standard compiler toolchain
2755 - move version and release tags up
2757 - add docs_version tag
2758 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2759 - update rescuever to 1.8.6
2760 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2761 - update depkgs to 25Jun06
2762 - add mysql5 build tag
2763 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2764 - 1.38.10 bump rescue version
2765 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2766 - fix usermod statements
2768 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2769 - add -g param back to useradd statements Bug 605
2770 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2771 - redundant code cleanup
2772 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2773 - add wxconsole package
2774 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2776 - dependency update for Mandriva
2777 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2779 - remove -n option from useradd scripts
2780 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2782 - fix problem specifying more than one primary group for user bacula
2783 - add build switch to not build gconsole regardless of platform
2784 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2785 - add centos3 build tag
2786 - fix link error of static-fd on Mandrake with --disable-nls
2787 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2788 - add fc4 dependencies
2789 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2790 - add SuSE 10.0 build
2791 - remove specific permission in attrib macros
2792 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
2794 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
2795 - refix compat for _dist on SLES9 which seems to have been removed
2796 - added note regarding Aleksandar's use of specific permissions in attrib macros
2797 - need to review and add specific fc4 build currently using fc3 Requires
2798 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2800 - Reorganize files and pre/post sections to remove repetitions
2801 - Always build separate mtx package
2802 - Fix file ownerships for /etc/bacula and Bacula's working dir
2803 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2804 - Disable GNOME on RH7
2805 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
2806 - Red Hat and look alikes have mtx RPM, do not build/package our version
2807 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2808 - minor edit to _dist for SLES9 compatibility
2809 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2811 - kern changed location of pdf files and html manual in docs package
2812 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2814 - add docs (from prebuilt tarball) and rescue packages back in
2815 - remove dvd-freespace and dvd-writepart files, add dvd-handler
2816 - remove 3 of 4 sqlite script patches as not needed
2817 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2819 - remove docs and rescue sections (remove static fd)
2820 - add dvd-freespace and dvd-writepart files
2821 - update depkgs to 22Jun05
2822 - change database update to 8 to 9
2823 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2824 - minor cleanups before 1.38 changes
2825 - add popt and popt-devel build dependencies
2826 - add tetex and tetex-dvips dependencies for doc build
2827 - replace deprecated Copyright tag with License
2828 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2829 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
2830 - conflict with sqlite packages. remove readline dependency.
2831 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2832 - release 1.36.3 update docs
2833 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2834 - add centos4 build tag
2835 - add x86_64 build tag
2836 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2837 - add rhel4 build tag
2838 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
2839 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2840 - add rhel3 build tag
2841 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2842 - fix tray-monitor.conf for noreplace
2843 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2844 - fix distribution check for Fedora and Whitebox
2845 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2846 - add logwatch script
2848 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2849 - add build for Fedora Core 3 (linc now included in ORDit2)
2850 - add mysql4 define for Mandrake 10.1
2851 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
2852 - fix {group_file} variable in post scripts
2853 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
2854 - add distribution checking and custom Distribution tag
2855 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2856 - ASSIGNMENT OF COPYRIGHT
2857 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and
2858 - assigns unto Kern Sibbald, his successors, assigns and personal representatives,
2859 - all right, title and interest in and to the copyright in this software RPM
2860 - spec file. D. Scott Barninger warrants good title to said copyright, that it is
2861 - free of all liens, encumbrances or any known claims against said copyright.
2862 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2864 - thanks to Daniel Widyono
2865 - update description for rescue package to describe cdrom creation
2866 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2867 - update depkgs to 29Oct04
2868 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2869 - add cdrom rescue to bacula-rescue package
2870 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2871 - misc fixes from 1.36.0 suse feedback
2872 - fix situation where sqlite database exists but sqlite has been removed.
2873 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2874 - remove tray-monitor from RH8 build
2875 - fix permissions on tray-monitor files
2876 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2877 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
2878 - change database update to 7 to 8 upgrade,
2879 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
2880 - build in 30Jul04, add freetype dependancy to gnome package.
2881 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2882 - add documentation to console for groupadd
2883 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2884 - add support for running daemons as root.bacula
2885 - correct for change in location of floppy rescue files in 1.35.2
2886 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
2887 - updated depgkgs to 30Jul04
2888 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2889 - really, really fix symlink creation for gconsole
2890 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2891 - fix symlink creation in gconsole post install
2892 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2893 - fixed error in gconsole post script
2894 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2895 - add check for gconsole symlink before trying to create it
2896 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2897 - fix some minor permissions issues on doc files that CVS won't let us fix
2898 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2899 - add pkgconfig to BuildRequires
2900 - clean up gnome1/2 menu entries for appropriate packages
2901 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2902 - tightened up doc distribution
2903 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2904 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
2905 - rpm's horrible bug that prevents nested conditional macros prevents me
2906 - from implementing these 2 separate approaches within the conditionals which
2907 - create the separate server packages.
2908 - the solution adopted is to remove the gnome-console files from the server packages
2909 - so bacula-gconsole is now an add on for both client and server packages.
2910 - this also now allows the server packages to be install on machines without
2911 - an X-server and we can still maintain a single spec file.
2912 - added tests to make sure we have defined platform and database macros.
2913 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2914 - corrected mysql prerequisites for suse
2915 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2916 - replaced all cp commands with cp -p
2917 - removed addition of a+x permissions on gnome-console
2918 - corrected permissions on init scripts
2919 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2920 - corrected creation of sqlite_bindir in install from !mysql to sqlite
2922 - various cleanup patches from Michael K. Johnson:
2923 - corrected post install routines for nicer chkconfig
2924 - removed chmod changes in post routines and moved to install section
2925 - removed interactive nature of post routine for rescue package
2926 - added description of building rescue disks to the description of rescue package
2927 - added clean of build root to beginning of install
2928 - removed specifying attr in all file lists
2929 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2930 - added bconsole to client package
2931 - added gconsole package as add-on to client
2932 - removed spurious dependancies on updatedb package (!cut/paste)
2933 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2934 - added updatedb package
2935 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2936 - added postgresql package
2937 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2938 - corrected the if else logic in the dependancy sections
2939 - changes for 1.34 release
2940 - /etc/bacula/console is now /etc/bacula/bconsole
2941 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
2942 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
2943 - /usr/sbin/smtp is now /usr/sbin/bsmtp
2944 - added new /etc/bacula/drop_mysql_database
2945 - added new /etc/bacula/drop_sqlite_database
2946 - added new /etc/bacula/grant_sqlite_privileges
2947 - added new generic bacula database scripts in /etc/bacula
2948 - added pre-install sections to check for database versions older than 6
2949 - added check for /etc/bacula/console.conf and copy to bconsole.conf
2950 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2951 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
2952 - added testing for existing databases before executing any of the database creation scripts
2953 - added defines working_dir and sqlite_bindir in place of hard coded paths
2954 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2955 - added build configuration for SuSE.
2956 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
2957 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2958 - added patch for create_sqlite_database to fix the installed bindir
2959 - added execute of create_sqlite_database to post of sqlite package
2960 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2961 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
2962 - added bacula-fd as Requires for rescue package
2963 - added build tag for Fedora Core 1
2964 - cleaned up dependancies for all builds
2965 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
2966 - removed rh_version from package names
2967 - added platform build configuration section to beginning of file
2968 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2969 - removed make_static_bacula script from rescue package install
2970 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2971 - Added define at top of file for depkgs version
2972 - Added rescue sub-package
2973 - Moved requires statements into proper sub-package locations
2974 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2975 - Corrected Requires for Gnome 1.4/2.0 builds
2976 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2977 - Added separate source declaration for depkgs
2978 - added patch for make_catalog_backup script
2979 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
2980 - Misc changes to mysql/sqlite build and rh7/8 menu differences
2981 - Added rh_version to sub-package names
2982 - Added installed but missing file /etc/bacula/gconsole
2983 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
2984 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
2985 - Update spec for version 1.31 and combine client
2986 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>