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