/[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.1 - (show annotations) (download)
Fri Dec 3 17:41:52 2010 UTC (13 years, 11 months ago) by slords
Branch: MAIN
Initial import

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

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