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