]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/redhat/bacula.spec.in
Add standard toolchain to BuildRequires, add docs_version tag, restructure so all...
[bacula/bacula] / bacula / platforms / redhat / bacula.spec.in
1 # Bacula RPM spec file
2 # Copyright (C) 2000-2006 Kern Sibbald
3
4 # Platform Build Configuration
5
6 # basic defines for every build
7 %define _version @VERSION@
8 %define _release 1
9 %define depkgs_version 25Jun06
10 %define _rescuever 1.8.6
11 %define docs_version @VERSION@
12
13 # any patches for this release
14 # be sure to check the setup section for patch macros
15
16
17 #--------------------------------------------------------------------------
18 # it should not be necessary to change anything below here for a release
19 # except for patch macros in the setup section
20 #--------------------------------------------------------------------------
21
22 Summary: Bacula - The Network Backup Solution
23 Name: bacula
24 Version: %{_version}
25 Release: %{_release}
26 Group: System Environment/Daemons
27 License: GPL v2
28 Source0: http://www.prdownloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
29 Source1: http://www.prdownloads.sourceforge.net/bacula/depkgs-%{depkgs_version}.tar.gz
30 Source2: Release_Notes-%{version}-%{release}.tar.gz
31 Source3: http://www.prdownloads.sourceforge.net/bacula/%{name}-docs-%{docs_version}.tar.gz
32 Source4: http://www.prdownloads.sourceforge.net/bacula/%{name}-rescue-%{_rescuever}.tar.gz
33 BuildRoot: %{_tmppath}/%{name}-root
34 URL: http://www.bacula.org/
35 Vendor: The Bacula Team
36 Packager: D. Scott Barninger <barninger@fairfieldcomputers.com>
37
38 # define the basic package description
39 %define blurb Bacula - It comes by night and sucks the vital essence from your computers.
40 %define blurb2 Bacula is a set of computer programs that permit you (or the system
41 %define blurb3 administrator) to manage backup, recovery, and verification of computer
42 %define blurb4 data across a network of computers of different kinds. In technical terms,
43 %define blurb5 it is a network client/server based backup program. Bacula is relatively
44 %define blurb6 easy to use and efficient, while offering many advanced storage management
45 %define blurb7 features that make it easy to find and recover lost or damaged files.
46 %define blurb8 Bacula source code has been released under the GPL version 2 license.
47
48 # directory locations
49 %define sqlite_bindir /usr/lib/bacula/sqlite
50 %define working_dir /var/bacula
51 %define _docsrc ../%{name}-docs-%{docs_version}
52 %define _rescuesrc ../%{name}-rescue-%{_rescuever}
53 %define depkgs ../depkgs
54
55 # NOTE these defines are used in some rather complex useradd and groupadd
56 # commands. If you change them examine the post scripts for consequences.
57 %define director_daemon_user bacula
58 %define storage_daemon_user bacula
59 %define file_daemon_user root
60 %define daemon_group bacula
61 # group that has write access to tape devices, usually disk on Linux
62 %define storage_daemon_group disk
63 %define user_file /etc/passwd
64 %define group_file /etc/group
65 %define useradd /usr/sbin/useradd
66 %define groupadd /usr/sbin/groupadd
67 %define usermod /usr/sbin/usermod
68
69 # platform defines - set one below or define the build_xxx on the command line
70 # RedHat builds
71 %define rh7 0
72 %{?build_rh7:%define rh7 1}
73 %define rh8 0
74 %{?build_rh8:%define rh8 1}
75 %define rh9 0
76 %{?build_rh9:%define rh9 1}
77 # Fedora Core build
78 %define fc1 0
79 %{?build_fc1:%define fc1 1}
80 %define fc3 0
81 %{?build_fc3:%define fc3 1}
82 %define fc4 0
83 %{?build_fc4:%define fc4 1}
84 %define fc5 0
85 %{?build_fc5:%define fc5 1}
86 # Whitebox Enterprise build
87 %define wb3 0
88 %{?build_wb3:%define wb3 1}
89 # RedHat Enterprise builds
90 %define rhel3 0
91 %{?build_rhel3:%define rhel3 1}
92 %{?build_rhel3:%define wb3 1}
93 %define rhel4 0
94 %{?build_rhel4:%define rhel4 1}
95 %{?build_rhel4:%define fc3 1}
96 # CentOS build
97 %define centos3 0
98 %{?build_centos3:%define centos3 1}
99 %{?build_centos3:%define wb3 1}
100 %define centos4 0
101 %{?build_centos4:%define centos4 1}
102 %{?build_centos4:%define fc3 1}
103 # SuSE build
104 %define su9 0
105 %{?build_su9:%define su9 1}
106 %define su10 0
107 %{?build_su10:%define su10 1}
108 # Mandrake builds
109 %define mdk 0
110 %{?build_mdk:%define mdk 1}
111 %define mdv 0
112 %{?build_mdv:%define mdv 1}
113 %{?build_mdv:%define mdk 1}
114
115 # test for a platform definition
116 %if ! %{rh7} && ! %{rh8} && ! %{rh9} && ! %{fc1} && ! %{fc3} && ! %{fc4} && ! %{fc5} && ! %{wb3} && ! %{su9} && ! %{su10} && ! %{mdk}
117 %{error: You must specify a platform. Please examine the spec file.}
118 exit 1
119 %endif
120
121 # database defines
122 # set for database support desired or define the build_xxx on the command line
123 %define mysql 0
124 %{?build_mysql:%define mysql 1}
125 # if using mysql 4.x define this and mysql above
126 # currently: Mandrake 10.1, SuSE 9.x & 10.0, RHEL4 and Fedora Core 4
127 %define mysql4 0
128 %{?build_mysql4:%define mysql4 1}
129 %{?build_mysql4:%define mysql 1}
130 # if using mysql 5.x define this and mysql above
131 # currently: SuSE 10.1 and Fedora Core 5
132 %define mysql5 0
133 %{?build_mysql5:%define mysql5 1}
134 %{?build_mysql5:%define mysql 1}
135 %define sqlite 0
136 %{?build_sqlite:%define sqlite 1}
137 %define postgresql 0
138 %{?build_postgresql:%define postgresql 1}
139
140 # test for a database definition
141 %if ! %{mysql} && ! %{sqlite} && ! %{postgresql}
142 %{error: You must specify database support. Please examine the spec file.}
143 exit 1
144 %endif
145
146 %if %{mysql}
147 %define db_backend mysql
148 %endif
149 %if %{sqlite}
150 %define db_backend sqlite
151 %endif
152 %if %{postgresql}
153 %define db_backend postgresql
154 %endif
155
156 # 64 bit support
157 %define x86_64 0
158 %{?build_x86_64:%define x86_64 1}
159
160 # check what distribution we are
161 %if %{rh7} || %{rh8} || %{rh9} || %{rhel3} || %{rhel4}
162 %define _dist %(grep Red /etc/redhat-release)
163 %endif
164 %if %{fc1} || %{fc4} || %{fc5}
165 %define _dist %(grep Fedora /etc/redhat-release)
166 %endif
167 %if %{centos4} || %{centos3}
168 %define _dist %(grep CentOS /etc/redhat-release)
169 %endif
170 %if %{fc3} && ! %{rhel4} && ! %{centos4}
171 %define _dist %(grep Fedora /etc/redhat-release)
172 %endif
173 %if %{wb3} && ! %{rhel3} && ! %{centos3}
174 %define _dist %(grep White /etc/whitebox-release)
175 %endif
176 %if %{su9} || %{su10}
177 %define _dist %(grep -i SuSE /etc/SuSE-release)
178 %endif
179 %if %{mdk}
180 %define _dist %(grep Mand /etc/mandrake-release)
181 %endif
182 Distribution: %{_dist}
183
184 # Should we build gconsole, possible only if gnome >= 2.0 available
185 %if %{rh7}
186 %define gconsole 0
187 %else
188 %define gconsole 1
189 %endif
190 # specifically disallow gconsole if desired
191 %{?nobuild_gconsole:%define gconsole 0}
192
193 # Should we build wxconsole, only wxWidgets >=2.6 is supported
194 # currently only SuSE 10 and FC4
195 %define wxconsole 0
196 %{?build_wxconsole:%define wxconsole 1}
197
198 BuildRequires: gcc, gcc-c++, make, autoconf
199 BuildRequires: atk-devel, ncurses-devel, pango-devel, perl
200 BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel
201 BuildRequires: openssl-devel
202 %if %{gconsole}
203 BuildRequires: pkgconfig
204 %endif
205 %if %{rh7}
206 BuildRequires: libtermcap-devel
207 BuildRequires: glibc-devel >= 2.2
208 %endif
209 %if %{su9}
210 BuildRequires: termcap
211 BuildRequires: glibc-devel >= 2.3
212 %endif
213 %if %{su9} && %{gconsole}
214 BuildRequires: libgnome >= 2.0
215 BuildRequires: gtk2-devel >= 2.0
216 BuildRequires: libgnomeui-devel >= 2.0
217 BuildRequires: ORBit2-devel
218 BuildRequires: libart_lgpl-devel >= 2.0
219 BuildRequires: libbonobo-devel >= 2.0
220 BuildRequires: libbonoboui-devel >= 2.0
221 BuildRequires: bonobo-activation-devel
222 BuildRequires: gconf2-devel
223 BuildRequires: linc-devel
224 BuildRequires: freetype2-devel
225 %endif
226 %if %{su10}
227 BuildRequires: termcap
228 BuildRequires: glibc-devel >= 2.3
229 %endif
230 %if %{su10} && %{gconsole}
231 BuildRequires: libgnome >= 2.12
232 BuildRequires: gtk2-devel >= 2.8
233 BuildRequires: libgnomeui-devel >= 2.12
234 BuildRequires: ORBit2-devel
235 BuildRequires: libart_lgpl-devel >= 2.3
236 BuildRequires: libbonobo-devel >= 2.10
237 BuildRequires: libbonoboui-devel >= 2.10
238 BuildRequires: bonobo-activation-devel
239 BuildRequires: gconf2-devel
240 BuildRequires: freetype2-devel
241 BuildRequires: cairo-devel
242 BuildRequires: fontconfig-devel >= 2.3
243 BuildRequires: gnome-vfs2-devel >= 2.12
244 BuildRequires: libpng-devel
245 %endif
246 %if %{mdk}
247 BuildRequires: libtermcap-devel
248 BuildRequires: libstdc++-static-devel
249 BuildRequires: glibc-static-devel
250 BuildRequires: glibc-devel >= 2.3
251 %endif
252 %if %{mdk} && !%{mdv} && %{gconsole}
253 BuildRequires: gtk2-devel >= 2.0
254 BuildRequires: libgnomeui2-devel >= 2.0
255 BuildRequires: libORBit2-devel
256 BuildRequires: libart_lgpl-devel >= 2.0
257 BuildRequires: libbonobo2_0-devel
258 BuildRequires: libbonoboui2_0-devel
259 BuildRequires: libbonobo-activation-devel
260 BuildRequires: libGConf2-devel
261 BuildRequires: freetype2-devel
262 %endif
263 %if %{mdv} && %{gconsole}
264 BuildRequires: gtk2-devel >= 2.8
265 BuildRequires: libgnomeui2-devel >= 2.10
266 BuildRequires: libORBit2-devel
267 BuildRequires: libart_lgpl-devel >= 2.3
268 BuildRequires: libbonobo2_0-devel
269 BuildRequires: libbonoboui2_0-devel
270 BuildRequires: libbonobo-activation-devel
271 BuildRequires: libGConf2-devel
272 BuildRequires: freetype2-devel
273 %endif
274 %if %{fc3}
275 BuildRequires: libtermcap-devel
276 BuildRequires: glibc-devel >= 2.3
277 %endif
278 %if %{fc3} && %{gconsole}
279 BuildRequires: gtk2-devel >= 2.4
280 BuildRequires: libgnomeui-devel >= 2.8
281 BuildRequires: ORBit2-devel
282 BuildRequires: libart_lgpl-devel >= 2.3
283 BuildRequires: libbonobo-devel >= 2.8
284 BuildRequires: libbonoboui-devel >= 2.8
285 BuildRequires: bonobo-activation-devel
286 BuildRequires: GConf2-devel
287 BuildRequires: freetype-devel
288 %endif
289 %if %{fc4}
290 BuildRequires: libtermcap-devel
291 BuildRequires: glibc-devel >= 2.3
292 %endif
293 %if %{fc4} && %{gconsole}
294 BuildRequires: gtk2-devel >= 2.6
295 BuildRequires: libgnomeui-devel >= 2.10
296 BuildRequires: ORBit2-devel
297 BuildRequires: libart_lgpl-devel >= 2.3
298 BuildRequires: libbonobo-devel >= 2.8
299 BuildRequires: libbonoboui-devel >= 2.8
300 BuildRequires: bonobo-activation-devel
301 BuildRequires: GConf2-devel
302 BuildRequires: freetype-devel
303 %endif
304 %if %{fc5}
305 BuildRequires: libtermcap-devel
306 BuildRequires: glibc-devel >= 2.4
307 %endif
308 %if %{fc5} && %{gconsole}
309 BuildRequires: gtk2-devel >= 2.8
310 BuildRequires: libgnomeui-devel >= 2.14
311 BuildRequires: ORBit2-devel
312 BuildRequires: libart_lgpl-devel >= 2.3
313 BuildRequires: libbonobo-devel >= 2.14
314 BuildRequires: libbonoboui-devel >= 2.14
315 BuildRequires: GConf2-devel
316 BuildRequires: freetype-devel
317 %endif
318 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5}
319 BuildRequires: libtermcap-devel
320 BuildRequires: glibc-devel >= 2.3
321 %endif
322 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5} && %{gconsole}
323 BuildRequires: gtk2-devel >= 2.0
324 BuildRequires: libgnomeui-devel >= 2.0
325 BuildRequires: ORBit2-devel
326 BuildRequires: libart_lgpl-devel >= 2.0
327 BuildRequires: libbonobo-devel >= 2.0
328 BuildRequires: libbonoboui-devel >= 2.0
329 BuildRequires: bonobo-activation-devel
330 BuildRequires: GConf2-devel
331 BuildRequires: linc-devel
332 BuildRequires: freetype-devel
333 %endif
334
335 %if %{mysql} && ! %{mysql4} && ! %{mysql5}
336 BuildRequires: mysql-devel >= 3.23
337 %endif
338
339 %if %{mysql} && %{mysql4}
340 BuildRequires: mysql-devel >= 4.0
341 %endif
342
343 %if %{mysql} && %{mysql5}
344 BuildRequires: mysql-devel >= 5.0
345 %endif
346
347 %if %{postgresql} && %{wb3}
348 BuildRequires: rh-postgresql-devel >= 7
349 %endif
350
351 %if %{postgresql} && ! %{wb3}
352 BuildRequires: postgresql-devel >= 7
353 %endif
354
355 %if %{wxconsole}
356 BuildRequires: wxGTK-devel >= 2.6
357 %endif
358
359 %description
360 %{blurb}
361
362 %{blurb2}
363 %{blurb3}
364 %{blurb4}
365 %{blurb5}
366 %{blurb6}
367 %{blurb7}
368 %{blurb8}
369
370 %if %{mysql}
371 %package mysql
372 %endif
373 %if %{sqlite}
374 %package sqlite
375 %endif
376 %if %{postgresql}
377 %package postgresql
378 %endif
379
380 Summary: Bacula - The Network Backup Solution
381 Group: System Environment/Daemons
382 Provides: bacula-dir, bacula-sd, bacula-fd, bacula-server
383 Conflicts: bacula-client
384 Obsoletes: bacula-rescue
385 Requires: ncurses, libstdc++, zlib, openssl, mtx
386
387 %if %{rh7}
388 Requires: glibc >= 2.2
389 Requires: libtermcap
390 %endif
391 %if %{su9} || %{su10}
392 Requires: glibc >= 2.3
393 Requires: termcap
394 %endif
395 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{fc5}
396 Requires: glibc >= 2.3
397 Requires: libtermcap
398 %endif
399 %if %{fc5}
400 Requires: glibc >= 2.4
401 Requires: libtermcap
402 %endif
403
404 %if %{mysql} && ! %{su9} && ! %{mdk} && ! %{mysql4} && ! %{mysql5}
405 Requires: mysql >= 3.23
406 Requires: mysql-server >= 3.23
407 %endif
408 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql4}
409 Requires: mysql >= 4.0
410 Requires: mysql-server >= 4.0
411 %endif
412 %if %{mysql} && ! %{su9} && ! %{su10} && ! %{mdk} && %{mysql5}
413 Requires: mysql >= 5.0
414 Requires: mysql-server >= 5.0
415 %endif
416
417 %if %{mysql} && %{su9} && ! %{mysql4}
418 Requires: mysql >= 3.23
419 Requires: mysql-client >= 3.23
420 %endif
421 %if %{mysql} && %{su9} && %{mysql4}
422 Requires: mysql >= 4.0
423 Requires: mysql-client >= 4.0
424 %endif
425 %if %{mysql} && %{su10} && %{mysql4}
426 Requires: mysql >= 4.0
427 Requires: mysql-client >= 4.0
428 %endif
429 %if %{mysql} && %{su10} && %{mysql5}
430 Requires: mysql >= 5.0
431 Requires: mysql-client >= 5.0
432 %endif
433
434 %if %{mysql} && %{mdk} && ! %{mysql4}
435 Requires: mysql >= 3.23
436 Requires: mysql-client >= 3.23
437 %endif
438 %if %{mysql} && %{mdk} && %{mysql4}
439 Requires: mysql >= 4.0
440 Requires: mysql-client >= 4.0
441 %endif
442
443 %if %{postgresql} && %{wb3}
444 Requires: rh-postgresql >= 7
445 Requires: rh-postgresql-server >= 7
446 %endif
447 %if %{postgresql} && ! %{wb3}
448 Requires: postgresql >= 7
449 Requires: postgresql-server >= 7
450 %endif
451
452 %if %{mysql}
453 %description mysql
454 %endif
455 %if %{sqlite}
456 %description sqlite
457 %endif
458 %if %{postgresql}
459 %description postgresql
460 %endif
461
462 %{blurb}
463
464 %{blurb2}
465 %{blurb3}
466 %{blurb4}
467 %{blurb5}
468 %{blurb6}
469 %{blurb7}
470 %{blurb8}
471
472 %if %{mysql}
473 This build requires MySQL to be installed separately as the catalog database.
474 %endif
475 %if %{postgresql}
476 This build requires PostgreSQL to be installed separately as the catalog database.
477 %endif
478 %if %{sqlite}
479 This build incorporates sqlite as the catalog database, statically compiled.
480 %endif
481
482 %package mtx
483 Summary: Bacula - The Network Backup Solution
484 Group: System Environment/Daemons
485 Provides: mtx
486
487 %description mtx
488 This is Bacula's version of mtx tape utilities for Linux distributions that
489 do not provide their own mtx package
490
491 %package client
492 Summary: Bacula - The Network Backup Solution
493 Group: System Environment/Daemons
494 Provides: bacula-fd
495 Conflicts: bacula-mysql
496 Conflicts: bacula-sqlite
497 Conflicts: bacula-postgresql
498 Obsoletes: bacula-rescue
499 Requires: libstdc++, zlib, openssl
500
501 %if %{rh7}
502 Requires: glibc >= 2.2
503 Requires: libtermcap
504 %endif
505 %if %{su9} || %{su10}
506 Requires: glibc >= 2.3
507 Requires: termcap
508 %endif
509 %if ! %{rh7} && ! %{su9} && ! %{su10} && ! %{fc5}
510 Requires: glibc >= 2.3
511 Requires: libtermcap
512 %endif
513 %if %{fc5}
514 Requires: glibc >= 2.4
515 Requires: libtermcap
516 %endif
517
518 %description client
519 %{blurb}
520
521 %{blurb2}
522 %{blurb3}
523 %{blurb4}
524 %{blurb5}
525 %{blurb6}
526 %{blurb7}
527 %{blurb8}
528
529 This is the File daemon (Client) only package. It includes the command line 
530 console program.
531
532 %package updatedb
533
534 Summary: Bacula - The Network Backup Solution
535 Group: System Environment/Daemons
536
537 %description updatedb
538 %{blurb}
539
540 %{blurb2}
541 %{blurb3}
542 %{blurb4}
543 %{blurb5}
544 %{blurb6}
545 %{blurb7}
546 %{blurb8}
547
548 This package installs scripts for updating older versions of the bacula
549 database.
550
551 %if %{gconsole}
552 %package gconsole
553 Summary: Bacula - The Network Backup Solution
554 Group: System Environment/Daemons
555 Requires: atk, libstdc++, zlib, pango, libxml2, bacula-fd, openssl
556 %endif
557
558 %if %{gconsole} && %{su9}
559 Requires: gtk2 >= 2.0
560 Requires: libgnome >= 2.0
561 Requires: libgnomeui >= 2.0
562 Requires: glibc >= 2.3
563 Requires: ORBit2
564 Requires: libart_lgpl >= 2.0
565 Requires: libbonobo >= 2.0
566 Requires: libbonoboui >= 2.0
567 Requires: bonobo-activation
568 Requires: gconf2
569 Requires: linc
570 Requires: freetype2
571 %endif
572 %if %{gconsole} && %{su10}
573 Requires: gtk2 >= 2.8
574 Requires: libgnome >= 2.12
575 Requires: libgnomeui >= 2.12
576 Requires: glibc >= 2.3
577 Requires: ORBit2
578 Requires: libart_lgpl >= 2.3
579 Requires: libbonobo >= 2.10
580 Requires: libbonoboui >= 2.10
581 Requires: bonobo-activation
582 Requires: gconf2
583 Requires: freetype2
584 Requires: cairo
585 Requires: fontconfig >= 2.3
586 Requires: gnome-vfs2 >= 2.12
587 Requires: libpng
588 %endif
589 %if %{gconsole} && %{mdk} && !%{mdv}
590 Requires: gtk2 >= 2.0
591 Requires: libgnomeui2
592 Requires: glibc >= 2.3
593 Requires: ORBit2
594 Requires: libart_lgpl >= 2.0
595 Requires: libbonobo >= 2.0
596 Requires: libbonoboui >= 2.0
597 Requires: GConf2
598 Requires: freetype2
599 %endif
600 %if %{gconsole} && %{mdv}
601 Requires: gtk2 >= 2.8
602 Requires: libgnomeui2
603 Requires: glibc >= 2.3
604 Requires: ORBit2
605 Requires: libart_lgpl >= 2.3
606 Requires: libbonobo >= 2.10
607 Requires: libbonoboui >= 2.10
608 Requires: GConf2
609 Requires: freetype2
610 %endif
611 %if %{gconsole} && %{fc3}  
612 Requires: gtk2 >= 2.4
613 Requires: libgnomeui >= 2.8
614 Requires: glibc >= 2.3
615 Requires: ORBit2
616 Requires: libart_lgpl >= 2.3
617 Requires: libbonobo >= 2.8
618 Requires: libbonoboui >= 2.8
619 Requires: bonobo-activation
620 Requires: GConf2
621 Requires: freetype
622 %endif
623 %if %{gconsole} && %{fc4}  
624 Requires: gtk2 >= 2.6
625 Requires: libgnomeui >= 2.10
626 Requires: glibc >= 2.3
627 Requires: ORBit2
628 Requires: libart_lgpl >= 2.3
629 Requires: libbonobo >= 2.8
630 Requires: libbonoboui >= 2.8
631 Requires: bonobo-activation
632 Requires: GConf2
633 Requires: freetype
634 %endif
635 %if %{gconsole} && %{fc5}  
636 Requires: gtk2 >= 2.8
637 Requires: libgnomeui >= 2.14
638 Requires: glibc >= 2.4
639 Requires: ORBit2
640 Requires: libart_lgpl >= 2.3
641 Requires: libbonobo >= 2.14
642 Requires: libbonoboui >= 2.14
643 Requires: GConf2
644 Requires: freetype
645 %endif
646 %if %{gconsole} && ! %{su9} && ! %{su10} && ! %{mdk} && ! %{fc3} && ! %{fc4} && ! %{fc5}
647 Requires: gtk2 >= 2.0
648 Requires: libgnomeui >= 2.0
649 Requires: glibc >= 2.3
650 Requires: ORBit2
651 Requires: libart_lgpl >= 2.0
652 Requires: libbonobo >= 2.0
653 Requires: libbonoboui >= 2.0
654 Requires: bonobo-activation
655 Requires: GConf2
656 Requires: linc
657 Requires: freetype
658 %endif
659 %if %{gconsole} && %{su9}
660 Requires: xsu
661 %endif
662 %if %{gconsole} && %{su10}
663 Requires: xsu
664 %endif
665 %if %{gconsole} && ! %{su9} && ! %{su10}
666 Requires: usermode
667 %endif
668
669 %if %{gconsole}
670 %description gconsole
671 %{blurb}
672
673 %{blurb2}
674 %{blurb3}
675 %{blurb4}
676 %{blurb5}
677 %{blurb6}
678 %{blurb7}
679 %{blurb8}
680
681 This is the Gnome Console package. It is an add-on to the client or
682 server packages.
683 %endif
684
685 %if %{wxconsole}
686 %package wxconsole
687 Summary: Bacula - The Network Backup Solution
688 Group: System Environment/Daemons
689 Requires: wxGTK >= 2.6, libstdc++, openssl
690 %endif
691
692 %if %{wxconsole} && %{su10}
693 Requires: gtk2 >= 2.8
694 %endif
695
696 %if %{wxconsole} && %{fc3}  
697 Requires: gtk2 >= 2.4
698 %endif
699
700 %if %{wxconsole} && %{fc4}  
701 Requires: gtk2 >= 2.6
702 %endif
703
704 %if %{wxconsole} && %{fc5}  
705 Requires: gtk2 >= 2.8
706 %endif
707
708 %if %{wxconsole}
709 %description wxconsole
710 %{blurb}
711
712 %{blurb2}
713 %{blurb3}
714 %{blurb4}
715 %{blurb5}
716 %{blurb6}
717 %{blurb7}
718 %{blurb8}
719
720 This is the WXWindows Console package. It is an add-on to the client or
721 server packages.
722 %endif
723
724 %prep
725
726 %setup
727 %setup -T -D -b 1
728 %setup -T -D -b 2
729 %setup -T -D -b 3
730 %setup -T -D -b 4
731
732 %build
733
734 %if %{su9} || %{su10}
735 export LDFLAGS="-L/usr/lib/termcap"
736 %endif
737
738 cwd=${PWD}
739 cd %{depkgs}
740 %if %{sqlite}
741 make sqlite
742 %endif
743 make mtx
744 cd ${cwd}
745
746 # patches for the bundled sqlite scripts
747 # as of 1.38.0 first 3 patches no longer needed
748
749 # patch the make_sqlite_tables script for installation bindir
750 # patch src/cats/make_sqlite_tables.in src/cats/make_sqlite_tables.in.patch
751
752 # patch the create_sqlite_database script for installation bindir
753 #patch src/cats/create_sqlite_database.in src/cats/create_sqlite_database.in.patch
754
755 # patch the make_catalog_backup script for installation bindir
756 #patch src/cats/make_catalog_backup.in src/cats/make_catalog_backup.in.patch
757
758 # patch the update_sqlite_tables script for installation bindir
759 patch src/cats/update_sqlite_tables.in src/cats/update_sqlite_tables.in.patch
760
761 # patch the bacula-dir init script to remove sqlite service
762 %if %{sqlite} && %{su9}
763 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
764 %endif
765 %if %{sqlite} && %{su10}
766 patch platforms/suse/bacula-dir.in platforms/suse/bacula-dir-suse-sqlite.patch
767 %endif
768
769 # 64 bit lib location hacks
770 %if %{x86_64}
771 export LDFLAGS=-L/usr/lib64
772 %endif
773 %if %{mysql} && %{x86_64}
774 export LDFLAGS=-L/usr/lib64/mysql
775 %endif
776
777 %configure \
778         --prefix=/usr \
779         --sbindir=/usr/sbin \
780         --sysconfdir=/etc/bacula \
781         --with-scriptdir=/etc/bacula \
782         --enable-smartalloc \
783         --enable-client-only \
784         %if %{mdk}
785         --disable-nls \
786         %endif
787         --enable-static-fd
788
789 make
790
791 %configure \
792         --prefix=/usr \
793         --sbindir=/usr/sbin \
794         --sysconfdir=/etc/bacula \
795         --with-scriptdir=/etc/bacula \
796         --enable-smartalloc \
797 %if %{gconsole}
798         --enable-gnome \
799 %endif
800 %if %{gconsole} && ! %{rh8}
801         --enable-tray-monitor \
802 %endif
803 %if %{mysql}
804         --with-mysql \
805 %endif
806 %if %{sqlite}
807         --with-sqlite=${cwd}/%{depkgs}/sqlite \
808 %endif
809 %if %{postgresql}
810         --with-postgresql \
811 %endif
812 %if %{wxconsole}
813         --enable-wx-console \
814 %endif
815         --with-working-dir=%{working_dir} \
816         --with-pid-dir=/var/run \
817         --with-subsys-dir=/var/lock/subsys \
818         --with-dir-user=%{director_daemon_user} \
819         --with-dir-group=%{daemon_group} \
820         --with-sd-user=%{storage_daemon_user} \
821         --with-sd-group=%{storage_daemon_group} \
822         --with-fd-user=%{file_daemon_user} \
823         --with-fd-group=%{daemon_group} \
824         --with-dir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \
825         --with-fd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \
826         --with-sd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \
827         --with-mon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \
828         --with-mon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \
829         --with-mon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \
830         --with-openssl
831
832 make
833
834 %install
835  
836 cwd=${PWD}
837 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
838 mkdir -p $RPM_BUILD_ROOT/etc/init.d
839 mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
840 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/logfiles
841 mkdir -p $RPM_BUILD_ROOT/etc/log.d/conf/services
842 mkdir -p $RPM_BUILD_ROOT/etc/log.d/scripts/services
843 mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
844 %if %{gconsole}
845 mkdir -p $RPM_BUILD_ROOT/usr/share/applications
846 %endif
847 mkdir -p $RPM_BUILD_ROOT/etc/bacula/updatedb
848 %if %{gconsole} && ! %{su9} && ! %{su10}
849 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
850 mkdir -p $RPM_BUILD_ROOT/etc/security/console.apps
851 mkdir -p $RPM_BUILD_ROOT/usr/bin
852 %endif
853
854 %if %{sqlite}
855 mkdir -p $RPM_BUILD_ROOT%{sqlite_bindir}
856 %endif
857
858 make \
859         prefix=$RPM_BUILD_ROOT/usr \
860         sbindir=$RPM_BUILD_ROOT/usr/sbin \
861         sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
862         scriptdir=$RPM_BUILD_ROOT/etc/bacula \
863         working_dir=$RPM_BUILD_ROOT%{working_dir} \
864         install
865
866 cd %{depkgs}
867 make \
868         prefix=$RPM_BUILD_ROOT/usr \
869         sbindir=$RPM_BUILD_ROOT/usr/sbin \
870         sysconfdir=$RPM_BUILD_ROOT/etc/bacula \
871         working_dir=$RPM_BUILD_ROOT%{working_dir} \
872         mandir=$RPM_BUILD_ROOT/usr/man \
873         mtx-install
874 cd ${cwd}
875
876 # fixme - make installs the mysql scripts for sqlite build
877 %if %{sqlite}
878 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
879 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
880 rm -f $RPM_BUILD_ROOT/etc/bacula/grant_mysql_privileges
881 %endif
882
883 # fixme - make installs the mysql scripts for postgresql build
884 %if %{postgresql}
885 rm -f $RPM_BUILD_ROOT/etc/bacula/startmysql
886 rm -f $RPM_BUILD_ROOT/etc/bacula/stopmysql
887 %endif
888
889 # fixme - make installs gconsole script for build without gconsole
890 %if ! %{gconsole}
891 rm -f $RPM_BUILD_ROOT/etc/bacula/gconsole
892 %endif
893
894 rm -f $RPM_BUILD_ROOT/usr/sbin/static-bacula-fd
895
896 # install the init scripts
897 %if %{su9} || %{su10}
898 cp -p platforms/suse/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
899 cp -p platforms/suse/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
900 cp -p platforms/suse/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
901 %endif
902 %if %{mdk}
903 cp -p platforms/mandrake/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
904 cp -p platforms/mandrake/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
905 cp -p platforms/mandrake/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
906 %endif
907 %if ! %{su9} && ! %{su10} && ! %{mdk}
908 cp -p platforms/redhat/bacula-dir $RPM_BUILD_ROOT/etc/init.d/bacula-dir
909 cp -p platforms/redhat/bacula-fd $RPM_BUILD_ROOT/etc/init.d/bacula-fd
910 cp -p platforms/redhat/bacula-sd $RPM_BUILD_ROOT/etc/init.d/bacula-sd
911 %endif
912 chmod 0754 $RPM_BUILD_ROOT/etc/init.d/*
913
914 # install the menu stuff
915 %if %{gconsole} && %{su9}
916 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
917 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
918 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
919 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
920 %endif
921 %if %{gconsole} && %{su10}
922 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
923 cp -p scripts/bacula.desktop.gnome2.xsu $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
924 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
925 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
926 %endif
927 %if %{wxconsole} && %{su10}
928 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
929 cp -p scripts/wxconsole.desktop.xsu $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
930 %endif
931 %if %{rh8} || %{rh9} || %{wb3} || %{fc1} || %{fc3} || %{fc4} || %{fc5} || %{mdk}
932 %define iftrick 1
933 %else
934 %define iftrick 0
935 %endif
936 %if %{gconsole} && %{iftrick}
937 cp -p scripts/bacula.png $RPM_BUILD_ROOT/usr/share/pixmaps/bacula.png
938 cp -p scripts/bacula.desktop.gnome2.consolehelper $RPM_BUILD_ROOT/usr/share/applications/bacula.desktop
939 cp -p scripts/gnome-console.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/gnome-console
940 cp -p scripts/gnome-console.pamd $RPM_BUILD_ROOT/etc/pam.d/gnome-console
941 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/gnome-console
942 %endif
943 %if %{gconsole} && ! %{rh8}
944 cp -p src/tray-monitor/generic.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/bacula-tray-monitor.xpm
945 cp -p scripts/bacula-tray-monitor.desktop $RPM_BUILD_ROOT/usr/share/applications/bacula-tray-monitor.desktop
946 %endif
947 %if %{wxconsole} && %{iftrick}
948 cp -p src/wx-console/wxwin16x16.xpm $RPM_BUILD_ROOT/usr/share/pixmaps/wxwin16x16.xpm
949 cp -p scripts/wxconsole.desktop.consolehelper $RPM_BUILD_ROOT/usr/share/applications/wxconsole.desktop
950 cp -p scripts/wxconsole.console_apps $RPM_BUILD_ROOT/etc/security/console.apps/wxconsole
951 cp -p scripts/wxconsole.pamd $RPM_BUILD_ROOT/etc/pam.d/wxconsole
952 ln -sf consolehelper $RPM_BUILD_ROOT/usr/bin/wxconsole
953 %endif
954
955 # install sqlite
956 %if %{sqlite}
957 cp -p %{depkgs}/sqlite/sqlite $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite
958 cp -p %{depkgs}/sqlite/sqlite.h $RPM_BUILD_ROOT%{sqlite_bindir}/sqlite.h
959 cp -p %{depkgs}/sqlite/libsqlite.a $RPM_BUILD_ROOT%{sqlite_bindir}/libsqlite.a
960 %endif
961
962 # install the logrotate file
963 cp -p scripts/logrotate $RPM_BUILD_ROOT/etc/logrotate.d/bacula
964
965 # install the updatedb scripts
966 cp -p updatedb/* $RPM_BUILD_ROOT/etc/bacula/updatedb/
967
968 # install the logwatch scripts
969 cp -p scripts/logwatch/bacula $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
970 cp -p scripts/logwatch/logfile.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
971 cp -p scripts/logwatch/services.bacula.conf $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
972 chmod 755 $RPM_BUILD_ROOT/etc/log.d/scripts/services/bacula
973 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/logfiles/bacula.conf
974 chmod 644 $RPM_BUILD_ROOT/etc/log.d/conf/services/bacula.conf
975
976 # install the rescue files
977 mkdir $RPM_BUILD_ROOT/etc/bacula/rescue
978 cp -p %{_rescuesrc}/Makefile* $RPM_BUILD_ROOT/etc/bacula/rescue/
979 cp -p %{_rescuesrc}/README $RPM_BUILD_ROOT/etc/bacula/rescue/
980 cp -p %{_rescuesrc}/configure $RPM_BUILD_ROOT/etc/bacula/rescue/
981 cp -p %{_rescuesrc}/version.h $RPM_BUILD_ROOT/etc/bacula/rescue/
982 cp -pr %{_rescuesrc}/linux $RPM_BUILD_ROOT/etc/bacula/rescue/
983 cp -pr %{_rescuesrc}/autoconf $RPM_BUILD_ROOT/etc/bacula/rescue/
984 touch $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/rpm_release
985 cp -p src/filed/static-bacula-fd $RPM_BUILD_ROOT/etc/bacula/rescue/linux/cdrom/bacula/bin/bacula-fd
986 rm -f src/filed/static-bacula-fd
987
988 %if %{wxconsole}
989 mv $RPM_BUILD_ROOT/usr/sbin/wx-console $RPM_BUILD_ROOT/usr/sbin/wxconsole
990 mv $RPM_BUILD_ROOT/etc/bacula/wx-console.conf $RPM_BUILD_ROOT/etc/bacula/wxconsole.conf
991 %endif
992
993 # now clean up permissions that are left broken by the install
994 chmod o-r $RPM_BUILD_ROOT/etc/bacula/query.sql
995 chmod o-rwx $RPM_BUILD_ROOT/var/bacula
996 %if %{gconsole} && ! %{rh8}
997 chmod 755 $RPM_BUILD_ROOT/usr/sbin/bacula-tray-monitor
998 chmod 644 $RPM_BUILD_ROOT/etc/bacula/tray-monitor.conf
999 %endif
1000
1001 %clean
1002 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf "$RPM_BUILD_ROOT"
1003
1004 %if %{mysql}
1005 # MySQL specific files
1006 %files mysql
1007 %defattr(-, root, root)
1008 %attr(-, root, %{daemon_group}) /etc/bacula/create_mysql_database
1009 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_database
1010 %attr(-, root, %{daemon_group}) /etc/bacula/make_mysql_tables
1011 %attr(-, root, %{daemon_group}) /etc/bacula/drop_mysql_tables
1012 %attr(-, root, %{daemon_group}) /etc/bacula/update_mysql_tables
1013 %attr(-, root, %{daemon_group}) /etc/bacula/grant_mysql_privileges
1014 %attr(-, root, %{daemon_group}) /etc/bacula/startmysql
1015 %attr(-, root, %{daemon_group}) /etc/bacula/stopmysql
1016 %endif
1017
1018 %if %{sqlite}
1019 %files sqlite
1020 %defattr(-,root,root)
1021 %attr(-, root, %{daemon_group}) /etc/bacula/create_sqlite_database
1022 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_database
1023 %attr(-, root, %{daemon_group}) /etc/bacula/grant_sqlite_privileges
1024 %attr(-, root, %{daemon_group}) /etc/bacula/make_sqlite_tables
1025 %attr(-, root, %{daemon_group}) /etc/bacula/drop_sqlite_tables
1026 %attr(-, root, %{daemon_group}) /etc/bacula/update_sqlite_tables
1027 %{sqlite_bindir}/libsqlite.a
1028 %{sqlite_bindir}/sqlite.h
1029 %{sqlite_bindir}/sqlite
1030 %endif
1031
1032 %if %{postgresql}
1033 %files postgresql
1034 %defattr(-,root,root)
1035 %attr(-, root, %{daemon_group}) /etc/bacula/create_postgresql_database
1036 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_database
1037 %attr(-, root, %{daemon_group}) /etc/bacula/make_postgresql_tables
1038 %attr(-, root, %{daemon_group}) /etc/bacula/drop_postgresql_tables
1039 %attr(-, root, %{daemon_group}) /etc/bacula/update_postgresql_tables
1040 %attr(-, root, %{daemon_group}) /etc/bacula/grant_postgresql_privileges
1041 %endif
1042
1043 # The rest is DB backend independent
1044 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1045 %attr(-, root, %{daemon_group}) /etc/bacula/bacula
1046 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1047 %attr(-, root, %{daemon_group}) /etc/bacula/create_bacula_database
1048 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_database
1049 %attr(-, root, %{daemon_group}) /etc/bacula/grant_bacula_privileges
1050 %attr(-, root, %{daemon_group}) /etc/bacula/make_bacula_tables
1051 %attr(-, root, %{daemon_group}) /etc/bacula/drop_bacula_tables
1052 %attr(-, root, %{daemon_group}) /etc/bacula/update_bacula_tables
1053 %attr(-, root, %{daemon_group}) /etc/bacula/make_catalog_backup
1054 %attr(-, root, %{daemon_group}) /etc/bacula/delete_catalog_backup
1055 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1056 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1057 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1058 %attr(-, root, %{daemon_group}) /etc/bacula/disk-changer
1059 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-dir
1060 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-fd
1061 %attr(-, root, %{daemon_group}) /etc/bacula/bacula-ctl-sd
1062 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-dir
1063 %attr(-, root, %{daemon_group}) /etc/init.d/bacula-fd
1064 %attr(-, root, %{storage_daemon_group}) /etc/bacula/dvd-handler
1065 %attr(-, root, %{storage_daemon_group}) /etc/init.d/bacula-sd
1066 %attr(-, root, %{storage_daemon_group}) /etc/bacula/mtx-changer
1067
1068 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo 
1069 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1070
1071 /etc/logrotate.d/bacula
1072 /etc/log.d/scripts/services/bacula
1073 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-dir.conf
1074 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1075 %attr(-, root, %{storage_daemon_group}) %config(noreplace) /etc/bacula/bacula-sd.conf
1076 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1077 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/logfiles/bacula.conf
1078 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/log.d/conf/services/bacula.conf
1079 %attr(-, root, %{daemon_group}) /etc/bacula/query.sql
1080 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1081
1082 /usr/sbin/bacula-dir
1083 /usr/sbin/bacula-fd
1084 /usr/sbin/bacula-sd
1085 /usr/sbin/bcopy
1086 /usr/sbin/bextract
1087 /usr/sbin/bls
1088 /usr/sbin/bscan
1089 /usr/sbin/btape
1090 /usr/sbin/btraceback
1091 /usr/sbin/bconsole
1092 /usr/sbin/dbcheck
1093 /usr/sbin/bsmtp
1094 /usr/sbin/bregex
1095 /usr/sbin/bwild
1096
1097 %if %{mysql}
1098 %pre mysql
1099 # test for bacula database older than version 8
1100 # note: this ASSUMES no password has been set for bacula database
1101 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1102 %endif
1103
1104 %if %{sqlite}
1105 %pre sqlite
1106 # test for bacula database older than version 8
1107 if [ -s %{working_dir}/bacula.db ] && [ -s %{sqlite_bindir}/sqlite ];then
1108         DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1109 %endif
1110
1111 %if %{postgresql}
1112 %pre postgresql
1113 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1114 %endif
1115
1116 if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "8" ]; then
1117         echo "This bacula upgrade will update a bacula database from version 8 to 9."
1118         echo "You appear to be running database version $DB_VER. You must first update"
1119         echo "your database to version 8 and then install this upgrade. The alternative"
1120         echo "is to use /etc/bacula/drop_%{db_backend}_tables to delete all your your current"
1121         echo "catalog information, then do the upgrade. Information on updating a"
1122         echo "database older than version 8 can be found in the release notes."
1123         exit 1
1124 fi
1125
1126 %if %{sqlite}
1127 fi
1128 %endif
1129
1130 # check for and copy /etc/bacula/console.conf to bconsole.conf
1131 if [ -s /etc/bacula/console.conf ];then
1132         cp -p /etc/bacula/console.conf /etc/bacula/bconsole.conf
1133 fi
1134
1135 # create the daemon users and groups
1136 # first create the groups if they don't exist
1137 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1138 if [ -z "$HAVE_BACULA" ]; then
1139         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1140         echo "The group %{daemon_group} has been added to %{group_file}."
1141         echo "See the manual chapter \"Running Bacula\" for details."
1142 fi
1143 HAVE_BACULA=`grep %{storage_daemon_group} %{group_file} 2>/dev/null`
1144 if [ -z "$HAVE_BACULA" ]; then
1145         %{groupadd} -r %{storage_daemon_group} > /dev/null 2>&1
1146         echo "The group %{storage_daemon_group} has been added to %{group_file}."
1147         echo "See the manual chapter \"Running Bacula\" for details."
1148 fi
1149 # now create the users if they do not exist
1150 # we do not use the -g option allowing the primary group to be set to system default
1151 # this will be a unique group on redhat type systems or the group users on some systems
1152 HAVE_BACULA=`grep %{storage_daemon_user} %{user_file} 2>/dev/null`
1153 if [ -z "$HAVE_BACULA" ]; then
1154         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{storage_daemon_group} -M -s /sbin/nologin %{storage_daemon_user} > /dev/null 2>&1
1155         echo "The user %{storage_daemon_user} has been added to %{user_file}."
1156         echo "See the manual chapter \"Running Bacula\" for details."
1157 fi
1158 HAVE_BACULA=`grep %{director_daemon_user} %{user_file} 2>/dev/null`
1159 if [ -z "$HAVE_BACULA" ]; then
1160         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{director_daemon_user} > /dev/null 2>&1
1161         echo "The user %{director_daemon_user} has been added to %{user_file}."
1162         echo "See the manual chapter \"Running Bacula\" for details."
1163 fi
1164 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1165 if [ -z "$HAVE_BACULA" ]; then
1166         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1167         echo "The user %{file_daemon_user} has been added to %{user_file}."
1168         echo "See the manual chapter \"Running Bacula\" for details."
1169 fi
1170 # now we add the supplementary groups, this is ok to call even if the users already exist
1171 # we only do this if the user is NOT root
1172 IS_ROOT=%{director_daemon_user}
1173 if [ "$IS_ROOT" != "root" ]; then
1174 %{usermod} -G %{daemon_group} %{director_daemon_user}
1175 fi
1176 IS_ROOT=%{storage_daemon_user}
1177 if [ "$IS_ROOT" != "root" ]; then
1178 %{usermod} -G %{daemon_group},%{storage_daemon_group} %{storage_daemon_user}
1179 fi
1180 IS_ROOT=%{file_daemon_user}
1181 if [ "$IS_ROOT" != "root" ]; then
1182 %{usermod} -G %{daemon_group} %{file_daemon_user}
1183 fi
1184
1185 %if %{mysql}
1186 %post mysql
1187 %endif
1188 %if %{sqlite}
1189 %post sqlite
1190 %endif
1191 %if %{postgresql}
1192 %post postgresql
1193 %endif
1194
1195 # add our links
1196 if [ "$1" -ge 1 ] ; then
1197 /sbin/chkconfig --add bacula-dir
1198 /sbin/chkconfig --add bacula-fd
1199 /sbin/chkconfig --add bacula-sd
1200 fi
1201
1202 %if %{mysql}
1203 # test for an existing database
1204 # note: this ASSUMES no password has been set for bacula database
1205 DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
1206
1207 # grant privileges and create tables if they do not exist
1208 if [ -z "$DB_VER" ]; then
1209         echo "Hmm, doesn't look like you have an existing database."
1210         echo "Granting privileges for MySQL user bacula..."
1211         /etc/bacula/grant_mysql_privileges
1212         echo "Creating MySQL bacula database..."
1213         /etc/bacula/create_mysql_database
1214         echo "Creating bacula tables..."
1215         /etc/bacula/make_mysql_tables
1216
1217 # check to see if we need to upgrade a 1.36 or lower database
1218 elif [ "$DB_VER" -lt "9" ]; then
1219         echo "This release requires an upgrade to your bacula database."
1220         echo "Backing up your current database..."
1221         mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1222         echo "Upgrading bacula database ..."
1223         /etc/bacula/update_mysql_tables
1224         echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1225
1226 fi
1227 %endif
1228
1229 %if %{sqlite}
1230 # test for an existing database
1231 if [ -s %{working_dir}/bacula.db ]; then
1232         DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
1233         # check to see if we need to upgrade a 1.36 or lower database
1234         if [ "$DB_VER" -lt "9" ] && [ "$DB_VER" -ge "8" ]; then
1235                 echo "This release requires an upgrade to your bacula database."
1236                 echo "Backing up your current database..."
1237                 echo ".dump" | %{sqlite_bindir}/sqlite %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1238                 echo "Upgrading bacula database ..."
1239                 /etc/bacula/update_sqlite_tables
1240                 echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1241         fi
1242 else
1243         # create the database and tables
1244         echo "Hmm, doesn't look like you have an existing database."
1245         echo "Creating SQLite database..."
1246         /etc/bacula/create_sqlite_database
1247         echo "Creating the SQLite tables..."
1248         /etc/bacula/make_sqlite_tables
1249 fi
1250 %endif
1251
1252 %if %{postgresql}
1253 # test for an existing database
1254 # note: this ASSUMES no password has been set for bacula database
1255 DB_VER=`echo 'select * from Version;' | psql bacula 2>/dev/null | tail -3 | head -1`
1256
1257 # grant privileges and create tables if they do not exist
1258 if [ -z "$DB_VER" ]; then
1259         echo "Hmm, doesn't look like you have an existing database."
1260         echo "Creating PostgreSQL bacula database..."
1261         /etc/bacula/create_postgresql_database
1262         echo "Creating bacula tables..."
1263         /etc/bacula/make_postgresql_tables
1264         echo "Granting privileges for PostgreSQL user bacula..."
1265         /etc/bacula/grant_postgresql_privileges
1266
1267 # check to see if we need to upgrade a 1.36 or lower database
1268 elif [ "$DB_VER" -lt "9" ]; then
1269         echo "This release requires an upgrade to your bacula database."
1270         echo "Backing up your current database..."
1271         pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
1272         echo "Upgrading bacula database ..."
1273         /etc/bacula/update_postgresql_tables
1274         echo "If bacula works correctly you can remove the backup file %{working_dir}/bacula_backup.sql.bz2"
1275         
1276 fi
1277 %endif
1278
1279 # generate passwords if needed
1280 if [ -d /etc/bacula ]; then
1281         cd /etc/bacula
1282         for file in *.conf; do
1283                 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
1284                         need_password=`grep $string $file 2>/dev/null`
1285                         if [ -n "$need_password" ]; then
1286                                 pass=`openssl rand -base64 33`
1287                                 sed "s-$string-$pass-g" $file > $file.new
1288                                 cp -f $file.new $file; rm -f $file.new
1289                         fi
1290                 done
1291         done
1292 fi
1293
1294 %if %{mysql}
1295 %preun mysql
1296 %endif
1297 %if %{sqlite}
1298 %preun sqlite
1299 %endif
1300 %if %{postgresql}
1301 %preun postgresql
1302 %endif
1303
1304 # delete our links
1305 if [ $1 = 0 ]; then
1306 /sbin/chkconfig --del bacula-dir
1307 /sbin/chkconfig --del bacula-fd
1308 /sbin/chkconfig --del bacula-sd
1309 fi
1310
1311
1312 %files mtx
1313 %attr(-, root, %{storage_daemon_group}) /usr/sbin/loaderinfo
1314 %attr(-, root, %{storage_daemon_group}) /usr/sbin/mtx
1315 %attr(-, root, %{storage_daemon_group}) /usr/sbin/scsitape
1316 %attr(-, root, %{storage_daemon_group}) /usr/sbin/tapeinfo
1317 /usr/man/man1/*
1318
1319
1320 %files client
1321 %defattr(-,root,root)
1322 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1323 %attr(-, root, %{daemon_group}) /etc/bacula/bconsole
1324 /etc/init.d/bacula-fd
1325 %attr(-, root, %{daemon_group}) /etc/bacula/rescue
1326
1327 %doc COPYING ChangeLog ReleaseNotes VERIFYING kernstodo 
1328 %doc %{_docsrc}/manual/bacula.pdf %{_docsrc}/developers/developers.pdf %{_docsrc}/manual/bacula ../Release_Notes-%{version}-%{release}.txt
1329
1330 /etc/logrotate.d/bacula
1331
1332 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bacula-fd.conf
1333 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/bconsole.conf
1334 %attr(-, root, %{daemon_group}) %dir %{working_dir}
1335
1336 /usr/sbin/bacula-fd
1337 /usr/sbin/btraceback
1338 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.gdb
1339 %attr(-, root, %{daemon_group}) /etc/bacula/btraceback.dbx
1340 /usr/sbin/bsmtp
1341 /usr/sbin/bconsole
1342
1343
1344 %pre client
1345 # create the daemon group and user
1346 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1347 if [ -z "$HAVE_BACULA" ]; then
1348         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1349         echo "The group %{daemon_group} has been added to %{group_file}."
1350         echo "See the manual chapter \"Running Bacula\" for details."
1351 fi
1352 # we do not use the -g option allowing the primary group to be set to system default
1353 # this will be a unique group on redhat type systems or the group users on some systems
1354 HAVE_BACULA=`grep %{file_daemon_user} %{user_file} 2>/dev/null`
1355 if [ -z "$HAVE_BACULA" ]; then
1356         %{useradd} -r -c "Bacula" -d %{working_dir} -g %{daemon_group} -M -s /sbin/nologin %{file_daemon_user} > /dev/null 2>&1
1357         echo "The user %{file_daemon_user} has been added to %{user_file}."
1358         echo "See the manual chapter \"Running Bacula\" for details."
1359 fi
1360 # now we add the supplementary group, this is ok to call even if the user already exists
1361 # we only do this if the user is NOT root
1362 IS_ROOT=%{file_daemon_user}
1363 if [ "$IS_ROOT" != "root" ]; then
1364 %{usermod} -G %{daemon_group} %{file_daemon_user}
1365 fi
1366
1367 %post client
1368 # add our link
1369 if [ "$1" -ge 1 ] ; then
1370 /sbin/chkconfig --add bacula-fd
1371 fi
1372
1373 # generate passwords if needed
1374 if [ -d /etc/bacula ]; then
1375         cd /etc/bacula
1376         for file in *.conf; do
1377                 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
1378                         need_password=`grep $string $file 2>/dev/null`
1379                         if [ -n "$need_password" ]; then
1380                                 pass=`openssl rand -base64 33`
1381                                 sed "s-$string-$pass-g" $file > $file.new
1382                                 cp -f $file.new $file; rm -f $file.new
1383                         fi
1384                 done
1385         done
1386 fi
1387
1388 %preun client
1389 # delete our link
1390 if [ $1 = 0 ]; then
1391 /sbin/chkconfig --del bacula-fd
1392 fi
1393
1394 %files updatedb
1395 %defattr(-,root,%{daemon_group})
1396 /etc/bacula/updatedb/*
1397
1398 %pre updatedb
1399 # create the daemon group
1400 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1401 if [ -z "$HAVE_BACULA" ]; then
1402         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1403         echo "The group %{daemon_group} has been added to %{group_file}."
1404         echo "See the manual chapter \"Running Bacula\" for details."
1405 fi
1406
1407 %post updatedb
1408 echo "The database update scripts were installed to /etc/bacula/updatedb"
1409
1410 %if %{gconsole}
1411 %files gconsole
1412 %defattr(-,root,root)
1413 /usr/sbin/gnome-console
1414 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1415 %attr(-, root, %{daemon_group}) /etc/bacula/gconsole
1416 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/gnome-console.conf
1417 /usr/share/pixmaps/bacula.png
1418 /usr/share/applications/bacula.desktop
1419 %endif
1420
1421 %if %{gconsole} && ! %{rh8}
1422 /usr/sbin/bacula-tray-monitor
1423 %config(noreplace) /etc/bacula/tray-monitor.conf
1424 /usr/share/pixmaps/bacula-tray-monitor.xpm
1425 /usr/share/applications/bacula-tray-monitor.desktop
1426 %endif
1427
1428 %if %{gconsole} && ! %{su9} && ! %{su10}
1429 # add the console helper files
1430 %config(noreplace,missingok) /etc/pam.d/gnome-console
1431 %config(noreplace,missingok) /etc/security/console.apps/gnome-console
1432 /usr/bin/gnome-console
1433 %endif
1434
1435 %if %{gconsole}
1436 %pre gconsole
1437 # create the daemon group
1438 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1439 if [ -z "$HAVE_BACULA" ]; then
1440         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1441         echo "The group %{daemon_group} has been added to %{group_file}."
1442         echo "See the manual chapter \"Running Bacula\" for details."
1443 fi
1444
1445 %post gconsole
1446 # generate passwords if needed
1447 if [ -d /etc/bacula ]; then
1448         cd /etc/bacula
1449         for file in *.conf; do
1450                 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
1451                         need_password=`grep $string $file 2>/dev/null`
1452                         if [ -n "$need_password" ]; then
1453                                 pass=`openssl rand -base64 33`
1454                                 sed "s-$string-$pass-g" $file > $file.new
1455                                 cp -f $file.new $file; rm -f $file.new
1456                         fi
1457                 done
1458         done
1459 fi
1460 %endif
1461
1462 %if %{wxconsole}
1463 %files wxconsole
1464 %defattr(-,root,root)
1465 /usr/sbin/wxconsole
1466 %attr(-, root, %{daemon_group}) %dir /etc/bacula
1467 %attr(-, root, %{daemon_group}) %config(noreplace) /etc/bacula/wxconsole.conf
1468 /usr/share/pixmaps/wxwin16x16.xpm
1469 /usr/share/applications/wxconsole.desktop
1470 %endif
1471
1472 %if %{wxconsole} && ! %{su9} && ! %{su10}
1473 # add the console helper files
1474 %config(noreplace,missingok) /etc/pam.d/wxconsole
1475 %config(noreplace,missingok) /etc/security/console.apps/wxconsole
1476 /usr/bin/wxconsole
1477 %endif
1478
1479 %if %{wxconsole}
1480 %pre wxconsole
1481 # create the daemon group
1482 HAVE_BACULA=`grep %{daemon_group} %{group_file} 2>/dev/null`
1483 if [ -z "$HAVE_BACULA" ]; then
1484         %{groupadd} -r %{daemon_group} > /dev/null 2>&1
1485         echo "The group %{daemon_group} has been added to %{group_file}."
1486         echo "See the manual chapter \"Running Bacula\" for details."
1487 fi
1488
1489 %post wxconsole
1490 # generate passwords if needed
1491 if [ -d /etc/bacula ]; then
1492         cd /etc/bacula
1493         for file in *.conf; do
1494                 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
1495                         need_password=`grep $string $file 2>/dev/null`
1496                         if [ -n "$need_password" ]; then
1497                                 pass=`openssl rand -base64 33`
1498                                 sed "s-$string-$pass-g" $file > $file.new
1499                                 cp -f $file.new $file; rm -f $file.new
1500                         fi
1501                 done
1502         done
1503 fi
1504 %endif
1505
1506 %changelog
1507 * Sun Jul 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1508 - add requires for standard compiler toolchain
1509 - move version and release tags up
1510 - move patches up
1511 - add docs_version tag
1512 * Sat Jul 01 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1513 - update rescuever to 1.8.6
1514 * Sun Jun 25 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1515 - update depkgs to 25Jun06
1516 - add mysql5 build tag
1517 * Mon Jun 12 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1518 - 1.38.10 bump rescue version
1519 * Sun Jun 03 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1520 - fix usermod statements
1521 - add fc5 target
1522 * Thu Apr 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1523 - add -g param back to useradd statements Bug 605
1524 * Mon Apr 17 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1525 - redundant code cleanup
1526 * Sun Apr 16 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1527 - add wxconsole package
1528 * Fri Apr 14 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1529 - 1.38.8 release
1530 - dependency update for Mandriva
1531 * Sun Apr 08 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1532 - 1.38.7 release
1533 - remove -n option from useradd scripts
1534 * Sun Apr 02 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1535 - 1.38.6 release
1536 - fix problem specifying more than one primary group for user bacula
1537 - add build switch to not build gconsole regardless of platform
1538 * Sun Jan 29 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1539 - add centos3 build tag
1540 - fix link error of static-fd on Mandrake with --disable-nls
1541 * Fri Jan 27 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1542 - add fc4 dependencies
1543 * Mon Jan 23 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1544 - add SuSE 10.0 build
1545 - remove specific permission in attrib macros
1546 * Sat Jan 21 2006 D. Scott Barninger <barninger@fairfieldcomputers.com>
1547 - 1.38.5 release
1548 - fix usermode required on suse, suse doesn't have usermode (xsu instead)
1549 - refix compat for _dist on SLES9 which seems to have been removed
1550 - added note regarding Aleksandar's use of specific permissions in attrib macros
1551 - need to review and add specific fc4 build currently using fc3 Requires
1552 * Wed Dec 14 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1553 - 1.38.2 release
1554 - Reorganize files and pre/post sections to remove repetitions
1555 - Always build separate mtx package
1556 - Fix file ownerships for /etc/bacula and Bacula's working dir
1557 * Wed Nov 23 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1558 - Disable GNOME on RH7
1559 * Fri Nov 18 2005 Aleksandar Milivojevic <alex@milivojevic.org>
1560 - Red Hat and look alikes have mtx RPM, do not build/package our version
1561 * Sun Nov 13 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1562 - minor edit to _dist for SLES9 compatibility
1563 * Sat Nov 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1564 - 1.38.0 release
1565 - kern changed location of pdf files and html manual in docs package
1566 * Sun Oct 30 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1567 - 1.38.0 release
1568 - add docs (from prebuilt tarball) and rescue packages back in
1569 - remove dvd-freespace and dvd-writepart files, add dvd-handler
1570 - remove 3 of 4 sqlite script patches as not needed
1571 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1572 - changes for 1.38
1573 - remove docs and rescue sections (remove static fd)
1574 - add dvd-freespace and dvd-writepart files
1575 - update depkgs to 22Jun05
1576 - change database update to 8 to 9
1577 * Sun Jul 24 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1578 - minor cleanups before 1.38 changes
1579 - add popt and popt-devel build dependencies
1580 - add tetex and tetex-dvips dependencies for doc build
1581 - replace deprecated Copyright tag with License
1582 * Sat May 07 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1583 - move sqlite installation bindir to /usr/lib/bacula/sqlite and remove
1584 - conflict with sqlite packages. remove readline dependency.
1585 * Sun Apr 17 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1586 - release 1.36.3 update docs
1587 * Tue Apr 05 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1588 - add centos4 build tag
1589 - add x86_64 build tag
1590 * Sun Apr 03 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1591 - add rhel4 build tag
1592 - clean up for mysql4 which is now mdk-10.1, suse-9.2 and rhel4
1593 * Sun Mar 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1594 - add rhel3 build tag
1595 * Tue Mar 01 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1596 - fix tray-monitor.conf for noreplace
1597 * Mon Feb 28 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1598 - fix distribution check for Fedora and Whitebox
1599 * Sun Feb 06 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1600 - add logwatch script
1601 - add dvd scripts
1602 * Sat Jan 15 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1603 - add build for Fedora Core 3 (linc now included in ORDit2)
1604 - add mysql4 define for Mandrake 10.1
1605 * Fri Jan 14 2005 D. Scott Barninger <barninger@fairfieldcomputers.com>
1606 - fix {group_file} variable in post scripts
1607 * Thu Dec 30 2004 D. Scott Barninger <barninger@fairfieldcomputers.com>
1608 - add distribution checking and custom Distribution tag
1609 * Thu Dec 09 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1610 - ASSIGNMENT OF COPYRIGHT
1611 - FOR VALUE RECEIVED, D. Scott Barninger hereby sells, transfers and 
1612 - assigns unto Kern Sibbald, his successors, assigns and personal representatives, 
1613 - all right, title and interest in and to the copyright in this software RPM
1614 - spec file. D. Scott Barninger warrants good title to said copyright, that it is 
1615 - free of all liens, encumbrances or any known claims against said copyright.
1616 * Sat Dec 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1617 - bug 183 fixes
1618 - thanks to Daniel Widyono
1619 - update description for rescue package to describe cdrom creation
1620 * Thu Nov 18 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1621 - update depkgs to 29Oct04
1622 * Fri Nov 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1623 - add cdrom rescue to bacula-rescue package
1624 * Sun Oct 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1625 - misc fixes from 1.36.0 suse feedback
1626 - fix situation where sqlite database exists but sqlite has been removed.
1627 * Fri Oct 22 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1628 - remove tray-monitor from RH8 build
1629 - fix permissions on tray-monitor files
1630 * Wed Oct 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1631 - add Mandrake support and tray-monitor, misc changes for 1.35.8/1.36.0,
1632 - change database update to 7 to 8 upgrade,
1633 - revert depkgs to 08Mar04 as there seems to be a bug in the sqlite
1634 - build in 30Jul04, add freetype dependancy to gnome package.
1635 * Sun Sep 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1636 - add documentation to console for groupadd
1637 * Sat Sep 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1638 - add support for running daemons as root.bacula
1639 - correct for change in location of floppy rescue files in 1.35.2
1640 - removed /etc/bacula/fd script from all packages as it has disappeared from 1.35.2
1641 - updated depgkgs to 30Jul04
1642 * Thu Jun 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1643 - really, really fix symlink creation for gconsole
1644 * Thu Jun 17 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1645 - fix symlink creation in gconsole post install
1646 * Sat Jun 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1647 - fixed error in gconsole post script
1648 * Fri Apr 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1649 - add check for gconsole symlink before trying to create it
1650 * Sun Apr 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1651 - fix some minor permissions issues on doc files that CVS won't let us fix
1652 * Sun Apr 04 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1653 - add pkgconfig to BuildRequires
1654 - clean up gnome1/2 menu entries for appropriate packages
1655 * Fri Apr 02 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1656 - tightened up doc distribution
1657 * Tue Mar 30 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1658 - added usermode (Redhat) and xsu (SuSE) support for gnome-console;
1659 - rpm's horrible bug that prevents nested conditional macros prevents me
1660 - from implementing these 2 separate approaches within the conditionals which
1661 - create the separate server packages.
1662 - the solution adopted is to remove the gnome-console files from the server packages
1663 - so bacula-gconsole is now an add on for both client and server packages.
1664 - this also now allows the server packages to be install on machines without
1665 - an X-server and we can still maintain a single spec file.
1666 - added tests to make sure we have defined platform and database macros.
1667 * Sat Mar 13 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1668 - corrected mysql prerequisites for suse
1669 * Mon Mar 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1670 - replaced all cp commands with cp -p
1671 - removed addition of a+x permissions on gnome-console
1672 - corrected permissions on init scripts
1673 * Sat Feb 28 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1674 - corrected creation of sqlite_bindir in install from !mysql to sqlite
1675 -
1676 - various cleanup patches from Michael K. Johnson:
1677 - corrected post install routines for nicer chkconfig
1678 - removed chmod changes in post routines and moved to install section
1679 - removed interactive nature of post routine for rescue package
1680 - added description of building rescue disks to the description of rescue package
1681 - added clean of build root to beginning of install
1682 - removed specifying attr in all file lists
1683 * Fri Feb 20 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1684 - added bconsole to client package
1685 - added gconsole package as add-on to client
1686 - removed spurious dependancies on updatedb package (!cut/paste)
1687 * Thu Feb 19 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1688 - added updatedb package
1689 * Thu Feb 12 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1690 - added postgresql package
1691 * Wed Feb 11 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1692 - corrected the if else logic in the dependancy sections
1693 - changes for 1.34 release
1694 - /etc/bacula/console is now /etc/bacula/bconsole
1695 - /etc/bacula/console.conf is now /etc/bacula/bconsole.conf
1696 - /usr/sbin/btraceback.gdb is now /etc/bacula/btraceback.gdb
1697 - /usr/sbin/smtp is now /usr/sbin/bsmtp
1698 - added new /etc/bacula/drop_mysql_database
1699 - added new /etc/bacula/drop_sqlite_database
1700 - added new /etc/bacula/grant_sqlite_privileges
1701 - added new generic bacula database scripts in /etc/bacula
1702 - added pre-install sections to check for database versions older than 6
1703 - added check for /etc/bacula/console.conf and copy to bconsole.conf
1704 * Sun Feb 08 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1705 - added /etc/bacula/update_sqlite_tables and /etc/bacula/update_mysql_tables for 1.34 release
1706 - added testing for existing databases before executing any of the database creation scripts
1707 - added defines working_dir and sqlite_bindir in place of hard coded paths
1708 * Sat Jan 31 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1709 - added build configuration for SuSE.
1710 - Thanks to Matt Vollmar <matt at panamschool.edu.sv> for his input
1711 * Sat Jan 24 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1712 - added patch for create_sqlite_database to fix the installed bindir
1713 - added execute of create_sqlite_database to post of sqlite package
1714 * Sat Jan 10 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1715 - added virtual package Provides bacula-dir, bacula-sd, bacula-fd
1716 - added bacula-fd as Requires for rescue package
1717 - added build tag for Fedora Core 1
1718 - cleaned up dependancies for all builds
1719 * Thu Jan 1 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
1720 - removed rh_version from package names
1721 - added platform build configuration section to beginning of file
1722 * Tue Nov 25 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1723 - removed make_static_bacula script from rescue package install
1724 * Sun Nov 23 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1725 - Added define at top of file for depkgs version
1726 - Added rescue sub-package
1727 - Moved requires statements into proper sub-package locations
1728 * Mon Oct 27 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1729 - Corrected Requires for Gnome 1.4/2.0 builds
1730 * Fri Oct 24 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1731 - Added separate source declaration for depkgs
1732 - added patch for make_catalog_backup script
1733 * Mon May 11 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1734 - Misc changes to mysql/sqlite build and rh7/8 menu differences
1735 - Added rh_version to sub-package names
1736 - Added installed but missing file /etc/bacula/gconsole
1737 - rm'd /etc/bacula/grant_mysql_privileges on sqlite builds
1738 * Thu May 08 2003 Kern Sibbald <kern at sibbald.com>
1739 - Update spec for version 1.31 and combine client
1740 * Sun Mar 30 2003 D. Scott Barninger <barninger at fairfieldcomputers.com>
1741 - Initial spec file