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