/[smecontribs]/rpms/bacula/contribs8/bacula.spec
ViewVC logotype

Contents of /rpms/bacula/contribs8/bacula.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Mon Mar 14 14:49:41 2011 UTC (13 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: bacula-5_0_3-1_el5_sme, HEAD
Changes since 1.2: +3 -3 lines
Error occurred while calculating annotation data.
Align patches

1 # $Id: bacula.spec,v 1.2 2010/12/04 16:31:52 slords Exp $
2 # Authority: slords
3 # Name: Shad L. Lords
4
5 %{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`" ; echo $installvendorlib)}
6 %{!?perl_vendorarch: %define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)}
7 %{!?perl_version: %define perl_version %(eval "`%{__perl} -V:version`" ; echo $version)}
8
9 %define bacula_ver 5.0.3
10 %define rescue_ver 5.0.2
11
12 %define sel_modn selinux-policy-addon
13 %define sel_modv 0.2.0
14
15
16 Summary: Bacula - The Network Backup Solution
17 Name: bacula
18 Version: %{bacula_ver}
19 Release: 1%{?dist}%{?pext}
20 License: AGPLv3
21 Group: System Environment/Base
22 Source0: http://prdownloads.sourceforge.net/sourceforge/%{name}/%{name}-%{bacula_ver}.tar.gz
23 Source1: http://prdownloads.sourceforge.net/sourceforge/%{name}/%{name}-docs-%{bacula_ver}.tar.bz2
24 Source2: http://prdownloads.sourceforge.net/sourceforge/%{name}/%{name}-gui-%{bacula_ver}.tar.gz
25 Source3: http://prdownloads.sourceforge.net/sourceforge/%{name}/%{name}-rescue-%{rescue_ver}.tar.gz
26 Source10: %{name}-dir.init
27 Source11: %{name}-sd.init
28 Source12: %{name}-fd.init
29 Source15: %{name}-dir.sysconfig
30 Source16: %{name}-sd.sysconfig
31 Source17: %{name}-fd.sysconfig
32 Source20: %{name}-bimagemgr.conf
33 Source21: %{name}-bweb.conf
34 Source22: %{name}-web.conf
35 Source30: %{name}-rescue-%{rescue_ver}-missing.tar.gz
36 #Patch0: http://prdownloads.sourceforge.net/sourceforge/%{name}/%{version}-xxx.patch
37 Patch10: %{name}-5.0.3-build.patch
38 Patch11: %{name}-5.0.3-paths.patch
39 Patch12: %{name}-5.0.3-cats.patch
40 Patch13: %{name}-5.0.1-wxwin.patch
41 Patch14: %{name}-gui-2.2.8-config.patch
42 Patch15: %{name}-gui-2.4.3-install.patch
43 Patch16: %{name}-rescue-3.0.1-build.patch
44 Patch20: %{name}-5.0.3-fd_acl_not_impl.patch
45 Patch21: %{name}-5.0.3-clientrunbeforejob.patch
46 URL: http://www.%{name}.org/
47 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
48 Requires(pre): /usr/sbin/groupadd /usr/sbin/useradd
49 Requires(post): /sbin/ldconfig openssl
50 BuildRequires: gettext httpd mkisofs mtx pkgconfig
51 BuildRequires: tcp_wrappers tetex-latex libtermcap-devel
52 BuildRequires: libacl-devel libstdc++-devel openssl-devel
53 BuildRequires: mysql-devel postgresql-devel sqlite-devel
54 BuildRequires: python-devel readline-devel libxml2-devel
55 BuildRequires: glib2-devel gtk2-devel pango-devel
56 BuildRequires: libcap-devel ncurses-devel zlib-devel
57 BuildRequires: perl(CGI) perl(DBI) perl(Date::Calc) perl(Expect)
58 BuildRequires: perl(GD::Graph) perl(GD) perl(HTML::Template)
59 BuildRequires: perl(Time::ParseDate)
60
61 %description
62 Bacula is a set of computer programs that permit you to manage backup,
63 recovery and verification of computer data across a network of computers
64 of different kinds. In technical terms, it is a network client/server
65 based backup program. Bacula is relatively easy to use and efficient,
66 while offering many advanced storage management features that make it
67 easy to find and recover lost or damaged files.
68
69 This package contains common files required for all packages.
70
71
72 %package client
73 Summary: The Bacula backup client
74 Group: System Environment/Daemons
75 Requires: %{name} = %{version}-%{release}
76 Requires: gdb
77 Requires(post): /sbin/chkconfig
78 Requires(preun): /sbin/chkconfig /sbin/service
79 Requires(postun): /sbin/service
80
81 %description client
82 This package contains the Bacula File service (also known as the Client
83 program) which is the software program that is installed on the machine
84 to be backed up. It is specific to the operating system on which it runs
85 and is responsible for providing file attributes and data when requested
86 by the Director. The File services are also responsible for the file
87 system dependent part of restoring the file attributes and data during
88 a recovery operation.
89
90
91 %package client-rescue
92 Summary: The Bacula Rescue CD builder
93 Group: Applications/System
94 Requires: %{name}-client = %{version}-%{release}
95 Requires: cdrecord mkisofs
96
97 %description client-rescue
98 This package contains the Bacula Rescue CD builder, used to build a boot
99 CD which contains a copy of the current system, that can be booted in an
100 emergency to either repair the filesystems, or to load the Bacula File
101 service to recover the system.
102
103
104 %package console
105 Summary: The Bacula command console
106 Group: Applications/System
107 Requires: %{name} = %{version}-%{release}
108
109 %description console
110 This package contains the Bacula Console service, which is the program
111 that allows the administrator or user to communicate with the Bacula
112 Director. It provides a text-based console interface.
113
114
115 %package doc
116 Summary: The Bacula documentation
117 Group: Documentation
118
119 %description doc
120 This package contains the complete Bacula documentation in HTML and PDF
121 format.
122
123 %package gui-bimagemgr
124 Summary: The Bacula bimagemgr utility
125 Group: Applications/Internet
126 Requires: %{name} = %{version}-%{release}
127 Requires: cdrecord httpd mkisofs
128
129 %description gui-bimagemgr
130 This package contains bimagemgr, an utility to manage backups made to
131 files intended for burning to CD-R disk. bimagemgr allows you to easily
132 see which Volumes have been written to more recently than they have been
133 recorded to CD-R disk and record those which have.
134
135
136 %package gui-bimagemgr-selinux
137 Summary: SELinux support for %{name}-gui-bimagemgr
138 Group: System Environment/Base
139 Requires: %{name}-gui-bimagemgr = %{version}-%{release}
140 Requires: %{sel_modn} >= %{sel_modv}
141 Requires(post): /sbin/restorecon %{_sbindir}/selinuxenabled /sbin/fixfiles
142
143 %description gui-bimagemgr-selinux
144 This package enables %{name}-gui-bimagemgr to work with SELinux.
145
146
147 %package gui-brestore
148 Summary: The Bacula brestore utility
149 Group: Applications/Internet
150 Requires: %{name}-console = %{version}-%{release}
151
152 %description gui-brestore
153 This package contains brestore, a graphical file restoration interface.
154
155
156 %package gui-bweb
157 Summary: The Bacula bweb utility
158 Group: Applications/Internet
159 Requires: %{name} = %{version}-%{release}
160 Requires: bitstream-vera-fonts httpd
161 Requires: perl(:MODULE_COMPAT_%{perl_version})
162
163 %description gui-bweb
164 This package contains bweb, a web based interface for Bacula servers.
165
166
167 %package gui-bweb-selinux
168 Summary: SELinux support for %{name}-gui-bweb
169 Group: System Environment/Base
170 Requires: %{name}-gui-bweb = %{version}-%{release}
171 Requires: %{sel_modn} >= %{sel_modv}
172 Requires(post): /sbin/restorecon %{_sbindir}/selinuxenabled /sbin/fixfiles
173
174 %description gui-bweb-selinux
175 This package enables %{name}-gui-bweb to work with SELinux.
176
177 %package gui-web
178 Summary: The Bacula web utility
179 Group: Applications/Internet
180 Requires: httpd php-gd php-gettext php-session php-pear(DB)
181
182 %description gui-web
183 This package contains %{name}-web, a web server based utility to monitor
184 your Bacula server.
185
186 %package server-sqlite
187 Summary: The Bacula server for SQLite backends
188 Group: System Environment/Daemons
189 Requires: %{name} = %{version}-%{release}
190 Requires: gdb
191 Requires(post): /sbin/chkconfig /sbin/ldconfig
192 Requires(preun): /sbin/chkconfig /sbin/service
193 Requires(postun): /sbin/ldconfig /sbin/service
194 Conflicts: %{name}-server-mysql %{name}-server-postgresql
195
196 %description server-sqlite
197 This package contains the Bacula server daemons which use SQLite as database
198 backend for the Catalog service.
199
200 The Bacula Director service is the program that supervises all the backup,
201 restore, verify and archive operations. The system administrator uses the
202 Bacula Director to schedule backups and to recover files. The Director runs
203 as a daemon in the background.
204
205 The Bacula Storage services consist of the software programs that perform
206 the storage and recovery of the file attributes and data to the physical
207 backup media or volumes. In other words, the Storage daemon is responsible
208 for reading and writing your tapes (or other storage media, e.g. files). It
209 runs as a daemon on the machine that has the backup device (usually a tape
210 drive).
211
212
213 %package server-mysql
214 Summary: The Bacula server for MySQL backends
215 Group: System Environment/Daemons
216 Requires: %{name} = %{version}-%{release}
217 Requires: gdb
218 Requires(post): /sbin/chkconfig /sbin/ldconfig
219 Requires(preun): /sbin/chkconfig /sbin/service
220 Requires(postun): /sbin/ldconfig /sbin/service
221 Conflicts: %{name}-server-sqlite %{name}-server-postgresql
222
223 %description server-mysql
224 This package contains the Bacula server daemons which use MySQL as database
225 backend for the Catalog service.
226
227 The Bacula Director service is the program that supervises all the backup,
228 restore, verify and archive operations. The system administrator uses the
229 Bacula Director to schedule backups and to recover files. The Director runs
230 as a daemon in the background.
231
232 The Bacula Storage services consist of the software programs that perform
233 the storage and recovery of the file attributes and data to the physical
234 backup media or volumes. In other words, the Storage daemon is responsible
235 for reading and writing your tapes (or other storage media, e.g. files). It
236 runs as a daemon on the machine that has the backup device (usually a tape
237 drive).
238
239
240 %package server-postgresql
241 Summary: The Bacula server for PostgreSQL backends
242 Group: System Environment/Daemons
243 Requires: %{name} = %{version}-%{release}
244 Requires: gdb
245 Requires(post): /sbin/chkconfig /sbin/ldconfig
246 Requires(preun): /sbin/chkconfig /sbin/service
247 Requires(postun): /sbin/ldconfig /sbin/service
248 Conflicts: %{name}-server-sqlite %{name}-server-mysql
249
250 %description server-postgresql
251 This package contains the Bacula server daemons which use PostgreSQL as a
252 database backend for the Catalog service.
253
254 The Bacula Director service is the program that supervises all the backup,
255 restore, verify and archive operations. The system administrator uses the
256 Bacula Director to schedule backups and to recover files. The Director runs
257 as a daemon in the background.
258
259 The Bacula Storage services consist of the software programs that perform
260 the storage and recovery of the file attributes and data to the physical
261 backup media or volumes. In other words, the Storage daemon is responsible
262 for reading and writing your tapes (or other storage media, e.g. files). It
263 runs as a daemon on the machine that has the backup device (usually a tape
264 drive).
265
266
267 %prep
268 %setup -q -a 1 -a 2 -a 3 -a 30
269
270 # Upstream patches
271 #%patch0 -p0
272
273 # Local patches
274 %patch10 -p1
275 %patch11 -p1
276 %patch12 -p1
277 %patch13 -p1
278 %patch20 -p1
279
280 pushd %{name}-gui-%{bacula_ver}
281 %patch14 -p0
282 %patch15 -p0
283 popd
284
285 pushd %{name}-rescue-%{rescue_ver}
286 %patch16 -p1
287 popd
288
289 # Contrib patches
290 %patch21 -p1
291
292 # Fix permissions
293 %{__chmod} 0644 %{name}-rescue-%{rescue_ver}/Makefile.in
294
295 pushd examples
296 find -type f -name "*.pl" -exec %{__chmod} a-x {} \;
297 %{__chmod} a-x afs-%{name} reports/checkhost
298 popd
299
300 # Cleanup
301 find -type f -name "*.orig" -exec %{__rm} -f {} \;
302
303
304 %build
305 BuildApp() {
306 %configure \
307 CFLAGS="${CFLAGS} -DOPENSSL_NO_KRB5" \
308 CPPFLAGS="${CPPFLAGS} -DOPENSSL_NO_KRB5" \
309 --sbindir=%{_bindir} \
310 --sysconfdir=%{_sysconfdir}/%{name} \
311 --htmldir=%{_datadir}/%{name}/html \
312 --with-scriptdir=%{_sysconfdir}/%{name}/scripts \
313 --with-plugindir=%{_libdir}/%{name} \
314 --with-archivedir=/tmp \
315 --disable-bat \
316 --disable-tray-monitor \
317 --disable-bwx-console \
318 --enable-lockmgr \
319 --enable-ipv6 \
320 --enable-batch-insert \
321 --with-openssl \
322 --with-python \
323 --with-readline=%{_includedir}/readline \
324 --disable-conio \
325 --with-tcp-wrappers \
326 --with-dir-user=%{name} \
327 --with-dir-group=%{name} \
328 --with-sd-user=%{name} \
329 --with-sd-group=disk \
330 --with-fd-user=root \
331 --with-fd-group=%{name} \
332 --with-working-dir=%{_localstatedir}/lib/%{name} \
333 --with-basename="XXX_HOSTNAME_XXX" \
334 --with-dir-password="XXX_DIR_PASS_XXX" \
335 --with-fd-password="XXX_FD_PASS_XXX" \
336 --with-sd-password="XXX_SD_PASS_XXX" \
337 --with-mon-dir-password="XXX_DIR_MON_PASS_XXX" \
338 --with-mon-fd-password="XXX_FD_MON_PASS_XXX" \
339 --with-mon-sd-password="XXX_SD_MON_PASS_XXX" \
340 ${1}
341
342 %{__make} %{?_smp_mflags}
343
344 if [ -n "${2}" ]; then
345 LIB=$(basename src/cats/.libs/libbacsql-*.so)
346 NLIB=$(echo ${LIB} | %{__sed} -e "s/-/-${2}-/")
347
348 %{__cp} -f src/cats/.libs/${LIB} src/${NLIB}
349 %{__cp} -f scripts/bacula_config scripts/bacula_config-${2}
350 else
351 %{__cp} -f src/filed/static-bacula-fd src
352 fi
353 }
354
355 # static-fd: static linking against OpenSSL isn't possible anymore!
356 # libssl.a -> keyutils.a (dropped by upstream)
357 BuildApp "--enable-static-fd --enable-client-only --disable-libtool \
358 --without-openssl --without-python --without-tcp-wrappers \
359 --disable-bat --disable-tray-monitor --disable-bwx-console \
360 ac_cv_lib_cap_cap_set_proc=no"
361
362 BuildApp "--with-sqlite3" "sqlite"
363 BuildApp "--with-mysql" "mysql"
364 BuildApp "--with-postgresql" "pgsql"
365
366 # Build extra GUI's
367 pushd %{name}-gui-%{bacula_ver}
368 %configure \
369 --sysconfdir=%{_sysconfdir}/%{name} \
370 --with-bacula=`pwd`/.. \
371 --with-bimagemgr-cgidir=%{_datadir}/%{name}/bimagemgr/cgi-bin \
372 --with-bimagemgr-docdir=%{_datadir}/%{name}/bimagemgr/html
373
374 pushd bweb
375 %{__perl} \
376 Makefile.PL \
377 INSTALLDIRS="vendor"
378
379 %{__make} %{?_smp_mflags}
380 popd
381 popd
382
383 # Build rescue files
384 pushd %{name}-rescue-%{rescue_ver}
385 %configure \
386 --sysconfdir=%{_sysconfdir}/%{name}/rescue \
387 --with-bacula=`pwd`/..
388 popd
389
390 # Build documentation
391 pushd %{name}-docs-%{bacula_ver}
392 %configure \
393 --sysconfdir=%{_sysconfdir}/%{name} \
394 --with-bacula=`pwd`/..
395
396 for DIR in manuals/en/*/; do
397 if [ -f ${DIR}/Makefile ]; then
398 %{__make} -C ${DIR} web mini-clean
399 fi
400 done
401 popd
402
403
404 %install
405 [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT}
406 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_initrddir}
407 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sysconfdir}/{%{name}/{rescue,updatedb},sysconfig,logrotate.d}
408 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sysconfdir}/log.d/{scripts/services,conf/{logfiles,services}}
409 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sysconfdir}/{httpd/conf.d,pam.d,security/console.apps}
410 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir}
411 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sbindir}
412 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/{applications,pixmaps}
413 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/%{name}/{brestore,bweb/tpl}
414 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/%{name}/{%{name}-web,bimagemgr,bweb}/{cgi-bin,html}
415 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_localstatedir}/{lib,log}/%{name}
416 %{__mkdir_p} ${RPM_BUILD_ROOT}%{_localstatedir}/cache/{bimagemgr,bweb}
417
418 %{__make} \
419 DESTDIR=${RPM_BUILD_ROOT} \
420 install
421
422 %{__mv} -f ${RPM_BUILD_ROOT}%{_bindir}/%{name}-{dir,fd,sd} ${RPM_BUILD_ROOT}%{_sbindir}
423
424 %{__install} -m 0755 src/tools/.libs/bbatch ${RPM_BUILD_ROOT}%{_bindir}
425 %{__install} -m 0755 src/tools/.libs/grow ${RPM_BUILD_ROOT}%{_bindir}
426 %{__install} -m 0755 src/tools/.libs/test* ${RPM_BUILD_ROOT}%{_bindir}
427 %{__install} -m 0755 src/tools/.libs/*test ${RPM_BUILD_ROOT}%{_bindir}
428 %{__install} -m 0755 src/tools/.libs/*type ${RPM_BUILD_ROOT}%{_bindir}
429 %{__install} -m 0755 src/libbacsql-*.so ${RPM_BUILD_ROOT}%{_libdir}
430 %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/libbacsql-?.?.?.so
431
432 %{__install} -m 0755 scripts/bacula_config-* ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts
433 %{__rm} -f ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts/bacula_config
434
435 %{__install} -m 0755 %{SOURCE10} ${RPM_BUILD_ROOT}%{_initrddir}/%{name}-dir
436 %{__install} -m 0755 %{SOURCE11} ${RPM_BUILD_ROOT}%{_initrddir}/%{name}-sd
437 %{__install} -m 0755 %{SOURCE12} ${RPM_BUILD_ROOT}%{_initrddir}/%{name}-fd
438
439 %{__install} -m 0644 %{SOURCE15} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}-dir
440 %{__install} -m 0644 %{SOURCE16} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}-sd
441 %{__install} -m 0644 %{SOURCE17} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}-fd
442
443 %{__install} -m 0644 scripts/logrotate ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}
444 %{__install} -m 0644 scripts/m*.bacula ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts/magic
445
446 %{__cp} -prd examples ${RPM_BUILD_ROOT}%{_datadir}/%{name}
447
448 touch ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/support.pkg
449 touch ${RPM_BUILD_ROOT}%{_localstatedir}/cache/bimagemgr/temp.html
450
451 %{__rm} -f ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts/{%{name},%{name}-ctl*,[bg]console}
452 %{__rm} -f ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts/{start,stop}mysql
453 %{__rm} -f ${RPM_BUILD_ROOT}%{_bindir}/{%{name},ing_test}
454 %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/lib{bac,baccfg,bacfind,bacpy,bacsql}.{la,so,so.?}
455 %{__rm} -rf ${RPM_BUILD_ROOT}%{_docdir}
456
457 # Installed but unpackaged files
458 %{__rm} -rf ${RPM_BUILD_ROOT}%{_mandir}/man1/bat.1*
459 %{__rm} -rf ${RPM_BUILD_ROOT}%{_mandir}/man1/bacula-bwxconsole.1*
460 %{__rm} -rf ${RPM_BUILD_ROOT}%{_mandir}/man1/bacula-tray-monitor.1*
461
462 # Install DB update scripts
463 %{__install} -m 0644 updatedb/README ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/updatedb
464 %{__install} -m 0755 updatedb/update_{sqlite3,mysql,postgresql}_*_{?,??} \
465 ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/updatedb
466
467 # Install logwatch addons
468 %{__install} -m 0755 scripts/logwatch/%{name} \
469 ${RPM_BUILD_ROOT}%{_sysconfdir}/log.d/scripts/services
470 %{__install} -m 0644 scripts/logwatch/logfile.%{name}.conf \
471 ${RPM_BUILD_ROOT}%{_sysconfdir}/log.d/conf/logfiles/%{name}.conf
472 %{__install} -m 0644 scripts/logwatch/services.%{name}.conf \
473 ${RPM_BUILD_ROOT}%{_sysconfdir}/log.d/conf/services/%{name}.conf
474
475 pushd %{name}-gui-%{bacula_ver}
476 pushd bimagemgr
477 %{__make} \
478 DESTDIR=${RPM_BUILD_ROOT} \
479 install
480
481 %{__install} -m 0640 %{SOURCE20} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
482
483 %{__ln_s} -f %{_localstatedir}/cache/bimagemgr/temp.html \
484 ${RPM_BUILD_ROOT}%{_datadir}/%{name}/bimagemgr/html
485 popd
486
487 pushd brestore
488 %{__install} -m 0755 brestore.pl ${RPM_BUILD_ROOT}%{_bindir}
489 %{__install} -m 0644 brestore*.glade ${RPM_BUILD_ROOT}%{_datadir}/%{name}/brestore
490 %{__install} -m 0644 brestore.png ${RPM_BUILD_ROOT}%{_datadir}/pixmaps
491
492 %{__install} -m 0644 brestore.desktop.consolehelper \
493 ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}-restore.desktop
494 %{__install} -m 0644 brestore.console_apps \
495 ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/brestore
496
497 %{__install} -m 0644 brestore.pamd ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/brestore
498
499 %{__ln_s} consolehelper ${RPM_BUILD_ROOT}%{_bindir}/brestore
500 popd
501
502 pushd bweb
503 %{__make} \
504 PERL_INSTALL_ROOT=${RPM_BUILD_ROOT} \
505 pure_install
506
507 find ${RPM_BUILD_ROOT} -type f -name ".packlist" -exec %{__rm} -f {} \;
508
509 %{__install} -m 0644 html/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}/bweb/html
510 %{__install} -m 0755 cgi/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}/bweb/cgi-bin
511 %{__install} -m 0644 tpl/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}/bweb/tpl
512
513 %{__install} -m 0644 bweb.conf ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}
514 %{__install} -m 0644 script/bweb-postgresql.sql \
515 ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts
516
517 %{__install} -m 0640 %{SOURCE21} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
518 popd
519
520 pushd %{name}-web
521 %{__cp} -pr * ${RPM_BUILD_ROOT}%{_datadir}/%{name}/%{name}-web/html
522 %{__install} -m 0640 %{SOURCE22} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
523 popd
524 popd
525
526 # Install rescue files
527 pushd %{name}-rescue-%{rescue_ver}
528 %{__cp} -p {Makefile*,README,version.h} \
529 ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue
530 %{__cp} -pr linux ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue
531 touch ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/linux/cdrom/rpm_release
532 %{__cp} -pr knoppix ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue
533 touch ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/knoppix/cdrom/rpm_release
534
535 %{__install} -m 0755 -D ../src/static-bacula-fd \
536 ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/linux/cdrom/%{name}/bin/%{name}-fd
537 %{__install} -m 0755 -D ../src/static-bacula-fd \
538 ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/knoppix/cdrom/%{name}/bin/%{name}-fd
539
540 %{__ln_s} -f %{_sysconfdir}/%{name}/%{name}-fd.conf \
541 ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/linux/cdrom/%{name}/bin/%{name}-fd.conf
542 %{__ln_s} -f %{_sysconfdir}/%{name}/%{name}-fd.conf \
543 ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/knoppix/cdrom/%{name}/bin/%{name}-fd.conf
544 popd
545
546
547 %pre
548 if ! getent group %{name} >/dev/null 2>&1; then
549 /usr/sbin/groupadd -r %{name}
550 fi
551 if ! getent passwd %{name} >/dev/null 2>&1; then
552 /usr/sbin/useradd -g %{name} -G %{name},disk \
553 -d %{_localstatedir}/lib/%{name} \
554 -c "Bacula Service user" \
555 -r -s /sbin/nologin %{name}
556 fi
557 exit 0 # Always pass
558
559
560 %post
561 [ -f %{_sysconfdir}/%{name}/support.pkg ] || {
562 touch %{_sysconfdir}/%{name}/support.pkg
563 %{__chown} root:root %{_sysconfdir}/%{name}/support.pkg
564 %{__chmod} 0600 %{_sysconfdir}/%{name}/support.pkg
565
566 HOSTNAME="`uname -n | cut -d. -f1`"
567 echo "HOSTNAME=${HOSTNAME}" >>%{_sysconfdir}/%{name}/support.pkg
568
569 for STRING in DIR_PASS FD_PASS SD_PASS DIR_MON_PASS FD_MON_PASS SD_MON_PASS; do
570 PASSWORD="`openssl rand -base64 36`"
571 echo "${STRING}=${PASSWORD}" >>%{_sysconfdir}/%{name}/support.pkg
572 done
573 }
574
575 /sbin/ldconfig
576
577 %post client
578 # Update config
579 for STRING in HOSTNAME FD_PASS FD_MON_PASS; do
580 REPLACE="`%{__grep} ${STRING} %{_sysconfdir}/%{name}/support.pkg 2>/dev/null | cut -d= -f2`"
581
582 if [ -n "${REPLACE}" ]; then
583 %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-fd.conf
584 fi
585 done
586
587 /sbin/chkconfig --add %{name}-fd
588
589 %post console
590 # Update config
591 for STRING in HOSTNAME DIR_PASS; do
592 REPLACE="`%{__grep} ${STRING} %{_sysconfdir}/%{name}/support.pkg 2>/dev/null | cut -d= -f2`"
593
594 if [ -n "${REPLACE}" ]; then
595 %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/bconsole.conf
596 fi
597 done
598
599 %post gui-bimagemgr
600 usermod -G %{name} apache
601
602 %post gui-bimagemgr-selinux
603 if /usr/sbin/selinuxenabled && [ -e /selinux/policyvers ]; then
604 /sbin/fixfiles -R %{name}-gui-bimagemgr restore
605 /sbin/restorecon -R %{_localstatedir}/cache/bimagemgr
606 fi
607
608 %post gui-bweb
609 usermod -G %{name} apache
610
611 %post gui-bweb-selinux
612 if /usr/sbin/selinuxenabled && [ -e /selinux/policyvers ]; then
613 /sbin/fixfiles -R %{name}-gui-bweb restore
614 /sbin/restorecon -R %{_localstatedir}/cache/bweb
615 fi
616
617 %post server-sqlite
618 # Update config
619 for STRING in HOSTNAME DIR_PASS FD_PASS SD_PASS DIR_MON_PASS SD_MON_PASS; do
620 REPLACE="`%{__grep} ${STRING} %{_sysconfdir}/%{name}/support.pkg 2>/dev/null | cut -d= -f2`"
621
622 if [ -n "${REPLACE}" ]; then
623 %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-dir.conf
624 %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-sd.conf
625 fi
626 done
627
628 /sbin/chkconfig --add %{name}-sd
629 /sbin/chkconfig --add %{name}-dir
630
631 /sbin/ldconfig
632
633 %post server-mysql
634 # Update config
635 for STRING in HOSTNAME DIR_PASS FD_PASS SD_PASS DIR_MON_PASS SD_MON_PASS; do
636 REPLACE="`%{__grep} ${STRING} %{_sysconfdir}/%{name}/support.pkg 2>/dev/null | cut -d= -f2`"
637
638 if [ -n "${REPLACE}" ]; then
639 %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-dir.conf
640 %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-sd.conf
641 fi
642 done
643
644 /sbin/chkconfig --add %{name}-sd
645 /sbin/chkconfig --add %{name}-dir
646
647 /sbin/ldconfig
648
649 %post server-postgresql
650 # Update config
651 for STRING in HOSTNAME DIR_PASS FD_PASS SD_PASS DIR_MON_PASS SD_MON_PASS; do
652 REPLACE="`%{__grep} ${STRING} %{_sysconfdir}/%{name}/support.pkg 2>/dev/null | cut -d= -f2`"
653
654 if [ -n "${REPLACE}" ]; then
655 %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-dir.conf
656 %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-sd.conf
657 fi
658 done
659
660 /sbin/chkconfig --add %{name}-sd
661 /sbin/chkconfig --add %{name}-dir
662
663 /sbin/ldconfig
664
665
666 %preun client
667 if [ $1 -eq 0 ]; then # Remove
668 /sbin/service %{name}-fd stop >/dev/null 2>&1
669 /sbin/chkconfig --del %{name}-fd
670 fi
671
672 %preun server-sqlite
673 if [ $1 -eq 0 ]; then # Remove
674 /sbin/service %{name}-sd stop >/dev/null 2>&1
675 /sbin/service %{name}-dir stop >/dev/null 2>&1
676
677 /sbin/chkconfig --del %{name}-sd
678 /sbin/chkconfig --del %{name}-dir
679 fi
680
681 %preun server-mysql
682 if [ $1 -eq 0 ]; then # Remove
683 /sbin/service %{name}-sd stop >/dev/null 2>&1
684 /sbin/service %{name}-dir stop >/dev/null 2>&1
685
686 /sbin/chkconfig --del %{name}-sd
687 /sbin/chkconfig --del %{name}-dir
688 fi
689
690 %preun server-postgresql
691 if [ $1 -eq 0 ]; then # Remove
692 /sbin/service %{name}-sd stop >/dev/null 2>&1
693 /sbin/service %{name}-dir stop >/dev/null 2>&1
694
695 /sbin/chkconfig --del %{name}-sd
696 /sbin/chkconfig --del %{name}-dir
697 fi
698
699
700 %postun -p /sbin/ldconfig
701
702 %postun client
703 if [ $1 -ge 1 ]; then # Upgrade
704 /sbin/service %{name}-fd condrestart >/dev/null 2>&1 || :
705 fi
706
707 %postun server-sqlite
708 if [ $1 -eq 0 ]; then # Remove
709 /sbin/ldconfig
710 fi
711 if [ $1 -ge 1 ]; then # Upgrade
712 /sbin/service %{name}-sd condrestart >/dev/null 2>&1 || :
713 /sbin/service %{name}-dir condrestart >/dev/null 2>&1 || :
714 fi
715
716 %postun server-mysql
717 if [ $1 -eq 0 ]; then # Remove
718 /sbin/ldconfig
719 fi
720 if [ $1 -ge 1 ]; then # Upgrade
721 /sbin/service %{name}-sd condrestart >/dev/null 2>&1 || :
722 /sbin/service %{name}-dir condrestart >/dev/null 2>&1 || :
723 fi
724
725 %postun server-postgresql
726 if [ $1 -eq 0 ]; then # Remove
727 /sbin/ldconfig
728 fi
729 if [ $1 -ge 1 ]; then # Upgrade
730 /sbin/service %{name}-sd condrestart >/dev/null 2>&1 || :
731 /sbin/service %{name}-dir condrestart >/dev/null 2>&1 || :
732 fi
733
734
735 %clean
736 [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT}
737
738
739 %files
740 %defattr(-,root,root)
741 %doc ABOUT-NLS AUTHORS COPYING COPYRIGHT ChangeLog INSTALL
742 %doc LICENSE README ReleaseNotes SUPPORT kernstodo projects
743 %doc technotes unaccepted-projects scripts/*.vim
744 %attr(755,root,%{name}) %dir %{_sysconfdir}/%{name}
745 %attr(600,root,root) %ghost %{_sysconfdir}/%{name}/support.pkg
746 %attr(750,%{name},%{name}) %dir %{_sysconfdir}/%{name}/scripts
747 %{_sysconfdir}/%{name}/scripts/btraceback.dbx
748 %{_sysconfdir}/%{name}/scripts/btraceback.gdb
749 %{_sysconfdir}/%{name}/scripts/btraceback.mdb
750 %{_sysconfdir}/%{name}/scripts/magic
751 %attr(755,root,%{name}) %{_bindir}/bsmtp
752 %attr(755,root,%{name}) %{_bindir}/bregex
753 %attr(755,root,%{name}) %config(noreplace) %{_bindir}/btraceback
754 %attr(755,root,%{name}) %{_bindir}/bwild
755 %attr(755,root,%{name}) %{_bindir}/grow
756 %attr(755,root,%{name}) %{_bindir}/test*
757 %attr(755,root,%{name}) %{_bindir}/*type
758 %{_libdir}/libbac-*.so
759 %{_libdir}/libbaccfg-*.so
760 %{_libdir}/libbacfind-*.so
761 %{_libdir}/libbacpy-*.so
762 %dir %{_libdir}/%{name}
763 %dir %{_datadir}/%{name}
764 %{_datadir}/%{name}/examples
765 %{_mandir}/man1/bsmtp.1*
766 %{_mandir}/man8/bacula.8*
767 %{_mandir}/man8/btraceback.8*
768 %attr(755,%{name},%{name}) %dir %{_localstatedir}/lib/%{name}
769
770 %files client
771 %defattr(-,root,root)
772 %{_initrddir}/bacula-fd
773 %config(noreplace) %{_sysconfdir}/sysconfig/bacula-fd
774 %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/bacula-fd.conf
775 %attr(751,root,%{name}) %{_sbindir}/bacula-fd
776 %{_libdir}/%{name}/bpipe-fd.so
777 %{_mandir}/man8/bacula-fd.8*
778
779 %files client-rescue
780 %defattr(-,root,root)
781 %attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/rescue
782 %config %{_sysconfdir}/%{name}/rescue/*
783
784 %files console
785 %defattr(-,root,root)
786 %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/bconsole.conf
787 %attr(751,root,%{name}) %{_bindir}/bconsole
788 %{_mandir}/man8/bconsole.8*
789
790 %files doc
791 %defattr(-,root,root)
792 %doc %{name}-docs-%{version}/manuals/en/console/console.pdf
793 %doc %{name}-docs-%{version}/manuals/en/console/console
794 %doc %{name}-docs-%{version}/manuals/en/developers/developers.pdf
795 %doc %{name}-docs-%{version}/manuals/en/developers/developers
796 %doc %{name}-docs-%{version}/manuals/en/main/main.pdf
797 %doc %{name}-docs-%{version}/manuals/en/main/main
798 %doc %{name}-docs-%{version}/manuals/en/misc/misc.pdf
799 %doc %{name}-docs-%{version}/manuals/en/misc/misc
800 %doc %{name}-docs-%{version}/manuals/en/problems/problems.pdf
801 %doc %{name}-docs-%{version}/manuals/en/problems/problems
802 %doc %{name}-docs-%{version}/manuals/en/utility/utility.pdf
803 %doc %{name}-docs-%{version}/manuals/en/utility/utility
804
805 %files gui-bimagemgr
806 %defattr(-,root,root)
807 %doc %{name}-gui-%{version}/bimagemgr/{COPYING,ChangeLog,README,ReleaseNotes}
808 %{_sysconfdir}/%{name}/scripts/create_cdimage_table.pl
809 %config(noreplace) %{_sysconfdir}/httpd/conf.d/bacula-bimagemgr.conf
810 %dir %{_datadir}/%{name}/bimagemgr
811 %dir %{_datadir}/%{name}/bimagemgr/cgi-bin
812 %{_datadir}/%{name}/bimagemgr/cgi-bin/bimagemgr.pl
813 %attr(640,root,apache) %config %{_datadir}/%{name}/bimagemgr/cgi-bin/config.pm
814 %dir %{_datadir}/%{name}/bimagemgr/html
815 %{_datadir}/%{name}/bimagemgr/html/*.gif
816 %attr(640,apache,apache) %{_datadir}/%{name}/bimagemgr/html/temp.html
817 %attr(750,apache,apache) %dir %{_localstatedir}/cache/bimagemgr
818 %attr(640,apache,apache) %verify(not md5 size mtime) %{_localstatedir}/cache/bimagemgr/temp.html
819
820 %files gui-bimagemgr-selinux
821 %defattr(-,root,root)
822
823 %files gui-brestore
824 %defattr(-,root,root)
825 %doc %{name}-gui-%{version}/brestore/{COPYING,INSTALL,README,ReleaseNotes}
826 %config(noreplace) %{_sysconfdir}/pam.d/brestore
827 %config(noreplace) %{_sysconfdir}/security/console.apps/brestore
828 %{_bindir}/brestore
829 %{_bindir}/brestore.pl
830 %config(noreplace) %{_datadir}/applications/bacula-restore.desktop
831 %{_datadir}/pixmaps/brestore.png
832 %{_datadir}/%{name}/brestore
833
834 %files gui-bweb
835 %defattr(-,root,root)
836 %doc %{name}-gui-%{version}/bweb/{INSTALL,LICENSE,ReleaseNotes,UPGRADE}
837 %attr(640,apache,apache) %config(noreplace) %{_sysconfdir}/%{name}/bweb.conf
838 %{_sysconfdir}/%{name}/scripts/bweb-postgresql.sql
839 %config(noreplace) %{_sysconfdir}/httpd/conf.d/bacula-bweb.conf
840 %{perl_vendorlib}/*
841 %{_datadir}/%{name}/bweb
842 %{_mandir}/man3/*.3*
843 %attr(750,apache,apache) %dir %{_localstatedir}/cache/bweb
844
845 %files gui-bweb-selinux
846 %defattr(-,root,root)
847
848 %files gui-web
849 %defattr(-,root,root)
850 %doc %{name}-gui-%{version}/%{name}-web/{CONTACT,COPYING,ChangeLog,README,TODO}
851 %config(noreplace) %{_sysconfdir}/httpd/conf.d/bacula-web.conf
852 %config(noreplace) %{_datadir}/%{name}/bacula-web
853
854 %files server-sqlite
855 %defattr(-,root,root)
856 %{_initrddir}/bacula-dir
857 %{_initrddir}/bacula-sd
858 %config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir
859 %config(noreplace) %{_sysconfdir}/sysconfig/bacula-sd
860 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
861 %{_sysconfdir}/log.d/scripts/services/%{name}
862 %{_sysconfdir}/log.d/conf/logfiles/bacula.conf
863 %{_sysconfdir}/log.d/conf/services/bacula.conf
864 %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/bacula-dir.conf
865 %attr(640,root,disk) %config(noreplace) %{_sysconfdir}/%{name}/bacula-sd.conf
866 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_bacula_*
867 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_catalog_*
868 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_sqlite3_*
869 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-sqlite
870 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/dvd-handler
871 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer
872 %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer.conf
873 %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/query.sql
874 %attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/updatedb
875 %{_sysconfdir}/%{name}/updatedb/README
876 %{_sysconfdir}/%{name}/updatedb/update_sqlite3_*
877 %attr(751,root,%{name}) %{_bindir}/bbatch
878 %attr(751,root,%{name}) %{_bindir}/bscan
879 %attr(751,root,%{name}) %{_bindir}/dbcheck
880 %attr(751,root,%{name}) %{_bindir}/bcopy
881 %attr(751,root,%{name}) %{_bindir}/bls
882 %attr(751,root,%{name}) %{_bindir}/bextract
883 %attr(751,root,%{name}) %{_bindir}/btape
884 %attr(751,root,%{name}) %{_bindir}/*test
885 %attr(751,root,%{name}) %{_sbindir}/bacula-dir
886 %attr(751,root,disk) %{_sbindir}/bacula-sd
887 %{_libdir}/libbacsql-sqlite-*.so
888 %{_mandir}/man8/bacula-dir.8*
889 %{_mandir}/man8/bacula-sd.8*
890 %{_mandir}/man8/bcopy.8*
891 %{_mandir}/man8/bextract.8*
892 %{_mandir}/man8/bls.8*
893 %{_mandir}/man8/bscan.8*
894 %{_mandir}/man8/btape.8*
895 %{_mandir}/man8/dbcheck.8*
896 %attr(755,%{name},%{name}) %dir %{_localstatedir}/log/%{name}
897
898 %files server-mysql
899 %defattr(-,root,root)
900 %{_initrddir}/bacula-dir
901 %{_initrddir}/bacula-sd
902 %config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir
903 %config(noreplace) %{_sysconfdir}/sysconfig/bacula-sd
904 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
905 %{_sysconfdir}/log.d/scripts/services/%{name}
906 %{_sysconfdir}/log.d/conf/logfiles/bacula.conf
907 %{_sysconfdir}/log.d/conf/services/bacula.conf
908 %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/bacula-dir.conf
909 %attr(640,root,disk) %config(noreplace) %{_sysconfdir}/%{name}/bacula-sd.conf
910 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_bacula_*
911 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_catalog_*
912 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_mysql_*
913 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-mysql
914 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/dvd-handler
915 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer
916 %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer.conf
917 %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/query.sql
918 %attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/updatedb
919 %{_sysconfdir}/%{name}/updatedb/README
920 %{_sysconfdir}/%{name}/updatedb/update_mysql_*
921 %attr(751,root,%{name}) %{_bindir}/bbatch
922 %attr(751,root,%{name}) %{_bindir}/bscan
923 %attr(751,root,%{name}) %{_bindir}/dbcheck
924 %attr(751,root,%{name}) %{_bindir}/bcopy
925 %attr(751,root,%{name}) %{_bindir}/bls
926 %attr(751,root,%{name}) %{_bindir}/bextract
927 %attr(751,root,%{name}) %{_bindir}/btape
928 %attr(751,root,%{name}) %{_bindir}/*test
929 %attr(751,root,%{name}) %{_sbindir}/bacula-dir
930 %attr(751,root,disk) %{_sbindir}/bacula-sd
931 %{_libdir}/libbacsql-mysql-*.so
932 %{_mandir}/man8/bacula-dir.8*
933 %{_mandir}/man8/bacula-sd.8*
934 %{_mandir}/man8/bcopy.8*
935 %{_mandir}/man8/bextract.8*
936 %{_mandir}/man8/bls.8*
937 %{_mandir}/man8/bscan.8*
938 %{_mandir}/man8/btape.8*
939 %{_mandir}/man8/dbcheck.8*
940 %attr(755,%{name},%{name}) %dir %{_localstatedir}/log/%{name}
941
942 %files server-postgresql
943 %defattr(-,root,root)
944 %{_initrddir}/bacula-dir
945 %{_initrddir}/bacula-sd
946 %config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir
947 %config(noreplace) %{_sysconfdir}/sysconfig/bacula-sd
948 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
949 %{_sysconfdir}/log.d/scripts/services/%{name}
950 %{_sysconfdir}/log.d/conf/logfiles/bacula.conf
951 %{_sysconfdir}/log.d/conf/services/bacula.conf
952 %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/bacula-dir.conf
953 %attr(640,root,disk) %config(noreplace) %{_sysconfdir}/%{name}/bacula-sd.conf
954 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_bacula_*
955 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_catalog_*
956 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_postgresql_*
957 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-pgsql
958 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/dvd-handler
959 %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer
960 %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer.conf
961 %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/query.sql
962 %attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/updatedb
963 %{_sysconfdir}/%{name}/updatedb/README
964 %{_sysconfdir}/%{name}/updatedb/update_postgresql_*
965 %attr(751,root,%{name}) %{_bindir}/bbatch
966 %attr(751,root,%{name}) %{_bindir}/bscan
967 %attr(751,root,%{name}) %{_bindir}/dbcheck
968 %attr(751,root,%{name}) %{_bindir}/bcopy
969 %attr(751,root,%{name}) %{_bindir}/bls
970 %attr(751,root,%{name}) %{_bindir}/bextract
971 %attr(751,root,%{name}) %{_bindir}/btape
972 %attr(751,root,%{name}) %{_bindir}/*test
973 %attr(751,root,%{name}) %{_sbindir}/bacula-dir
974 %attr(751,root,disk) %{_sbindir}/bacula-sd
975 %{_libdir}/libbacsql-pgsql-*.so
976 %{_mandir}/man8/bacula-dir.8*
977 %{_mandir}/man8/bacula-sd.8*
978 %{_mandir}/man8/bcopy.8*
979 %{_mandir}/man8/bextract.8*
980 %{_mandir}/man8/bls.8*
981 %{_mandir}/man8/bscan.8*
982 %{_mandir}/man8/btape.8*
983 %{_mandir}/man8/dbcheck.8*
984 %attr(755,%{name},%{name}) %dir %{_localstatedir}/log/%{name}
985
986
987 %changelog
988 * Wed Oct 06 2010 Peter Pramberger <peterpramb@member.fsf.org> - 5.0.3-1
989 - New version (5.0.3)
990
991 * Fri May 21 2010 Peter Pramberger <peterpramb@member.fsf.org> - 5.0.2-1
992 - New version (5.0.2)
993
994 * Thu Mar 04 2010 Peter Pramberger <peterpramb@member.fsf.org> - 5.0.1-1
995 - New version (5.0.1)
996
997 * Wed Oct 28 2009 Peter Pramberger <peterpramb@member.fsf.org> - 3.0.3-1
998 - New version (3.0.3)
999
1000 * Tue Jul 28 2009 Peter Pramberger <peterpramb@member.fsf.org> - 3.0.2-1
1001 - New version (3.0.2)
1002
1003 * Tue May 26 2009 Peter Pramberger <peterpramb@member.fsf.org> - 3.0.1-3
1004 - Fixed File service backup abort on ACLs, if sys/fs has no ACLs enabled
1005
1006 * Mon May 25 2009 Peter Pramberger <peterpramb@member.fsf.org> - 3.0.1-2
1007 - Fixed database scripts
1008
1009 * Sat May 23 2009 Peter Pramberger <peterpramb@member.fsf.org> - 3.0.1-1
1010 - New version (3.0.1)
1011
1012 * Sat Mar 28 2009 Peter Pramberger <peterpramb@member.fsf.org> - 2.4.4-1
1013 - New version (2.4.4)
1014
1015 * Mon Nov 03 2008 Peter Pramberger <peterpramb@member.fsf.org> - 2.4.3-2
1016 - Added patch for bug #1175 (http://bugs.bacula.org/view.php?id=1175)
1017 - Added patch: orphaned-jobs.patch
1018
1019 * Thu Oct 23 2008 Peter Pramberger <peterpramb@member.fsf.org> - 2.4.3-1
1020 - New version (2.4.3)
1021
1022 * Sat Dec 08 2007 peter.pramberger@member.fsf.org 2.2.6-7
1023 - new version (2.2.6)
1024 - added package for bat
1025
1026 * Fri Oct 19 2007 peter.pramberger@member.fsf.org 2.2.5-6
1027 - new version (2.2.5)
1028
1029 * Fri Jun 22 2007 peter.pramberger@member.fsf.org 2.0.3-5
1030 - added selinux check for bimagemgr/bweb
1031
1032 * Fri Jun 01 2007 peter.pramberger@member.fsf.org 2.0.3-4
1033 - created

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed