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