]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - update desktop files, think about su-wrappers for console | |
3 | # - package web admin | |
4 | # - fix log file permissions | |
5 | # | |
6 | # Conditional build: | |
7 | %bcond_without console_wx # wx-console program | |
8 | %bcond_without gnome # gnome-console program | |
9 | %bcond_without bat # bat Qt4 GUI | |
10 | %bcond_without dbi # use Database Independent Abstraction Layer (libdbi) | |
11 | %bcond_with mysql # use MySQL | |
12 | %bcond_with pgsql # use PostgreSQL | |
13 | %bcond_with python | |
14 | %bcond_with rescue | |
15 | %bcond_with sqlite # use SQLite | |
16 | %bcond_with sqlite3 # use SQLite3 instead of SQLite 2 | |
17 | %bcond_with sqlite3_sync_off # makes SQLite3 backend much faster, but less reliable | |
18 | %if %{with dbi} | |
19 | %define database dbi | |
20 | %undefine with_mysql | |
21 | %undefine with_pgsql | |
22 | %undefine with_sqlite | |
23 | %undefine with_sqlite3 | |
24 | %endif | |
25 | %if %{with sqlite} | |
26 | %define database sqlite | |
27 | %undefine with_dbi | |
28 | %undefine with_mysql | |
29 | %undefine with_pgsql | |
30 | %undefine with_sqlite3 | |
31 | %endif | |
32 | %if %{with sqlite3} | |
33 | %define database sqlite3 | |
34 | %undefine with_dbi | |
35 | %undefine with_mysql | |
36 | %undefine with_pgsql | |
37 | %undefine with_sqlite | |
38 | %endif | |
39 | %if %{with pgsql} | |
40 | %define database postgresql | |
41 | %undefine with_dbi | |
42 | %undefine with_mysql | |
43 | %undefine with_sqlite | |
44 | %undefine with_sqlite3 | |
45 | %endif | |
46 | %if %{with mysql} | |
47 | %define database mysql | |
48 | %undefine with_dbi | |
49 | %undefine with_pgsql | |
50 | %undefine with_sqlite | |
51 | %undefine with_sqlite3 | |
52 | %endif | |
53 | %if !%{with sqlite3} | |
54 | %undefine with_sqlite3_sync_off | |
55 | %endif | |
56 | # | |
57 | Summary: Bacula - The Network Backup Solution | |
58 | Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci | |
59 | Name: bacula | |
60 | Version: 3.0.0 | |
61 | Release: 0.3 | |
62 | Epoch: 0 | |
63 | License: extended GPL v2 | |
64 | Group: Networking/Utilities | |
65 | Source0: http://dl.sourceforge.net/bacula/%{name}-%{version}.tar.gz | |
66 | # Source0-md5: 5ea5294c4f66f0d8ba1414f1ca9dc79b | |
67 | Source1: http://dl.sourceforge.net/bacula/%{name}-docs-%{version}.tar.bz2 | |
68 | # Source1-md5: 2c3a1c6ba46b1371240a9b8d053fdf61 | |
69 | Source2: http://dl.sourceforge.net/bacula/%{name}-rescue-%{version}.tar.gz | |
70 | # Source2-md5: b31af264219f6e6a0985288d810d7bb6 | |
71 | Source10: %{name}-dir.init | |
72 | Source11: %{name}-fd.init | |
73 | Source12: %{name}-sd.init | |
74 | Source13: %{name}.logrotate | |
75 | Source14: %{name}-dir.sysconfig | |
76 | Source15: %{name}-fd.sysconfig | |
77 | Source16: %{name}-sd.sysconfig | |
78 | Patch0: %{name}-mtx-changer.patch | |
79 | Patch1: %{name}-link.patch | |
80 | Patch2: %{name}-tinfo-readline.patch | |
81 | Patch3: %{name}-branding.patch | |
82 | Patch4: %{name}-conf.patch | |
83 | Patch5: %{name}-desktop.patch | |
84 | Patch6: %{name}-64bitbuild_fix.patch | |
85 | Patch7: %{name}-dbi_fixes.patch | |
86 | URL: http://www.bacula.org/ | |
87 | BuildRequires: acl-static | |
88 | BuildRequires: automake | |
89 | %{?with_dbi:BuildRequires: libdbi-devel} | |
90 | %if %{with rescue} | |
91 | BuildRequires: fakeroot | |
92 | %endif | |
93 | BuildRequires: glibc-static | |
94 | %if %{with gnome} | |
95 | BuildRequires: libgnome-devel >= 2.0 | |
96 | BuildRequires: libgnomeui-devel >= 2.0 | |
97 | %endif | |
98 | BuildRequires: libstdc++-static | |
99 | BuildRequires: libwrap-static | |
100 | BuildRequires: mtx | |
101 | BuildRequires: ncurses-devel | |
102 | BuildRequires: openssl-devel | |
103 | BuildRequires: openssl-static | |
104 | BuildRequires: pkgconfig | |
105 | %if %{with python} | |
106 | BuildRequires: python-static | |
107 | %endif | |
108 | %if %{with bat} | |
109 | BuildRequires: QtCore-devel | |
110 | BuildRequires: QtGui-devel | |
111 | BuildRequires: qt4-build >= 4.3.3-3 | |
112 | BuildRequires: qt4-qmake >= 4.3.3-3 | |
113 | BuildRequires: qwt-devel >= 5.0.2-2 | |
114 | %endif | |
115 | %{?with_mysql:BuildRequires: mysql-devel} | |
116 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
117 | BuildRequires: readline-devel | |
118 | BuildRequires: rpmbuild(macros) >= 1.268 | |
119 | BuildRequires: sed >= 4.0 | |
120 | %{?with_sqlite:BuildRequires: sqlite-devel} | |
121 | %{?with_sqlite3:BuildRequires: sqlite3-devel} | |
122 | %if %{with console_wx} | |
123 | BuildRequires: wxGTK2-unicode-devel >= 2.4.0 | |
124 | %endif | |
125 | BuildRequires: zlib-devel | |
126 | BuildRequires: zlib-static | |
127 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
128 | ||
129 | %define _sysconfdir /etc/%{name} | |
130 | %define _localstatedir /var/lib/%{name} | |
131 | ||
132 | # dependency section is broken. ccache usage is instead to makefiles | |
133 | %undefine with_ccache | |
134 | ||
135 | %description | |
136 | Bacula - It comes by night and sucks the vital essence from your | |
137 | computers. | |
138 | ||
139 | Bacula is a set of computer programs that permit you (or the system | |
140 | administrator) to manage backup, recovery, and verification of | |
141 | computer data across a network of computers of different kinds. In | |
142 | technical terms, it is a network client/server based backup program. | |
143 | Bacula is relatively easy to use and efficient, while offering many | |
144 | advanced storage management features that make it easy to find and | |
145 | recover lost or damaged files. | |
146 | ||
147 | %description -l pl.UTF-8 | |
148 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
149 | ||
150 | Bacula to zbiór programów umożliwiających administratorowi na | |
151 | zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w | |
152 | sieci komputerów różnego rodzaju. W terminologii technicznej jest to | |
153 | program do kopii zapasowych pracujący w architekturze klient-serwer. | |
154 | Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym | |
155 | wiele zaawansowanych możliwości przy zarządzaniu nośnikami, | |
156 | ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych | |
157 | plików. | |
158 | ||
159 | %package common | |
160 | Summary: Common files for bacula package | |
161 | Summary(pl.UTF-8): Pliki wspólne dla pakietu bacula | |
162 | Group: Networking/Utilities | |
163 | Requires(post): openssl-tools | |
164 | Requires(post): sed >= 4.0 | |
165 | Requires(post,preun): /sbin/chkconfig | |
166 | Requires(postun): /usr/sbin/groupdel | |
167 | Requires(postun): /usr/sbin/userdel | |
168 | Requires(pre): /usr/sbin/groupadd | |
169 | Requires(pre): /usr/sbin/useradd | |
170 | Conflicts: bacula-console < 0:1.34.6 | |
171 | Conflicts: bacula-dir < 0:1.34.6 | |
172 | Conflicts: bacula-fd < 0:1.34.6 | |
173 | Conflicts: bacula-sd < 0:1.34.6 | |
174 | ||
175 | %description common | |
176 | Bacula - It comes by night and sucks the vital essence from your | |
177 | computers. | |
178 | ||
179 | Bacula is a set of computer programs that permit you (or the system | |
180 | administrator) to manage backup, recovery, and verification of | |
181 | computer data across a network of computers of different kinds. In | |
182 | technical terms, it is a network client/server based backup program. | |
183 | Bacula is relatively easy to use and efficient, while offering many | |
184 | advanced storage management features that make it easy to find and | |
185 | recover lost or damaged files. | |
186 | ||
187 | %description common -l pl.UTF-8 | |
188 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
189 | ||
190 | Bacula to zbiór programów umożliwiających administratorowi na | |
191 | zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w | |
192 | sieci komputerów różnego rodzaju. W terminologii technicznej jest to | |
193 | program do kopii zapasowych pracujący w architekturze klient-serwer. | |
194 | Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym | |
195 | wiele zaawansowanych możliwości przy zarządzaniu nośnikami, | |
196 | ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych | |
197 | plików. | |
198 | ||
199 | %package dir | |
200 | Summary: Bacula Director and Catalog services | |
201 | Summary(pl.UTF-8): Usługi Bacula Director i Catalog | |
202 | Group: Networking/Utilities | |
203 | Requires(post): sed >= 4.0 | |
204 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
205 | Obsoletes: bacula-updatedb | |
206 | ||
207 | %description dir | |
208 | Bacula - It comes by night and sucks the vital essence from your | |
209 | computers. | |
210 | ||
211 | Bacula Director is the program that supervises all the backup, | |
212 | restore, verify and archive operations. The system administrator uses | |
213 | the Bacula Director to schedule backups and to recover files. Catalog | |
214 | services are comprised of the software programs responsible for | |
215 | maintaining the file indexes and volume databases for all files backed | |
216 | up. The Catalog services permit the System Administrator or user to | |
217 | quickly locate and restore any desired file, since it maintains a | |
218 | record of all Volumes used, all Jobs run, and all Files saved. | |
219 | ||
220 | %description dir -l pl.UTF-8 | |
221 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
222 | ||
223 | Bacula Director to program nadzorujący wszystkie operacje wykonywania | |
224 | kopii zapasowych, odzyskiwania, weryfikacji i archiwizowania. | |
225 | Administrator używa Bacula Directora do szeregowania kopii zapasowych | |
226 | oraz odzyskiwania plików. Usługi katalogowe (Catalog services) są | |
227 | używane przez programy odpowiedzialne za zarządzanie indeksami plików | |
228 | i bazą danych wolumenów dla wszystkich kopiowanych plików. Usługi | |
229 | katalogowe umożliwiają administratorowi lub użytkownikowi szybko | |
230 | zlokalizować i odtworzyć dowolny plik, ponieważ utrzymują rekord ze | |
231 | wszystkimi używanymi wolumenami, uruchomionymi zadaniami i zapisanymi | |
232 | plikami. | |
233 | ||
234 | %package console | |
235 | Summary: Bacula Console | |
236 | Summary(pl.UTF-8): Konsola Baculi | |
237 | Group: Networking/Utilities | |
238 | Requires(post): sed >= 4.0 | |
239 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
240 | ||
241 | %description console | |
242 | Bacula - It comes by night and sucks the vital essence from your | |
243 | computers. | |
244 | ||
245 | Bacula Console is the program that allows the administrator or user to | |
246 | communicate with the Bacula Director. This is the text only console | |
247 | interface. | |
248 | ||
249 | %description console -l pl.UTF-8 | |
250 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
251 | ||
252 | Bacula Console to program umożliwiający administratorowi lub | |
253 | użytkownikowi komunikowanie się z programem Bacula Director. To jest | |
254 | interfejs czysto tekstowy. | |
255 | ||
256 | %package console-wx | |
257 | Summary: Bacula wxWidgets Console | |
258 | Summary(pl.UTF-8): Konsola Baculi oparta na wxWidgets | |
259 | Group: Networking/Utilities | |
260 | Requires(post): sed >= 4.0 | |
261 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
262 | ||
263 | %description console-wx | |
264 | Bacula - It comes by night and sucks the vital essence from your | |
265 | computers. | |
266 | ||
267 | Bacula Console is the program that allows the administrator or user to | |
268 | communicate with the Bacula Director. This is the wxWidgets GUI | |
269 | interface. | |
270 | ||
271 | %description console-wx -l pl.UTF-8 | |
272 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
273 | ||
274 | Bacula Console to program umożliwiający administratorowi lub | |
275 | użytkownikowi komunikowanie się z programem Bacula Director. To jest | |
276 | interfejs graficzny oparty na wxWidgets. | |
277 | ||
278 | %package console-gnome | |
279 | Summary: Bacula GNOME Console | |
280 | Summary(pl.UTF-8): Konsola Baculi oparta dla GNOME | |
281 | Group: Networking/Utilities | |
282 | Requires(post): sed >= 4.0 | |
283 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
284 | ||
285 | %description console-gnome | |
286 | Bacula - It comes by night and sucks the vital essence from your | |
287 | computers. | |
288 | ||
289 | Bacula Console is the program that allows the administrator or user to | |
290 | communicate with the Bacula Director. This is the GNOME GUI interface. | |
291 | ||
292 | %description console-gnome -l pl.UTF-8 | |
293 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
294 | ||
295 | Bacula Console to program umożliwiający administratorowi lub | |
296 | użytkownikowi komunikowanie się z programem Bacula Director. To jest | |
297 | interfejs graficzny oparty na GNOME. | |
298 | ||
299 | %package console-qt4 | |
300 | Summary: Bacula Qt4 Console | |
301 | Summary(pl.UTF-8): Konsola Baculi oparta na Qt4 | |
302 | Group: Networking/Utilities | |
303 | Requires(post): sed >= 4.0 | |
304 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
305 | ||
306 | %description console-qt4 | |
307 | Bacula - It comes by night and sucks the vital essence from your | |
308 | computers. | |
309 | ||
310 | Bacula Console is the program that allows the administrator or user to | |
311 | communicate with the Bacula Director. This is the Qt4 GUI interface. | |
312 | ||
313 | %description console-qt4 -l pl.UTF-8 | |
314 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
315 | ||
316 | Bacula Console to program umożliwiający administratorowi lub | |
317 | użytkownikowi komunikowanie się z programem Bacula Director. To jest | |
318 | interfejs graficzny oparty na Qt4. | |
319 | ||
320 | %package tray-monitor | |
321 | Summary: Bacula Tray Monitor | |
322 | Group: Networking/Utilities | |
323 | Requires(post): sed >= 4.0 | |
324 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
325 | ||
326 | %description tray-monitor | |
327 | Bacula - It comes by night and sucks the vital essence from your | |
328 | computers. | |
329 | ||
330 | The Monitor program is typically an icon in the system tray. However, | |
331 | once the icon is expanded into a full window, the administrator or | |
332 | user can obtain status information about the Director or the backup | |
333 | status on the local workstation or any other Bacula daemon that is | |
334 | configured. | |
335 | ||
336 | %package fd | |
337 | Summary: Bacula File services (Client) | |
338 | Summary(pl.UTF-8): Usługi Bacula File (klient) | |
339 | Group: Networking/Utilities | |
340 | Requires(post): sed >= 4.0 | |
341 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
342 | ||
343 | %description fd | |
344 | Bacula - It comes by night and sucks the vital essence from your | |
345 | computers. | |
346 | ||
347 | Bacula File services (or Client program) is the software program that | |
348 | is installed on the machine to be backed up. It is specific to the | |
349 | operating system on which it runs and is responsible for providing the | |
350 | file attributes and data when requested by the Director. The File | |
351 | services are also responsible for the file system dependent part of | |
352 | restoring the file attributes and data during a recovery operation. | |
353 | This program runs as a daemon on the machine to be backed up, and in | |
354 | some of the documentation, the File daemon is referred to as the | |
355 | Client (for example in Bacula configuration file). | |
356 | ||
357 | %description fd -l pl.UTF-8 | |
358 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
359 | ||
360 | Usługi Bacula File (inaczej program kliencki) to oprogramowanie, które | |
361 | instaluje się na maszynach, z których mają być wykonywane kopie | |
362 | zapasowe. Są one specyficzne dla systemu operacyjnego, pod którym | |
363 | działa dana maszyna i odpowiadają za dostarczanie atrybutów i danych | |
364 | plików na żądanie Directora. Usługi plikowe są także odpowiedzialne za | |
365 | zależną od systemu plików część odzyskiwania atrybutów i danych plików | |
366 | podczas operacji odzyskiwania danych. Program działa jako demon na | |
367 | maszynie, która ma być backupowana i w części dokumentacji demon ten | |
368 | (File) jest nazywany klientem (na przykład w pliku konfiguracyjnym | |
369 | Baculi). | |
370 | ||
371 | %package sd | |
372 | Summary: Bacula Storage services | |
373 | Summary(pl.UTF-8): Usługi Bacula Storage | |
374 | Group: Networking/Utilities | |
375 | Requires(post): sed >= 4.0 | |
376 | Requires: %{name}-common = %{epoch}:%{version}-%{release} | |
377 | Conflicts: dvd+rw-tools <= 5.21.4.10.8-1 | |
378 | ||
379 | %description sd | |
380 | Bacula - It comes by night and sucks the vital essence from your | |
381 | computers. | |
382 | ||
383 | Bacula Storage services consist of the software programs that perform | |
384 | the storage and recovery of the file attributes and data to the | |
385 | physical backup media or volumes. In other words, the Storage daemon | |
386 | is responsible for reading and writing your tapes (or other storage | |
387 | media, e.g. files). The Storage services runs as a daemon on the | |
388 | machine that has the backup device (usually a tape drive). | |
389 | ||
390 | %description sd -l pl.UTF-8 | |
391 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
392 | ||
393 | Usługi Bacula Storage składają się z programów obsługujących | |
394 | przechowywanie danych oraz odzyskiwanie atrybutów i danych na | |
395 | fizycznych nośnikach lub wolumenach. Innymi słowy, demon Storage jest | |
396 | odpowiedzialny za odczyt i zapis taśm (lub innych nośników do | |
397 | przechowywania danych, np. plików). Usługi Storage działają jako demon | |
398 | na maszynie, która zawiera urządzenie backupowe (zwykle napęd | |
399 | taśmowy). | |
400 | ||
401 | %package rescue | |
402 | Summary: Bacula - The Network Backup Solution | |
403 | Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci | |
404 | Group: Networking/Utilities | |
405 | Requires: %{name}-fd = %{epoch}:%{version}-%{release} | |
406 | Requires: coreutils | |
407 | Requires: util-linux | |
408 | ||
409 | %description rescue | |
410 | Bacula - It comes by night and sucks the vital essence from your | |
411 | computers. | |
412 | ||
413 | Bacula is a set of computer programs that permit you (or the system | |
414 | administrator) to manage backup, recovery, and verification of | |
415 | computer data across a network of computers of different kinds. In | |
416 | technical terms, it is a network client/server based backup program. | |
417 | Bacula is relatively easy to use and efficient, while offering many | |
418 | advanced storage management features that make it easy to find and | |
419 | recover lost or damaged files. | |
420 | ||
421 | This package installs scripts for disaster recovery and builds rescue | |
422 | floppy disk for bare metal recovery. | |
423 | ||
424 | To make the bacula rescue disk run "./make_rescue_disk | |
425 | --copy-static-bacula | |
426 | - --copy-etc-files" from the %{_sysconfdir}/rescue directory. To | |
427 | recreate the rescue information for this system run ./getdiskinfo | |
428 | again. | |
429 | ||
430 | %description rescue -l pl.UTF-8 | |
431 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
432 | ||
433 | Bacula to zbiór programów umożliwiających administratorowi na | |
434 | zarządzanie kopiami zapasowymi, odzyskiwaniem i weryfikacją danych w | |
435 | sieci komputerów różnego rodzaju. W terminologii technicznej jest to | |
436 | program do kopii zapasowych pracujący w architekturze klient-serwer. | |
437 | Bacula jest stosunkowo łatwa w użyciu i wydajna, oferując przy tym | |
438 | wiele zaawansowanych możliwości przy zarządzaniu nośnikami, | |
439 | ułatwiających znalezienie i odzyskanie utraconych lub uszkodzonych | |
440 | plików. | |
441 | ||
442 | Ten pakiet zawiera skrypty do odtwarzania po awarii i tworzy dyskietkę | |
443 | ratunkowe do odtwarzania systemu od zera. | |
444 | ||
445 | Aby stworzyć dyskietkę ratunkową Baculi, należy uruchomić "./make_rescue_disk | |
446 | --copy-static-bacula - --copy-etc-files" z katalogu | |
447 | %{_sysconfdir}/rescue . Aby ponownie utworzyć informacje ratunkowe dla | |
448 | danego systemu, należy ponownie uruchomić ./getdiskinfo . | |
449 | ||
450 | %prep | |
451 | %setup -q -a 1 | |
452 | %patch0 -p1 | |
453 | %patch1 -p1 | |
454 | %patch2 -p1 | |
455 | %patch3 -p1 | |
456 | %patch4 -p1 | |
457 | %patch5 -p1 | |
458 | %patch6 -p1 | |
459 | %{?with_dbi:%patch7 -p1} | |
460 | ||
461 | tar -xf %{SOURCE2} && ln -s bacula-rescue-* rescue | |
462 | ||
463 | sed -i -e 's#bindir=.*#bindir=%{_bindir}#g' \ | |
464 | src/cats/create_* src/cats/delete_* src/cats/drop_* \ | |
465 | src/cats/grant_* src/cats/make_* src/cats/update_* | |
466 | sed -i -e 's/@hostname@/--hostname--/' src/*/*.conf.in | |
467 | ||
468 | for dbtype in bdb mysql postgresql sqlite3 sqlite; do | |
469 | sed -i -e "s,@DB_TYPE@,$dbtype,g" src/cats/*_${dbtype}_* | |
470 | done | |
471 | ||
472 | %build | |
473 | cp -f %{_datadir}/automake/config.sub autoconf | |
474 | cd autoconf && %{__aclocal} -I bacula-macros -I gettext-macros && cd .. | |
475 | %{__autoconf} --prepend-include=$(pwd)/autoconf autoconf/configure.in > configure | |
476 | ||
477 | CPPFLAGS="-I/usr/include/ncurses -I%{_includedir}/readline" | |
478 | WXCONFIG=%{_bindir}/wx-gtk2-unicode-config \ | |
479 | %configure \ | |
480 | --with-scriptdir=%{_libexecdir}/%{name} \ | |
481 | --%{!?with_gnome:dis}%{?with_gnome:en}able-gnome \ | |
482 | %{?with_bat:--enable-bat} \ | |
483 | --disable-conio \ | |
484 | --enable-smartalloc \ | |
485 | %{?with_console_wx:--enable-bwx-console} \ | |
486 | --enable-tray-monitor \ | |
487 | %{?with_python:--with-python} \ | |
488 | --with-readline \ | |
489 | --with-tcp-wrappers \ | |
490 | --with-working-dir=%{_var}/lib/%{name} \ | |
491 | --with-dump-email="root@localhost" \ | |
492 | --with-job-email="root@localhost" \ | |
493 | --with-smtp-host=localhost \ | |
494 | --with-pid-dir=/var/run \ | |
495 | --with-subsys-dir=/var/lock/subsys \ | |
496 | --enable-batch-insert \ | |
497 | --with-%{database} \ | |
498 | %{?with_sqlite3_sync_off:--enable-extra-sqlite3-init="pragma synchronous=0;"} \ | |
499 | --with-dir-password="#FAKE-dir-password#" \ | |
500 | --with-fd-password="#FAKE-fd-password#" \ | |
501 | --with-sd-password="#FAKE-sd-password#" \ | |
502 | --with-mon-dir-password="#FAKE-mon-dir-password#" \ | |
503 | --with-mon-fd-password="#FAKE-mon-fd-password#" \ | |
504 | --with-mon-sd-password="#FAKE-mon-sd-password#" \ | |
505 | --with-openssl | |
506 | ||
507 | %if %{with bat} | |
508 | cd src/qt-console | |
509 | qmake-qt4 bat.pro | |
510 | cd ../.. | |
511 | %endif | |
512 | ||
513 | %{__make} | |
514 | ||
515 | %if %{with rescue} | |
516 | cd rescue | |
517 | %configure \ | |
518 | --with-bacula=../ | |
519 | cd linux/cdrom | |
520 | fakeroot %{__make} | |
521 | %endif | |
522 | ||
523 | %install | |
524 | rm -rf $RPM_BUILD_ROOT | |
525 | ||
526 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,pam.d,sysconfig} | |
527 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/rescue | |
528 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir},%{_bindir},/var/log/bacula} | |
529 | ||
530 | %{__make} install \ | |
531 | DESTDIR=$RPM_BUILD_ROOT | |
532 | ||
533 | # static daemon | |
534 | #strip -R.comment -R.note src/filed/static-bacula-fd | |
535 | #install src/filed/static-bacula-fd $RPM_BUILD_ROOT%{_sysconfdir}/rescue/bacula-fd | |
536 | ||
537 | install %{SOURCE10} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-dir | |
538 | install %{SOURCE11} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-fd | |
539 | install %{SOURCE12} $RPM_BUILD_ROOT/etc/rc.d/init.d/bacula-sd | |
540 | install %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir | |
541 | install %{SOURCE14} $RPM_BUILD_ROOT/etc/sysconfig/bacula-dir | |
542 | install %{SOURCE15} $RPM_BUILD_ROOT/etc/sysconfig/bacula-fd | |
543 | install %{SOURCE16} $RPM_BUILD_ROOT/etc/sysconfig/bacula-sd | |
544 | ||
545 | %if %{with console_wx} | |
546 | # tray-monitor is for regular users | |
547 | mv $RPM_BUILD_ROOT%{_sbindir}/bacula-tray-monitor $RPM_BUILD_ROOT%{_bindir} | |
548 | ||
549 | install scripts/bacula.png $RPM_BUILD_ROOT%{_pixmapsdir}/bacula.png | |
550 | install src/tray-monitor/generic.xpm $RPM_BUILD_ROOT%{_pixmapsdir}/bacula-tray-monitor.xpm | |
551 | install scripts/bacula.desktop.gnome2 $RPM_BUILD_ROOT%{_desktopdir}/bacula.desktop | |
552 | sed -e 's/gnome-console/wx-console/g;s/Console/Wx Console/g' \ | |
553 | scripts/bacula.desktop.gnome2 > $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop | |
554 | sed -e 's#%{_sbindir}#%{_bindir}#' \ | |
555 | scripts/bacula-tray-monitor.desktop > $RPM_BUILD_ROOT%{_desktopdir}/bacula-tray-monitor.desktop | |
556 | %endif | |
557 | ||
558 | %if %{with bat} | |
559 | install src/qt-console/bat $RPM_BUILD_ROOT%{_sbindir} | |
560 | install scripts/bat.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
561 | %endif | |
562 | ||
563 | %if %{with rescue} | |
564 | # install the rescue stuff, these are the rescue scripts | |
565 | install rescue/linux/floppy/backup.etc.list $RPM_BUILD_ROOT%{_sysconfdir}/rescue | |
566 | install rescue/linux/floppy/*_* $RPM_BUILD_ROOT%{_sysconfdir}/rescue | |
567 | install rescue/linux/floppy/getdiskinfo $RPM_BUILD_ROOT%{_sysconfdir}/rescue | |
568 | install rescue/linux/floppy/sfdisk.bz2 $RPM_BUILD_ROOT%{_sysconfdir}/rescue | |
569 | %endif | |
570 | ||
571 | touch $RPM_BUILD_ROOT/var/log/bacula/log | |
572 | ||
573 | # install the updatedb scripts | |
574 | install updatedb/update_sqlite* $RPM_BUILD_ROOT%{_libexecdir}/%{name} | |
575 | ||
576 | # place for site passwords | |
577 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{dir-password,fd-password,sd-password} | |
578 | touch $RPM_BUILD_ROOT%{_sysconfdir}/{mon-dir-password,mon-fd-password,mon-sd-password} | |
579 | ||
580 | install scripts/mtx-changer.conf $RPM_BUILD_ROOT%{_sysconfdir}/ | |
581 | ||
582 | # some file changes | |
583 | rm -f $RPM_BUILD_ROOT%{_libexecdir}/%{name}/{gconsole,startmysql,stopmysql,bacula,bconsole,fd} | |
584 | rm -f $RPM_BUILD_ROOT%{_sbindir}/static-bacula-fd | |
585 | %if !%{with console_wx} | |
586 | rm -f $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop | |
587 | %endif | |
588 | touch $RPM_BUILD_ROOT%{_sysconfdir}/.pw.sed | |
589 | ||
590 | %clean | |
591 | rm -rf $RPM_BUILD_ROOT | |
592 | ||
593 | %pre common | |
594 | %groupadd -P %{name}-common -g 136 -r -f bacula | |
595 | %useradd -P %{name}-common -u 136 -r -d /var/lib/bacula -s /bin/false -c "Bacula User" -g bacula bacula | |
596 | ||
597 | %post common | |
598 | /sbin/ldconfig | |
599 | echo "Updating bacula passwords and names..." | |
600 | cd /etc/bacula | |
601 | for f in *-password ; do | |
602 | if [ ! -s $f ] ; then | |
603 | openssl rand -base64 33 > $f | |
604 | fi | |
605 | p=`cat $f` | |
606 | for cf in *.conf *.conf.rpmnew ; do | |
607 | [ -f $cf ] && sed -i -e"s:#FAKE-$f#:$p:" "$cf" || : | |
608 | done | |
609 | done | |
610 | for cf in *.conf *.conf.rpmnew ; do | |
611 | [ -f $cf ] && sed -i -e"s:--hostname--:`hostname`:" "$cf" || : | |
612 | done | |
613 | ||
614 | %postun common | |
615 | /sbin/ldconfig | |
616 | if [ "$1" = "0" ]; then | |
617 | %userremove bacula | |
618 | %groupremove bacula | |
619 | fi | |
620 | ||
621 | %post dir | |
622 | umask 077 | |
623 | ||
624 | # XXX: Most of this upgrade procedure is safe for sqlite only. Other databases would require knowledge | |
625 | # about currently used version so we can't easily support these :( | |
626 | ||
627 | %if %{with sqlite} || %{with sqlite3} | |
628 | [ -s %{_localstatedir}/bacula.db ] && \ | |
629 | DB_VER=`echo "select * from Version;" | \ | |
630 | %{_bindir}/sqlite%{?with_sqlite3:3} %{_localstatedir}/bacula.db | tail -n 1 2>/dev/null` | |
631 | ||
632 | if [ -z "$DB_VER" ]; then | |
633 | # grant privileges and create tables | |
634 | %{_libexecdir}/%{name}/grant_bacula_privileges > dev/null | |
635 | %{_libexecdir}/%{name}/create_bacula_database > dev/null | |
636 | %{_libexecdir}/%{name}/make_bacula_tables > dev/null | |
637 | else | |
638 | echo "Backing up bacula tables" | |
639 | echo ".dump" | sqlite%{?with_sqlite3:3} %{_localstatedir}/bacula.db | bzip2 > %{_localstatedir}/bacula_backup.sql.bz2 | |
640 | ||
641 | db_type="%{database}" | |
642 | ||
643 | next_ver=$(($DB_VER + 1)) | |
644 | # support up to version 30; increase this if needed | |
645 | for ver in $(seq $next_ver 30); do | |
646 | prev_ver=$(($ver - 1)) | |
647 | ||
648 | if [ -x %{_libexecdir}/%{name}/update_${type}_tables_${prev_ver}_to_${ver} ]; then | |
649 | echo "Upgrading bacula database: db=${db_type} from ${prev_ver} to ${ver}..." | |
650 | %{_libexecdir}/%{name}/update_${type}_tables_${prev_ver}_to_${ver} | |
651 | fi | |
652 | done | |
653 | ||
654 | %{_libexecdir}/%{name}/update_bacula_tables | |
655 | echo "If bacula works correctly you can remove the backup file %{_localstatedir}/bacula_backup.sql.bz2" | |
656 | fi | |
657 | chown -R bacula:bacula %{_localstatedir} | |
658 | chmod -R u+rX,go-rwx %{_localstatedir}/* | |
659 | %endif | |
660 | ||
661 | echo "Updating Bacula passwords and names..." | |
662 | cd /etc/bacula | |
663 | for f in *-password; do | |
664 | p=`cat $f` | |
665 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : | |
666 | done | |
667 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : | |
668 | ||
669 | /sbin/chkconfig --add bacula-dir | |
670 | %service bacula-dir restart "Bacula Director daemon" | |
671 | ||
672 | %preun dir | |
673 | if [ "$1" = "0" ]; then | |
674 | %service bacula-dir stop | |
675 | /sbin/chkconfig --del bacula-dir | |
676 | fi | |
677 | ||
678 | %post fd | |
679 | echo "Updating Bacula passwords and names..." | |
680 | cd /etc/bacula | |
681 | for f in *-password; do | |
682 | p=`cat $f` | |
683 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : | |
684 | done | |
685 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : | |
686 | ||
687 | /sbin/chkconfig --add bacula-fd | |
688 | %service bacula-fd restart "Bacula File daemon" | |
689 | ||
690 | %preun fd | |
691 | if [ "$1" = "0" ]; then | |
692 | %service bacula-fd stop | |
693 | /sbin/chkconfig --del bacula-fd | |
694 | fi | |
695 | ||
696 | %post sd | |
697 | echo "Updating Bacula passwords and names..." | |
698 | cd /etc/bacula | |
699 | for f in *-password; do | |
700 | p=`cat $f` | |
701 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : | |
702 | done | |
703 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : | |
704 | ||
705 | /sbin/chkconfig --add bacula-sd | |
706 | %service bacula-sd restart "Bacula Storage daemon" | |
707 | ||
708 | %preun sd | |
709 | if [ "$1" = "0" ]; then | |
710 | %service bacula-sd stop | |
711 | /sbin/chkconfig --del bacula-sd | |
712 | fi | |
713 | ||
714 | %pre console | |
715 | if [ -e %{_sysconfdir}/console.conf -a ! -e %{_sysconfdir}/bconsole.conf ]; then | |
716 | mv %{_sysconfdir}/console.conf %{_sysconfdir}/bconsole.conf | |
717 | fi | |
718 | ||
719 | %post console | |
720 | echo "Updating Bacula passwords and names..." | |
721 | cd /etc/bacula | |
722 | for f in *-password; do | |
723 | p=`cat $f` | |
724 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : | |
725 | done | |
726 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : | |
727 | ||
728 | %post console-wx | |
729 | echo "Updating Bacula passwords and names..." | |
730 | cd /etc/bacula | |
731 | for f in *-password; do | |
732 | p=`cat $f` | |
733 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : | |
734 | done | |
735 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : | |
736 | ||
737 | %post console-gnome | |
738 | echo "Updating Bacula passwords and names..." | |
739 | cd /etc/bacula | |
740 | for f in *-password; do | |
741 | p=`cat $f` | |
742 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : | |
743 | done | |
744 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : | |
745 | ||
746 | %post console-qt4 | |
747 | echo "Updating Bacula passwords and names..." | |
748 | cd /etc/bacula | |
749 | for f in *-password; do | |
750 | p=`cat $f` | |
751 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : | |
752 | done | |
753 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : | |
754 | ||
755 | %post tray-monitor | |
756 | echo "Updating Bacula passwords and names..." | |
757 | cd /etc/bacula | |
758 | for f in *-password; do | |
759 | p=`cat $f` | |
760 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : | |
761 | done | |
762 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : | |
763 | ||
764 | %post rescue | |
765 | # link our current installed conf file to the rescue directory | |
766 | ln -sf %{_sysconfdir}/bacula-fd.conf %{_sysconfdir}/rescue/bacula-fd.conf | |
767 | ||
768 | # run getdiskinfo | |
769 | echo "Creating rescue files for this system..." | |
770 | cd %{_sysconfdir}/rescue | |
771 | ./getdiskinfo | |
772 | ||
773 | %preun rescue | |
774 | # remove the files created after the initial rpm installation | |
775 | if [ "$1" = "0" ]; then | |
776 | rm -f %{_sysconfdir}/rescue/bacula-fd.conf | |
777 | rm -f %{_sysconfdir}/rescue/partition.* | |
778 | rm -f %{_sysconfdir}/rescue/format.* | |
779 | rm -f %{_sysconfdir}/rescue/mount_drives | |
780 | rm -f %{_sysconfdir}/rescue/start_network | |
781 | rm -f %{_sysconfdir}/rescue/sfdisk | |
782 | rm -rf %{_sysconfdir}/rescue/diskinfo/* | |
783 | fi | |
784 | ||
785 | %files common | |
786 | %defattr(644,root,root,755) | |
787 | %doc LICENSE | |
788 | %dir %{_sysconfdir} | |
789 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*-password | |
790 | %attr(755,root,root) %{_sbindir}/bsmtp | |
791 | %attr(755,root,root) %{_sbindir}/btraceback | |
792 | %attr(755,root,root) /%{_libdir}/libbac.so.1.*.* | |
793 | %attr(755,root,root) %ghost /%{_libdir}/libbac.so.1 | |
794 | %attr(755,root,root) /%{_libdir}/libbaccfg.so.1.*.* | |
795 | %attr(755,root,root) %ghost /%{_libdir}/libbaccfg.so.1 | |
796 | %attr(755,root,root) /%{_libdir}/libbacfind.so.1.*.* | |
797 | %attr(755,root,root) %ghost /%{_libdir}/libbacfind.so.1 | |
798 | %attr(755,root,root) /%{_libdir}/libbacpy.so.1.*.* | |
799 | %attr(755,root,root) %ghost /%{_libdir}/libbacpy.so.1 | |
800 | %attr(755,root,root) /%{_libdir}/libbacsql.so.1.*.* | |
801 | %attr(755,root,root) %ghost /%{_libdir}/libbacsql.so.1 | |
802 | %{_mandir}/man8/bacula.8* | |
803 | %{_mandir}/man1/bsmtp.1* | |
804 | %{_mandir}/man8/btraceback.8* | |
805 | %dir %{_libexecdir}/%{name} | |
806 | %{_libexecdir}/%{name}/btraceback.dbx | |
807 | %{_libexecdir}/%{name}/btraceback.gdb | |
808 | %attr(770,root,bacula) %dir %{_localstatedir} | |
809 | %attr(750,bacula,logs) %dir /var/log/bacula | |
810 | %attr(640,bacula,logs) %ghost /var/log/bacula/log | |
811 | ||
812 | %files dir | |
813 | %defattr(644,root,root,755) | |
814 | %doc ChangeLog CheckList ReleaseNotes kernstodo LICENSE | |
815 | #%doc examples %{name}-docs-%{version}/manual/{*.pdf,bacula} | |
816 | %attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-dir.conf | |
817 | %ghost %{_sysconfdir}/.pw.sed | |
818 | %attr(640,root,root) %config(noreplace) /etc/logrotate.d/bacula-dir | |
819 | %attr(754,root,root) /etc/rc.d/init.d/bacula-dir | |
820 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-dir | |
821 | %attr(755,root,root) %{_sbindir}/bacula-dir | |
822 | %attr(755,root,root) %{_sbindir}/bregex | |
823 | %attr(755,root,root) %{_sbindir}/bwild | |
824 | %attr(755,root,root) %{_sbindir}/dbcheck | |
825 | %{_mandir}/man8/bacula-dir.8* | |
826 | %{_mandir}/man8/dbcheck.8* | |
827 | %{_libexecdir}/%{name}/query.sql | |
828 | %if %{with bdb} || %{with dbi} | |
829 | %attr(755,root,root) %{_libexecdir}/%{name}/create_bdb_database | |
830 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_bdb_database | |
831 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_bdb_tables | |
832 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_bdb_privileges | |
833 | %attr(755,root,root) %{_libexecdir}/%{name}/make_bdb_tables | |
834 | %attr(755,root,root) %{_libexecdir}/%{name}/update_bdb_* | |
835 | %endif | |
836 | %if %{with sqlite3} || %{with dbi} | |
837 | %attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite3_database | |
838 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_database | |
839 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite3_tables | |
840 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite3_privileges | |
841 | %attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite3_tables | |
842 | %attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite3_* | |
843 | %endif | |
844 | %if %{with sqlite} || %{with dbi} | |
845 | %attr(755,root,root) %{_libexecdir}/%{name}/create_sqlite_database | |
846 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite_database | |
847 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_sqlite_tables | |
848 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_sqlite_privileges | |
849 | %attr(755,root,root) %{_libexecdir}/%{name}/make_sqlite_tables | |
850 | %attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite_* | |
851 | %endif | |
852 | %if %{with mysql} || %{with dbi} | |
853 | %attr(755,root,root) %{_libexecdir}/%{name}/create_mysql_database | |
854 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_database | |
855 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_mysql_tables | |
856 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_mysql_privileges | |
857 | %attr(755,root,root) %{_libexecdir}/%{name}/make_mysql_tables | |
858 | %attr(755,root,root) %{_libexecdir}/%{name}/update_mysql_* | |
859 | %endif | |
860 | %if %{with pgsql} || %{with dbi} | |
861 | %attr(755,root,root) %{_libexecdir}/%{name}/create_postgresql_database | |
862 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_database | |
863 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_postgresql_tables | |
864 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_postgresql_privileges | |
865 | %attr(755,root,root) %{_libexecdir}/%{name}/make_postgresql_tables | |
866 | %attr(755,root,root) %{_libexecdir}/%{name}/update_postgresql_* | |
867 | %attr(755,root,root) %{_libexecdir}/%{name}/fix_postgresql_* | |
868 | %endif | |
869 | %if %{without dbi} | |
870 | %attr(755,root,root) %{_libexecdir}/%{name}/create_bacula_database | |
871 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_bacula_database | |
872 | %attr(755,root,root) %{_libexecdir}/%{name}/drop_bacula_tables | |
873 | %attr(755,root,root) %{_libexecdir}/%{name}/grant_bacula_privileges | |
874 | %attr(755,root,root) %{_libexecdir}/%{name}/make_bacula_tables | |
875 | %attr(755,root,root) %{_libexecdir}/%{name}/update_bacula_tables | |
876 | %endif | |
877 | %attr(755,root,root) %{_libexecdir}/%{name}/make_catalog_backup | |
878 | %attr(755,root,root) %{_libexecdir}/%{name}/delete_catalog_backup | |
879 | ||
880 | %files fd | |
881 | %defattr(644,root,root,755) | |
882 | %doc LICENSE | |
883 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-fd.conf | |
884 | %attr(754,root,root) /etc/rc.d/init.d/bacula-fd | |
885 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-fd | |
886 | %attr(755,root,root) %{_sbindir}/bacula-fd | |
887 | %{_mandir}/man8/bacula-fd.8* | |
888 | ||
889 | %files sd | |
890 | %defattr(644,root,root,755) | |
891 | %doc LICENSE | |
892 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-sd.conf | |
893 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mtx-changer.conf | |
894 | %attr(754,root,root) /etc/rc.d/init.d/bacula-sd | |
895 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-sd | |
896 | %attr(755,root,root) %{_sbindir}/bacula-sd | |
897 | %attr(755,root,root) %{_sbindir}/bcopy | |
898 | %attr(755,root,root) %{_sbindir}/bextract | |
899 | %attr(755,root,root) %{_sbindir}/bls | |
900 | %attr(755,root,root) %{_sbindir}/bscan | |
901 | %attr(755,root,root) %{_sbindir}/btape | |
902 | %attr(755,root,root) %{_libexecdir}/%{name}/mtx-changer | |
903 | %attr(755,root,root) %{_libexecdir}/%{name}/disk-changer | |
904 | %attr(755,root,root) %{_libexecdir}/%{name}/dvd-handler | |
905 | %{_mandir}/man8/bacula-sd.8* | |
906 | %{_mandir}/man8/bcopy.8* | |
907 | %{_mandir}/man8/bextract.8* | |
908 | %{_mandir}/man8/bls.8* | |
909 | %{_mandir}/man8/bscan.8* | |
910 | %{_mandir}/man8/btape.8* | |
911 | ||
912 | %files console | |
913 | %defattr(644,root,root,755) | |
914 | %doc LICENSE | |
915 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bconsole.conf | |
916 | %attr(755,root,root) %{_sbindir}/bconsole | |
917 | %{_mandir}/man8/bconsole.8* | |
918 | ||
919 | %if %{with console_wx} | |
920 | %files console-wx | |
921 | %defattr(644,root,root,755) | |
922 | %doc LICENSE | |
923 | %{_pixmapsdir}/%{name}.png | |
924 | %{_desktopdir}/bacula-wx.desktop | |
925 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bwx-console.conf | |
926 | %attr(755,root,root) %{_sbindir}/bwx-console | |
927 | %{_mandir}/man1/bacula-bwxconsole.1* | |
928 | %endif | |
929 | ||
930 | %if %{with gnome} | |
931 | %files console-gnome | |
932 | %defattr(644,root,root,755) | |
933 | %doc LICENSE | |
934 | %{_pixmapsdir}/%{name}.png | |
935 | %{_desktopdir}/bacula.desktop | |
936 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bgnome-console.conf | |
937 | %attr(755,root,root) %{_sbindir}/bgnome-console | |
938 | %{_mandir}/man1/bacula-bgnome-console.1* | |
939 | %endif | |
940 | ||
941 | %if %{with bat} | |
942 | %files console-qt4 | |
943 | %defattr(644,root,root,755) | |
944 | %doc LICENSE | |
945 | %{_pixmapsdir}/%{name}.png | |
946 | %{_desktopdir}/bat.desktop | |
947 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bat.conf | |
948 | %attr(755,root,root) %{_sbindir}/bat | |
949 | %{_mandir}/man1/bat.1* | |
950 | %endif | |
951 | ||
952 | %if %{with console_wx} | |
953 | %files tray-monitor | |
954 | %defattr(644,root,root,755) | |
955 | %doc LICENSE | |
956 | %{_pixmapsdir}/%{name}-tray-monitor.xpm | |
957 | %{_desktopdir}/%{name}-tray-monitor.desktop | |
958 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tray-monitor.conf | |
959 | %attr(755,root,root) %{_bindir}/bacula-tray-monitor | |
960 | %{_mandir}/man1/bacula-tray-monitor.1* | |
961 | %endif | |
962 | ||
963 | %if %{with rescue} | |
964 | %files rescue | |
965 | %defattr(644,root,root,755) | |
966 | %doc LICENSE | |
967 | %dir %{_sysconfdir}/rescue | |
968 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/backup.etc.list | |
969 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/bacula-fd | |
970 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/format_floppy | |
971 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/getdiskinfo | |
972 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/make_rescue_disk | |
973 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_bacula | |
974 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/restore_etc | |
975 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_grub | |
976 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/run_lilo | |
977 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rescue/sfdisk.bz2 | |
978 | %endif |