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