]>
Commit | Line | Data |
---|---|---|
237bfacd JK |
1 | # TODO: |
2 | # - update desktop files, think about su-wrappers for console | |
2b68b0cb | 3 | # - package web admin |
2007449a | 4 | # - fix log file permissions |
2b68b0cb | 5 | # |
f2527d22 | 6 | # Conditional build: |
6d11b02b JB |
7 | %bcond_without console_wx # wx-console program |
8 | %bcond_without gnome # gnome-console program | |
6d11b02b | 9 | %bcond_without bat # bat Qt4 GUI |
7533d19f MM |
10 | %bcond_without dbi # use Database Independent Abstraction Layer (libdbi) |
11 | %bcond_with mysql # use MySQL | |
6d11b02b | 12 | %bcond_with pgsql # use PostgreSQL |
2b68b0cb AM |
13 | %bcond_with python |
14 | %bcond_with rescue | |
7533d19f | 15 | %bcond_with sqlite # use SQLite |
6d11b02b JB |
16 | %bcond_with sqlite3 # use SQLite3 instead of SQLite 2 |
17 | %bcond_with sqlite3_sync_off # makes SQLite3 backend much faster, but less reliable | |
7533d19f MM |
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 | |
e090896a | 25 | %if %{with sqlite} |
8e872bc4 | 26 | %define database sqlite |
7533d19f | 27 | %undefine with_dbi |
55daeff3 | 28 | %undefine with_mysql |
29 | %undefine with_pgsql | |
7533d19f | 30 | %undefine with_sqlite3 |
e090896a JK |
31 | %endif |
32 | %if %{with sqlite3} | |
8e872bc4 | 33 | %define database sqlite3 |
7533d19f | 34 | %undefine with_dbi |
e090896a JK |
35 | %undefine with_mysql |
36 | %undefine with_pgsql | |
7533d19f | 37 | %undefine with_sqlite |
e090896a JK |
38 | %endif |
39 | %if %{with pgsql} | |
8e872bc4 | 40 | %define database postgresql |
7533d19f MM |
41 | %undefine with_dbi |
42 | %undefine with_mysql | |
e090896a JK |
43 | %undefine with_sqlite |
44 | %undefine with_sqlite3 | |
e090896a | 45 | %endif |
aeaed87e | 46 | %if %{with mysql} |
8e872bc4 | 47 | %define database mysql |
7533d19f MM |
48 | %undefine with_dbi |
49 | %undefine with_pgsql | |
aeaed87e | 50 | %undefine with_sqlite |
51 | %undefine with_sqlite3 | |
7533d19f MM |
52 | %endif |
53 | %if !%{with sqlite3} | |
aeaed87e | 54 | %undefine with_sqlite3_sync_off |
55 | %endif | |
f2527d22 | 56 | # |
bb6e7dc5 | 57 | Summary: Bacula - The Network Backup Solution |
6a00efc0 | 58 | Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci |
bb6e7dc5 | 59 | Name: bacula |
71d9722e | 60 | Version: 3.0.0 |
0f65a227 | 61 | Release: 0.3 |
5ce18635 | 62 | Epoch: 0 |
237bfacd | 63 | License: extended GPL v2 |
52504a6d | 64 | Group: Networking/Utilities |
bb6e7dc5 | 65 | Source0: http://dl.sourceforge.net/bacula/%{name}-%{version}.tar.gz |
71d9722e | 66 | # Source0-md5: 5ea5294c4f66f0d8ba1414f1ca9dc79b |
41ac7784 | 67 | Source1: http://dl.sourceforge.net/bacula/%{name}-docs-%{version}.tar.bz2 |
71d9722e | 68 | # Source1-md5: 2c3a1c6ba46b1371240a9b8d053fdf61 |
87cf07e8 | 69 | Source2: http://dl.sourceforge.net/bacula/%{name}-rescue-%{version}.tar.gz |
71d9722e | 70 | # Source2-md5: b31af264219f6e6a0985288d810d7bb6 |
5ce18635 AM |
71 | Source10: %{name}-dir.init |
72 | Source11: %{name}-fd.init | |
73 | Source12: %{name}-sd.init | |
74 | Source13: %{name}.logrotate | |
4280e495 JK |
75 | Source14: %{name}-dir.sysconfig |
76 | Source15: %{name}-fd.sysconfig | |
77 | Source16: %{name}-sd.sysconfig | |
0a03f92d | 78 | Patch0: %{name}-mtx-changer.patch |
38a7d6ba | 79 | Patch1: %{name}-link.patch |
0a03f92d | 80 | Patch2: %{name}-tinfo-readline.patch |
81 | Patch3: %{name}-branding.patch | |
82 | Patch4: %{name}-conf.patch | |
c08d8c7a | 83 | Patch5: %{name}-desktop.patch |
7533d19f | 84 | Patch6: %{name}-64bitbuild_fix.patch |
0f65a227 | 85 | Patch7: %{name}-dbi_fixes.patch |
bb6e7dc5 | 86 | URL: http://www.bacula.org/ |
cc01862b | 87 | BuildRequires: acl-static |
f2337569 | 88 | BuildRequires: automake |
7533d19f | 89 | %{?with_dbi:BuildRequires: libdbi-devel} |
7425cb9d JK |
90 | %if %{with rescue} |
91 | BuildRequires: fakeroot | |
92 | %endif | |
cc01862b | 93 | BuildRequires: glibc-static |
e75759f3 | 94 | %if %{with gnome} |
237bfacd JK |
95 | BuildRequires: libgnome-devel >= 2.0 |
96 | BuildRequires: libgnomeui-devel >= 2.0 | |
e75759f3 | 97 | %endif |
cc01862b JB |
98 | BuildRequires: libstdc++-static |
99 | BuildRequires: libwrap-static | |
d907cd57 | 100 | BuildRequires: mtx |
cc01862b | 101 | BuildRequires: ncurses-devel |
bb6e7dc5 | 102 | BuildRequires: openssl-devel |
c74b041d | 103 | BuildRequires: openssl-static |
bb6e7dc5 | 104 | BuildRequires: pkgconfig |
7425cb9d JK |
105 | %if %{with python} |
106 | BuildRequires: python-static | |
107 | %endif | |
c19580f6 | 108 | %if %{with bat} |
304bb97e | 109 | BuildRequires: QtCore-devel |
e3dd858d | 110 | BuildRequires: QtGui-devel |
846b23db JB |
111 | BuildRequires: qt4-build >= 4.3.3-3 |
112 | BuildRequires: qt4-qmake >= 4.3.3-3 | |
6d11b02b | 113 | BuildRequires: qwt-devel >= 5.0.2-2 |
c19580f6 | 114 | %endif |
4c7199dc SP |
115 | %{?with_mysql:BuildRequires: mysql-devel} |
116 | %{?with_pgsql:BuildRequires: postgresql-devel} | |
bb6e7dc5 | 117 | BuildRequires: readline-devel |
52504a6d | 118 | BuildRequires: rpmbuild(macros) >= 1.268 |
cc01862b | 119 | BuildRequires: sed >= 4.0 |
6d11b02b JB |
120 | %{?with_sqlite:BuildRequires: sqlite-devel} |
121 | %{?with_sqlite3:BuildRequires: sqlite3-devel} | |
1376b552 | 122 | %if %{with console_wx} |
7425cb9d | 123 | BuildRequires: wxGTK2-unicode-devel >= 2.4.0 |
1376b552 | 124 | %endif |
bb6e7dc5 | 125 | BuildRequires: zlib-devel |
1376b552 | 126 | BuildRequires: zlib-static |
bb6e7dc5 AM |
127 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
128 | ||
129 | %define _sysconfdir /etc/%{name} | |
1a72afd2 | 130 | %define _localstatedir /var/lib/%{name} |
bb6e7dc5 | 131 | |
b60fe5cb ER |
132 | # dependency section is broken. ccache usage is instead to makefiles |
133 | %undefine with_ccache | |
134 | ||
bb6e7dc5 AM |
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 | |
5ce18635 | 145 | recover lost or damaged files. |
bb6e7dc5 | 146 | |
192fbfcf JR |
147 | %description -l pl.UTF-8 |
148 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 149 | |
192fbfcf JR |
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. | |
cc01862b | 158 | |
5ce18635 AM |
159 | %package common |
160 | Summary: Common files for bacula package | |
6a00efc0 | 161 | Summary(pl.UTF-8): Pliki wspólne dla pakietu bacula |
bb6e7dc5 | 162 | Group: Networking/Utilities |
237bfacd JK |
163 | Requires(post): openssl-tools |
164 | Requires(post): sed >= 4.0 | |
1bd568e8 | 165 | Requires(post,preun): /sbin/chkconfig |
65253ffd JK |
166 | Requires(postun): /usr/sbin/groupdel |
167 | Requires(postun): /usr/sbin/userdel | |
1b0a2248 | 168 | Requires(pre): /usr/sbin/groupadd |
169 | Requires(pre): /usr/sbin/useradd | |
abdcd1c5 JB |
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 | |
bb6e7dc5 | 174 | |
5ce18635 | 175 | %description common |
bb6e7dc5 AM |
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 | |
5ce18635 | 185 | recover lost or damaged files. |
bb6e7dc5 | 186 | |
192fbfcf JR |
187 | %description common -l pl.UTF-8 |
188 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 189 | |
192fbfcf JR |
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. | |
cc01862b | 198 | |
5ce18635 AM |
199 | %package dir |
200 | Summary: Bacula Director and Catalog services | |
6a00efc0 | 201 | Summary(pl.UTF-8): Usługi Bacula Director i Catalog |
5ce18635 | 202 | Group: Networking/Utilities |
237bfacd | 203 | Requires(post): sed >= 4.0 |
abdcd1c5 JB |
204 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
205 | Obsoletes: bacula-updatedb | |
bb6e7dc5 | 206 | |
5ce18635 AM |
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 | |
7533d19f | 218 | record of all Volumes used, all Jobs run, and all Files saved. |
5ce18635 | 219 | |
192fbfcf JR |
220 | %description dir -l pl.UTF-8 |
221 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 222 | |
192fbfcf | 223 | Bacula Director to program nadzorujący wszystkie operacje wykonywania |
cc01862b | 224 | kopii zapasowych, odzyskiwania, weryfikacji i archiwizowania. |
192fbfcf JR |
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 | |
7533d19f | 232 | plikami. |
cc01862b | 233 | |
5ce18635 AM |
234 | %package console |
235 | Summary: Bacula Console | |
6a00efc0 | 236 | Summary(pl.UTF-8): Konsola Baculi |
5ce18635 | 237 | Group: Networking/Utilities |
237bfacd | 238 | Requires(post): sed >= 4.0 |
abdcd1c5 | 239 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
5ce18635 AM |
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 | ||
192fbfcf JR |
249 | %description console -l pl.UTF-8 |
250 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 251 | |
192fbfcf JR |
252 | Bacula Console to program umożliwiający administratorowi lub |
253 | użytkownikowi komunikowanie się z programem Bacula Director. To jest | |
cc01862b JB |
254 | interfejs czysto tekstowy. |
255 | ||
5ce18635 | 256 | %package console-wx |
cc01862b | 257 | Summary: Bacula wxWidgets Console |
6a00efc0 | 258 | Summary(pl.UTF-8): Konsola Baculi oparta na wxWidgets |
5ce18635 | 259 | Group: Networking/Utilities |
237bfacd | 260 | Requires(post): sed >= 4.0 |
abdcd1c5 | 261 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
5ce18635 AM |
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 | |
cc01862b | 268 | communicate with the Bacula Director. This is the wxWidgets GUI |
5ce18635 AM |
269 | interface. |
270 | ||
192fbfcf JR |
271 | %description console-wx -l pl.UTF-8 |
272 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 273 | |
192fbfcf JR |
274 | Bacula Console to program umożliwiający administratorowi lub |
275 | użytkownikowi komunikowanie się z programem Bacula Director. To jest | |
cc01862b JB |
276 | interfejs graficzny oparty na wxWidgets. |
277 | ||
237bfacd JK |
278 | %package console-gnome |
279 | Summary: Bacula GNOME Console | |
6a00efc0 | 280 | Summary(pl.UTF-8): Konsola Baculi oparta dla GNOME |
237bfacd | 281 | Group: Networking/Utilities |
237bfacd | 282 | Requires(post): sed >= 4.0 |
abdcd1c5 | 283 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
237bfacd JK |
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 | |
1bd568e8 | 290 | communicate with the Bacula Director. This is the GNOME GUI interface. |
237bfacd | 291 | |
192fbfcf JR |
292 | %description console-gnome -l pl.UTF-8 |
293 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
237bfacd | 294 | |
192fbfcf JR |
295 | Bacula Console to program umożliwiający administratorowi lub |
296 | użytkownikowi komunikowanie się z programem Bacula Director. To jest | |
237bfacd JK |
297 | interfejs graficzny oparty na GNOME. |
298 | ||
304bb97e | 299 | %package console-qt4 |
ece2f4c3 JB |
300 | Summary: Bacula Qt4 Console |
301 | Summary(pl.UTF-8): Konsola Baculi oparta na Qt4 | |
304bb97e AM |
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 | |
ece2f4c3 | 311 | communicate with the Bacula Director. This is the Qt4 GUI interface. |
304bb97e AM |
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 | |
ece2f4c3 | 318 | interfejs graficzny oparty na Qt4. |
304bb97e | 319 | |
237bfacd JK |
320 | %package tray-monitor |
321 | Summary: Bacula Tray Monitor | |
322 | Group: Networking/Utilities | |
237bfacd | 323 | Requires(post): sed >= 4.0 |
abdcd1c5 | 324 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
237bfacd JK |
325 | |
326 | %description tray-monitor | |
327 | Bacula - It comes by night and sucks the vital essence from your | |
328 | computers. | |
329 | ||
1b0a2248 | 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. | |
237bfacd | 335 | |
5ce18635 AM |
336 | %package fd |
337 | Summary: Bacula File services (Client) | |
6a00efc0 | 338 | Summary(pl.UTF-8): Usługi Bacula File (klient) |
5ce18635 | 339 | Group: Networking/Utilities |
237bfacd | 340 | Requires(post): sed >= 4.0 |
abdcd1c5 | 341 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
5ce18635 AM |
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 | ||
192fbfcf JR |
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 | |
cc01862b JB |
369 | Baculi). |
370 | ||
5ce18635 AM |
371 | %package sd |
372 | Summary: Bacula Storage services | |
6a00efc0 | 373 | Summary(pl.UTF-8): Usługi Bacula Storage |
5ce18635 | 374 | Group: Networking/Utilities |
237bfacd | 375 | Requires(post): sed >= 4.0 |
abdcd1c5 | 376 | Requires: %{name}-common = %{epoch}:%{version}-%{release} |
329073aa | 377 | Conflicts: dvd+rw-tools <= 5.21.4.10.8-1 |
5ce18635 AM |
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). | |
bb6e7dc5 | 389 | |
192fbfcf JR |
390 | %description sd -l pl.UTF-8 |
391 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 392 | |
192fbfcf JR |
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). | |
cc01862b | 400 | |
5ce18635 | 401 | %package rescue |
bb6e7dc5 | 402 | Summary: Bacula - The Network Backup Solution |
6a00efc0 | 403 | Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci |
bb6e7dc5 | 404 | Group: Networking/Utilities |
cc01862b | 405 | Requires: %{name}-fd = %{epoch}:%{version}-%{release} |
bb6e7dc5 AM |
406 | Requires: coreutils |
407 | Requires: util-linux | |
bb6e7dc5 AM |
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 | |
cc01862b | 419 | recover lost or damaged files. |
bb6e7dc5 AM |
420 | |
421 | This package installs scripts for disaster recovery and builds rescue | |
1b0a2248 | 422 | floppy disk for bare metal recovery. |
237bfacd | 423 | |
cd23ba7c ER |
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. | |
cc01862b | 429 | |
192fbfcf JR |
430 | %description rescue -l pl.UTF-8 |
431 | Bacula - przychodzi nocą i wysysa żywotny ekstrakt z komputerów. | |
cc01862b | 432 | |
192fbfcf JR |
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. | |
cc01862b | 441 | |
192fbfcf | 442 | Ten pakiet zawiera skrypty do odtwarzania po awarii i tworzy dyskietkę |
1b0a2248 | 443 | ratunkowe do odtwarzania systemu od zera. |
cc01862b | 444 | |
192fbfcf | 445 | Aby stworzyć dyskietkę ratunkową Baculi, należy uruchomić "./make_rescue_disk |
cc01862b | 446 | --copy-static-bacula - --copy-etc-files" z katalogu |
192fbfcf JR |
447 | %{_sysconfdir}/rescue . Aby ponownie utworzyć informacje ratunkowe dla |
448 | danego systemu, należy ponownie uruchomić ./getdiskinfo . | |
bb6e7dc5 | 449 | |
bb6e7dc5 | 450 | %prep |
7425cb9d | 451 | %setup -q -a 1 |
0a03f92d | 452 | %patch0 -p1 |
ecb9bab1 | 453 | %patch1 -p1 |
0a03f92d | 454 | %patch2 -p1 |
ecb9bab1 | 455 | %patch3 -p1 |
e740cd49 | 456 | %patch4 -p1 |
c08d8c7a | 457 | %patch5 -p1 |
7533d19f | 458 | %patch6 -p1 |
0f65a227 | 459 | %{?with_dbi:%patch7 -p1} |
aa6db71e | 460 | |
783dd8b1 | 461 | tar -xf %{SOURCE2} && ln -s bacula-rescue-* rescue |
cf50297e | 462 | |
10650249 AM |
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_* | |
237bfacd | 466 | sed -i -e 's/@hostname@/--hostname--/' src/*/*.conf.in |
bb6e7dc5 | 467 | |
0f65a227 MM |
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 | ||
bb6e7dc5 | 472 | %build |
e7f64ac8 | 473 | cp -f %{_datadir}/automake/config.sub autoconf |
cf50297e AM |
474 | cd autoconf && %{__aclocal} -I bacula-macros -I gettext-macros && cd .. |
475 | %{__autoconf} --prepend-include=$(pwd)/autoconf autoconf/configure.in > configure | |
476 | ||
1bd568e8 | 477 | CPPFLAGS="-I/usr/include/ncurses -I%{_includedir}/readline" |
cf50297e | 478 | WXCONFIG=%{_bindir}/wx-gtk2-unicode-config \ |
bb6e7dc5 | 479 | %configure \ |
5ce18635 | 480 | --with-scriptdir=%{_libexecdir}/%{name} \ |
e75759f3 | 481 | --%{!?with_gnome:dis}%{?with_gnome:en}able-gnome \ |
c19580f6 | 482 | %{?with_bat:--enable-bat} \ |
bb6e7dc5 | 483 | --disable-conio \ |
5ce18635 | 484 | --enable-smartalloc \ |
e3dd858d | 485 | %{?with_console_wx:--enable-bwx-console} \ |
237bfacd | 486 | --enable-tray-monitor \ |
2007449a | 487 | %{?with_python:--with-python} \ |
bb6e7dc5 AM |
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 \ | |
cf50297e | 496 | --enable-batch-insert \ |
8e872bc4 | 497 | --with-%{database} \ |
aa6db71e | 498 | %{?with_sqlite3_sync_off:--enable-extra-sqlite3-init="pragma synchronous=0;"} \ |
237bfacd JK |
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#" \ | |
2b68b0cb | 505 | --with-openssl |
304bb97e AM |
506 | |
507 | %if %{with bat} | |
508 | cd src/qt-console | |
846b23db | 509 | qmake-qt4 bat.pro |
304bb97e AM |
510 | cd ../.. |
511 | %endif | |
512 | ||
bb6e7dc5 AM |
513 | %{__make} |
514 | ||
2b68b0cb AM |
515 | %if %{with rescue} |
516 | cd rescue | |
517 | %configure \ | |
518 | --with-bacula=../ | |
519 | cd linux/cdrom | |
520 | fakeroot %{__make} | |
521 | %endif | |
522 | ||
bb6e7dc5 AM |
523 | %install |
524 | rm -rf $RPM_BUILD_ROOT | |
525 | ||
237bfacd JK |
526 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,pam.d,sysconfig} |
527 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/rescue | |
3c0eac7c | 528 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_mandir},%{_bindir},/var/log/bacula} |
bb6e7dc5 AM |
529 | |
530 | %{__make} install \ | |
531 | DESTDIR=$RPM_BUILD_ROOT | |
532 | ||
d907cd57 | 533 | # static daemon |
41ac7784 | 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 | |
d907cd57 | 536 | |
5ce18635 AM |
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 | |
1a72afd2 | 540 | install %{SOURCE13} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-dir |
4280e495 JK |
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 | |
d907cd57 | 544 | |
cacc89f5 AZ |
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 | ||
d907cd57 | 549 | install scripts/bacula.png $RPM_BUILD_ROOT%{_pixmapsdir}/bacula.png |
237bfacd JK |
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 | |
cacc89f5 | 556 | %endif |
d907cd57 | 557 | |
304bb97e AM |
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 | ||
2b68b0cb | 563 | %if %{with rescue} |
d907cd57 | 564 | # install the rescue stuff, these are the rescue scripts |
237bfacd JK |
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 | |
2b68b0cb | 569 | %endif |
bb6e7dc5 | 570 | |
3c0eac7c AM |
571 | touch $RPM_BUILD_ROOT/var/log/bacula/log |
572 | ||
bb6e7dc5 | 573 | # install the updatedb scripts |
237bfacd | 574 | install updatedb/update_sqlite* $RPM_BUILD_ROOT%{_libexecdir}/%{name} |
d907cd57 | 575 | |
237bfacd JK |
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} | |
bb6e7dc5 | 579 | |
0a03f92d | 580 | install scripts/mtx-changer.conf $RPM_BUILD_ROOT%{_sysconfdir}/ |
581 | ||
1a72afd2 AM |
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 | |
d5d063ee | 585 | %if !%{with console_wx} |
1376b552 | 586 | rm -f $RPM_BUILD_ROOT%{_desktopdir}/bacula-wx.desktop |
1376b552 | 587 | %endif |
1a72afd2 AM |
588 | touch $RPM_BUILD_ROOT%{_sysconfdir}/.pw.sed |
589 | ||
f2337569 JB |
590 | %clean |
591 | rm -rf $RPM_BUILD_ROOT | |
592 | ||
5ce18635 | 593 | %pre common |
fbc59152 ER |
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 | |
5ce18635 | 596 | |
237bfacd | 597 | %post common |
0a03f92d | 598 | /sbin/ldconfig |
237bfacd JK |
599 | echo "Updating bacula passwords and names..." |
600 | cd /etc/bacula | |
601 | for f in *-password ; do | |
fbc59152 | 602 | if [ ! -s $f ] ; then |
237bfacd JK |
603 | openssl rand -base64 33 > $f |
604 | fi | |
605 | p=`cat $f` | |
b41d8966 | 606 | for cf in *.conf *.conf.rpmnew ; do |
237bfacd JK |
607 | [ -f $cf ] && sed -i -e"s:#FAKE-$f#:$p:" "$cf" || : |
608 | done | |
609 | done | |
b41d8966 | 610 | for cf in *.conf *.conf.rpmnew ; do |
237bfacd JK |
611 | [ -f $cf ] && sed -i -e"s:--hostname--:`hostname`:" "$cf" || : |
612 | done | |
613 | ||
5ce18635 | 614 | %postun common |
0a03f92d | 615 | /sbin/ldconfig |
28c9f5d0 AM |
616 | if [ "$1" = "0" ]; then |
617 | %userremove bacula | |
618 | %groupremove bacula | |
619 | fi | |
5ce18635 AM |
620 | |
621 | %post dir | |
622 | umask 077 | |
acd8643c AM |
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 | ||
3c0eac7c | 627 | %if %{with sqlite} || %{with sqlite3} |
1a72afd2 | 628 | [ -s %{_localstatedir}/bacula.db ] && \ |
9aa69d51 | 629 | DB_VER=`echo "select * from Version;" | \ |
cece716a | 630 | %{_bindir}/sqlite%{?with_sqlite3:3} %{_localstatedir}/bacula.db | tail -n 1 2>/dev/null` |
acd8643c | 631 | |
5ce18635 AM |
632 | if [ -z "$DB_VER" ]; then |
633 | # grant privileges and create tables | |
9aa69d51 | 634 | %{_libexecdir}/%{name}/grant_bacula_privileges > dev/null |
635 | %{_libexecdir}/%{name}/create_bacula_database > dev/null | |
636 | %{_libexecdir}/%{name}/make_bacula_tables > dev/null | |
acd8643c | 637 | else |
9aa69d51 | 638 | echo "Backing up bacula tables" |
cece716a | 639 | echo ".dump" | sqlite%{?with_sqlite3:3} %{_localstatedir}/bacula.db | bzip2 > %{_localstatedir}/bacula_backup.sql.bz2 |
acd8643c | 640 | |
8e872bc4 | 641 | db_type="%{database}" |
acd8643c AM |
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} | |
9aa69d51 | 651 | fi |
acd8643c AM |
652 | done |
653 | ||
9aa69d51 | 654 | %{_libexecdir}/%{name}/update_bacula_tables |
655 | echo "If bacula works correctly you can remove the backup file %{_localstatedir}/bacula_backup.sql.bz2" | |
bb6e7dc5 | 656 | fi |
28c9f5d0 AM |
657 | chown -R bacula:bacula %{_localstatedir} |
658 | chmod -R u+rX,go-rwx %{_localstatedir}/* | |
acd8643c | 659 | %endif |
bb6e7dc5 | 660 | |
237bfacd JK |
661 | echo "Updating Bacula passwords and names..." |
662 | cd /etc/bacula | |
dabeb284 | 663 | for f in *-password; do |
237bfacd | 664 | p=`cat $f` |
329073aa | 665 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 666 | done |
329073aa | 667 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 668 | |
1a72afd2 | 669 | /sbin/chkconfig --add bacula-dir |
52504a6d | 670 | %service bacula-dir restart "Bacula Director daemon" |
bb6e7dc5 | 671 | |
5ce18635 | 672 | %preun dir |
1a72afd2 | 673 | if [ "$1" = "0" ]; then |
52504a6d | 674 | %service bacula-dir stop |
9aa69d51 | 675 | /sbin/chkconfig --del bacula-dir |
1a72afd2 | 676 | fi |
bb6e7dc5 | 677 | |
5ce18635 | 678 | %post fd |
237bfacd JK |
679 | echo "Updating Bacula passwords and names..." |
680 | cd /etc/bacula | |
dabeb284 | 681 | for f in *-password; do |
237bfacd | 682 | p=`cat $f` |
329073aa | 683 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 684 | done |
329073aa | 685 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 686 | |
1a72afd2 | 687 | /sbin/chkconfig --add bacula-fd |
52504a6d | 688 | %service bacula-fd restart "Bacula File daemon" |
bb6e7dc5 | 689 | |
5ce18635 | 690 | %preun fd |
1a72afd2 | 691 | if [ "$1" = "0" ]; then |
52504a6d | 692 | %service bacula-fd stop |
9aa69d51 | 693 | /sbin/chkconfig --del bacula-fd |
1a72afd2 | 694 | fi |
5ce18635 AM |
695 | |
696 | %post sd | |
237bfacd JK |
697 | echo "Updating Bacula passwords and names..." |
698 | cd /etc/bacula | |
dabeb284 | 699 | for f in *-password; do |
237bfacd | 700 | p=`cat $f` |
329073aa | 701 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 702 | done |
329073aa | 703 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 704 | |
1a72afd2 | 705 | /sbin/chkconfig --add bacula-sd |
52504a6d | 706 | %service bacula-sd restart "Bacula Storage daemon" |
bb6e7dc5 | 707 | |
5ce18635 | 708 | %preun sd |
1a72afd2 | 709 | if [ "$1" = "0" ]; then |
52504a6d | 710 | %service bacula-sd stop |
9aa69d51 | 711 | /sbin/chkconfig --del bacula-sd |
1a72afd2 | 712 | fi |
5ce18635 AM |
713 | |
714 | %pre console | |
715 | if [ -e %{_sysconfdir}/console.conf -a ! -e %{_sysconfdir}/bconsole.conf ]; then | |
9aa69d51 | 716 | mv %{_sysconfdir}/console.conf %{_sysconfdir}/bconsole.conf |
bb6e7dc5 AM |
717 | fi |
718 | ||
237bfacd JK |
719 | %post console |
720 | echo "Updating Bacula passwords and names..." | |
721 | cd /etc/bacula | |
dabeb284 | 722 | for f in *-password; do |
237bfacd | 723 | p=`cat $f` |
329073aa | 724 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 725 | done |
329073aa | 726 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd JK |
727 | |
728 | %post console-wx | |
729 | echo "Updating Bacula passwords and names..." | |
730 | cd /etc/bacula | |
dabeb284 | 731 | for f in *-password; do |
237bfacd | 732 | p=`cat $f` |
329073aa | 733 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 734 | done |
329073aa | 735 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd JK |
736 | |
737 | %post console-gnome | |
738 | echo "Updating Bacula passwords and names..." | |
739 | cd /etc/bacula | |
dabeb284 | 740 | for f in *-password; do |
237bfacd | 741 | p=`cat $f` |
329073aa | 742 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 743 | done |
329073aa | 744 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 745 | |
304bb97e AM |
746 | %post console-qt4 |
747 | echo "Updating Bacula passwords and names..." | |
748 | cd /etc/bacula | |
dabeb284 | 749 | for f in *-password; do |
304bb97e AM |
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 | ||
237bfacd JK |
755 | %post tray-monitor |
756 | echo "Updating Bacula passwords and names..." | |
757 | cd /etc/bacula | |
dabeb284 | 758 | for f in *-password; do |
237bfacd | 759 | p=`cat $f` |
329073aa | 760 | sed -i -e"s:#FAKE-$f#:$p:" *.conf *.conf.rpmnew 2>/dev/null || : |
237bfacd | 761 | done |
329073aa | 762 | sed -i -e"s:--hostname--:`hostname`:" *.conf *.conf.rpmnew 2>/dev/null || : |
bb6e7dc5 | 763 | |
bb6e7dc5 AM |
764 | %post rescue |
765 | # link our current installed conf file to the rescue directory | |
f2337569 | 766 | ln -sf %{_sysconfdir}/bacula-fd.conf %{_sysconfdir}/rescue/bacula-fd.conf |
bb6e7dc5 AM |
767 | |
768 | # run getdiskinfo | |
769 | echo "Creating rescue files for this system..." | |
d907cd57 | 770 | cd %{_sysconfdir}/rescue |
bb6e7dc5 AM |
771 | ./getdiskinfo |
772 | ||
773 | %preun rescue | |
774 | # remove the files created after the initial rpm installation | |
f2337569 JB |
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 | |
bb6e7dc5 | 784 | |
5ce18635 AM |
785 | %files common |
786 | %defattr(644,root,root,755) | |
237bfacd | 787 | %doc LICENSE |
1a72afd2 | 788 | %dir %{_sysconfdir} |
1b0a2248 | 789 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*-password |
79d0fef6 | 790 | %attr(755,root,root) %{_sbindir}/bsmtp |
7425cb9d | 791 | %attr(755,root,root) %{_sbindir}/btraceback |
20bdbd41 | 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 | |
c74b041d | 802 | %{_mandir}/man8/bacula.8* |
7425cb9d JK |
803 | %{_mandir}/man1/bsmtp.1* |
804 | %{_mandir}/man8/btraceback.8* | |
5ce18635 | 805 | %dir %{_libexecdir}/%{name} |
1376b552 | 806 | %{_libexecdir}/%{name}/btraceback.dbx |
5ce18635 | 807 | %{_libexecdir}/%{name}/btraceback.gdb |
d6dbe33c | 808 | %attr(770,root,bacula) %dir %{_localstatedir} |
3c0eac7c AM |
809 | %attr(750,bacula,logs) %dir /var/log/bacula |
810 | %attr(640,bacula,logs) %ghost /var/log/bacula/log | |
5ce18635 AM |
811 | |
812 | %files dir | |
bb6e7dc5 | 813 | %defattr(644,root,root,755) |
237bfacd | 814 | %doc ChangeLog CheckList ReleaseNotes kernstodo LICENSE |
28647453 | 815 | #%doc examples %{name}-docs-%{version}/manual/{*.pdf,bacula} |
cc515592 | 816 | %attr(640,root,bacula) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-dir.conf |
1a72afd2 | 817 | %ghost %{_sysconfdir}/.pw.sed |
28c9f5d0 | 818 | %attr(640,root,root) %config(noreplace) /etc/logrotate.d/bacula-dir |
1a72afd2 | 819 | %attr(754,root,root) /etc/rc.d/init.d/bacula-dir |
cd23ba7c | 820 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-dir |
5ff0b6a3 | 821 | %attr(755,root,root) %{_sbindir}/bacula-dir |
cacc89f5 AZ |
822 | %attr(755,root,root) %{_sbindir}/bregex |
823 | %attr(755,root,root) %{_sbindir}/bwild | |
5ce18635 | 824 | %attr(755,root,root) %{_sbindir}/dbcheck |
79d0fef6 | 825 | %{_mandir}/man8/bacula-dir.8* |
7425cb9d | 826 | %{_mandir}/man8/dbcheck.8* |
79d0fef6 | 827 | %{_libexecdir}/%{name}/query.sql |
0f65a227 MM |
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} | |
7425cb9d JK |
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_* | |
aeaed87e | 843 | %endif |
0f65a227 | 844 | %if %{with sqlite} || %{with dbi} |
f0a88766 | 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 | |
7425cb9d JK |
850 | %attr(755,root,root) %{_libexecdir}/%{name}/update_sqlite_* |
851 | %endif | |
0f65a227 | 852 | %if %{with mysql} || %{with dbi} |
aeaed87e | 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 | |
0f65a227 | 860 | %if %{with pgsql} || %{with dbi} |
e090896a JK |
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_* | |
0f65a227 | 867 | %attr(755,root,root) %{_libexecdir}/%{name}/fix_postgresql_* |
e090896a | 868 | %endif |
0f65a227 | 869 | %if %{without dbi} |
f0a88766 | 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 | |
0f65a227 | 876 | %endif |
f0a88766 | 877 | %attr(755,root,root) %{_libexecdir}/%{name}/make_catalog_backup |
878 | %attr(755,root,root) %{_libexecdir}/%{name}/delete_catalog_backup | |
5ce18635 AM |
879 | |
880 | %files fd | |
881 | %defattr(644,root,root,755) | |
237bfacd | 882 | %doc LICENSE |
1b0a2248 | 883 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-fd.conf |
1a72afd2 | 884 | %attr(754,root,root) /etc/rc.d/init.d/bacula-fd |
cd23ba7c | 885 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-fd |
5ff0b6a3 | 886 | %attr(755,root,root) %{_sbindir}/bacula-fd |
79d0fef6 | 887 | %{_mandir}/man8/bacula-fd.8* |
5ce18635 AM |
888 | |
889 | %files sd | |
890 | %defattr(644,root,root,755) | |
237bfacd | 891 | %doc LICENSE |
1b0a2248 | 892 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bacula-sd.conf |
0a03f92d | 893 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mtx-changer.conf |
1a72afd2 | 894 | %attr(754,root,root) /etc/rc.d/init.d/bacula-sd |
cd23ba7c | 895 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bacula-sd |
5ff0b6a3 AM |
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 | |
329073aa | 902 | %attr(755,root,root) %{_libexecdir}/%{name}/mtx-changer |
150db1c2 | 903 | %attr(755,root,root) %{_libexecdir}/%{name}/disk-changer |
329073aa | 904 | %attr(755,root,root) %{_libexecdir}/%{name}/dvd-handler |
5ce18635 | 905 | %{_mandir}/man8/bacula-sd.8* |
7425cb9d JK |
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* | |
5ce18635 AM |
911 | |
912 | %files console | |
bb6e7dc5 | 913 | %defattr(644,root,root,755) |
237bfacd | 914 | %doc LICENSE |
1b0a2248 | 915 | %attr(600,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bconsole.conf |
1a72afd2 | 916 | %attr(755,root,root) %{_sbindir}/bconsole |
7425cb9d | 917 | %{_mandir}/man8/bconsole.8* |
5ce18635 | 918 | |
1376b552 | 919 | %if %{with console_wx} |
5ce18635 AM |
920 | %files console-wx |
921 | %defattr(644,root,root,755) | |
237bfacd | 922 | %doc LICENSE |
1a72afd2 | 923 | %{_pixmapsdir}/%{name}.png |
237bfacd | 924 | %{_desktopdir}/bacula-wx.desktop |
e3dd858d | 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* | |
1376b552 | 928 | %endif |
bb6e7dc5 | 929 | |
e75759f3 | 930 | %if %{with gnome} |
237bfacd JK |
931 | %files console-gnome |
932 | %defattr(644,root,root,755) | |
933 | %doc LICENSE | |
934 | %{_pixmapsdir}/%{name}.png | |
935 | %{_desktopdir}/bacula.desktop | |
e3dd858d | 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* | |
e75759f3 | 939 | %endif |
237bfacd | 940 | |
304bb97e AM |
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 | |
dabeb284 | 947 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bat.conf |
304bb97e AM |
948 | %attr(755,root,root) %{_sbindir}/bat |
949 | %{_mandir}/man1/bat.1* | |
950 | %endif | |
951 | ||
cacc89f5 | 952 | %if %{with console_wx} |
237bfacd JK |
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 | |
cd23ba7c | 958 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tray-monitor.conf |
237bfacd | 959 | %attr(755,root,root) %{_bindir}/bacula-tray-monitor |
7425cb9d | 960 | %{_mandir}/man1/bacula-tray-monitor.1* |
cacc89f5 | 961 | %endif |
237bfacd | 962 | |
2b68b0cb | 963 | %if %{with rescue} |
bb6e7dc5 AM |
964 | %files rescue |
965 | %defattr(644,root,root,755) | |
c741b8e0 | 966 | %doc LICENSE |
4280e495 | 967 | %dir %{_sysconfdir}/rescue |
1b0a2248 | 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 | |
2b68b0cb | 978 | %endif |