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