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