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

Annotation of /rpms/bacula/contribs7/bacula.spec

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


Revision 1.1 - (hide annotations) (download)
Fri Dec 3 18:15:56 2010 UTC (13 years, 6 months ago) by slords
Branch: MAIN
Initial import

1 slords 1.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
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     %package gui-web
175     Summary: The Bacula web utility
176     Group: Applications/Internet
177     Requires: httpd php-gd php-gettext php-session php-pear(DB)
178    
179     %description gui-web
180     This package contains %{name}-web, a web server based utility to monitor
181     your Bacula server.
182    
183     %package server-sqlite
184     Summary: The Bacula server for SQLite backends
185     Group: System Environment/Daemons
186     Requires: %{name} = %{version}-%{release}
187     Requires: gdb
188     Requires(post): /sbin/chkconfig /sbin/ldconfig
189     Requires(preun): /sbin/chkconfig /sbin/service
190     Requires(postun): /sbin/ldconfig /sbin/service
191     Conflicts: %{name}-server-mysql %{name}-server-postgresql
192    
193     %description server-sqlite
194     This package contains the Bacula server daemons which use SQLite as database
195     backend for the Catalog service.
196    
197     The Bacula Director service is the program that supervises all the backup,
198     restore, verify and archive operations. The system administrator uses the
199     Bacula Director to schedule backups and to recover files. The Director runs
200     as a daemon in the background.
201    
202     The Bacula Storage services consist of the software programs that perform
203     the storage and recovery of the file attributes and data to the physical
204     backup media or volumes. In other words, the Storage daemon is responsible
205     for reading and writing your tapes (or other storage media, e.g. files). It
206     runs as a daemon on the machine that has the backup device (usually a tape
207     drive).
208    
209    
210     %package server-mysql
211     Summary: The Bacula server for MySQL backends
212     Group: System Environment/Daemons
213     Requires: %{name} = %{version}-%{release}
214     Requires: gdb
215     Requires(post): /sbin/chkconfig /sbin/ldconfig
216     Requires(preun): /sbin/chkconfig /sbin/service
217     Requires(postun): /sbin/ldconfig /sbin/service
218     Conflicts: %{name}-server-sqlite %{name}-server-postgresql
219    
220     %description server-mysql
221     This package contains the Bacula server daemons which use MySQL as database
222     backend for the Catalog service.
223    
224     The Bacula Director service is the program that supervises all the backup,
225     restore, verify and archive operations. The system administrator uses the
226     Bacula Director to schedule backups and to recover files. The Director runs
227     as a daemon in the background.
228    
229     The Bacula Storage services consist of the software programs that perform
230     the storage and recovery of the file attributes and data to the physical
231     backup media or volumes. In other words, the Storage daemon is responsible
232     for reading and writing your tapes (or other storage media, e.g. files). It
233     runs as a daemon on the machine that has the backup device (usually a tape
234     drive).
235    
236    
237     %package server-postgresql
238     Summary: The Bacula server for PostgreSQL backends
239     Group: System Environment/Daemons
240     Requires: %{name} = %{version}-%{release}
241     Requires: gdb
242     Requires(post): /sbin/chkconfig /sbin/ldconfig
243     Requires(preun): /sbin/chkconfig /sbin/service
244     Requires(postun): /sbin/ldconfig /sbin/service
245     Conflicts: %{name}-server-sqlite %{name}-server-mysql
246    
247     %description server-postgresql
248     This package contains the Bacula server daemons which use PostgreSQL as a
249     database backend for the Catalog service.
250    
251     The Bacula Director service is the program that supervises all the backup,
252     restore, verify and archive operations. The system administrator uses the
253     Bacula Director to schedule backups and to recover files. The Director runs
254     as a daemon in the background.
255    
256     The Bacula Storage services consist of the software programs that perform
257     the storage and recovery of the file attributes and data to the physical
258     backup media or volumes. In other words, the Storage daemon is responsible
259     for reading and writing your tapes (or other storage media, e.g. files). It
260     runs as a daemon on the machine that has the backup device (usually a tape
261     drive).
262    
263    
264     %prep
265     %setup -q -a 1 -a 2 -a 3 -a 30
266    
267     # Upstream patches
268     #%patch0 -p0
269    
270     # Local patches
271     %patch10 -p1
272     %patch11 -p1
273     %patch12 -p1
274     %patch13 -p1
275     %patch20 -p1
276    
277     pushd %{name}-gui-%{bacula_ver}
278     %patch14 -p0
279     %patch15 -p0
280     popd
281    
282     pushd %{name}-rescue-%{rescue_ver}
283     %patch16 -p1
284     popd
285    
286     # Contrib patches
287     %patch21 -p1
288    
289     # Fix permissions
290     %{__chmod} 0644 %{name}-rescue-%{rescue_ver}/Makefile.in
291    
292     pushd examples
293     find -type f -name "*.pl" -exec %{__chmod} a-x {} \;
294     %{__chmod} a-x afs-%{name} reports/checkhost
295     popd
296    
297     # Cleanup
298     find -type f -name "*.orig" -exec %{__rm} -f {} \;
299    
300    
301     %build
302     BuildApp() {
303     %configure \
304     CFLAGS="${CFLAGS} -DOPENSSL_NO_KRB5" \
305     CPPFLAGS="${CPPFLAGS} -DOPENSSL_NO_KRB5" \
306     --sbindir=%{_bindir} \
307     --sysconfdir=%{_sysconfdir}/%{name} \
308     --htmldir=%{_datadir}/%{name}/html \
309     --with-scriptdir=%{_sysconfdir}/%{name}/scripts \
310     --with-plugindir=%{_libdir}/%{name} \
311     --with-archivedir=/tmp \
312     --disable-bat \
313     --disable-tray-monitor \
314     --disable-bwx-console \
315     --enable-lockmgr \
316     --enable-ipv6 \
317     --enable-batch-insert \
318     --with-openssl \
319     --with-python \
320     --with-readline=%{_includedir}/readline \
321     --disable-conio \
322     --with-tcp-wrappers \
323     --with-dir-user=%{name} \
324     --with-dir-group=%{name} \
325     --with-sd-user=%{name} \
326     --with-sd-group=disk \
327     --with-fd-user=root \
328     --with-fd-group=%{name} \
329     --with-working-dir=%{_localstatedir}/lib/%{name} \
330     --with-basename="XXX_HOSTNAME_XXX" \
331     --with-dir-password="XXX_DIR_PASS_XXX" \
332     --with-fd-password="XXX_FD_PASS_XXX" \
333     --with-sd-password="XXX_SD_PASS_XXX" \
334     --with-mon-dir-password="XXX_DIR_MON_PASS_XXX" \
335     --with-mon-fd-password="XXX_FD_MON_PASS_XXX" \
336     --with-mon-sd-password="XXX_SD_MON_PASS_XXX" \
337     ${1}
338    
339     %{__make} %{?_smp_mflags}
340    
341     if [ -n "${2}" ]; then
342     LIB=$(basename src/cats/.libs/libbacsql-*.so)
343     NLIB=$(echo ${LIB} | %{__sed} -e "s/-/-${2}-/")
344    
345     %{__cp} -f src/cats/.libs/${LIB} src/${NLIB}
346     %{__cp} -f scripts/bacula_config scripts/bacula_config-${2}
347     else
348     %{__cp} -f src/filed/static-bacula-fd src
349     fi
350     }
351    
352     # static-fd: static linking against OpenSSL isn't possible anymore!
353     # libssl.a -> keyutils.a (dropped by upstream)
354     BuildApp "--enable-static-fd --enable-client-only --disable-libtool \
355     --without-openssl --without-python --without-tcp-wrappers \
356     --disable-bat --disable-tray-monitor --disable-bwx-console \
357     ac_cv_lib_cap_cap_set_proc=no"
358    
359     BuildApp "--with-sqlite3" "sqlite"
360     BuildApp "--with-mysql" "mysql"
361     BuildApp "--with-postgresql" "pgsql"
362    
363     # Build extra GUI's
364     pushd %{name}-gui-%{bacula_ver}
365     %configure \
366     --sysconfdir=%{_sysconfdir}/%{name} \
367     --with-bacula=`pwd`/.. \
368     --with-bimagemgr-cgidir=%{_datadir}/%{name}/bimagemgr/cgi-bin \
369     --with-bimagemgr-docdir=%{_datadir}/%{name}/bimagemgr/html
370    
371     pushd bweb
372     %{__perl} \
373     Makefile.PL \
374     INSTALLDIRS="vendor"
375    
376     %{__make} %{?_smp_mflags}
377     popd
378     popd
379    
380     # Build rescue files
381     pushd %{name}-rescue-%{rescue_ver}
382     %configure \
383     --sysconfdir=%{_sysconfdir}/%{name}/rescue \
384     --with-bacula=`pwd`/..
385     popd
386    
387     # Build documentation
388     pushd %{name}-docs-%{bacula_ver}
389     %configure \
390     --sysconfdir=%{_sysconfdir}/%{name} \
391     --with-bacula=`pwd`/..
392    
393     for DIR in manuals/en/*/; do
394     if [ -f ${DIR}/Makefile ]; then
395     %{__make} -C ${DIR} web mini-clean
396     fi
397     done
398     popd
399    
400    
401     %install
402     [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT}
403     %{__mkdir_p} ${RPM_BUILD_ROOT}%{_initrddir}
404     %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sysconfdir}/{%{name}/{rescue,updatedb},sysconfig,logrotate.d}
405     %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sysconfdir}/log.d/{scripts/services,conf/{logfiles,services}}
406     %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sysconfdir}/{httpd/conf.d,pam.d,security/console.apps}
407     %{__mkdir_p} ${RPM_BUILD_ROOT}%{_bindir}
408     %{__mkdir_p} ${RPM_BUILD_ROOT}%{_sbindir}
409     %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/{applications,pixmaps}
410     %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/%{name}/{brestore,bweb/tpl}
411     %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/%{name}/{%{name}-web,bimagemgr,bweb}/{cgi-bin,html}
412     %{__mkdir_p} ${RPM_BUILD_ROOT}%{_localstatedir}/{lib,log}/%{name}
413     %{__mkdir_p} ${RPM_BUILD_ROOT}%{_localstatedir}/cache/{bimagemgr,bweb}
414    
415     %{__make} \
416     DESTDIR=${RPM_BUILD_ROOT} \
417     install
418    
419     %{__mv} -f ${RPM_BUILD_ROOT}%{_bindir}/%{name}-{dir,fd,sd} ${RPM_BUILD_ROOT}%{_sbindir}
420    
421     %{__install} -m 0755 src/tools/.libs/bbatch ${RPM_BUILD_ROOT}%{_bindir}
422     %{__install} -m 0755 src/tools/.libs/grow ${RPM_BUILD_ROOT}%{_bindir}
423     %{__install} -m 0755 src/tools/.libs/test* ${RPM_BUILD_ROOT}%{_bindir}
424     %{__install} -m 0755 src/tools/.libs/*test ${RPM_BUILD_ROOT}%{_bindir}
425     %{__install} -m 0755 src/tools/.libs/*type ${RPM_BUILD_ROOT}%{_bindir}
426     %{__install} -m 0755 src/libbacsql-*.so ${RPM_BUILD_ROOT}%{_libdir}
427     %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/libbacsql-?.?.?.so
428    
429     %{__install} -m 0755 scripts/bacula_config-* ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts
430     %{__rm} -f ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts/bacula_config
431    
432     %{__install} -m 0755 %{SOURCE10} ${RPM_BUILD_ROOT}%{_initrddir}/%{name}-dir
433     %{__install} -m 0755 %{SOURCE11} ${RPM_BUILD_ROOT}%{_initrddir}/%{name}-sd
434     %{__install} -m 0755 %{SOURCE12} ${RPM_BUILD_ROOT}%{_initrddir}/%{name}-fd
435    
436     %{__install} -m 0644 %{SOURCE15} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}-dir
437     %{__install} -m 0644 %{SOURCE16} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}-sd
438     %{__install} -m 0644 %{SOURCE17} ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/%{name}-fd
439    
440     %{__install} -m 0644 scripts/logrotate ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}
441     %{__install} -m 0644 scripts/m*.bacula ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts/magic
442    
443     %{__cp} -prd examples ${RPM_BUILD_ROOT}%{_datadir}/%{name}
444    
445     touch ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/support.pkg
446     touch ${RPM_BUILD_ROOT}%{_localstatedir}/cache/bimagemgr/temp.html
447    
448     %{__rm} -f ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts/{%{name},%{name}-ctl*,[bg]console}
449     %{__rm} -f ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts/{start,stop}mysql
450     %{__rm} -f ${RPM_BUILD_ROOT}%{_bindir}/{%{name},ing_test}
451     %{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/lib{bac,baccfg,bacfind,bacpy,bacsql}.{la,so,so.?}
452     %{__rm} -rf ${RPM_BUILD_ROOT}%{_docdir}
453    
454     # Installed but unpackaged files
455     %{__rm} -rf ${RPM_BUILD_ROOT}%{_mandir}/man1/bat.1*
456     %{__rm} -rf ${RPM_BUILD_ROOT}%{_mandir}/man1/bacula-bwxconsole.1*
457     %{__rm} -rf ${RPM_BUILD_ROOT}%{_mandir}/man1/bacula-tray-monitor.1*
458    
459     # Install DB update scripts
460     %{__install} -m 0644 updatedb/README ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/updatedb
461     %{__install} -m 0755 updatedb/update_{sqlite3,mysql,postgresql}_*_{?,??} \
462     ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/updatedb
463    
464     # Install logwatch addons
465     %{__install} -m 0755 scripts/logwatch/%{name} \
466     ${RPM_BUILD_ROOT}%{_sysconfdir}/log.d/scripts/services
467     %{__install} -m 0644 scripts/logwatch/logfile.%{name}.conf \
468     ${RPM_BUILD_ROOT}%{_sysconfdir}/log.d/conf/logfiles/%{name}.conf
469     %{__install} -m 0644 scripts/logwatch/services.%{name}.conf \
470     ${RPM_BUILD_ROOT}%{_sysconfdir}/log.d/conf/services/%{name}.conf
471    
472     pushd %{name}-gui-%{bacula_ver}
473     pushd bimagemgr
474     %{__make} \
475     DESTDIR=${RPM_BUILD_ROOT} \
476     install
477    
478     %{__install} -m 0640 %{SOURCE20} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
479    
480     %{__ln_s} -f %{_localstatedir}/cache/bimagemgr/temp.html \
481     ${RPM_BUILD_ROOT}%{_datadir}/%{name}/bimagemgr/html
482     popd
483    
484     pushd brestore
485     %{__install} -m 0755 brestore.pl ${RPM_BUILD_ROOT}%{_bindir}
486     %{__install} -m 0644 brestore*.glade ${RPM_BUILD_ROOT}%{_datadir}/%{name}/brestore
487     %{__install} -m 0644 brestore.png ${RPM_BUILD_ROOT}%{_datadir}/pixmaps
488    
489     %{__install} -m 0644 brestore.desktop.consolehelper \
490     ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}-restore.desktop
491     %{__install} -m 0644 brestore.console_apps \
492     ${RPM_BUILD_ROOT}%{_sysconfdir}/security/console.apps/brestore
493    
494     %{__install} -m 0644 brestore.pamd ${RPM_BUILD_ROOT}%{_sysconfdir}/pam.d/brestore
495    
496     %{__ln_s} consolehelper ${RPM_BUILD_ROOT}%{_bindir}/brestore
497     popd
498    
499     pushd bweb
500     %{__make} \
501     PERL_INSTALL_ROOT=${RPM_BUILD_ROOT} \
502     pure_install
503    
504     find ${RPM_BUILD_ROOT} -type f -name ".packlist" -exec %{__rm} -f {} \;
505    
506     %{__install} -m 0644 html/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}/bweb/html
507     %{__install} -m 0755 cgi/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}/bweb/cgi-bin
508     %{__install} -m 0644 tpl/* ${RPM_BUILD_ROOT}%{_datadir}/%{name}/bweb/tpl
509    
510     %{__install} -m 0644 bweb.conf ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}
511     %{__install} -m 0644 script/bweb-postgresql.sql \
512     ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/scripts
513    
514     %{__install} -m 0640 %{SOURCE21} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
515     popd
516    
517     pushd %{name}-web
518     %{__cp} -pr * ${RPM_BUILD_ROOT}%{_datadir}/%{name}/%{name}-web/html
519     %{__install} -m 0640 %{SOURCE22} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
520     popd
521     popd
522    
523     # Install rescue files
524     pushd %{name}-rescue-%{rescue_ver}
525     %{__cp} -p {Makefile*,README,version.h} \
526     ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue
527     %{__cp} -pr linux ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue
528     touch ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/linux/cdrom/rpm_release
529     %{__cp} -pr knoppix ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue
530     touch ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/knoppix/cdrom/rpm_release
531    
532     %{__install} -m 0755 -D ../src/static-bacula-fd \
533     ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/linux/cdrom/%{name}/bin/%{name}-fd
534     %{__install} -m 0755 -D ../src/static-bacula-fd \
535     ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/knoppix/cdrom/%{name}/bin/%{name}-fd
536    
537     %{__ln_s} -f %{_sysconfdir}/%{name}/%{name}-fd.conf \
538     ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/linux/cdrom/%{name}/bin/%{name}-fd.conf
539     %{__ln_s} -f %{_sysconfdir}/%{name}/%{name}-fd.conf \
540     ${RPM_BUILD_ROOT}%{_sysconfdir}/%{name}/rescue/knoppix/cdrom/%{name}/bin/%{name}-fd.conf
541     popd
542    
543    
544     %pre
545     if ! getent group %{name} >/dev/null 2>&1; then
546     /usr/sbin/groupadd -r %{name}
547     fi
548     if ! getent passwd %{name} >/dev/null 2>&1; then
549     /usr/sbin/useradd -g %{name} -G %{name},disk \
550     -d %{_localstatedir}/lib/%{name} \
551     -c "Bacula Service user" \
552     -r -s /sbin/nologin %{name}
553     fi
554     exit 0 # Always pass
555    
556    
557     %post
558     [ -f %{_sysconfdir}/%{name}/support.pkg ] || {
559     touch %{_sysconfdir}/%{name}/support.pkg
560     %{__chown} root:root %{_sysconfdir}/%{name}/support.pkg
561     %{__chmod} 0600 %{_sysconfdir}/%{name}/support.pkg
562    
563     HOSTNAME="`uname -n | cut -d. -f1`"
564     echo "HOSTNAME=${HOSTNAME}" >>%{_sysconfdir}/%{name}/support.pkg
565    
566     for STRING in DIR_PASS FD_PASS SD_PASS DIR_MON_PASS FD_MON_PASS SD_MON_PASS; do
567     PASSWORD="`openssl rand -base64 36`"
568     echo "${STRING}=${PASSWORD}" >>%{_sysconfdir}/%{name}/support.pkg
569     done
570     }
571    
572     /sbin/ldconfig
573    
574     %post client
575     # Update config
576     for STRING in HOSTNAME FD_PASS FD_MON_PASS; do
577     REPLACE="`%{__grep} ${STRING} %{_sysconfdir}/%{name}/support.pkg 2>/dev/null | cut -d= -f2`"
578    
579     if [ -n "${REPLACE}" ]; then
580     %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-fd.conf
581     fi
582     done
583    
584     /sbin/chkconfig --add %{name}-fd
585    
586     %post console
587     # Update config
588     for STRING in HOSTNAME DIR_PASS; do
589     REPLACE="`%{__grep} ${STRING} %{_sysconfdir}/%{name}/support.pkg 2>/dev/null | cut -d= -f2`"
590    
591     if [ -n "${REPLACE}" ]; then
592     %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/bconsole.conf
593     fi
594     done
595    
596     %post gui-bimagemgr
597     usermod -G %{name} apache
598    
599     %post gui-bimagemgr-selinux
600     if /usr/sbin/selinuxenabled && [ -e /selinux/policyvers ]; then
601     /sbin/fixfiles -R %{name}-gui-bimagemgr restore
602     /sbin/restorecon -R %{_localstatedir}/cache/bimagemgr
603     fi
604    
605     %post gui-bweb
606     usermod -G %{name} apache
607    
608     %post gui-bweb-selinux
609     if /usr/sbin/selinuxenabled && [ -e /selinux/policyvers ]; then
610     /sbin/fixfiles -R %{name}-gui-bweb restore
611     /sbin/restorecon -R %{_localstatedir}/cache/bweb
612     fi
613    
614     %post server-sqlite
615     # Update config
616     for STRING in HOSTNAME DIR_PASS FD_PASS SD_PASS DIR_MON_PASS SD_MON_PASS; do
617     REPLACE="`%{__grep} ${STRING} %{_sysconfdir}/%{name}/support.pkg 2>/dev/null | cut -d= -f2`"
618    
619     if [ -n "${REPLACE}" ]; then
620     %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-dir.conf
621     %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-sd.conf
622     fi
623     done
624    
625     /sbin/chkconfig --add %{name}-sd
626     /sbin/chkconfig --add %{name}-dir
627    
628     /sbin/ldconfig
629    
630     %post server-mysql
631     # Update config
632     for STRING in HOSTNAME DIR_PASS FD_PASS SD_PASS DIR_MON_PASS SD_MON_PASS; do
633     REPLACE="`%{__grep} ${STRING} %{_sysconfdir}/%{name}/support.pkg 2>/dev/null | cut -d= -f2`"
634    
635     if [ -n "${REPLACE}" ]; then
636     %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-dir.conf
637     %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-sd.conf
638     fi
639     done
640    
641     /sbin/chkconfig --add %{name}-sd
642     /sbin/chkconfig --add %{name}-dir
643    
644     /sbin/ldconfig
645    
646     %post server-postgresql
647     # Update config
648     for STRING in HOSTNAME DIR_PASS FD_PASS SD_PASS DIR_MON_PASS SD_MON_PASS; do
649     REPLACE="`%{__grep} ${STRING} %{_sysconfdir}/%{name}/support.pkg 2>/dev/null | cut -d= -f2`"
650    
651     if [ -n "${REPLACE}" ]; then
652     %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-dir.conf
653     %{__sed} -i -e "s:XXX_${STRING}_XXX:${REPLACE}:g" %{_sysconfdir}/%{name}/%{name}-sd.conf
654     fi
655     done
656    
657     /sbin/chkconfig --add %{name}-sd
658     /sbin/chkconfig --add %{name}-dir
659    
660     /sbin/ldconfig
661    
662    
663     %preun client
664     if [ $1 -eq 0 ]; then # Remove
665     /sbin/service %{name}-fd stop >/dev/null 2>&1
666     /sbin/chkconfig --del %{name}-fd
667     fi
668    
669     %preun server-sqlite
670     if [ $1 -eq 0 ]; then # Remove
671     /sbin/service %{name}-sd stop >/dev/null 2>&1
672     /sbin/service %{name}-dir stop >/dev/null 2>&1
673    
674     /sbin/chkconfig --del %{name}-sd
675     /sbin/chkconfig --del %{name}-dir
676     fi
677    
678     %preun server-mysql
679     if [ $1 -eq 0 ]; then # Remove
680     /sbin/service %{name}-sd stop >/dev/null 2>&1
681     /sbin/service %{name}-dir stop >/dev/null 2>&1
682    
683     /sbin/chkconfig --del %{name}-sd
684     /sbin/chkconfig --del %{name}-dir
685     fi
686    
687     %preun server-postgresql
688     if [ $1 -eq 0 ]; then # Remove
689     /sbin/service %{name}-sd stop >/dev/null 2>&1
690     /sbin/service %{name}-dir stop >/dev/null 2>&1
691    
692     /sbin/chkconfig --del %{name}-sd
693     /sbin/chkconfig --del %{name}-dir
694     fi
695    
696    
697     %postun -p /sbin/ldconfig
698    
699     %postun client
700     if [ $1 -ge 1 ]; then # Upgrade
701     /sbin/service %{name}-fd condrestart >/dev/null 2>&1 || :
702     fi
703    
704     %postun server-sqlite
705     if [ $1 -eq 0 ]; then # Remove
706     /sbin/ldconfig
707     fi
708     if [ $1 -ge 1 ]; then # Upgrade
709     /sbin/service %{name}-sd condrestart >/dev/null 2>&1 || :
710     /sbin/service %{name}-dir condrestart >/dev/null 2>&1 || :
711     fi
712    
713     %postun server-mysql
714     if [ $1 -eq 0 ]; then # Remove
715     /sbin/ldconfig
716     fi
717     if [ $1 -ge 1 ]; then # Upgrade
718     /sbin/service %{name}-sd condrestart >/dev/null 2>&1 || :
719     /sbin/service %{name}-dir condrestart >/dev/null 2>&1 || :
720     fi
721    
722     %postun server-postgresql
723     if [ $1 -eq 0 ]; then # Remove
724     /sbin/ldconfig
725     fi
726     if [ $1 -ge 1 ]; then # Upgrade
727     /sbin/service %{name}-sd condrestart >/dev/null 2>&1 || :
728     /sbin/service %{name}-dir condrestart >/dev/null 2>&1 || :
729     fi
730    
731    
732     %clean
733     [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != "/" ] && %{__rm} -rf ${RPM_BUILD_ROOT}
734    
735    
736     %files
737     %defattr(-,root,root)
738     %doc ABOUT-NLS AUTHORS COPYING COPYRIGHT ChangeLog INSTALL
739     %doc LICENSE README ReleaseNotes SUPPORT kernstodo projects
740     %doc technotes unaccepted-projects scripts/*.vim
741     %attr(755,root,%{name}) %dir %{_sysconfdir}/%{name}
742     %attr(600,root,root) %ghost %{_sysconfdir}/%{name}/support.pkg
743     %attr(750,%{name},%{name}) %dir %{_sysconfdir}/%{name}/scripts
744     %{_sysconfdir}/%{name}/scripts/btraceback.dbx
745     %{_sysconfdir}/%{name}/scripts/btraceback.gdb
746     %{_sysconfdir}/%{name}/scripts/btraceback.mdb
747     %{_sysconfdir}/%{name}/scripts/magic
748     %attr(755,root,%{name}) %{_bindir}/bsmtp
749     %attr(755,root,%{name}) %{_bindir}/bregex
750     %attr(755,root,%{name}) %config(noreplace) %{_bindir}/btraceback
751     %attr(755,root,%{name}) %{_bindir}/bwild
752     %attr(755,root,%{name}) %{_bindir}/grow
753     %attr(755,root,%{name}) %{_bindir}/test*
754     %attr(755,root,%{name}) %{_bindir}/*type
755     %{_libdir}/libbac-*.so
756     %{_libdir}/libbaccfg-*.so
757     %{_libdir}/libbacfind-*.so
758     %{_libdir}/libbacpy-*.so
759     %dir %{_libdir}/%{name}
760     %dir %{_datadir}/%{name}
761     %{_datadir}/%{name}/examples
762     %{_mandir}/man1/bsmtp.1*
763     %{_mandir}/man8/bacula.8*
764     %{_mandir}/man8/btraceback.8*
765     %attr(755,%{name},%{name}) %dir %{_localstatedir}/lib/%{name}
766    
767     %files client
768     %defattr(-,root,root)
769     %{_initrddir}/bacula-fd
770     %config(noreplace) %{_sysconfdir}/sysconfig/bacula-fd
771     %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/bacula-fd.conf
772     %attr(751,root,%{name}) %{_sbindir}/bacula-fd
773     %{_libdir}/%{name}/bpipe-fd.so
774     %{_mandir}/man8/bacula-fd.8*
775    
776     %files client-rescue
777     %defattr(-,root,root)
778     %attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/rescue
779     %config %{_sysconfdir}/%{name}/rescue/*
780    
781     %files console
782     %defattr(-,root,root)
783     %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/bconsole.conf
784     %attr(751,root,%{name}) %{_bindir}/bconsole
785     %{_mandir}/man8/bconsole.8*
786    
787     %files doc
788     %defattr(-,root,root)
789     %doc %{name}-docs-%{version}/manuals/en/console/console.pdf
790     %doc %{name}-docs-%{version}/manuals/en/console/console
791     %doc %{name}-docs-%{version}/manuals/en/developers/developers.pdf
792     %doc %{name}-docs-%{version}/manuals/en/developers/developers
793     %doc %{name}-docs-%{version}/manuals/en/main/main.pdf
794     %doc %{name}-docs-%{version}/manuals/en/main/main
795     %doc %{name}-docs-%{version}/manuals/en/misc/misc.pdf
796     %doc %{name}-docs-%{version}/manuals/en/misc/misc
797     %doc %{name}-docs-%{version}/manuals/en/problems/problems.pdf
798     %doc %{name}-docs-%{version}/manuals/en/problems/problems
799     %doc %{name}-docs-%{version}/manuals/en/utility/utility.pdf
800     %doc %{name}-docs-%{version}/manuals/en/utility/utility
801    
802     %files gui-bimagemgr
803     %defattr(-,root,root)
804     %doc %{name}-gui-%{version}/bimagemgr/{COPYING,ChangeLog,README,ReleaseNotes}
805     %{_sysconfdir}/%{name}/scripts/create_cdimage_table.pl
806     %config(noreplace) %{_sysconfdir}/httpd/conf.d/bacula-bimagemgr.conf
807     %dir %{_datadir}/%{name}/bimagemgr
808     %dir %{_datadir}/%{name}/bimagemgr/cgi-bin
809     %{_datadir}/%{name}/bimagemgr/cgi-bin/bimagemgr.pl
810     %attr(640,root,apache) %config %{_datadir}/%{name}/bimagemgr/cgi-bin/config.pm
811     %dir %{_datadir}/%{name}/bimagemgr/html
812     %{_datadir}/%{name}/bimagemgr/html/*.gif
813     %attr(640,apache,apache) %{_datadir}/%{name}/bimagemgr/html/temp.html
814     %attr(750,apache,apache) %dir %{_localstatedir}/cache/bimagemgr
815     %attr(640,apache,apache) %verify(not md5 size mtime) %{_localstatedir}/cache/bimagemgr/temp.html
816    
817     %files gui-bimagemgr-selinux
818     %defattr(-,root,root)
819    
820     %files gui-brestore
821     %defattr(-,root,root)
822     %doc %{name}-gui-%{version}/brestore/{COPYING,INSTALL,README,ReleaseNotes}
823     %config(noreplace) %{_sysconfdir}/pam.d/brestore
824     %config(noreplace) %{_sysconfdir}/security/console.apps/brestore
825     %{_bindir}/brestore
826     %{_bindir}/brestore.pl
827     %config(noreplace) %{_datadir}/applications/bacula-restore.desktop
828     %{_datadir}/pixmaps/brestore.png
829     %{_datadir}/%{name}/brestore
830    
831     %files gui-bweb
832     %defattr(-,root,root)
833     %doc %{name}-gui-%{version}/bweb/{INSTALL,LICENSE,ReleaseNotes,UPGRADE}
834     %attr(640,apache,apache) %config(noreplace) %{_sysconfdir}/%{name}/bweb.conf
835     %{_sysconfdir}/%{name}/scripts/bweb-postgresql.sql
836     %config(noreplace) %{_sysconfdir}/httpd/conf.d/bacula-bweb.conf
837     %{perl_vendorlib}/*
838     %{_datadir}/%{name}/bweb
839     %{_mandir}/man3/*.3*
840     %attr(750,apache,apache) %dir %{_localstatedir}/cache/bweb
841    
842     %files gui-bweb-selinux
843     %defattr(-,root,root)
844    
845     %files gui-web
846     %defattr(-,root,root)
847     %doc %{name}-gui-%{version}/%{name}-web/{CONTACT,COPYING,ChangeLog,README,TODO}
848     %config(noreplace) %{_sysconfdir}/httpd/conf.d/bacula-web.conf
849     %config(noreplace) %{_datadir}/%{name}/bacula-web
850    
851     %files server-sqlite
852     %defattr(-,root,root)
853     %{_initrddir}/bacula-dir
854     %{_initrddir}/bacula-sd
855     %config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir
856     %config(noreplace) %{_sysconfdir}/sysconfig/bacula-sd
857     %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
858     %{_sysconfdir}/log.d/scripts/services/%{name}
859     %{_sysconfdir}/log.d/conf/logfiles/bacula.conf
860     %{_sysconfdir}/log.d/conf/services/bacula.conf
861     %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/bacula-dir.conf
862     %attr(640,root,disk) %config(noreplace) %{_sysconfdir}/%{name}/bacula-sd.conf
863     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_bacula_*
864     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_catalog_*
865     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_sqlite3_*
866     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-sqlite
867     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/dvd-handler
868     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer
869     %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer.conf
870     %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/query.sql
871     %attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/updatedb
872     %{_sysconfdir}/%{name}/updatedb/README
873     %{_sysconfdir}/%{name}/updatedb/update_sqlite3_*
874     %attr(751,root,%{name}) %{_bindir}/bbatch
875     %attr(751,root,%{name}) %{_bindir}/bscan
876     %attr(751,root,%{name}) %{_bindir}/dbcheck
877     %attr(751,root,%{name}) %{_bindir}/bcopy
878     %attr(751,root,%{name}) %{_bindir}/bls
879     %attr(751,root,%{name}) %{_bindir}/bextract
880     %attr(751,root,%{name}) %{_bindir}/btape
881     %attr(751,root,%{name}) %{_bindir}/*test
882     %attr(751,root,%{name}) %{_sbindir}/bacula-dir
883     %attr(751,root,disk) %{_sbindir}/bacula-sd
884     %{_libdir}/libbacsql-sqlite-*.so
885     %{_mandir}/man8/bacula-dir.8*
886     %{_mandir}/man8/bacula-sd.8*
887     %{_mandir}/man8/bcopy.8*
888     %{_mandir}/man8/bextract.8*
889     %{_mandir}/man8/bls.8*
890     %{_mandir}/man8/bscan.8*
891     %{_mandir}/man8/btape.8*
892     %{_mandir}/man8/dbcheck.8*
893     %attr(755,%{name},%{name}) %dir %{_localstatedir}/log/%{name}
894    
895     %files server-mysql
896     %defattr(-,root,root)
897     %{_initrddir}/bacula-dir
898     %{_initrddir}/bacula-sd
899     %config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir
900     %config(noreplace) %{_sysconfdir}/sysconfig/bacula-sd
901     %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
902     %{_sysconfdir}/log.d/scripts/services/%{name}
903     %{_sysconfdir}/log.d/conf/logfiles/bacula.conf
904     %{_sysconfdir}/log.d/conf/services/bacula.conf
905     %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/bacula-dir.conf
906     %attr(640,root,disk) %config(noreplace) %{_sysconfdir}/%{name}/bacula-sd.conf
907     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_bacula_*
908     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_catalog_*
909     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_mysql_*
910     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-mysql
911     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/dvd-handler
912     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer
913     %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer.conf
914     %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/query.sql
915     %attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/updatedb
916     %{_sysconfdir}/%{name}/updatedb/README
917     %{_sysconfdir}/%{name}/updatedb/update_mysql_*
918     %attr(751,root,%{name}) %{_bindir}/bbatch
919     %attr(751,root,%{name}) %{_bindir}/bscan
920     %attr(751,root,%{name}) %{_bindir}/dbcheck
921     %attr(751,root,%{name}) %{_bindir}/bcopy
922     %attr(751,root,%{name}) %{_bindir}/bls
923     %attr(751,root,%{name}) %{_bindir}/bextract
924     %attr(751,root,%{name}) %{_bindir}/btape
925     %attr(751,root,%{name}) %{_bindir}/*test
926     %attr(751,root,%{name}) %{_sbindir}/bacula-dir
927     %attr(751,root,disk) %{_sbindir}/bacula-sd
928     %{_libdir}/libbacsql-mysql-*.so
929     %{_mandir}/man8/bacula-dir.8*
930     %{_mandir}/man8/bacula-sd.8*
931     %{_mandir}/man8/bcopy.8*
932     %{_mandir}/man8/bextract.8*
933     %{_mandir}/man8/bls.8*
934     %{_mandir}/man8/bscan.8*
935     %{_mandir}/man8/btape.8*
936     %{_mandir}/man8/dbcheck.8*
937     %attr(755,%{name},%{name}) %dir %{_localstatedir}/log/%{name}
938    
939     %files server-postgresql
940     %defattr(-,root,root)
941     %{_initrddir}/bacula-dir
942     %{_initrddir}/bacula-sd
943     %config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir
944     %config(noreplace) %{_sysconfdir}/sysconfig/bacula-sd
945     %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
946     %{_sysconfdir}/log.d/scripts/services/%{name}
947     %{_sysconfdir}/log.d/conf/logfiles/bacula.conf
948     %{_sysconfdir}/log.d/conf/services/bacula.conf
949     %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/bacula-dir.conf
950     %attr(640,root,disk) %config(noreplace) %{_sysconfdir}/%{name}/bacula-sd.conf
951     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_bacula_*
952     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_catalog_*
953     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*_postgresql_*
954     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-pgsql
955     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/dvd-handler
956     %attr(750,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer
957     %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/*-changer.conf
958     %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/scripts/query.sql
959     %attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/updatedb
960     %{_sysconfdir}/%{name}/updatedb/README
961     %{_sysconfdir}/%{name}/updatedb/update_postgresql_*
962     %attr(751,root,%{name}) %{_bindir}/bbatch
963     %attr(751,root,%{name}) %{_bindir}/bscan
964     %attr(751,root,%{name}) %{_bindir}/dbcheck
965     %attr(751,root,%{name}) %{_bindir}/bcopy
966     %attr(751,root,%{name}) %{_bindir}/bls
967     %attr(751,root,%{name}) %{_bindir}/bextract
968     %attr(751,root,%{name}) %{_bindir}/btape
969     %attr(751,root,%{name}) %{_bindir}/*test
970     %attr(751,root,%{name}) %{_sbindir}/bacula-dir
971     %attr(751,root,disk) %{_sbindir}/bacula-sd
972     %{_libdir}/libbacsql-pgsql-*.so
973     %{_mandir}/man8/bacula-dir.8*
974     %{_mandir}/man8/bacula-sd.8*
975     %{_mandir}/man8/bcopy.8*
976     %{_mandir}/man8/bextract.8*
977     %{_mandir}/man8/bls.8*
978     %{_mandir}/man8/bscan.8*
979     %{_mandir}/man8/btape.8*
980     %{_mandir}/man8/dbcheck.8*
981     %attr(755,%{name},%{name}) %dir %{_localstatedir}/log/%{name}
982    
983    
984     %changelog
985     * Wed Oct 06 2010 Peter Pramberger <peterpramb@member.fsf.org> - 5.0.3-1
986     - New version (5.0.3)
987    
988     * Fri May 21 2010 Peter Pramberger <peterpramb@member.fsf.org> - 5.0.2-1
989     - New version (5.0.2)
990    
991     * Thu Mar 04 2010 Peter Pramberger <peterpramb@member.fsf.org> - 5.0.1-1
992     - New version (5.0.1)
993    
994     * Wed Oct 28 2009 Peter Pramberger <peterpramb@member.fsf.org> - 3.0.3-1
995     - New version (3.0.3)
996    
997     * Tue Jul 28 2009 Peter Pramberger <peterpramb@member.fsf.org> - 3.0.2-1
998     - New version (3.0.2)
999    
1000     * Tue May 26 2009 Peter Pramberger <peterpramb@member.fsf.org> - 3.0.1-3
1001     - Fixed File service backup abort on ACLs, if sys/fs has no ACLs enabled
1002    
1003     * Mon May 25 2009 Peter Pramberger <peterpramb@member.fsf.org> - 3.0.1-2
1004     - Fixed database scripts
1005    
1006     * Sat May 23 2009 Peter Pramberger <peterpramb@member.fsf.org> - 3.0.1-1
1007     - New version (3.0.1)
1008    
1009     * Sat Mar 28 2009 Peter Pramberger <peterpramb@member.fsf.org> - 2.4.4-1
1010     - New version (2.4.4)
1011    
1012     * Mon Nov 03 2008 Peter Pramberger <peterpramb@member.fsf.org> - 2.4.3-2
1013     - Added patch for bug #1175 (http://bugs.bacula.org/view.php?id=1175)
1014     - Added patch: orphaned-jobs.patch
1015    
1016     * Thu Oct 23 2008 Peter Pramberger <peterpramb@member.fsf.org> - 2.4.3-1
1017     - New version (2.4.3)
1018    
1019     * Sat Dec 08 2007 peter.pramberger@member.fsf.org 2.2.6-7
1020     - new version (2.2.6)
1021     - added package for bat
1022    
1023     * Fri Oct 19 2007 peter.pramberger@member.fsf.org 2.2.5-6
1024     - new version (2.2.5)
1025    
1026     * Fri Jun 22 2007 peter.pramberger@member.fsf.org 2.0.3-5
1027     - added selinux check for bimagemgr/bweb
1028    
1029     * Fri Jun 01 2007 peter.pramberger@member.fsf.org 2.0.3-4
1030     - created

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