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