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